Lines Matching refs:adapt

1742 	XF86VideoAdaptorPtr adapt;
1746 if (!(adapt = calloc(1, sizeof(XF86VideoAdaptorRec) +
1752 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
1753 adapt->flags = 0;
1754 adapt->name = "NV Video Blitter";
1755 adapt->nEncodings = 1;
1756 adapt->pEncodings = &DummyEncoding;
1757 adapt->nFormats = NUM_FORMATS_ALL;
1758 adapt->pFormats = NVFormats;
1759 adapt->nPorts = NUM_BLIT_PORTS;
1760 adapt->pPortPrivates = (DevUnion*)(&adapt[1]);
1762 pPriv = (NVPortPrivPtr)(&adapt->pPortPrivates[NUM_BLIT_PORTS]);
1764 adapt->pPortPrivates[i].ptr = (pointer)(pPriv);
1767 adapt->pAttributes = NVBlitAttributes;
1768 adapt->nAttributes = NUM_BLIT_ATTRIBUTES;
1770 adapt->pAttributes = NULL;
1771 adapt->nAttributes = 0;
1774 adapt->pImages = NVImages;
1775 adapt->nImages = NUM_IMAGES_ALL;
1776 adapt->PutVideo = NULL;
1777 adapt->PutStill = NULL;
1778 adapt->GetVideo = NULL;
1779 adapt->GetStill = NULL;
1780 adapt->StopVideo = NVStopBlitVideo;
1781 adapt->SetPortAttribute = NVSetBlitPortAttribute;
1782 adapt->GetPortAttribute = NVGetBlitPortAttribute;
1783 adapt->QueryBestSize = NVQueryBestSize;
1784 adapt->PutImage = NVPutImage;
1785 adapt->QueryImageAttributes = NVQueryImageAttributes;
1796 pNv->blitAdaptor = adapt;
1798 return adapt;
1812 XF86VideoAdaptorPtr adapt;
1815 if (!(adapt = calloc(1, sizeof(XF86VideoAdaptorRec) +
1821 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
1822 adapt->flags = VIDEO_OVERLAID_IMAGES;
1823 adapt->name = "NV Video Overlay";
1824 adapt->nEncodings = 1;
1825 adapt->pEncodings = &DummyEncoding;
1826 adapt->nFormats = NUM_FORMATS_ALL;
1827 adapt->pFormats = NVFormats;
1828 adapt->nPorts = 1;
1829 adapt->pPortPrivates = (DevUnion*)(&adapt[1]);
1831 pPriv = (NVPortPrivPtr)(&adapt->pPortPrivates[1]);
1832 adapt->pPortPrivates[0].ptr = (pointer)(pPriv);
1834 adapt->pAttributes = (pNv->Architecture != NV_ARCH_04) ? NV10OverlayAttributes : NV04OverlayAttributes;
1835 adapt->nAttributes = (pNv->Architecture != NV_ARCH_04) ? NUM_NV10_OVERLAY_ATTRIBUTES : NUM_NV04_OVERLAY_ATTRIBUTES;
1836 adapt->pImages = NVImages;
1837 adapt->nImages = NUM_IMAGES_YUV;
1838 adapt->PutVideo = NULL;
1839 adapt->PutStill = NULL;
1840 adapt->GetVideo = NULL;
1841 adapt->GetStill = NULL;
1842 adapt->StopVideo = NVStopOverlayVideo;
1843 adapt->SetPortAttribute = (pNv->Architecture != NV_ARCH_04) ? NV10SetOverlayPortAttribute : NV04SetOverlayPortAttribute;
1844 adapt->GetPortAttribute = (pNv->Architecture != NV_ARCH_04) ? NV10GetOverlayPortAttribute : NV04GetOverlayPortAttribute;
1845 adapt->QueryBestSize = NVQueryBestSize;
1846 adapt->PutImage = NVPutImage;
1847 adapt->QueryImageAttributes = NVQueryImageAttributes;
1862 pNv->overlayAdaptor = adapt;
1880 return adapt;
2008 XF86VideoAdaptorPtr adapt;
2012 if (!(adapt = calloc(1, sizeof(XF86VideoAdaptorRec) +
2018 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
2019 adapt->flags = 0;
2021 adapt->name = "NV30 high quality adapter";
2023 adapt->name = "NV30 texture adapter";
2024 adapt->nEncodings = 1;
2025 adapt->pEncodings = &DummyEncodingTex;
2026 adapt->nFormats = NUM_FORMATS_ALL;
2027 adapt->pFormats = NVFormats;
2028 adapt->nPorts = NUM_TEXTURE_PORTS;
2029 adapt->pPortPrivates = (DevUnion*)(&adapt[1]);
2031 pPriv = (NVPortPrivPtr)(&adapt->pPortPrivates[NUM_TEXTURE_PORTS]);
2033 adapt->pPortPrivates[i].ptr = (pointer)(pPriv);
2035 adapt->pAttributes = NVTexturedAttributes;
2036 adapt->nAttributes = NUM_TEXTURED_ATTRIBUTES;
2037 adapt->pImages = NV30TexturedImages;
2038 adapt->nImages = NUM_FORMAT_TEXTURED;
2039 adapt->PutVideo = NULL;
2040 adapt->PutStill = NULL;
2041 adapt->GetVideo = NULL;
2042 adapt->GetStill = NULL;
2043 adapt->StopVideo = NV30StopTexturedVideo;
2044 adapt->SetPortAttribute = NV30SetTexturePortAttribute;
2045 adapt->GetPortAttribute = NV30GetTexturePortAttribute;
2046 adapt->QueryBestSize = NVQueryBestSize;
2047 adapt->PutImage = NVPutImage;
2048 adapt->QueryImageAttributes = NVQueryImageAttributes;
2060 pNv->textureAdaptor[1] = adapt;
2062 pNv->textureAdaptor[0] = adapt;
2064 return adapt;
2090 XF86VideoAdaptorPtr adapt;
2094 if (!(adapt = calloc(1, sizeof(XF86VideoAdaptorRec) +
2100 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
2101 adapt->flags = 0;
2103 adapt->name = "NV40 high quality adapter";
2105 adapt->name = "NV40 texture adapter";
2106 adapt->nEncodings = 1;
2107 adapt->pEncodings = &DummyEncodingTex;
2108 adapt->nFormats = NUM_FORMATS_ALL;
2109 adapt->pFormats = NVFormats;
2110 adapt->nPorts = NUM_TEXTURE_PORTS;
2111 adapt->pPortPrivates = (DevUnion*)(&adapt[1]);
2113 pPriv = (NVPortPrivPtr)(&adapt->pPortPrivates[NUM_TEXTURE_PORTS]);
2115 adapt->pPortPrivates[i].ptr = (pointer)(pPriv);
2117 adapt->pAttributes = NVTexturedAttributes;
2118 adapt->nAttributes = NUM_TEXTURED_ATTRIBUTES;
2119 adapt->pImages = NV40TexturedImages;
2120 adapt->nImages = NUM_FORMAT_TEXTURED;
2121 adapt->PutVideo = NULL;
2122 adapt->PutStill = NULL;
2123 adapt->GetVideo = NULL;
2124 adapt->GetStill = NULL;
2125 adapt->StopVideo = NV40StopTexturedVideo;
2126 adapt->SetPortAttribute = NV40SetTexturePortAttribute;
2127 adapt->GetPortAttribute = NV40GetTexturePortAttribute;
2128 adapt->QueryBestSize = NVQueryBestSize;
2129 adapt->PutImage = NVPutImage;
2130 adapt->QueryImageAttributes = NVQueryImageAttributes;
2142 pNv->textureAdaptor[1] = adapt;
2144 pNv->textureAdaptor[0] = adapt;
2146 return adapt;
2163 XF86VideoAdaptorPtr adapt;
2167 if (!(adapt = calloc(1, sizeof(XF86VideoAdaptorRec) +
2173 adapt->type = XvWindowMask | XvInputMask | XvImageMask;
2174 adapt->flags = 0;
2175 adapt->name = "Nouveau GeForce 8/9 Textured Video";
2176 adapt->nEncodings = 1;
2177 adapt->pEncodings = &DummyEncodingNV50;
2178 adapt->nFormats = NUM_FORMATS_NV50;
2179 adapt->pFormats = NV50Formats;
2180 adapt->nPorts = NUM_TEXTURE_PORTS;
2181 adapt->pPortPrivates = (DevUnion*)(&adapt[1]);
2183 pPriv = (NVPortPrivPtr)(&adapt->pPortPrivates[NUM_TEXTURE_PORTS]);
2185 adapt->pPortPrivates[i].ptr = (pointer)(pPriv);
2187 adapt->pAttributes = NVTexturedAttributesNV50;
2188 adapt->nAttributes = NUM_TEXTURED_ATTRIBUTES_NV50;
2189 adapt->pImages = NV50TexturedImages;
2190 adapt->nImages = sizeof(NV50TexturedImages) /
2192 adapt->PutVideo = NULL;
2193 adapt->PutStill = NULL;
2194 adapt->GetVideo = NULL;
2195 adapt->GetStill = NULL;
2196 adapt->StopVideo = nv50_xv_video_stop;
2197 adapt->SetPortAttribute = nv50_xv_port_attribute_set;
2198 adapt->GetPortAttribute = nv50_xv_port_attribute_get;
2199 adapt->QueryBestSize = NVQueryBestSize;
2200 adapt->PutImage = NVPutImage;
2201 adapt->QueryImageAttributes = NVQueryImageAttributes;
2203 pNv->textureAdaptor[0] = adapt;
2213 return adapt;