Lines Matching full:pa

192 xwl_glamor_xv_add_formats(XvAdaptorPtr pa)  in xwl_glamor_xv_add_formats()  argument
204 pScreen = pa->pScreen; in xwl_glamor_xv_add_formats()
231 pa->nFormats = numFormat; in xwl_glamor_xv_add_formats()
232 pa->pFormats = pFormat; in xwl_glamor_xv_add_formats()
238 xwl_glamor_xv_add_ports(XvAdaptorPtr pa) in xwl_glamor_xv_add_ports() argument
247 xwlXvScreen = dixLookupPrivate(&(pa->pScreen)->devPrivates, in xwl_glamor_xv_add_ports()
257 pp->pAdaptor = pa; in xwl_glamor_xv_add_ports()
268 pa->base_id = pPorts->id; in xwl_glamor_xv_add_ports()
269 pa->nPorts = nPorts; in xwl_glamor_xv_add_ports()
270 pa->pPorts = pPorts; in xwl_glamor_xv_add_ports()
276 xwl_glamor_xv_add_attributes(XvAdaptorPtr pa) in xwl_glamor_xv_add_attributes() argument
280 pa->pAttributes = xnfcalloc(glamor_xv_num_attributes, sizeof(XvAttributeRec)); in xwl_glamor_xv_add_attributes()
281 memcpy(pa->pAttributes, glamor_xv_attributes, in xwl_glamor_xv_add_attributes()
285 pa->pAttributes[i].name = strdup(glamor_xv_attributes[i].name); in xwl_glamor_xv_add_attributes()
287 pa->nAttributes = glamor_xv_num_attributes; in xwl_glamor_xv_add_attributes()
291 xwl_glamor_xv_add_images(XvAdaptorPtr pa) in xwl_glamor_xv_add_images() argument
293 pa->pImages = xnfcalloc(glamor_xv_num_images, sizeof(XvImageRec)); in xwl_glamor_xv_add_images()
294 memcpy(pa->pImages, glamor_xv_images, glamor_xv_num_images * sizeof(XvImageRec)); in xwl_glamor_xv_add_images()
296 pa->nImages = glamor_xv_num_images; in xwl_glamor_xv_add_images()
300 xwl_glamor_xv_add_encodings(XvAdaptorPtr pa) in xwl_glamor_xv_add_encodings() argument
309 pe->pScreen = pa->pScreen; in xwl_glamor_xv_add_encodings()
316 pa->pEncodings = pe; in xwl_glamor_xv_add_encodings()
317 pa->nEncodings = 1; in xwl_glamor_xv_add_encodings()
326 XvAdaptorPtr pa; in xwl_glamor_xv_add_adaptors() local
337 pa = xnfcalloc(1, sizeof(XvAdaptorRec)); in xwl_glamor_xv_add_adaptors()
338 pa->pScreen = pScreen; in xwl_glamor_xv_add_adaptors()
339 pa->type = (unsigned char) (XvInputMask | XvImageMask); in xwl_glamor_xv_add_adaptors()
340 pa->ddStopVideo = xwl_glamor_xv_stop_video; in xwl_glamor_xv_add_adaptors()
341 pa->ddPutImage = xwl_glamor_xv_put_image; in xwl_glamor_xv_add_adaptors()
342 pa->ddSetPortAttribute = xwl_glamor_xv_set_port_attribute; in xwl_glamor_xv_add_adaptors()
343 pa->ddGetPortAttribute = xwl_glamor_xv_get_port_attribute; in xwl_glamor_xv_add_adaptors()
344 pa->ddQueryBestSize = xwl_glamor_xv_query_best_size; in xwl_glamor_xv_add_adaptors()
345 pa->ddQueryImageAttributes = xwl_glamor_xv_query_image_attributes; in xwl_glamor_xv_add_adaptors()
346 pa->name = strdup(ADAPTOR_NAME); in xwl_glamor_xv_add_adaptors()
348 xwl_glamor_xv_add_encodings(pa); in xwl_glamor_xv_add_adaptors()
349 xwl_glamor_xv_add_images(pa); in xwl_glamor_xv_add_adaptors()
350 xwl_glamor_xv_add_attributes(pa); in xwl_glamor_xv_add_adaptors()
351 if (!xwl_glamor_xv_add_formats(pa)) in xwl_glamor_xv_add_adaptors()
353 if (!xwl_glamor_xv_add_ports(pa)) in xwl_glamor_xv_add_adaptors()
358 XvScreen->pAdaptors = pa; in xwl_glamor_xv_add_adaptors()
360 xwlXvScreen = dixLookupPrivate(&(pa->pScreen)->devPrivates, in xwl_glamor_xv_add_adaptors()
362 xwlXvScreen->glxv_adaptor = pa; in xwl_glamor_xv_add_adaptors()
367 XvFreeAdaptor(pa); in xwl_glamor_xv_add_adaptors()
368 free(pa); in xwl_glamor_xv_add_adaptors()