Lines Matching refs:adaptorPtr
313 XF86VideoAdaptorPtr adaptorPtr; in xf86XVInitAdaptors() local
335 for (pa = pAdaptor, na = 0, numAdaptor = 0; na < number; na++, adaptorPtr++) { in xf86XVInitAdaptors()
336 adaptorPtr = infoPtr[na]; in xf86XVInitAdaptors()
338 if (!adaptorPtr->StopVideo || !adaptorPtr->SetPortAttribute || in xf86XVInitAdaptors()
339 !adaptorPtr->GetPortAttribute || !adaptorPtr->QueryBestSize) in xf86XVInitAdaptors()
343 if (!adaptorPtr->nEncodings || !adaptorPtr->pEncodings) in xf86XVInitAdaptors()
346 pa->type = adaptorPtr->type; in xf86XVInitAdaptors()
348 if (!adaptorPtr->PutVideo && !adaptorPtr->GetVideo) in xf86XVInitAdaptors()
351 if (!adaptorPtr->PutStill && !adaptorPtr->GetStill) in xf86XVInitAdaptors()
354 if (!adaptorPtr->PutImage || !adaptorPtr->QueryImageAttributes) in xf86XVInitAdaptors()
357 if (!adaptorPtr->PutVideo && !adaptorPtr->PutImage && in xf86XVInitAdaptors()
358 !adaptorPtr->PutStill) in xf86XVInitAdaptors()
361 if (!adaptorPtr->GetVideo && !adaptorPtr->GetStill) in xf86XVInitAdaptors()
364 if (!(adaptorPtr->type & (XvPixmapMask | XvWindowMask))) in xf86XVInitAdaptors()
366 if (!(adaptorPtr->type & (XvImageMask | XvVideoMask | XvStillMask))) in xf86XVInitAdaptors()
380 pa->name = strdup(adaptorPtr->name); in xf86XVInitAdaptors()
382 if (adaptorPtr->nEncodings && in xf86XVInitAdaptors()
383 (pEncode = calloc(adaptorPtr->nEncodings, sizeof(XvEncodingRec)))) { in xf86XVInitAdaptors()
385 for (pe = pEncode, encodingPtr = adaptorPtr->pEncodings, i = 0; in xf86XVInitAdaptors()
386 i < adaptorPtr->nEncodings; pe++, i++, encodingPtr++) { in xf86XVInitAdaptors()
395 pa->nEncodings = adaptorPtr->nEncodings; in xf86XVInitAdaptors()
399 if (adaptorPtr->nImages && in xf86XVInitAdaptors()
400 (pa->pImages = calloc(adaptorPtr->nImages, sizeof(XvImageRec)))) { in xf86XVInitAdaptors()
401 memcpy(pa->pImages, adaptorPtr->pImages, in xf86XVInitAdaptors()
402 adaptorPtr->nImages * sizeof(XvImageRec)); in xf86XVInitAdaptors()
403 pa->nImages = adaptorPtr->nImages; in xf86XVInitAdaptors()
406 if (adaptorPtr->nAttributes && in xf86XVInitAdaptors()
407 (pa->pAttributes = calloc(adaptorPtr->nAttributes, in xf86XVInitAdaptors()
409 memcpy(pa->pAttributes, adaptorPtr->pAttributes, in xf86XVInitAdaptors()
410 adaptorPtr->nAttributes * sizeof(XvAttributeRec)); in xf86XVInitAdaptors()
412 for (i = 0; i < adaptorPtr->nAttributes; i++) { in xf86XVInitAdaptors()
414 strdup(adaptorPtr->pAttributes[i].name); in xf86XVInitAdaptors()
417 pa->nAttributes = adaptorPtr->nAttributes; in xf86XVInitAdaptors()
420 totFormat = adaptorPtr->nFormats; in xf86XVInitAdaptors()
427 adaptorPtr->pFormats; i < adaptorPtr->nFormats; i++, formatPtr++) { in xf86XVInitAdaptors()
468 adaptorPriv->flags = adaptorPtr->flags; in xf86XVInitAdaptors()
469 adaptorPriv->PutVideo = adaptorPtr->PutVideo; in xf86XVInitAdaptors()
470 adaptorPriv->PutStill = adaptorPtr->PutStill; in xf86XVInitAdaptors()
471 adaptorPriv->GetVideo = adaptorPtr->GetVideo; in xf86XVInitAdaptors()
472 adaptorPriv->GetStill = adaptorPtr->GetStill; in xf86XVInitAdaptors()
473 adaptorPriv->StopVideo = adaptorPtr->StopVideo; in xf86XVInitAdaptors()
474 adaptorPriv->SetPortAttribute = adaptorPtr->SetPortAttribute; in xf86XVInitAdaptors()
475 adaptorPriv->GetPortAttribute = adaptorPtr->GetPortAttribute; in xf86XVInitAdaptors()
476 adaptorPriv->QueryBestSize = adaptorPtr->QueryBestSize; in xf86XVInitAdaptors()
477 adaptorPriv->QueryImageAttributes = adaptorPtr->QueryImageAttributes; in xf86XVInitAdaptors()
478 adaptorPriv->PutImage = adaptorPtr->PutImage; in xf86XVInitAdaptors()
479 adaptorPriv->ReputImage = adaptorPtr->ReputImage; /* image/still */ in xf86XVInitAdaptors()
483 if (!(pPort = calloc(adaptorPtr->nPorts, sizeof(XvPortRec)))) { in xf86XVInitAdaptors()
487 for (pp = pPort, i = 0, numPort = 0; i < adaptorPtr->nPorts; i++) { in xf86XVInitAdaptors()
510 portPriv->DevPriv.ptr = adaptorPtr->pPortPrivates[i].ptr; in xf86XVInitAdaptors()