* This file generated automatically from xvmc.xml by c_client.py.
* @defgroup XCB_XvMC_API XCB XvMC API
* @brief XvMC XCB Protocol Implementation.
#define XCB_XVMC_MAJOR_VERSION 1
#define XCB_XVMC_MINOR_VERSION 1
extern xcb_extension_t xcb_xvmc_id;
typedef uint32_t xcb_xvmc_context_t;
* @brief xcb_xvmc_context_iterator_t
typedef struct xcb_xvmc_context_iterator_t {
xcb_xvmc_context_t *data;
} xcb_xvmc_context_iterator_t;
typedef uint32_t xcb_xvmc_surface_t;
* @brief xcb_xvmc_surface_iterator_t
typedef struct xcb_xvmc_surface_iterator_t {
xcb_xvmc_surface_t *data;
} xcb_xvmc_surface_iterator_t;
typedef uint32_t xcb_xvmc_subpicture_t;
* @brief xcb_xvmc_subpicture_iterator_t
typedef struct xcb_xvmc_subpicture_iterator_t {
xcb_xvmc_subpicture_t *data;
} xcb_xvmc_subpicture_iterator_t;
* @brief xcb_xvmc_surface_info_t
typedef struct xcb_xvmc_surface_info_t {
uint16_t subpicture_max_width;
uint16_t subpicture_max_height;
} xcb_xvmc_surface_info_t;
* @brief xcb_xvmc_surface_info_iterator_t
typedef struct xcb_xvmc_surface_info_iterator_t {
xcb_xvmc_surface_info_t *data;
} xcb_xvmc_surface_info_iterator_t;
* @brief xcb_xvmc_query_version_cookie_t
typedef struct xcb_xvmc_query_version_cookie_t {
} xcb_xvmc_query_version_cookie_t;
/** Opcode for xcb_xvmc_query_version. */
#define XCB_XVMC_QUERY_VERSION 0
* @brief xcb_xvmc_query_version_request_t
typedef struct xcb_xvmc_query_version_request_t {
} xcb_xvmc_query_version_request_t;
* @brief xcb_xvmc_query_version_reply_t
typedef struct xcb_xvmc_query_version_reply_t {
} xcb_xvmc_query_version_reply_t;
* @brief xcb_xvmc_list_surface_types_cookie_t
typedef struct xcb_xvmc_list_surface_types_cookie_t {
} xcb_xvmc_list_surface_types_cookie_t;
/** Opcode for xcb_xvmc_list_surface_types. */
#define XCB_XVMC_LIST_SURFACE_TYPES 1
* @brief xcb_xvmc_list_surface_types_request_t
typedef struct xcb_xvmc_list_surface_types_request_t {
} xcb_xvmc_list_surface_types_request_t;
* @brief xcb_xvmc_list_surface_types_reply_t
typedef struct xcb_xvmc_list_surface_types_reply_t {
} xcb_xvmc_list_surface_types_reply_t;
* @brief xcb_xvmc_create_context_cookie_t
typedef struct xcb_xvmc_create_context_cookie_t {
} xcb_xvmc_create_context_cookie_t;
/** Opcode for xcb_xvmc_create_context. */
#define XCB_XVMC_CREATE_CONTEXT 2
* @brief xcb_xvmc_create_context_request_t
typedef struct xcb_xvmc_create_context_request_t {
xcb_xvmc_context_t context_id;
xcb_xvmc_surface_t surface_id;
} xcb_xvmc_create_context_request_t;
* @brief xcb_xvmc_create_context_reply_t
typedef struct xcb_xvmc_create_context_reply_t {
} xcb_xvmc_create_context_reply_t;
/** Opcode for xcb_xvmc_destroy_context. */
#define XCB_XVMC_DESTROY_CONTEXT 3
* @brief xcb_xvmc_destroy_context_request_t
typedef struct xcb_xvmc_destroy_context_request_t {
xcb_xvmc_context_t context_id;
} xcb_xvmc_destroy_context_request_t;
* @brief xcb_xvmc_create_surface_cookie_t
typedef struct xcb_xvmc_create_surface_cookie_t {
} xcb_xvmc_create_surface_cookie_t;
/** Opcode for xcb_xvmc_create_surface. */
#define XCB_XVMC_CREATE_SURFACE 4
* @brief xcb_xvmc_create_surface_request_t
typedef struct xcb_xvmc_create_surface_request_t {
xcb_xvmc_surface_t surface_id;
xcb_xvmc_context_t context_id;
} xcb_xvmc_create_surface_request_t;
* @brief xcb_xvmc_create_surface_reply_t
typedef struct xcb_xvmc_create_surface_reply_t {
} xcb_xvmc_create_surface_reply_t;
/** Opcode for xcb_xvmc_destroy_surface. */
#define XCB_XVMC_DESTROY_SURFACE 5
* @brief xcb_xvmc_destroy_surface_request_t
typedef struct xcb_xvmc_destroy_surface_request_t {
xcb_xvmc_surface_t surface_id;
} xcb_xvmc_destroy_surface_request_t;
* @brief xcb_xvmc_create_subpicture_cookie_t
typedef struct xcb_xvmc_create_subpicture_cookie_t {
} xcb_xvmc_create_subpicture_cookie_t;
/** Opcode for xcb_xvmc_create_subpicture. */
#define XCB_XVMC_CREATE_SUBPICTURE 6
* @brief xcb_xvmc_create_subpicture_request_t
typedef struct xcb_xvmc_create_subpicture_request_t {
xcb_xvmc_subpicture_t subpicture_id;
xcb_xvmc_context_t context;
} xcb_xvmc_create_subpicture_request_t;
* @brief xcb_xvmc_create_subpicture_reply_t
typedef struct xcb_xvmc_create_subpicture_reply_t {
uint16_t num_palette_entries;
uint8_t component_order[4];
} xcb_xvmc_create_subpicture_reply_t;
/** Opcode for xcb_xvmc_destroy_subpicture. */
#define XCB_XVMC_DESTROY_SUBPICTURE 7
* @brief xcb_xvmc_destroy_subpicture_request_t
typedef struct xcb_xvmc_destroy_subpicture_request_t {
xcb_xvmc_subpicture_t subpicture_id;
} xcb_xvmc_destroy_subpicture_request_t;
* @brief xcb_xvmc_list_subpicture_types_cookie_t
typedef struct xcb_xvmc_list_subpicture_types_cookie_t {
} xcb_xvmc_list_subpicture_types_cookie_t;
/** Opcode for xcb_xvmc_list_subpicture_types. */
#define XCB_XVMC_LIST_SUBPICTURE_TYPES 8
* @brief xcb_xvmc_list_subpicture_types_request_t
typedef struct xcb_xvmc_list_subpicture_types_request_t {
xcb_xvmc_surface_t surface_id;
} xcb_xvmc_list_subpicture_types_request_t;
* @brief xcb_xvmc_list_subpicture_types_reply_t
typedef struct xcb_xvmc_list_subpicture_types_reply_t {
} xcb_xvmc_list_subpicture_types_reply_t;
* Get the next element of the iterator
* @param i Pointer to a xcb_xvmc_context_iterator_t
* Get the next element in the iterator. The member rem is
* decreased by one. The member data points to the next
* element. The member index is increased by sizeof(xcb_xvmc_context_t)
xcb_xvmc_context_next (xcb_xvmc_context_iterator_t *i);
* Return the iterator pointing to the last element
* @param i An xcb_xvmc_context_iterator_t
* @return The iterator pointing to the last element
* Set the current element in the iterator to the last element.
* The member rem is set to 0. The member data points to the
xcb_xvmc_context_end (xcb_xvmc_context_iterator_t i);
* Get the next element of the iterator
* @param i Pointer to a xcb_xvmc_surface_iterator_t
* Get the next element in the iterator. The member rem is
* decreased by one. The member data points to the next
* element. The member index is increased by sizeof(xcb_xvmc_surface_t)
xcb_xvmc_surface_next (xcb_xvmc_surface_iterator_t *i);
* Return the iterator pointing to the last element
* @param i An xcb_xvmc_surface_iterator_t
* @return The iterator pointing to the last element
* Set the current element in the iterator to the last element.
* The member rem is set to 0. The member data points to the
xcb_xvmc_surface_end (xcb_xvmc_surface_iterator_t i);
* Get the next element of the iterator
* @param i Pointer to a xcb_xvmc_subpicture_iterator_t
* Get the next element in the iterator. The member rem is
* decreased by one. The member data points to the next
* element. The member index is increased by sizeof(xcb_xvmc_subpicture_t)
xcb_xvmc_subpicture_next (xcb_xvmc_subpicture_iterator_t *i);
* Return the iterator pointing to the last element
* @param i An xcb_xvmc_subpicture_iterator_t
* @return The iterator pointing to the last element
* Set the current element in the iterator to the last element.
* The member rem is set to 0. The member data points to the
xcb_xvmc_subpicture_end (xcb_xvmc_subpicture_iterator_t i);
* Get the next element of the iterator
* @param i Pointer to a xcb_xvmc_surface_info_iterator_t
* Get the next element in the iterator. The member rem is
* decreased by one. The member data points to the next
* element. The member index is increased by sizeof(xcb_xvmc_surface_info_t)
xcb_xvmc_surface_info_next (xcb_xvmc_surface_info_iterator_t *i);
* Return the iterator pointing to the last element
* @param i An xcb_xvmc_surface_info_iterator_t
* @return The iterator pointing to the last element
* Set the current element in the iterator to the last element.
* The member rem is set to 0. The member data points to the
xcb_xvmc_surface_info_end (xcb_xvmc_surface_info_iterator_t i);
* @param c The connection
* Delivers a request to the X server.
xcb_xvmc_query_version_cookie_t
xcb_xvmc_query_version (xcb_connection_t *c);
* @param c The connection
* Delivers a request to the X server.
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
xcb_xvmc_query_version_cookie_t
xcb_xvmc_query_version_unchecked (xcb_connection_t *c);
* @param c The connection
* @param cookie The cookie
* @param e The xcb_generic_error_t supplied
* Returns the reply of the request asked by
* The parameter @p e supplied to this function must be NULL if
* xcb_xvmc_query_version_unchecked(). is used.
* Otherwise, it stores the error if any.
* The returned value must be freed by the caller using free().
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);
xcb_xvmc_list_surface_types_sizeof (const void *_buffer);
* @param c The connection
* Delivers a request to the X server.
xcb_xvmc_list_surface_types_cookie_t
xcb_xvmc_list_surface_types (xcb_connection_t *c,
* @param c The connection
* Delivers a request to the X server.
* This form can be used only if the request will cause
* a reply to be generated. Any returned error will be
* placed in the event queue.
xcb_xvmc_list_surface_types_cookie_t
xcb_xvmc_list_surface_types_unchecked (xcb_connection_t *c,
xcb_xvmc_surface_info_t *
xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R);
xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R);