ci: Check for DDXen to be built
[xserver.git] / Xext / xvmcext.h
blobacfbee7d6ef897de68025e99f256b67cd33b4cc9
2 #ifndef _XVMC_H
3 #define _XVMC_H
4 #include <X11/extensions/Xv.h>
5 #include "xvdix.h"
7 typedef struct {
8 int num_xvimages;
9 int *xvimage_ids;
10 } XvMCImageIDList;
12 typedef struct {
13 int surface_type_id;
14 int chroma_format;
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;
20 int mc_type;
21 int flags;
22 XvMCImageIDList *compatible_subpictures;
23 } XvMCSurfaceInfoRec, *XvMCSurfaceInfoPtr;
25 typedef struct {
26 XID context_id;
27 ScreenPtr pScreen;
28 int adapt_num;
29 int surface_type_id;
30 unsigned short width;
31 unsigned short height;
32 CARD32 flags;
33 int refcnt;
34 void *port_priv;
35 void *driver_priv;
36 } XvMCContextRec, *XvMCContextPtr;
38 typedef struct {
39 XID surface_id;
40 int surface_type_id;
41 XvMCContextPtr context;
42 void *driver_priv;
43 } XvMCSurfaceRec, *XvMCSurfacePtr;
45 typedef struct {
46 XID subpicture_id;
47 int xvimage_id;
48 unsigned short width;
49 unsigned short height;
50 int num_palette_entries;
51 int entry_bytes;
52 char component_order[4];
53 XvMCContextPtr context;
54 void *driver_priv;
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);
73 typedef struct {
74 XvAdaptorPtr xv_adaptor;
75 int num_surfaces;
76 XvMCSurfaceInfoPtr *surfaces;
77 int num_subpictures;
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 _X_EXPORT int XvMCScreenInit(ScreenPtr pScreen,
88 int num, XvMCAdaptorPtr adapt);
90 extern _X_EXPORT int xf86XvMCRegisterDRInfo(ScreenPtr pScreen, const char *name,
91 const char *busID, int major, int minor,
92 int patchLevel);
94 #endif /* _XVMC_H */