Lines Matching refs:adaptorPtr

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