Lines Matching defs:pContext

67    XvMCContextPtr pContext = (XvMCContextPtr)data;
69 pContext->refcnt--;
71 if(!pContext->refcnt) {
72 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((pointer)pContext, pContext->context_id);
100 XvMCContextPtr pContext = pSubpict->context;
101 XvMCScreenPtr pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
103 (*pScreenPriv->adaptors[pContext->adapt_num].DestroySubpicture)(pSubpict);
106 XvMCDestroyContextRes((pointer)pContext, pContext->context_id);
185 XvMCContextPtr pContext;
229 if(!(pContext = malloc(sizeof(XvMCContextRec)))) {
234 pContext->pScreen = pScreen;
235 pContext->adapt_num = adapt_num;
236 pContext->context_id = stuff->context_id;
237 pContext->surface_type_id = stuff->surface_type_id;
238 pContext->width = stuff->width;
239 pContext->height = stuff->height;
240 pContext->flags = stuff->flags;
241 pContext->refcnt = 1;
243 result = (*adaptor->CreateContext)(pPort, pContext, &dwords, &data);
246 free(pContext);
252 rep.width_actual = pContext->width;
253 rep.height_actual = pContext->height;
254 rep.flags_return = pContext->flags;
260 AddResource(pContext->context_id, XvMCRTContext, pContext);
291 XvMCContextPtr pContext;
298 result = dixLookupResourceByType((pointer *)&pContext, stuff->context_id,
303 pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
309 pSurface->surface_type_id = pContext->surface_type_id;
310 pSurface->context = pContext;
312 result = (*pScreenPriv->adaptors[pContext->adapt_num].CreateSurface)(
331 pContext->refcnt++;
360 XvMCContextPtr pContext;
369 result = dixLookupResourceByType((pointer *)&pContext, stuff->context_id,
374 pScreenPriv = XVMC_GET_PRIVATE(pContext->pScreen);
376 adaptor = &(pScreenPriv->adaptors[pContext->adapt_num]);
380 if(adaptor->surfaces[i]->surface_type_id == pContext->surface_type_id){
418 pSubpicture->context = pContext;
420 result = (*pScreenPriv->adaptors[pContext->adapt_num].CreateSubpicture)(
447 pContext->refcnt++;