Lines Matching refs:pContext
66 XvMCContextPtr pContext = (XvMCContextPtr) data;
68 pContext->refcnt--;
70 if (!pContext->refcnt) {
71 XvMCScreenPtr pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
73 (*pScreenPriv->adaptors[pContext->adapt_num].DestroyContext) (pContext);
74 free(pContext);
84 XvMCContextPtr pContext = pSurface->context;
85 XvMCScreenPtr pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
87 (*pScreenPriv->adaptors[pContext->adapt_num].DestroySurface) (pSurface);
90 XvMCDestroyContextRes((void *) pContext, pContext->context_id);
99 XvMCContextPtr pContext = pSubpict->context;
100 XvMCScreenPtr pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
102 (*pScreenPriv->adaptors[pContext->adapt_num].DestroySubpicture) (pSubpict);
105 XvMCDestroyContextRes((void *) pContext, pContext->context_id);
192 XvMCContextPtr pContext;
237 if (!(pContext = malloc(sizeof(XvMCContextRec)))) {
241 pContext->pScreen = pScreen;
242 pContext->adapt_num = adapt_num;
243 pContext->context_id = stuff->context_id;
244 pContext->surface_type_id = stuff->surface_type_id;
245 pContext->width = stuff->width;
246 pContext->height = stuff->height;
247 pContext->flags = stuff->flags;
248 pContext->refcnt = 1;
250 result = (*adaptor->CreateContext) (pPort, pContext, &dwords, &data);
253 free(pContext);
256 if (!AddResource(pContext->context_id, XvMCRTContext, pContext)) {
265 .width_actual = pContext->width,
266 .height_actual = pContext->height,
267 .flags_return = pContext->flags
304 XvMCContextPtr pContext;
312 result = dixLookupResourceByType((void **) &pContext, stuff->context_id,
317 pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
323 pSurface->surface_type_id = pContext->surface_type_id;
324 pSurface->context = pContext;
327 (*pScreenPriv->adaptors[pContext->adapt_num].CreateSurface) (pSurface,
352 pContext->refcnt++;
382 XvMCContextPtr pContext;
392 result = dixLookupResourceByType((void **) &pContext, stuff->context_id,
397 pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
399 adaptor = &(pScreenPriv->adaptors[pContext->adapt_num]);
403 if (adaptor->surfaces[i]->surface_type_id == pContext->surface_type_id) {
445 pSubpicture->context = pContext;
448 (*pScreenPriv->adaptors[pContext->adapt_num].
480 pContext->refcnt++;