Lines Matching refs:adaptorPtr

307   KdVideoAdaptorPtr adaptorPtr;
333 for(pa = pAdaptor, na = 0, numAdaptor = 0; na < number; na++, adaptorPtr++) {
334 adaptorPtr = infoPtr[na];
336 if(!adaptorPtr->StopVideo || !adaptorPtr->SetPortAttribute ||
337 !adaptorPtr->GetPortAttribute || !adaptorPtr->QueryBestSize)
341 if(!adaptorPtr->nEncodings || !adaptorPtr->pEncodings)
344 pa->type = adaptorPtr->type;
346 if(!adaptorPtr->PutVideo && !adaptorPtr->GetVideo)
349 if(!adaptorPtr->PutStill && !adaptorPtr->GetStill)
352 if(!adaptorPtr->PutImage || !adaptorPtr->QueryImageAttributes)
355 if(!adaptorPtr->PutVideo && !adaptorPtr->PutImage &&
356 !adaptorPtr->PutStill)
359 if(!adaptorPtr->GetVideo && !adaptorPtr->GetStill)
362 if(!(adaptorPtr->type & (XvPixmapMask | XvWindowMask)))
364 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++)
396 pa->nEncodings = adaptorPtr->nEncodings;
400 if(adaptorPtr->nImages &&
401 (pImage = calloc(adaptorPtr->nImages, sizeof(XvImageRec)))) {
403 for(i = 0, pi = pImage, imagePtr = adaptorPtr->pImages;
404 i < adaptorPtr->nImages; i++, pi++, imagePtr++)
429 pa->nImages = adaptorPtr->nImages;
433 if(adaptorPtr->nAttributes &&
434 (pAttribute = calloc(adaptorPtr->nAttributes, sizeof(XvAttributeRec))))
436 for(pat = pAttribute, attributePtr = adaptorPtr->pAttributes, i = 0;
437 i < adaptorPtr->nAttributes; pat++, i++, attributePtr++)
444 pa->nAttributes = adaptorPtr->nAttributes;
449 totFormat = adaptorPtr->nFormats;
455 for(pf = pFormat, i = 0, numFormat = 0, formatPtr = adaptorPtr->pFormats;
456 i < adaptorPtr->nFormats; i++, formatPtr++)
496 adaptorPriv->flags = adaptorPtr->flags;
497 adaptorPriv->PutVideo = adaptorPtr->PutVideo;
498 adaptorPriv->PutStill = adaptorPtr->PutStill;
499 adaptorPriv->GetVideo = adaptorPtr->GetVideo;
500 adaptorPriv->GetStill = adaptorPtr->GetStill;
501 adaptorPriv->StopVideo = adaptorPtr->StopVideo;
502 adaptorPriv->SetPortAttribute = adaptorPtr->SetPortAttribute;
503 adaptorPriv->GetPortAttribute = adaptorPtr->GetPortAttribute;
504 adaptorPriv->QueryBestSize = adaptorPtr->QueryBestSize;
505 adaptorPriv->QueryImageAttributes = adaptorPtr->QueryImageAttributes;
506 adaptorPriv->PutImage = adaptorPtr->PutImage;
507 adaptorPriv->ReputImage = adaptorPtr->ReputImage;
511 if(!(pPort = calloc(adaptorPtr->nPorts, sizeof(XvPortRec)))) {
516 i < adaptorPtr->nPorts; i++) {
539 portPriv->DevPriv.ptr = adaptorPtr->pPortPrivates[i].ptr;