jpayne@69: /* jpayne@69: * This file generated automatically from xvmc.xml by c_client.py. jpayne@69: * Edit at your peril. jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * @defgroup XCB_XvMC_API XCB XvMC API jpayne@69: * @brief XvMC XCB Protocol Implementation. jpayne@69: * @{ jpayne@69: **/ jpayne@69: jpayne@69: #ifndef __XVMC_H jpayne@69: #define __XVMC_H jpayne@69: jpayne@69: #include "xcb.h" jpayne@69: #include "xv.h" jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #define XCB_XVMC_MAJOR_VERSION 1 jpayne@69: #define XCB_XVMC_MINOR_VERSION 1 jpayne@69: jpayne@69: extern xcb_extension_t xcb_xvmc_id; jpayne@69: jpayne@69: typedef uint32_t xcb_xvmc_context_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_context_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_context_iterator_t { jpayne@69: xcb_xvmc_context_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_xvmc_context_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_xvmc_surface_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_surface_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_surface_iterator_t { jpayne@69: xcb_xvmc_surface_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_xvmc_surface_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_xvmc_subpicture_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_subpicture_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_subpicture_iterator_t { jpayne@69: xcb_xvmc_subpicture_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_xvmc_subpicture_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_surface_info_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_surface_info_t { jpayne@69: xcb_xvmc_surface_t id; jpayne@69: uint16_t chroma_format; jpayne@69: uint16_t pad0; jpayne@69: uint16_t max_width; jpayne@69: uint16_t max_height; jpayne@69: uint16_t subpicture_max_width; jpayne@69: uint16_t subpicture_max_height; jpayne@69: uint32_t mc_type; jpayne@69: uint32_t flags; jpayne@69: } xcb_xvmc_surface_info_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_surface_info_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_surface_info_iterator_t { jpayne@69: xcb_xvmc_surface_info_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_xvmc_surface_info_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_query_version_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_query_version_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xvmc_query_version_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_query_version. */ jpayne@69: #define XCB_XVMC_QUERY_VERSION 0 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_query_version_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_query_version_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_xvmc_query_version_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_query_version_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_query_version_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t major; jpayne@69: uint32_t minor; jpayne@69: } xcb_xvmc_query_version_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_list_surface_types_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_list_surface_types_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xvmc_list_surface_types_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_list_surface_types. */ jpayne@69: #define XCB_XVMC_LIST_SURFACE_TYPES 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_list_surface_types_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_list_surface_types_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xv_port_t port_id; jpayne@69: } xcb_xvmc_list_surface_types_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_list_surface_types_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_list_surface_types_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t num; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_xvmc_list_surface_types_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_context_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_context_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xvmc_create_context_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_create_context. */ jpayne@69: #define XCB_XVMC_CREATE_CONTEXT 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_context_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_context_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xvmc_context_t context_id; jpayne@69: xcb_xv_port_t port_id; jpayne@69: xcb_xvmc_surface_t surface_id; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint32_t flags; jpayne@69: } xcb_xvmc_create_context_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_context_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_context_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t width_actual; jpayne@69: uint16_t height_actual; jpayne@69: uint32_t flags_return; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_xvmc_create_context_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_destroy_context. */ jpayne@69: #define XCB_XVMC_DESTROY_CONTEXT 3 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_destroy_context_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_destroy_context_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xvmc_context_t context_id; jpayne@69: } xcb_xvmc_destroy_context_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_surface_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_surface_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xvmc_create_surface_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_create_surface. */ jpayne@69: #define XCB_XVMC_CREATE_SURFACE 4 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_surface_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_surface_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xvmc_surface_t surface_id; jpayne@69: xcb_xvmc_context_t context_id; jpayne@69: } xcb_xvmc_create_surface_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_surface_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_surface_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t pad1[24]; jpayne@69: } xcb_xvmc_create_surface_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_destroy_surface. */ jpayne@69: #define XCB_XVMC_DESTROY_SURFACE 5 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_destroy_surface_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_destroy_surface_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xvmc_surface_t surface_id; jpayne@69: } xcb_xvmc_destroy_surface_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_subpicture_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_subpicture_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xvmc_create_subpicture_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_create_subpicture. */ jpayne@69: #define XCB_XVMC_CREATE_SUBPICTURE 6 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_subpicture_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_subpicture_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xvmc_subpicture_t subpicture_id; jpayne@69: xcb_xvmc_context_t context; jpayne@69: uint32_t xvimage_id; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_xvmc_create_subpicture_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_create_subpicture_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_create_subpicture_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t width_actual; jpayne@69: uint16_t height_actual; jpayne@69: uint16_t num_palette_entries; jpayne@69: uint16_t entry_bytes; jpayne@69: uint8_t component_order[4]; jpayne@69: uint8_t pad1[12]; jpayne@69: } xcb_xvmc_create_subpicture_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_destroy_subpicture. */ jpayne@69: #define XCB_XVMC_DESTROY_SUBPICTURE 7 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_destroy_subpicture_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_destroy_subpicture_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xvmc_subpicture_t subpicture_id; jpayne@69: } xcb_xvmc_destroy_subpicture_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_list_subpicture_types_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_list_subpicture_types_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xvmc_list_subpicture_types_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xvmc_list_subpicture_types. */ jpayne@69: #define XCB_XVMC_LIST_SUBPICTURE_TYPES 8 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_list_subpicture_types_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_list_subpicture_types_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_xv_port_t port_id; jpayne@69: xcb_xvmc_surface_t surface_id; jpayne@69: } xcb_xvmc_list_subpicture_types_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xvmc_list_subpicture_types_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xvmc_list_subpicture_types_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t num; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_xvmc_list_subpicture_types_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_xvmc_context_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_xvmc_context_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_xvmc_context_next (xcb_xvmc_context_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_xvmc_context_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xvmc_context_end (xcb_xvmc_context_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_xvmc_surface_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_xvmc_surface_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_xvmc_surface_next (xcb_xvmc_surface_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_xvmc_surface_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xvmc_surface_end (xcb_xvmc_surface_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_xvmc_subpicture_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_xvmc_subpicture_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_xvmc_subpicture_next (xcb_xvmc_subpicture_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_xvmc_subpicture_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xvmc_subpicture_end (xcb_xvmc_subpicture_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_xvmc_surface_info_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_xvmc_surface_info_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_xvmc_surface_info_next (xcb_xvmc_surface_info_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_xvmc_surface_info_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xvmc_surface_info_end (xcb_xvmc_surface_info_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xvmc_query_version_cookie_t jpayne@69: xcb_xvmc_query_version (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xvmc_query_version_cookie_t jpayne@69: xcb_xvmc_query_version_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xvmc_query_version_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xvmc_query_version_reply_t * jpayne@69: xcb_xvmc_query_version_reply (xcb_connection_t *c, jpayne@69: xcb_xvmc_query_version_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_list_surface_types_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xvmc_list_surface_types_cookie_t jpayne@69: xcb_xvmc_list_surface_types (xcb_connection_t *c, jpayne@69: xcb_xv_port_t port_id); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xvmc_list_surface_types_cookie_t jpayne@69: xcb_xvmc_list_surface_types_unchecked (xcb_connection_t *c, jpayne@69: xcb_xv_port_t port_id); jpayne@69: jpayne@69: xcb_xvmc_surface_info_t * jpayne@69: xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R); jpayne@69: jpayne@69: xcb_xvmc_surface_info_iterator_t jpayne@69: xcb_xvmc_list_surface_types_surfaces_iterator (const xcb_xvmc_list_surface_types_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xvmc_list_surface_types_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xvmc_list_surface_types_reply_t * jpayne@69: xcb_xvmc_list_surface_types_reply (xcb_connection_t *c, jpayne@69: xcb_xvmc_list_surface_types_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_create_context_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xvmc_create_context_cookie_t jpayne@69: xcb_xvmc_create_context (xcb_connection_t *c, jpayne@69: xcb_xvmc_context_t context_id, jpayne@69: xcb_xv_port_t port_id, jpayne@69: xcb_xvmc_surface_t surface_id, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint32_t flags); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xvmc_create_context_cookie_t jpayne@69: xcb_xvmc_create_context_unchecked (xcb_connection_t *c, jpayne@69: xcb_xvmc_context_t context_id, jpayne@69: xcb_xv_port_t port_id, jpayne@69: xcb_xvmc_surface_t surface_id, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint32_t flags); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_xvmc_create_context_priv_data (const xcb_xvmc_create_context_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_create_context_priv_data_length (const xcb_xvmc_create_context_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xvmc_create_context_priv_data_end (const xcb_xvmc_create_context_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xvmc_create_context_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xvmc_create_context_reply_t * jpayne@69: xcb_xvmc_create_context_reply (xcb_connection_t *c, jpayne@69: xcb_xvmc_create_context_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xvmc_destroy_context_checked (xcb_connection_t *c, jpayne@69: xcb_xvmc_context_t context_id); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xvmc_destroy_context (xcb_connection_t *c, jpayne@69: xcb_xvmc_context_t context_id); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_create_surface_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xvmc_create_surface_cookie_t jpayne@69: xcb_xvmc_create_surface (xcb_connection_t *c, jpayne@69: xcb_xvmc_surface_t surface_id, jpayne@69: xcb_xvmc_context_t context_id); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xvmc_create_surface_cookie_t jpayne@69: xcb_xvmc_create_surface_unchecked (xcb_connection_t *c, jpayne@69: xcb_xvmc_surface_t surface_id, jpayne@69: xcb_xvmc_context_t context_id); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_xvmc_create_surface_priv_data (const xcb_xvmc_create_surface_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_create_surface_priv_data_length (const xcb_xvmc_create_surface_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xvmc_create_surface_priv_data_end (const xcb_xvmc_create_surface_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xvmc_create_surface_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xvmc_create_surface_reply_t * jpayne@69: xcb_xvmc_create_surface_reply (xcb_connection_t *c, jpayne@69: xcb_xvmc_create_surface_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xvmc_destroy_surface_checked (xcb_connection_t *c, jpayne@69: xcb_xvmc_surface_t surface_id); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xvmc_destroy_surface (xcb_connection_t *c, jpayne@69: xcb_xvmc_surface_t surface_id); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_create_subpicture_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xvmc_create_subpicture_cookie_t jpayne@69: xcb_xvmc_create_subpicture (xcb_connection_t *c, jpayne@69: xcb_xvmc_subpicture_t subpicture_id, jpayne@69: xcb_xvmc_context_t context, jpayne@69: uint32_t xvimage_id, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xvmc_create_subpicture_cookie_t jpayne@69: xcb_xvmc_create_subpicture_unchecked (xcb_connection_t *c, jpayne@69: xcb_xvmc_subpicture_t subpicture_id, jpayne@69: xcb_xvmc_context_t context, jpayne@69: uint32_t xvimage_id, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_xvmc_create_subpicture_priv_data (const xcb_xvmc_create_subpicture_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_create_subpicture_priv_data_length (const xcb_xvmc_create_subpicture_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xvmc_create_subpicture_priv_data_end (const xcb_xvmc_create_subpicture_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xvmc_create_subpicture_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xvmc_create_subpicture_reply_t * jpayne@69: xcb_xvmc_create_subpicture_reply (xcb_connection_t *c, jpayne@69: xcb_xvmc_create_subpicture_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xvmc_destroy_subpicture_checked (xcb_connection_t *c, jpayne@69: xcb_xvmc_subpicture_t subpicture_id); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xvmc_destroy_subpicture (xcb_connection_t *c, jpayne@69: xcb_xvmc_subpicture_t subpicture_id); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_list_subpicture_types_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xvmc_list_subpicture_types_cookie_t jpayne@69: xcb_xvmc_list_subpicture_types (xcb_connection_t *c, jpayne@69: xcb_xv_port_t port_id, jpayne@69: xcb_xvmc_surface_t surface_id); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xvmc_list_subpicture_types_cookie_t jpayne@69: xcb_xvmc_list_subpicture_types_unchecked (xcb_connection_t *c, jpayne@69: xcb_xv_port_t port_id, jpayne@69: xcb_xvmc_surface_t surface_id); jpayne@69: jpayne@69: xcb_xv_image_format_info_t * jpayne@69: xcb_xvmc_list_subpicture_types_types (const xcb_xvmc_list_subpicture_types_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xvmc_list_subpicture_types_types_length (const xcb_xvmc_list_subpicture_types_reply_t *R); jpayne@69: jpayne@69: xcb_xv_image_format_info_iterator_t jpayne@69: xcb_xvmc_list_subpicture_types_types_iterator (const xcb_xvmc_list_subpicture_types_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xvmc_list_subpicture_types_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xvmc_list_subpicture_types_reply_t * jpayne@69: xcb_xvmc_list_subpicture_types_reply (xcb_connection_t *c, jpayne@69: xcb_xvmc_list_subpicture_types_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * @} jpayne@69: */