Lines Matching refs:adapt
836 XF86VideoAdaptorPtr adapt;
842 if (!(adapt = xcalloc(1, sizeof(XF86VideoAdaptorRec) +
846 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
847 adapt->flags = VIDEO_OVERLAID_IMAGES /*| VIDEO_CLIP_TO_VIEWPORT*/;
848 adapt->name = "Intel(R) Video Overlay";
849 adapt->nEncodings = 1;
850 adapt->pEncodings = DummyEncoding;
853 adapt->pEncodings->width = IMAGE_MAX_WIDTH_LEGACY;
854 adapt->pEncodings->height = IMAGE_MAX_HEIGHT_LEGACY;
856 adapt->nFormats = NUM_FORMATS;
857 adapt->pFormats = Formats;
858 adapt->nPorts = 1;
859 adapt->pPortPrivates = (DevUnion *) (&adapt[1]);
861 pPriv = (I830PortPrivPtr) (&adapt->pPortPrivates[1]);
863 adapt->pPortPrivates[0].ptr = (pointer) (pPriv);
864 adapt->nAttributes = NUM_ATTRIBUTES;
865 adapt->nAttributes += CLONE_ATTRIBUTES;
867 adapt->nAttributes += GAMMA_ATTRIBUTES; /* has gamma */
868 adapt->pAttributes = xnfalloc(sizeof(XF86AttributeRec) * adapt->nAttributes);
870 att = adapt->pAttributes;
879 adapt->nImages = NUM_IMAGES;
880 adapt->pImages = Images;
881 adapt->PutVideo = NULL;
882 adapt->PutStill = NULL;
883 adapt->GetVideo = NULL;
884 adapt->GetStill = NULL;
885 adapt->StopVideo = I830StopVideo;
886 adapt->SetPortAttribute = I830SetPortAttributeOverlay;
887 adapt->GetPortAttribute = I830GetPortAttribute;
888 adapt->QueryBestSize = I830QueryBestSize;
889 adapt->PutImage = I830PutImage;
890 adapt->QueryImageAttributes = I830QueryImageAttributes;
915 pI830->adaptor = adapt;
952 return adapt;
958 XF86VideoAdaptorPtr adapt;
969 adapt = xcalloc(1, sizeof(XF86VideoAdaptorRec));
973 if (adapt == NULL || portPrivs == NULL || devUnions == NULL ||
976 xfree(adapt);
983 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
984 adapt->flags = 0;
985 adapt->name = "Intel(R) Textured Video";
986 adapt->nEncodings = 1;
987 adapt->pEncodings = DummyEncoding;
988 adapt->nFormats = NUM_FORMATS;
989 adapt->pFormats = Formats;
990 adapt->nPorts = nports;
991 adapt->pPortPrivates = devUnions;
992 adapt->nAttributes = nAttributes;
993 adapt->pAttributes = attrs;
995 adapt->nImages = NUM_IMAGES;
996 adapt->pImages = Images;
997 adapt->PutVideo = NULL;
998 adapt->PutStill = NULL;
999 adapt->GetVideo = NULL;
1000 adapt->GetStill = NULL;
1001 adapt->StopVideo = I830StopVideo;
1002 adapt->SetPortAttribute = I830SetPortAttributeTextured;
1003 adapt->GetPortAttribute = I830GetPortAttribute;
1004 adapt->QueryBestSize = I830QueryBestSize;
1005 adapt->PutImage = I830PutImage;
1006 adapt->QueryImageAttributes = I830QueryImageAttributes;
1023 adapt->pPortPrivates[i].ptr = (pointer) (pPriv);
1028 return adapt;