23 #define XCB_XV_MAJOR_VERSION 2
24 #define XCB_XV_MINOR_VERSION 2
28 typedef uint32_t xcb_xv_port_t;
39 typedef uint32_t xcb_xv_encoding_t;
45 xcb_xv_encoding_t *data;
50 typedef enum xcb_xv_type_t {
51 XCB_XV_TYPE_INPUT_MASK = 1,
52 XCB_XV_TYPE_OUTPUT_MASK = 2,
53 XCB_XV_TYPE_VIDEO_MASK = 4,
54 XCB_XV_TYPE_STILL_MASK = 8,
55 XCB_XV_TYPE_IMAGE_MASK = 16
58 typedef enum xcb_xv_image_format_info_type_t {
59 XCB_XV_IMAGE_FORMAT_INFO_TYPE_RGB = 0,
60 XCB_XV_IMAGE_FORMAT_INFO_TYPE_YUV = 1
61 } xcb_xv_image_format_info_type_t;
63 typedef enum xcb_xv_image_format_info_format_t {
64 XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PACKED = 0,
65 XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PLANAR = 1
66 } xcb_xv_image_format_info_format_t;
68 typedef enum xcb_xv_attribute_flag_t {
69 XCB_XV_ATTRIBUTE_FLAG_GETTABLE = 1,
70 XCB_XV_ATTRIBUTE_FLAG_SETTABLE = 2
71 } xcb_xv_attribute_flag_t;
73 typedef enum xcb_xv_video_notify_reason_t {
74 XCB_XV_VIDEO_NOTIFY_REASON_STARTED = 0,
75 XCB_XV_VIDEO_NOTIFY_REASON_STOPPED = 1,
76 XCB_XV_VIDEO_NOTIFY_REASON_BUSY = 2,
77 XCB_XV_VIDEO_NOTIFY_REASON_PREEMPTED = 3,
78 XCB_XV_VIDEO_NOTIFY_REASON_HARD_ERROR = 4
79 } xcb_xv_video_notify_reason_t;
81 typedef enum xcb_xv_scanline_order_t {
82 XCB_XV_SCANLINE_ORDER_TOP_TO_BOTTOM = 0,
83 XCB_XV_SCANLINE_ORDER_BOTTOM_TO_TOP = 1
84 } xcb_xv_scanline_order_t;
86 typedef enum xcb_xv_grab_port_status_t {
87 XCB_XV_GRAB_PORT_STATUS_SUCCESS = 0,
88 XCB_XV_GRAB_PORT_STATUS_BAD_EXTENSION = 1,
89 XCB_XV_GRAB_PORT_STATUS_ALREADY_GRABBED = 2,
90 XCB_XV_GRAB_PORT_STATUS_INVALID_TIME = 3,
91 XCB_XV_GRAB_PORT_STATUS_BAD_REPLY = 4,
92 XCB_XV_GRAB_PORT_STATUS_BAD_ALLOC = 5
93 } xcb_xv_grab_port_status_t;
116 xcb_visualid_t visual;
134 xcb_xv_port_t base_id;
137 uint16_t num_formats;
155 xcb_xv_encoding_t encoding;
230 uint32_t y_sample_bits;
231 uint32_t u_sample_bits;
232 uint32_t v_sample_bits;
233 uint32_t vhorz_y_period;
234 uint32_t vhorz_u_period;
235 uint32_t vhorz_v_period;
236 uint32_t vvert_y_period;
237 uint32_t vvert_u_period;
238 uint32_t vvert_v_period;
239 uint8_t vcomp_order[32];
240 uint8_t vscanline_order;
254 #define XCB_XV_BAD_PORT 0
260 uint8_t response_type;
266 #define XCB_XV_BAD_ENCODING 1
272 uint8_t response_type;
278 #define XCB_XV_BAD_CONTROL 2
284 uint8_t response_type;
290 #define XCB_XV_VIDEO_NOTIFY 0
296 uint8_t response_type;
299 xcb_timestamp_t time;
300 xcb_drawable_t drawable;
305 #define XCB_XV_PORT_NOTIFY 1
311 uint8_t response_type;
314 xcb_timestamp_t time;
316 xcb_atom_t attribute;
324 unsigned int sequence;
328 #define XCB_XV_QUERY_EXTENSION 0
334 uint8_t major_opcode;
335 uint8_t minor_opcode;
343 uint8_t response_type;
355 unsigned int sequence;
359 #define XCB_XV_QUERY_ADAPTORS 1
365 uint8_t major_opcode;
366 uint8_t minor_opcode;
375 uint8_t response_type;
379 uint16_t num_adaptors;
387 unsigned int sequence;
391 #define XCB_XV_QUERY_ENCODINGS 2
397 uint8_t major_opcode;
398 uint8_t minor_opcode;
407 uint8_t response_type;
411 uint16_t num_encodings;
419 unsigned int sequence;
423 #define XCB_XV_GRAB_PORT 3
429 uint8_t major_opcode;
430 uint8_t minor_opcode;
433 xcb_timestamp_t time;
440 uint8_t response_type;
447 #define XCB_XV_UNGRAB_PORT 4
453 uint8_t major_opcode;
454 uint8_t minor_opcode;
457 xcb_timestamp_t time;
461 #define XCB_XV_PUT_VIDEO 5
467 uint8_t major_opcode;
468 uint8_t minor_opcode;
471 xcb_drawable_t drawable;
484 #define XCB_XV_PUT_STILL 6
490 uint8_t major_opcode;
491 uint8_t minor_opcode;
494 xcb_drawable_t drawable;
507 #define XCB_XV_GET_VIDEO 7
513 uint8_t major_opcode;
514 uint8_t minor_opcode;
517 xcb_drawable_t drawable;
530 #define XCB_XV_GET_STILL 8
536 uint8_t major_opcode;
537 uint8_t minor_opcode;
540 xcb_drawable_t drawable;
553 #define XCB_XV_STOP_VIDEO 9
559 uint8_t major_opcode;
560 uint8_t minor_opcode;
563 xcb_drawable_t drawable;
567 #define XCB_XV_SELECT_VIDEO_NOTIFY 10
573 uint8_t major_opcode;
574 uint8_t minor_opcode;
576 xcb_drawable_t drawable;
582 #define XCB_XV_SELECT_PORT_NOTIFY 11
588 uint8_t major_opcode;
589 uint8_t minor_opcode;
600 unsigned int sequence;
604 #define XCB_XV_QUERY_BEST_SIZE 12
610 uint8_t major_opcode;
611 uint8_t minor_opcode;
626 uint8_t response_type;
630 uint16_t actual_width;
631 uint16_t actual_height;
635 #define XCB_XV_SET_PORT_ATTRIBUTE 13
641 uint8_t major_opcode;
642 uint8_t minor_opcode;
645 xcb_atom_t attribute;
653 unsigned int sequence;
657 #define XCB_XV_GET_PORT_ATTRIBUTE 14
663 uint8_t major_opcode;
664 uint8_t minor_opcode;
667 xcb_atom_t attribute;
674 uint8_t response_type;
685 unsigned int sequence;
689 #define XCB_XV_QUERY_PORT_ATTRIBUTES 15
695 uint8_t major_opcode;
696 uint8_t minor_opcode;
705 uint8_t response_type;
709 uint32_t num_attributes;
718 unsigned int sequence;
722 #define XCB_XV_LIST_IMAGE_FORMATS 16
728 uint8_t major_opcode;
729 uint8_t minor_opcode;
738 uint8_t response_type;
742 uint32_t num_formats;
750 unsigned int sequence;
754 #define XCB_XV_QUERY_IMAGE_ATTRIBUTES 17
760 uint8_t major_opcode;
761 uint8_t minor_opcode;
773 uint8_t response_type;
785 #define XCB_XV_PUT_IMAGE 18
791 uint8_t major_opcode;
792 uint8_t minor_opcode;
795 xcb_drawable_t drawable;
811 #define XCB_XV_SHM_PUT_IMAGE 19
817 uint8_t major_opcode;
818 uint8_t minor_opcode;
821 xcb_drawable_t drawable;
823 xcb_shm_seg_t shmseg;
933 xcb_xv_adaptor_info_sizeof (
const void *_buffer );
977 xcb_xv_encoding_info_sizeof (
const void *_buffer );
1012 xcb_xv_image_sizeof (
const void *_buffer );
1065 xcb_xv_attribute_info_sizeof (
const void *_buffer );
1167 xcb_xv_query_adaptors_sizeof (
const void *_buffer );
1179 xcb_window_t window );
1194 xcb_window_t window );
1222 xcb_xv_query_encodings_sizeof (
const void *_buffer );
1234 xcb_xv_port_t port );
1249 xcb_xv_port_t port );
1286 xcb_xv_port_t port ,
1287 xcb_timestamp_t time );
1302 xcb_xv_port_t port ,
1303 xcb_timestamp_t time );
1337 xcb_xv_port_t port ,
1338 xcb_timestamp_t time );
1350 xcb_xv_port_t port ,
1351 xcb_timestamp_t time );
1366 xcb_xv_port_t port ,
1367 xcb_drawable_t drawable ,
1388 xcb_xv_port_t port ,
1389 xcb_drawable_t drawable ,
1413 xcb_xv_port_t port ,
1414 xcb_drawable_t drawable ,
1435 xcb_xv_port_t port ,
1436 xcb_drawable_t drawable ,
1460 xcb_xv_port_t port ,
1461 xcb_drawable_t drawable ,
1482 xcb_xv_port_t port ,
1483 xcb_drawable_t drawable ,
1507 xcb_xv_port_t port ,
1508 xcb_drawable_t drawable ,
1529 xcb_xv_port_t port ,
1530 xcb_drawable_t drawable ,
1554 xcb_xv_port_t port ,
1555 xcb_drawable_t drawable );
1567 xcb_xv_port_t port ,
1568 xcb_drawable_t drawable );
1583 xcb_drawable_t drawable ,
1596 xcb_drawable_t drawable ,
1612 xcb_xv_port_t port ,
1625 xcb_xv_port_t port ,
1638 xcb_xv_port_t port ,
1658 xcb_xv_port_t port ,
1697 xcb_xv_port_t port ,
1698 xcb_atom_t attribute ,
1711 xcb_xv_port_t port ,
1712 xcb_atom_t attribute ,
1725 xcb_xv_port_t port ,
1726 xcb_atom_t attribute );
1741 xcb_xv_port_t port ,
1742 xcb_atom_t attribute );
1764 xcb_xv_query_port_attributes_sizeof (
const void *_buffer );
1776 xcb_xv_port_t port );
1791 xcb_xv_port_t port );
1819 xcb_xv_list_image_formats_sizeof (
const void *_buffer );
1831 xcb_xv_port_t port );
1846 xcb_xv_port_t port );
1877 xcb_xv_query_image_attributes_sizeof (
const void *_buffer );
1889 xcb_xv_port_t port ,
1907 xcb_xv_port_t port ,
1950 xcb_xv_put_image_sizeof (
const void *_buffer ,
1951 uint32_t data_len );
1966 xcb_xv_port_t port ,
1967 xcb_drawable_t drawable ,
1981 const uint8_t *data );
1993 xcb_xv_port_t port ,
1994 xcb_drawable_t drawable ,
2008 const uint8_t *data );
2023 xcb_xv_port_t port ,
2024 xcb_drawable_t drawable ,
2026 xcb_shm_seg_t shmseg ,
2039 uint8_t send_event );
2051 xcb_xv_port_t port ,
2052 xcb_drawable_t drawable ,
2054 xcb_shm_seg_t shmseg ,
2067 uint8_t send_event );