XCB  1.12
xvmc.h
1 /*
2  * This file generated automatically from xvmc.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
12 #ifndef __XVMC_H
13 #define __XVMC_H
14 
15 #include "xcb.h"
16 #include "xv.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define XCB_XVMC_MAJOR_VERSION 1
23 #define XCB_XVMC_MINOR_VERSION 1
24 
25 extern xcb_extension_t xcb_xvmc_id;
26 
27 typedef uint32_t xcb_xvmc_context_t;
28 
33  xcb_xvmc_context_t *data;
34  int rem;
35  int index;
37 
38 typedef uint32_t xcb_xvmc_surface_t;
39 
44  xcb_xvmc_surface_t *data;
45  int rem;
46  int index;
48 
49 typedef uint32_t xcb_xvmc_subpicture_t;
50 
55  xcb_xvmc_subpicture_t *data;
56  int rem;
57  int index;
59 
63 typedef struct xcb_xvmc_surface_info_t {
64  xcb_xvmc_surface_t id;
65  uint16_t chroma_format;
66  uint16_t pad0;
67  uint16_t max_width;
68  uint16_t max_height;
69  uint16_t subpicture_max_width;
70  uint16_t subpicture_max_height;
71  uint32_t mc_type;
72  uint32_t flags;
74 
80  int rem;
81  int index;
83 
88  unsigned int sequence;
90 
92 #define XCB_XVMC_QUERY_VERSION 0
93 
98  uint8_t major_opcode;
99  uint8_t minor_opcode;
100  uint16_t length;
102 
107  uint8_t response_type;
108  uint8_t pad0;
109  uint16_t sequence;
110  uint32_t length;
111  uint32_t major;
112  uint32_t minor;
114 
119  unsigned int sequence;
121 
123 #define XCB_XVMC_LIST_SURFACE_TYPES 1
124 
129  uint8_t major_opcode;
130  uint8_t minor_opcode;
131  uint16_t length;
132  xcb_xv_port_t port_id;
134 
139  uint8_t response_type;
140  uint8_t pad0;
141  uint16_t sequence;
142  uint32_t length;
143  uint32_t num;
144  uint8_t pad1[20];
146 
151  unsigned int sequence;
153 
155 #define XCB_XVMC_CREATE_CONTEXT 2
156 
161  uint8_t major_opcode;
162  uint8_t minor_opcode;
163  uint16_t length;
164  xcb_xvmc_context_t context_id;
165  xcb_xv_port_t port_id;
166  xcb_xvmc_surface_t surface_id;
167  uint16_t width;
168  uint16_t height;
169  uint32_t flags;
171 
176  uint8_t response_type;
177  uint8_t pad0;
178  uint16_t sequence;
179  uint32_t length;
180  uint16_t width_actual;
181  uint16_t height_actual;
182  uint32_t flags_return;
183  uint8_t pad1[20];
185 
187 #define XCB_XVMC_DESTROY_CONTEXT 3
188 
193  uint8_t major_opcode;
194  uint8_t minor_opcode;
195  uint16_t length;
196  xcb_xvmc_context_t context_id;
198 
203  unsigned int sequence;
205 
207 #define XCB_XVMC_CREATE_SURFACE 4
208 
213  uint8_t major_opcode;
214  uint8_t minor_opcode;
215  uint16_t length;
216  xcb_xvmc_surface_t surface_id;
217  xcb_xvmc_context_t context_id;
219 
224  uint8_t response_type;
225  uint8_t pad0;
226  uint16_t sequence;
227  uint32_t length;
228  uint8_t pad1[24];
230 
232 #define XCB_XVMC_DESTROY_SURFACE 5
233 
238  uint8_t major_opcode;
239  uint8_t minor_opcode;
240  uint16_t length;
241  xcb_xvmc_surface_t surface_id;
243 
248  unsigned int sequence;
250 
252 #define XCB_XVMC_CREATE_SUBPICTURE 6
253 
258  uint8_t major_opcode;
259  uint8_t minor_opcode;
260  uint16_t length;
261  xcb_xvmc_subpicture_t subpicture_id;
262  xcb_xvmc_context_t context;
263  uint32_t xvimage_id;
264  uint16_t width;
265  uint16_t height;
267 
272  uint8_t response_type;
273  uint8_t pad0;
274  uint16_t sequence;
275  uint32_t length;
276  uint16_t width_actual;
277  uint16_t height_actual;
278  uint16_t num_palette_entries;
279  uint16_t entry_bytes;
280  uint8_t component_order[4];
281  uint8_t pad1[12];
283 
285 #define XCB_XVMC_DESTROY_SUBPICTURE 7
286 
291  uint8_t major_opcode;
292  uint8_t minor_opcode;
293  uint16_t length;
294  xcb_xvmc_subpicture_t subpicture_id;
296 
301  unsigned int sequence;
303 
305 #define XCB_XVMC_LIST_SUBPICTURE_TYPES 8
306 
311  uint8_t major_opcode;
312  uint8_t minor_opcode;
313  uint16_t length;
314  xcb_xv_port_t port_id;
315  xcb_xvmc_surface_t surface_id;
317 
322  uint8_t response_type;
323  uint8_t pad0;
324  uint16_t sequence;
325  uint32_t length;
326  uint32_t num;
327  uint8_t pad1[20];
329 
338 void
340 
352 
361 void
363 
375 
384 void
386 
398 
407 void
409 
421 
432 
446 
464  xcb_generic_error_t **e);
465 
466 int
467 xcb_xvmc_list_surface_types_sizeof (const void *_buffer);
468 
479  xcb_xv_port_t port_id);
480 
494  xcb_xv_port_t port_id);
495 
497 xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R);
498 
499 int
500 xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R);
501 
503 xcb_xvmc_list_surface_types_surfaces_iterator (const xcb_xvmc_list_surface_types_reply_t *R);
504 
522  xcb_generic_error_t **e);
523 
524 int
525 xcb_xvmc_create_context_sizeof (const void *_buffer);
526 
537  xcb_xvmc_context_t context_id,
538  xcb_xv_port_t port_id,
539  xcb_xvmc_surface_t surface_id,
540  uint16_t width,
541  uint16_t height,
542  uint32_t flags);
543 
557  xcb_xvmc_context_t context_id,
558  xcb_xv_port_t port_id,
559  xcb_xvmc_surface_t surface_id,
560  uint16_t width,
561  uint16_t height,
562  uint32_t flags);
563 
564 uint32_t *
565 xcb_xvmc_create_context_priv_data (const xcb_xvmc_create_context_reply_t *R);
566 
567 int
568 xcb_xvmc_create_context_priv_data_length (const xcb_xvmc_create_context_reply_t *R);
569 
571 xcb_xvmc_create_context_priv_data_end (const xcb_xvmc_create_context_reply_t *R);
572 
590  xcb_generic_error_t **e);
591 
605  xcb_xvmc_context_t context_id);
606 
617  xcb_xvmc_context_t context_id);
618 
619 int
620 xcb_xvmc_create_surface_sizeof (const void *_buffer);
621 
632  xcb_xvmc_surface_t surface_id,
633  xcb_xvmc_context_t context_id);
634 
648  xcb_xvmc_surface_t surface_id,
649  xcb_xvmc_context_t context_id);
650 
651 uint32_t *
652 xcb_xvmc_create_surface_priv_data (const xcb_xvmc_create_surface_reply_t *R);
653 
654 int
655 xcb_xvmc_create_surface_priv_data_length (const xcb_xvmc_create_surface_reply_t *R);
656 
658 xcb_xvmc_create_surface_priv_data_end (const xcb_xvmc_create_surface_reply_t *R);
659 
677  xcb_generic_error_t **e);
678 
692  xcb_xvmc_surface_t surface_id);
693 
704  xcb_xvmc_surface_t surface_id);
705 
706 int
707 xcb_xvmc_create_subpicture_sizeof (const void *_buffer);
708 
719  xcb_xvmc_subpicture_t subpicture_id,
720  xcb_xvmc_context_t context,
721  uint32_t xvimage_id,
722  uint16_t width,
723  uint16_t height);
724 
738  xcb_xvmc_subpicture_t subpicture_id,
739  xcb_xvmc_context_t context,
740  uint32_t xvimage_id,
741  uint16_t width,
742  uint16_t height);
743 
744 uint32_t *
745 xcb_xvmc_create_subpicture_priv_data (const xcb_xvmc_create_subpicture_reply_t *R);
746 
747 int
748 xcb_xvmc_create_subpicture_priv_data_length (const xcb_xvmc_create_subpicture_reply_t *R);
749 
751 xcb_xvmc_create_subpicture_priv_data_end (const xcb_xvmc_create_subpicture_reply_t *R);
752 
770  xcb_generic_error_t **e);
771 
785  xcb_xvmc_subpicture_t subpicture_id);
786 
797  xcb_xvmc_subpicture_t subpicture_id);
798 
799 int
800 xcb_xvmc_list_subpicture_types_sizeof (const void *_buffer);
801 
812  xcb_xv_port_t port_id,
813  xcb_xvmc_surface_t surface_id);
814 
828  xcb_xv_port_t port_id,
829  xcb_xvmc_surface_t surface_id);
830 
832 xcb_xvmc_list_subpicture_types_types (const xcb_xvmc_list_subpicture_types_reply_t *R);
833 
834 int
835 xcb_xvmc_list_subpicture_types_types_length (const xcb_xvmc_list_subpicture_types_reply_t *R);
836 
838 xcb_xvmc_list_subpicture_types_types_iterator (const xcb_xvmc_list_subpicture_types_reply_t *R);
839 
857  xcb_generic_error_t **e);
858 
859 
860 #ifdef __cplusplus
861 }
862 #endif
863 
864 #endif
865 
Generic error.
Definition: xcb.h:170
xcb_xvmc_list_subpicture_types_cookie_t xcb_xvmc_list_subpicture_types_unchecked(xcb_connection_t *c, xcb_xv_port_t port_id, xcb_xvmc_surface_t surface_id)
Definition: xvmc.c:857
struct xcb_xvmc_create_context_cookie_t xcb_xvmc_create_context_cookie_t
xcb_xvmc_create_context_cookie_t
struct xcb_xvmc_list_surface_types_reply_t xcb_xvmc_list_surface_types_reply_t
xcb_xvmc_list_surface_types_reply_t
struct xcb_xvmc_create_subpicture_request_t xcb_xvmc_create_subpicture_request_t
xcb_xvmc_create_subpicture_request_t
xcb_xvmc_query_version_reply_t
Definition: xvmc.h:106
struct xcb_xvmc_surface_info_iterator_t xcb_xvmc_surface_info_iterator_t
xcb_xvmc_surface_info_iterator_t
xcb_xvmc_create_surface_request_t
Definition: xvmc.h:212
xcb_xv_image_format_info_iterator_t
Definition: xv.h:247
xcb_xvmc_query_version_reply_t * xcb_xvmc_query_version_reply(xcb_connection_t *c, xcb_xvmc_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: xvmc.c:142
xcb_xvmc_query_version_request_t
Definition: xvmc.h:97
xcb_xvmc_create_surface_cookie_t xcb_xvmc_create_surface(xcb_connection_t *c, xcb_xvmc_surface_t surface_id, xcb_xvmc_context_t context_id)
Definition: xvmc.c:479
xcb_xvmc_surface_info_iterator_t
Definition: xvmc.h:78
xcb_xvmc_list_subpicture_types_reply_t * xcb_xvmc_list_subpicture_types_reply(xcb_connection_t *c, xcb_xvmc_list_subpicture_types_cookie_t cookie, xcb_generic_error_t **e)
Definition: xvmc.c:907
struct xcb_xvmc_list_surface_types_cookie_t xcb_xvmc_list_surface_types_cookie_t
xcb_xvmc_list_surface_types_cookie_t
xcb_xvmc_create_context_request_t
Definition: xvmc.h:160
xcb_xvmc_create_surface_reply_t * xcb_xvmc_create_surface_reply(xcb_connection_t *c, xcb_xvmc_create_surface_cookie_t cookie, xcb_generic_error_t **e)
Definition: xvmc.c:557
xcb_generic_iterator_t xcb_xvmc_subpicture_end(xcb_xvmc_subpicture_iterator_t i)
Definition: xvmc.c:66
Definition: xcbext.h:39
xcb_xvmc_destroy_subpicture_request_t
Definition: xvmc.h:290
xcb_void_cookie_t xcb_xvmc_destroy_context_checked(xcb_connection_t *c, xcb_xvmc_context_t context_id)
Definition: xvmc.c:396
struct xcb_xvmc_destroy_context_request_t xcb_xvmc_destroy_context_request_t
xcb_xvmc_destroy_context_request_t
xcb_xvmc_list_subpicture_types_cookie_t xcb_xvmc_list_subpicture_types(xcb_connection_t *c, xcb_xv_port_t port_id, xcb_xvmc_surface_t surface_id)
Definition: xvmc.c:829
xcb_xvmc_destroy_surface_request_t
Definition: xvmc.h:237
struct xcb_xvmc_query_version_cookie_t xcb_xvmc_query_version_cookie_t
xcb_xvmc_query_version_cookie_t
Generic iterator.
Definition: xcb.h:114
xcb_xvmc_create_context_cookie_t xcb_xvmc_create_context_unchecked(xcb_connection_t *c, xcb_xvmc_context_t context_id, xcb_xv_port_t port_id, xcb_xvmc_surface_t surface_id, uint16_t width, uint16_t height, uint32_t flags)
Definition: xvmc.c:330
xcb_xvmc_create_context_cookie_t xcb_xvmc_create_context(xcb_connection_t *c, xcb_xvmc_context_t context_id, xcb_xv_port_t port_id, xcb_xvmc_surface_t surface_id, uint16_t width, uint16_t height, uint32_t flags)
Definition: xvmc.c:294
struct xcb_xvmc_list_subpicture_types_cookie_t xcb_xvmc_list_subpicture_types_cookie_t
xcb_xvmc_list_subpicture_types_cookie_t
struct xcb_xvmc_surface_iterator_t xcb_xvmc_surface_iterator_t
xcb_xvmc_surface_iterator_t
xcb_generic_iterator_t xcb_xvmc_surface_end(xcb_xvmc_surface_iterator_t i)
Definition: xvmc.c:48
xcb_xvmc_create_context_reply_t
Definition: xvmc.h:175
xcb_xvmc_list_subpicture_types_reply_t
Definition: xvmc.h:321
xcb_void_cookie_t xcb_xvmc_destroy_surface_checked(xcb_connection_t *c, xcb_xvmc_surface_t surface_id)
Definition: xvmc.c:565
xcb_xvmc_query_version_cookie_t xcb_xvmc_query_version_unchecked(xcb_connection_t *c)
Definition: xvmc.c:118
xcb_xvmc_surface_iterator_t
Definition: xvmc.h:43
xcb_xvmc_subpicture_iterator_t
Definition: xvmc.h:54
struct xcb_xvmc_create_surface_cookie_t xcb_xvmc_create_surface_cookie_t
xcb_xvmc_create_surface_cookie_t
xcb_generic_iterator_t xcb_xvmc_context_end(xcb_xvmc_context_iterator_t i)
Definition: xvmc.c:30
struct xcb_xvmc_create_surface_request_t xcb_xvmc_create_surface_request_t
xcb_xvmc_create_surface_request_t
xcb_xvmc_create_surface_reply_t
Definition: xvmc.h:223
xcb_xvmc_list_surface_types_reply_t
Definition: xvmc.h:138
void xcb_xvmc_subpicture_next(xcb_xvmc_subpicture_iterator_t *i)
Definition: xvmc.c:58
xcb_void_cookie_t xcb_xvmc_destroy_surface(xcb_connection_t *c, xcb_xvmc_surface_t surface_id)
Definition: xvmc.c:591
struct xcb_xvmc_list_subpicture_types_request_t xcb_xvmc_list_subpicture_types_request_t
xcb_xvmc_list_subpicture_types_request_t
xcb_xvmc_create_subpicture_cookie_t xcb_xvmc_create_subpicture(xcb_connection_t *c, xcb_xvmc_subpicture_t subpicture_id, xcb_xvmc_context_t context, uint32_t xvimage_id, uint16_t width, uint16_t height)
Definition: xvmc.c:648
xcb_xvmc_list_surface_types_cookie_t xcb_xvmc_list_surface_types_unchecked(xcb_connection_t *c, xcb_xv_port_t port_id)
Definition: xvmc.c:207
struct xcb_xvmc_surface_info_t xcb_xvmc_surface_info_t
xcb_xvmc_surface_info_t
struct xcb_xvmc_create_subpicture_cookie_t xcb_xvmc_create_subpicture_cookie_t
xcb_xvmc_create_subpicture_cookie_t
struct xcb_xvmc_create_surface_reply_t xcb_xvmc_create_surface_reply_t
xcb_xvmc_create_surface_reply_t
xcb_xvmc_create_subpicture_request_t
Definition: xvmc.h:257
xcb_void_cookie_t xcb_xvmc_destroy_context(xcb_connection_t *c, xcb_xvmc_context_t context_id)
Definition: xvmc.c:422
struct xcb_xvmc_create_context_request_t xcb_xvmc_create_context_request_t
xcb_xvmc_create_context_request_t
struct xcb_xvmc_create_subpicture_reply_t xcb_xvmc_create_subpicture_reply_t
xcb_xvmc_create_subpicture_reply_t
xcb_xvmc_create_subpicture_reply_t * xcb_xvmc_create_subpicture_reply(xcb_connection_t *c, xcb_xvmc_create_subpicture_cookie_t cookie, xcb_generic_error_t **e)
Definition: xvmc.c:738
struct xcb_xvmc_context_iterator_t xcb_xvmc_context_iterator_t
xcb_xvmc_context_iterator_t
void xcb_xvmc_context_next(xcb_xvmc_context_iterator_t *i)
Definition: xvmc.c:22
xcb_xvmc_destroy_context_request_t
Definition: xvmc.h:192
struct xcb_xvmc_query_version_request_t xcb_xvmc_query_version_request_t
xcb_xvmc_query_version_request_t
struct xcb_xvmc_destroy_subpicture_request_t xcb_xvmc_destroy_subpicture_request_t
xcb_xvmc_destroy_subpicture_request_t
xcb_xvmc_create_surface_cookie_t xcb_xvmc_create_surface_unchecked(xcb_connection_t *c, xcb_xvmc_surface_t surface_id, xcb_xvmc_context_t context_id)
Definition: xvmc.c:507
xcb_xvmc_list_surface_types_reply_t * xcb_xvmc_list_surface_types_reply(xcb_connection_t *c, xcb_xvmc_list_surface_types_cookie_t cookie, xcb_generic_error_t **e)
Definition: xvmc.c:255
xcb_generic_iterator_t xcb_xvmc_surface_info_end(xcb_xvmc_surface_info_iterator_t i)
Definition: xvmc.c:84
xcb_xvmc_list_subpicture_types_request_t
Definition: xvmc.h:310
xcb_void_cookie_t xcb_xvmc_destroy_subpicture_checked(xcb_connection_t *c, xcb_xvmc_subpicture_t subpicture_id)
Definition: xvmc.c:746
struct xcb_xvmc_list_surface_types_request_t xcb_xvmc_list_surface_types_request_t
xcb_xvmc_list_surface_types_request_t
struct xcb_xvmc_destroy_surface_request_t xcb_xvmc_destroy_surface_request_t
xcb_xvmc_destroy_surface_request_t
void xcb_xvmc_surface_next(xcb_xvmc_surface_iterator_t *i)
Definition: xvmc.c:40
void xcb_xvmc_surface_info_next(xcb_xvmc_surface_info_iterator_t *i)
Definition: xvmc.c:76
xcb_void_cookie_t xcb_xvmc_destroy_subpicture(xcb_connection_t *c, xcb_xvmc_subpicture_t subpicture_id)
Definition: xvmc.c:772
xcb_xvmc_create_context_reply_t * xcb_xvmc_create_context_reply(xcb_connection_t *c, xcb_xvmc_create_context_cookie_t cookie, xcb_generic_error_t **e)
Definition: xvmc.c:388
xcb_xvmc_list_surface_types_request_t
Definition: xvmc.h:128
struct xcb_xvmc_subpicture_iterator_t xcb_xvmc_subpicture_iterator_t
xcb_xvmc_subpicture_iterator_t
xcb_xv_image_format_info_t
Definition: xv.h:214
xcb_xvmc_create_subpicture_cookie_t xcb_xvmc_create_subpicture_unchecked(xcb_connection_t *c, xcb_xvmc_subpicture_t subpicture_id, xcb_xvmc_context_t context, uint32_t xvimage_id, uint16_t width, uint16_t height)
Definition: xvmc.c:682
struct xcb_xvmc_query_version_reply_t xcb_xvmc_query_version_reply_t
xcb_xvmc_query_version_reply_t
Definition: xcbint.h:198
xcb_xvmc_surface_info_t
Definition: xvmc.h:63
xcb_xvmc_list_surface_types_cookie_t xcb_xvmc_list_surface_types(xcb_connection_t *c, xcb_xv_port_t port_id)
Definition: xvmc.c:181
xcb_xvmc_query_version_cookie_t xcb_xvmc_query_version(xcb_connection_t *c)
Definition: xvmc.c:94
struct xcb_xvmc_list_subpicture_types_reply_t xcb_xvmc_list_subpicture_types_reply_t
xcb_xvmc_list_subpicture_types_reply_t
struct xcb_xvmc_create_context_reply_t xcb_xvmc_create_context_reply_t
xcb_xvmc_create_context_reply_t
xcb_xvmc_create_subpicture_reply_t
Definition: xvmc.h:271
xcb_xvmc_context_iterator_t
Definition: xvmc.h:32