Lines Matching refs:pDisplayContext
57 va_DisplayContextIsValid(VADisplayContextP pDisplayContext)
59 VADriverContextP const pDriverContext = pDisplayContext->pDriverContext;
66 va_DisplayContextDestroy(VADisplayContextP pDisplayContext)
71 if (!pDisplayContext)
74 pDisplayContextWl = pDisplayContext->opaque;
76 pDisplayContextWl->destroy(pDisplayContext);
78 pDriverContext = pDisplayContext->pDriverContext;
83 pDisplayContext->pDriverContext = NULL;
86 free(pDisplayContext->opaque);
87 pDisplayContext->opaque = NULL;
88 free(pDisplayContext);
92 va_DisplayContextGetDriverName(VADisplayContextP pDisplayContext, char **name)
118 VADisplayContextP pDisplayContext = NULL;
123 pDisplayContext = calloc(1, sizeof(*pDisplayContext));
124 if (!pDisplayContext)
127 pDisplayContext->vadpy_magic = VA_DISPLAY_MAGIC;
128 pDisplayContext->vaIsValid = va_DisplayContextIsValid;
129 pDisplayContext->vaDestroy = va_DisplayContextDestroy;
130 pDisplayContext->vaGetDriverName = va_DisplayContextGetDriverName;
135 pDisplayContext->pDriverContext = pDriverContext;
148 if (g_backends[i].create(pDisplayContext))
150 g_backends[i].destroy(pDisplayContext);
153 return (VADisplay)pDisplayContext;
156 va_DisplayContextDestroy(pDisplayContext);