Lines Matching refs:adaptorPtr

192     KdVideoAdaptorPtr adaptorPtr;
214 for (pa = pAdaptor, na = 0, numAdaptor = 0; na < number; na++, adaptorPtr++) {
215 adaptorPtr = &infoPtr[na];
217 if (!adaptorPtr->StopVideo || !adaptorPtr->SetPortAttribute ||
218 !adaptorPtr->GetPortAttribute || !adaptorPtr->QueryBestSize)
222 if (!adaptorPtr->nEncodings || !adaptorPtr->pEncodings)
225 pa->type = adaptorPtr->type;
227 if (!adaptorPtr->PutVideo && !adaptorPtr->GetVideo)
230 if (!adaptorPtr->PutStill && !adaptorPtr->GetStill)
233 if (!adaptorPtr->PutImage || !adaptorPtr->QueryImageAttributes)
236 if (!adaptorPtr->PutVideo && !adaptorPtr->PutImage &&
237 !adaptorPtr->PutStill)
240 if (!adaptorPtr->GetVideo && !adaptorPtr->GetStill)
243 if (!(adaptorPtr->type & (XvPixmapMask | XvWindowMask)))
245 if (!(adaptorPtr->type & (XvImageMask | XvVideoMask | XvStillMask)))
259 pa->name = strdup(adaptorPtr->name);
261 if (adaptorPtr->nEncodings &&
262 (pEncode = calloc(adaptorPtr->nEncodings, sizeof(XvEncodingRec)))) {
264 for (pe = pEncode, encodingPtr = adaptorPtr->pEncodings, i = 0;
265 i < adaptorPtr->nEncodings; pe++, i++, encodingPtr++) {
274 pa->nEncodings = adaptorPtr->nEncodings;
278 if (adaptorPtr->nImages &&
279 (pa->pImages = calloc(adaptorPtr->nImages, sizeof(XvImageRec)))) {
280 memcpy(pa->pImages, adaptorPtr->pImages,
281 adaptorPtr->nImages * sizeof(XvImageRec));
282 pa->nImages = adaptorPtr->nImages;
285 if (adaptorPtr->nAttributes &&
286 (pa->pAttributes = calloc(adaptorPtr->nAttributes,
288 memcpy(pa->pAttributes, adaptorPtr->pAttributes,
289 adaptorPtr->nAttributes * sizeof(XvAttributeRec));
291 for (i = 0; i < adaptorPtr->nAttributes; i++) {
293 strdup(adaptorPtr->pAttributes[i].name);
296 pa->nAttributes = adaptorPtr->nAttributes;
299 totFormat = adaptorPtr->nFormats;
306 adaptorPtr->pFormats; i < adaptorPtr->nFormats; i++, formatPtr++) {
347 adaptorPriv->flags = adaptorPtr->flags;
348 adaptorPriv->PutVideo = adaptorPtr->PutVideo;
349 adaptorPriv->PutStill = adaptorPtr->PutStill;
350 adaptorPriv->GetVideo = adaptorPtr->GetVideo;
351 adaptorPriv->GetStill = adaptorPtr->GetStill;
352 adaptorPriv->StopVideo = adaptorPtr->StopVideo;
353 adaptorPriv->SetPortAttribute = adaptorPtr->SetPortAttribute;
354 adaptorPriv->GetPortAttribute = adaptorPtr->GetPortAttribute;
355 adaptorPriv->QueryBestSize = adaptorPtr->QueryBestSize;
356 adaptorPriv->QueryImageAttributes = adaptorPtr->QueryImageAttributes;
357 adaptorPriv->PutImage = adaptorPtr->PutImage;
358 adaptorPriv->ReputImage = adaptorPtr->ReputImage;
362 if (!(pPort = calloc(adaptorPtr->nPorts, sizeof(XvPortRec)))) {
366 for (pp = pPort, i = 0, numPort = 0; i < adaptorPtr->nPorts; i++) {
389 portPriv->DevPriv.ptr = adaptorPtr->pPortPrivates[i].ptr;