4 #include <X11/extensions/Xv.h>
15 int color_description
;
16 unsigned short max_width
;
17 unsigned short max_height
;
18 unsigned short subpicture_max_width
;
19 unsigned short subpicture_max_height
;
22 XvMCImageIDList
*compatible_subpictures
;
23 } XvMCSurfaceInfoRec
, *XvMCSurfaceInfoPtr
;
31 unsigned short height
;
36 } XvMCContextRec
, *XvMCContextPtr
;
41 XvMCContextPtr context
;
43 } XvMCSurfaceRec
, *XvMCSurfacePtr
;
50 unsigned short height
;
51 int num_palette_entries
;
53 char component_order
[4];
54 XvMCContextPtr context
;
56 } XvMCSubpictureRec
, *XvMCSubpicturePtr
;
58 typedef int (*XvMCCreateContextProcPtr
) (
60 XvMCContextPtr context
,
65 typedef void (*XvMCDestroyContextProcPtr
) (
66 XvMCContextPtr context
69 typedef int (*XvMCCreateSurfaceProcPtr
) (
70 XvMCSurfacePtr surface
,
75 typedef void (*XvMCDestroySurfaceProcPtr
) (
76 XvMCSurfacePtr surface
79 typedef int (*XvMCCreateSubpictureProcPtr
) (
80 XvMCSubpicturePtr subpicture
,
85 typedef void (*XvMCDestroySubpictureProcPtr
) (
86 XvMCSubpicturePtr subpicture
91 XvAdaptorPtr xv_adaptor
;
93 XvMCSurfaceInfoPtr
*surfaces
;
95 XvImagePtr
*subpictures
;
96 XvMCCreateContextProcPtr CreateContext
;
97 XvMCDestroyContextProcPtr DestroyContext
;
98 XvMCCreateSurfaceProcPtr CreateSurface
;
99 XvMCDestroySurfaceProcPtr DestroySurface
;
100 XvMCCreateSubpictureProcPtr CreateSubpicture
;
101 XvMCDestroySubpictureProcPtr DestroySubpicture
;
102 } XvMCAdaptorRec
, *XvMCAdaptorPtr
;
104 void XvMCExtensionInit(void);
106 int XvMCScreenInit(ScreenPtr pScreen
, int num
, XvMCAdaptorPtr adapt
);
108 XvImagePtr
XvMCFindXvImage(XvPortPtr pPort
, CARD32 id
);
110 int xf86XvMCRegisterDRInfo(ScreenPtr pScreen
, char *name
,
111 char *busID
, int major
, int minor
,