Lines Matching refs:adapt
931 XF86VideoAdaptorPtr adapt;
946 adapt = calloc(1, sizeof(XF86VideoAdaptorRec));
949 if (adapt == NULL || dev_unions == NULL || attrs == NULL) {
950 free(adapt);
956 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
957 adapt->flags = 0;
958 adapt->name = xv_adapt_name;
959 adapt->nEncodings = 1;
960 adapt->pEncodings = DummyEncoding;
961 adapt->nFormats = NUM_FORMATS;
962 adapt->pFormats = Formats;
963 adapt->nPorts = 0;
964 adapt->pPortPrivates = dev_unions;
965 adapt->nAttributes = nattributes;
966 adapt->pAttributes = attrs;
968 adapt->nImages = NUM_IMAGES;
969 adapt->pImages = Images;
970 adapt->PutVideo = NULL;
971 adapt->PutStill = NULL;
972 adapt->GetVideo = NULL;
973 adapt->GetStill = NULL;
974 adapt->StopVideo = stop_video;
975 adapt->SetPortAttribute = set_port_attribute;
976 adapt->GetPortAttribute = get_port_attribute;
977 adapt->QueryBestSize = query_best_size;
978 adapt->PutImage = put_image;
979 adapt->QueryImageAttributes = query_image_attributes;
986 adapt->pPortPrivates[i].ptr = (pointer) (priv);
987 adapt->nPorts++;
990 return adapt;