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
;
49 unsigned short height
;
50 int num_palette_entries
;
52 char component_order
[4];
53 XvMCContextPtr context
;
55 } XvMCSubpictureRec
, *XvMCSubpicturePtr
;
57 typedef int (*XvMCCreateContextProcPtr
) (XvPortPtr port
,
58 XvMCContextPtr context
,
59 int *num_priv
, CARD32
**priv
);
61 typedef void (*XvMCDestroyContextProcPtr
) (XvMCContextPtr context
);
63 typedef int (*XvMCCreateSurfaceProcPtr
) (XvMCSurfacePtr surface
,
64 int *num_priv
, CARD32
**priv
);
66 typedef void (*XvMCDestroySurfaceProcPtr
) (XvMCSurfacePtr surface
);
68 typedef int (*XvMCCreateSubpictureProcPtr
) (XvMCSubpicturePtr subpicture
,
69 int *num_priv
, CARD32
**priv
);
71 typedef void (*XvMCDestroySubpictureProcPtr
) (XvMCSubpicturePtr subpicture
);
74 XvAdaptorPtr xv_adaptor
;
76 XvMCSurfaceInfoPtr
*surfaces
;
78 XvImagePtr
*subpictures
;
79 XvMCCreateContextProcPtr CreateContext
;
80 XvMCDestroyContextProcPtr DestroyContext
;
81 XvMCCreateSurfaceProcPtr CreateSurface
;
82 XvMCDestroySurfaceProcPtr DestroySurface
;
83 XvMCCreateSubpictureProcPtr CreateSubpicture
;
84 XvMCDestroySubpictureProcPtr DestroySubpicture
;
85 } XvMCAdaptorRec
, *XvMCAdaptorPtr
;
87 extern int (*XvMCScreenInitProc
)(ScreenPtr
, int, XvMCAdaptorPtr
);
89 extern _X_EXPORT
int XvMCScreenInit(ScreenPtr pScreen
,
90 int num
, XvMCAdaptorPtr adapt
);
92 extern _X_EXPORT XvImagePtr
XvMCFindXvImage(XvPortPtr pPort
, CARD32 id
);
94 extern _X_EXPORT
int xf86XvMCRegisterDRInfo(ScreenPtr pScreen
, char *name
,
95 char *busID
, int major
, int minor
,