diff options
author | marha <marha@users.sourceforge.net> | 2009-07-25 11:41:54 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-07-25 11:41:54 +0000 |
commit | 1204cba5d6dbdfc8fc31cb7c4a4e467b9c55fc48 (patch) | |
tree | 54f50dac14b7b1e158ba7e18fc87d84455970910 /libxcb/src/xv.c | |
parent | 12fa8ee5d6535841f016c03c07f1d5cfc54513b0 (diff) | |
parent | 1dad159fe09ac3a88b21b98544880e5ecc0e8d54 (diff) | |
download | vcxsrv-1204cba5d6dbdfc8fc31cb7c4a4e467b9c55fc48.tar.gz vcxsrv-1204cba5d6dbdfc8fc31cb7c4a4e467b9c55fc48.tar.bz2 vcxsrv-1204cba5d6dbdfc8fc31cb7c4a4e467b9c55fc48.zip |
svn merge file:///D:/svnrepos/vcxsrv/branches/released .
Diffstat (limited to 'libxcb/src/xv.c')
-rw-r--r-- | libxcb/src/xv.c | 3129 |
1 files changed, 0 insertions, 3129 deletions
diff --git a/libxcb/src/xv.c b/libxcb/src/xv.c deleted file mode 100644 index 8a12dea6e..000000000 --- a/libxcb/src/xv.c +++ /dev/null @@ -1,3129 +0,0 @@ -/* - * This file generated automatically from xv.xml by c-client.xsl using XSLT. - * Edit at your peril. - */ - -#include <assert.h> -#include "xcbext.h" -#include "xv.h" - -xcb_extension_t xcb_xv_id = { "XVideo" }; - - -/***************************************************************************** - ** - ** void xcb_xv_port_next - ** - ** @param xcb_xv_port_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_port_next (xcb_xv_port_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_port_t); -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_port_end - ** - ** @param xcb_xv_port_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_port_end (xcb_xv_port_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - - -/***************************************************************************** - ** - ** void xcb_xv_encoding_next - ** - ** @param xcb_xv_encoding_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_encoding_next (xcb_xv_encoding_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_encoding_t); -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_encoding_end - ** - ** @param xcb_xv_encoding_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_encoding_end (xcb_xv_encoding_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - - -/***************************************************************************** - ** - ** void xcb_xv_rational_next - ** - ** @param xcb_xv_rational_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_rational_next (xcb_xv_rational_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_rational_t); -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_rational_end - ** - ** @param xcb_xv_rational_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_rational_end (xcb_xv_rational_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - - -/***************************************************************************** - ** - ** char * xcb_xv_adaptor_info_name - ** - ** @param const xcb_xv_adaptor_info_t *R - ** @returns char * - ** - *****************************************************************************/ - -char * -xcb_xv_adaptor_info_name (const xcb_xv_adaptor_info_t *R /**< */) -{ - return (char *) (R + 1); -} - - -/***************************************************************************** - ** - ** int xcb_xv_adaptor_info_name_length - ** - ** @param const xcb_xv_adaptor_info_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_adaptor_info_name_length (const xcb_xv_adaptor_info_t *R /**< */) -{ - return R->name_size; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_adaptor_info_name_end - ** - ** @param const xcb_xv_adaptor_info_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_adaptor_info_name_end (const xcb_xv_adaptor_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** xcb_xv_format_t * xcb_xv_adaptor_info_formats - ** - ** @param const xcb_xv_adaptor_info_t *R - ** @returns xcb_xv_format_t * - ** - *****************************************************************************/ - -xcb_xv_format_t * -xcb_xv_adaptor_info_formats (const xcb_xv_adaptor_info_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_adaptor_info_name_end(R); - return (xcb_xv_format_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xv_format_t, prev.index)); -} - - -/***************************************************************************** - ** - ** int xcb_xv_adaptor_info_formats_length - ** - ** @param const xcb_xv_adaptor_info_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_adaptor_info_formats_length (const xcb_xv_adaptor_info_t *R /**< */) -{ - return R->num_formats; -} - - -/***************************************************************************** - ** - ** xcb_xv_format_iterator_t xcb_xv_adaptor_info_formats_iterator - ** - ** @param const xcb_xv_adaptor_info_t *R - ** @returns xcb_xv_format_iterator_t - ** - *****************************************************************************/ - -xcb_xv_format_iterator_t -xcb_xv_adaptor_info_formats_iterator (const xcb_xv_adaptor_info_t *R /**< */) -{ - xcb_xv_format_iterator_t i; - xcb_generic_iterator_t prev = xcb_xv_adaptor_info_name_end(R); - i.data = (xcb_xv_format_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_xv_format_t, prev.index)); - i.rem = R->num_formats; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** void xcb_xv_adaptor_info_next - ** - ** @param xcb_xv_adaptor_info_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_adaptor_info_next (xcb_xv_adaptor_info_iterator_t *i /**< */) -{ - xcb_xv_adaptor_info_t *R = i->data; - xcb_generic_iterator_t child = xcb_xv_format_end(xcb_xv_adaptor_info_formats_iterator(R)); - --i->rem; - i->data = (xcb_xv_adaptor_info_t *) child.data; - i->index = child.index; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_adaptor_info_end - ** - ** @param xcb_xv_adaptor_info_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_adaptor_info_end (xcb_xv_adaptor_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_adaptor_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - - -/***************************************************************************** - ** - ** char * xcb_xv_encoding_info_name - ** - ** @param const xcb_xv_encoding_info_t *R - ** @returns char * - ** - *****************************************************************************/ - -char * -xcb_xv_encoding_info_name (const xcb_xv_encoding_info_t *R /**< */) -{ - return (char *) (R + 1); -} - - -/***************************************************************************** - ** - ** int xcb_xv_encoding_info_name_length - ** - ** @param const xcb_xv_encoding_info_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_encoding_info_name_length (const xcb_xv_encoding_info_t *R /**< */) -{ - return R->name_size; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_encoding_info_name_end - ** - ** @param const xcb_xv_encoding_info_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_encoding_info_name_end (const xcb_xv_encoding_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->name_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** void xcb_xv_encoding_info_next - ** - ** @param xcb_xv_encoding_info_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_encoding_info_next (xcb_xv_encoding_info_iterator_t *i /**< */) -{ - xcb_xv_encoding_info_t *R = i->data; - xcb_generic_iterator_t child = xcb_xv_encoding_info_name_end(R); - --i->rem; - i->data = (xcb_xv_encoding_info_t *) child.data; - i->index = child.index; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_encoding_info_end - ** - ** @param xcb_xv_encoding_info_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_encoding_info_end (xcb_xv_encoding_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_encoding_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - - -/***************************************************************************** - ** - ** void xcb_xv_format_next - ** - ** @param xcb_xv_format_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_format_next (xcb_xv_format_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_format_t); -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_format_end - ** - ** @param xcb_xv_format_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_format_end (xcb_xv_format_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - - -/***************************************************************************** - ** - ** uint32_t * xcb_xv_image_pitches - ** - ** @param const xcb_xv_image_t *R - ** @returns uint32_t * - ** - *****************************************************************************/ - -uint32_t * -xcb_xv_image_pitches (const xcb_xv_image_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - - -/***************************************************************************** - ** - ** int xcb_xv_image_pitches_length - ** - ** @param const xcb_xv_image_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_image_pitches_length (const xcb_xv_image_t *R /**< */) -{ - return R->num_planes; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_image_pitches_end - ** - ** @param const xcb_xv_image_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_image_pitches_end (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** uint32_t * xcb_xv_image_offsets - ** - ** @param const xcb_xv_image_t *R - ** @returns uint32_t * - ** - *****************************************************************************/ - -uint32_t * -xcb_xv_image_offsets (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_image_pitches_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index)); -} - - -/***************************************************************************** - ** - ** int xcb_xv_image_offsets_length - ** - ** @param const xcb_xv_image_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_image_offsets_length (const xcb_xv_image_t *R /**< */) -{ - return R->num_planes; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_image_offsets_end - ** - ** @param const xcb_xv_image_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_image_offsets_end (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xv_image_pitches_end(R); - i.data = ((uint32_t *) child.data) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** uint8_t * xcb_xv_image_data - ** - ** @param const xcb_xv_image_t *R - ** @returns uint8_t * - ** - *****************************************************************************/ - -uint8_t * -xcb_xv_image_data (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_image_offsets_end(R); - return (uint8_t *) ((char *) prev.data + XCB_TYPE_PAD(uint8_t, prev.index)); -} - - -/***************************************************************************** - ** - ** int xcb_xv_image_data_length - ** - ** @param const xcb_xv_image_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_image_data_length (const xcb_xv_image_t *R /**< */) -{ - return R->data_size; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_image_data_end - ** - ** @param const xcb_xv_image_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_image_data_end (const xcb_xv_image_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xv_image_offsets_end(R); - i.data = ((uint8_t *) child.data) + (R->data_size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** void xcb_xv_image_next - ** - ** @param xcb_xv_image_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_image_next (xcb_xv_image_iterator_t *i /**< */) -{ - xcb_xv_image_t *R = i->data; - xcb_generic_iterator_t child = xcb_xv_image_data_end(R); - --i->rem; - i->data = (xcb_xv_image_t *) child.data; - i->index = child.index; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_image_end - ** - ** @param xcb_xv_image_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_image_end (xcb_xv_image_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_image_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - - -/***************************************************************************** - ** - ** char * xcb_xv_attribute_info_name - ** - ** @param const xcb_xv_attribute_info_t *R - ** @returns char * - ** - *****************************************************************************/ - -char * -xcb_xv_attribute_info_name (const xcb_xv_attribute_info_t *R /**< */) -{ - return (char *) (R + 1); -} - - -/***************************************************************************** - ** - ** int xcb_xv_attribute_info_name_length - ** - ** @param const xcb_xv_attribute_info_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_attribute_info_name_length (const xcb_xv_attribute_info_t *R /**< */) -{ - return R->size; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_attribute_info_name_end - ** - ** @param const xcb_xv_attribute_info_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_attribute_info_name_end (const xcb_xv_attribute_info_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->size); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** void xcb_xv_attribute_info_next - ** - ** @param xcb_xv_attribute_info_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_attribute_info_next (xcb_xv_attribute_info_iterator_t *i /**< */) -{ - xcb_xv_attribute_info_t *R = i->data; - xcb_generic_iterator_t child = xcb_xv_attribute_info_name_end(R); - --i->rem; - i->data = (xcb_xv_attribute_info_t *) child.data; - i->index = child.index; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_attribute_info_end - ** - ** @param xcb_xv_attribute_info_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_attribute_info_end (xcb_xv_attribute_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - while(i.rem > 0) - xcb_xv_attribute_info_next(&i); - ret.data = i.data; - ret.rem = i.rem; - ret.index = i.index; - return ret; -} - - -/***************************************************************************** - ** - ** void xcb_xv_image_format_info_next - ** - ** @param xcb_xv_image_format_info_iterator_t *i - ** @returns void - ** - *****************************************************************************/ - -void -xcb_xv_image_format_info_next (xcb_xv_image_format_info_iterator_t *i /**< */) -{ - --i->rem; - ++i->data; - i->index += sizeof(xcb_xv_image_format_info_t); -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_image_format_info_end - ** - ** @param xcb_xv_image_format_info_iterator_t i - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_image_format_info_end (xcb_xv_image_format_info_iterator_t i /**< */) -{ - xcb_generic_iterator_t ret; - ret.data = i.data + i.rem; - ret.index = i.index + ((char *) ret.data - (char *) i.data); - ret.rem = 0; - return ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_extension_cookie_t xcb_xv_query_extension - ** - ** @param xcb_connection_t *c - ** @returns xcb_xv_query_extension_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_extension_cookie_t -xcb_xv_query_extension (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_extension_cookie_t xcb_ret; - xcb_xv_query_extension_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_extension_cookie_t xcb_xv_query_extension_unchecked - ** - ** @param xcb_connection_t *c - ** @returns xcb_xv_query_extension_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_extension_cookie_t -xcb_xv_query_extension_unchecked (xcb_connection_t *c /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_EXTENSION, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_extension_cookie_t xcb_ret; - xcb_xv_query_extension_request_t xcb_out; - - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_extension_reply_t * xcb_xv_query_extension_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_query_extension_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_query_extension_reply_t * - ** - *****************************************************************************/ - -xcb_xv_query_extension_reply_t * -xcb_xv_query_extension_reply (xcb_connection_t *c /**< */, - xcb_xv_query_extension_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_extension_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_xv_query_adaptors_cookie_t xcb_xv_query_adaptors - ** - ** @param xcb_connection_t *c - ** @param xcb_window_t window - ** @returns xcb_xv_query_adaptors_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_adaptors_cookie_t -xcb_xv_query_adaptors (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ADAPTORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_adaptors_cookie_t xcb_ret; - xcb_xv_query_adaptors_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_adaptors_cookie_t xcb_xv_query_adaptors_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_window_t window - ** @returns xcb_xv_query_adaptors_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_adaptors_cookie_t -xcb_xv_query_adaptors_unchecked (xcb_connection_t *c /**< */, - xcb_window_t window /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ADAPTORS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_adaptors_cookie_t xcb_ret; - xcb_xv_query_adaptors_request_t xcb_out; - - xcb_out.window = window; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** int xcb_xv_query_adaptors_info_length - ** - ** @param const xcb_xv_query_adaptors_reply_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_query_adaptors_info_length (const xcb_xv_query_adaptors_reply_t *R /**< */) -{ - return R->num_adaptors; -} - - -/***************************************************************************** - ** - ** xcb_xv_adaptor_info_iterator_t xcb_xv_query_adaptors_info_iterator - ** - ** @param const xcb_xv_query_adaptors_reply_t *R - ** @returns xcb_xv_adaptor_info_iterator_t - ** - *****************************************************************************/ - -xcb_xv_adaptor_info_iterator_t -xcb_xv_query_adaptors_info_iterator (const xcb_xv_query_adaptors_reply_t *R /**< */) -{ - xcb_xv_adaptor_info_iterator_t i; - i.data = (xcb_xv_adaptor_info_t *) (R + 1); - i.rem = R->num_adaptors; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_adaptors_reply_t * xcb_xv_query_adaptors_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_query_adaptors_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_query_adaptors_reply_t * - ** - *****************************************************************************/ - -xcb_xv_query_adaptors_reply_t * -xcb_xv_query_adaptors_reply (xcb_connection_t *c /**< */, - xcb_xv_query_adaptors_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_adaptors_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_xv_query_encodings_cookie_t xcb_xv_query_encodings - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @returns xcb_xv_query_encodings_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_encodings_cookie_t -xcb_xv_query_encodings (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ENCODINGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_encodings_cookie_t xcb_ret; - xcb_xv_query_encodings_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_encodings_cookie_t xcb_xv_query_encodings_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @returns xcb_xv_query_encodings_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_encodings_cookie_t -xcb_xv_query_encodings_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_ENCODINGS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_encodings_cookie_t xcb_ret; - xcb_xv_query_encodings_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** int xcb_xv_query_encodings_info_length - ** - ** @param const xcb_xv_query_encodings_reply_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_query_encodings_info_length (const xcb_xv_query_encodings_reply_t *R /**< */) -{ - return R->num_encodings; -} - - -/***************************************************************************** - ** - ** xcb_xv_encoding_info_iterator_t xcb_xv_query_encodings_info_iterator - ** - ** @param const xcb_xv_query_encodings_reply_t *R - ** @returns xcb_xv_encoding_info_iterator_t - ** - *****************************************************************************/ - -xcb_xv_encoding_info_iterator_t -xcb_xv_query_encodings_info_iterator (const xcb_xv_query_encodings_reply_t *R /**< */) -{ - xcb_xv_encoding_info_iterator_t i; - i.data = (xcb_xv_encoding_info_t *) (R + 1); - i.rem = R->num_encodings; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_encodings_reply_t * xcb_xv_query_encodings_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_query_encodings_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_query_encodings_reply_t * - ** - *****************************************************************************/ - -xcb_xv_query_encodings_reply_t * -xcb_xv_query_encodings_reply (xcb_connection_t *c /**< */, - xcb_xv_query_encodings_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_encodings_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_xv_grab_port_cookie_t xcb_xv_grab_port - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_timestamp_t time - ** @returns xcb_xv_grab_port_cookie_t - ** - *****************************************************************************/ - -xcb_xv_grab_port_cookie_t -xcb_xv_grab_port (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GRAB_PORT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_grab_port_cookie_t xcb_ret; - xcb_xv_grab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_grab_port_cookie_t xcb_xv_grab_port_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_timestamp_t time - ** @returns xcb_xv_grab_port_cookie_t - ** - *****************************************************************************/ - -xcb_xv_grab_port_cookie_t -xcb_xv_grab_port_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GRAB_PORT, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_grab_port_cookie_t xcb_ret; - xcb_xv_grab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_grab_port_reply_t * xcb_xv_grab_port_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_grab_port_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_grab_port_reply_t * - ** - *****************************************************************************/ - -xcb_xv_grab_port_reply_t * -xcb_xv_grab_port_reply (xcb_connection_t *c /**< */, - xcb_xv_grab_port_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_grab_port_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_ungrab_port_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_timestamp_t time - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_ungrab_port_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_UNGRAB_PORT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_ungrab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_ungrab_port - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_timestamp_t time - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_ungrab_port (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_timestamp_t time /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_UNGRAB_PORT, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_ungrab_port_request_t xcb_out; - - xcb_out.port = port; - xcb_out.time = time; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_put_video_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_put_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_put_video - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_put_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_put_still_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_put_still_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_put_still - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_put_still (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_get_video_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_get_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_get_video - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_get_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_get_still_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_get_still_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_get_still - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param int16_t vid_x - ** @param int16_t vid_y - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_get_still (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - int16_t vid_x /**< */, - int16_t vid_y /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_STILL, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_get_still_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.vid_x = vid_x; - xcb_out.vid_y = vid_y; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_stop_video_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_stop_video_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_STOP_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_stop_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_stop_video - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_stop_video (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_STOP_VIDEO, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_stop_video_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_select_video_notify_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_drawable_t drawable - ** @param uint8_t onoff - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_select_video_notify_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_VIDEO_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_video_notify_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.onoff = onoff; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_select_video_notify - ** - ** @param xcb_connection_t *c - ** @param xcb_drawable_t drawable - ** @param uint8_t onoff - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_select_video_notify (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_VIDEO_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_video_notify_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.onoff = onoff; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_select_port_notify_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_drawable_t drawable - ** @param uint8_t onoff - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_select_port_notify_checked (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_PORT_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_port_notify_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.onoff = onoff; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_select_port_notify - ** - ** @param xcb_connection_t *c - ** @param xcb_drawable_t drawable - ** @param uint8_t onoff - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_select_port_notify (xcb_connection_t *c /**< */, - xcb_drawable_t drawable /**< */, - uint8_t onoff /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SELECT_PORT_NOTIFY, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_select_port_notify_request_t xcb_out; - - xcb_out.drawable = drawable; - xcb_out.onoff = onoff; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_best_size_cookie_t xcb_xv_query_best_size - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @param uint8_t motion - ** @returns xcb_xv_query_best_size_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_best_size_cookie_t -xcb_xv_query_best_size (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint8_t motion /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_BEST_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_best_size_cookie_t xcb_ret; - xcb_xv_query_best_size_request_t xcb_out; - - xcb_out.port = port; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.motion = motion; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_best_size_cookie_t xcb_xv_query_best_size_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param uint16_t vid_w - ** @param uint16_t vid_h - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @param uint8_t motion - ** @returns xcb_xv_query_best_size_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_best_size_cookie_t -xcb_xv_query_best_size_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint16_t vid_w /**< */, - uint16_t vid_h /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint8_t motion /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_BEST_SIZE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_best_size_cookie_t xcb_ret; - xcb_xv_query_best_size_request_t xcb_out; - - xcb_out.port = port; - xcb_out.vid_w = vid_w; - xcb_out.vid_h = vid_h; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.motion = motion; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_best_size_reply_t * xcb_xv_query_best_size_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_query_best_size_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_query_best_size_reply_t * - ** - *****************************************************************************/ - -xcb_xv_query_best_size_reply_t * -xcb_xv_query_best_size_reply (xcb_connection_t *c /**< */, - xcb_xv_query_best_size_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_best_size_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_set_port_attribute_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_atom_t attribute - ** @param int32_t value - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_set_port_attribute_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */, - int32_t value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SET_PORT_ATTRIBUTE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_set_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - xcb_out.value = value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_set_port_attribute - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_atom_t attribute - ** @param int32_t value - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_set_port_attribute (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */, - int32_t value /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SET_PORT_ATTRIBUTE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_set_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - xcb_out.value = value; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_get_port_attribute_cookie_t xcb_xv_get_port_attribute - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_atom_t attribute - ** @returns xcb_xv_get_port_attribute_cookie_t - ** - *****************************************************************************/ - -xcb_xv_get_port_attribute_cookie_t -xcb_xv_get_port_attribute (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_PORT_ATTRIBUTE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_get_port_attribute_cookie_t xcb_ret; - xcb_xv_get_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_get_port_attribute_cookie_t xcb_xv_get_port_attribute_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_atom_t attribute - ** @returns xcb_xv_get_port_attribute_cookie_t - ** - *****************************************************************************/ - -xcb_xv_get_port_attribute_cookie_t -xcb_xv_get_port_attribute_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_atom_t attribute /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_GET_PORT_ATTRIBUTE, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_get_port_attribute_cookie_t xcb_ret; - xcb_xv_get_port_attribute_request_t xcb_out; - - xcb_out.port = port; - xcb_out.attribute = attribute; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_get_port_attribute_reply_t * xcb_xv_get_port_attribute_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_get_port_attribute_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_get_port_attribute_reply_t * - ** - *****************************************************************************/ - -xcb_xv_get_port_attribute_reply_t * -xcb_xv_get_port_attribute_reply (xcb_connection_t *c /**< */, - xcb_xv_get_port_attribute_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_get_port_attribute_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_xv_query_port_attributes_cookie_t xcb_xv_query_port_attributes - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @returns xcb_xv_query_port_attributes_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_port_attributes_cookie_t -xcb_xv_query_port_attributes (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_PORT_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_port_attributes_cookie_t xcb_ret; - xcb_xv_query_port_attributes_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_port_attributes_cookie_t xcb_xv_query_port_attributes_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @returns xcb_xv_query_port_attributes_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_port_attributes_cookie_t -xcb_xv_query_port_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_PORT_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_port_attributes_cookie_t xcb_ret; - xcb_xv_query_port_attributes_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** int xcb_xv_query_port_attributes_attributes_length - ** - ** @param const xcb_xv_query_port_attributes_reply_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_query_port_attributes_attributes_length (const xcb_xv_query_port_attributes_reply_t *R /**< */) -{ - return R->num_attributes; -} - - -/***************************************************************************** - ** - ** xcb_xv_attribute_info_iterator_t xcb_xv_query_port_attributes_attributes_iterator - ** - ** @param const xcb_xv_query_port_attributes_reply_t *R - ** @returns xcb_xv_attribute_info_iterator_t - ** - *****************************************************************************/ - -xcb_xv_attribute_info_iterator_t -xcb_xv_query_port_attributes_attributes_iterator (const xcb_xv_query_port_attributes_reply_t *R /**< */) -{ - xcb_xv_attribute_info_iterator_t i; - i.data = (xcb_xv_attribute_info_t *) (R + 1); - i.rem = R->num_attributes; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_port_attributes_reply_t * xcb_xv_query_port_attributes_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_query_port_attributes_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_query_port_attributes_reply_t * - ** - *****************************************************************************/ - -xcb_xv_query_port_attributes_reply_t * -xcb_xv_query_port_attributes_reply (xcb_connection_t *c /**< */, - xcb_xv_query_port_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_port_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_xv_list_image_formats_cookie_t xcb_xv_list_image_formats - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @returns xcb_xv_list_image_formats_cookie_t - ** - *****************************************************************************/ - -xcb_xv_list_image_formats_cookie_t -xcb_xv_list_image_formats (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_LIST_IMAGE_FORMATS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_list_image_formats_cookie_t xcb_ret; - xcb_xv_list_image_formats_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_list_image_formats_cookie_t xcb_xv_list_image_formats_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @returns xcb_xv_list_image_formats_cookie_t - ** - *****************************************************************************/ - -xcb_xv_list_image_formats_cookie_t -xcb_xv_list_image_formats_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_LIST_IMAGE_FORMATS, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_list_image_formats_cookie_t xcb_ret; - xcb_xv_list_image_formats_request_t xcb_out; - - xcb_out.port = port; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** int xcb_xv_list_image_formats_format_length - ** - ** @param const xcb_xv_list_image_formats_reply_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_list_image_formats_format_length (const xcb_xv_list_image_formats_reply_t *R /**< */) -{ - return R->num_formats; -} - - -/***************************************************************************** - ** - ** xcb_xv_image_format_info_iterator_t xcb_xv_list_image_formats_format_iterator - ** - ** @param const xcb_xv_list_image_formats_reply_t *R - ** @returns xcb_xv_image_format_info_iterator_t - ** - *****************************************************************************/ - -xcb_xv_image_format_info_iterator_t -xcb_xv_list_image_formats_format_iterator (const xcb_xv_list_image_formats_reply_t *R /**< */) -{ - xcb_xv_image_format_info_iterator_t i; - i.data = (xcb_xv_image_format_info_t *) (R + 1); - i.rem = R->num_formats; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** xcb_xv_list_image_formats_reply_t * xcb_xv_list_image_formats_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_list_image_formats_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_list_image_formats_reply_t * - ** - *****************************************************************************/ - -xcb_xv_list_image_formats_reply_t * -xcb_xv_list_image_formats_reply (xcb_connection_t *c /**< */, - xcb_xv_list_image_formats_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_list_image_formats_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_xv_query_image_attributes_cookie_t xcb_xv_query_image_attributes - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param uint32_t id - ** @param uint16_t width - ** @param uint16_t height - ** @returns xcb_xv_query_image_attributes_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_image_attributes_cookie_t -xcb_xv_query_image_attributes (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint32_t id /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_IMAGE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_image_attributes_cookie_t xcb_ret; - xcb_xv_query_image_attributes_request_t xcb_out; - - xcb_out.port = port; - xcb_out.id = id; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_image_attributes_cookie_t xcb_xv_query_image_attributes_unchecked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param uint32_t id - ** @param uint16_t width - ** @param uint16_t height - ** @returns xcb_xv_query_image_attributes_cookie_t - ** - *****************************************************************************/ - -xcb_xv_query_image_attributes_cookie_t -xcb_xv_query_image_attributes_unchecked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - uint32_t id /**< */, - uint16_t width /**< */, - uint16_t height /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_QUERY_IMAGE_ATTRIBUTES, - /* isvoid */ 0 - }; - - struct iovec xcb_parts[4]; - xcb_xv_query_image_attributes_cookie_t xcb_ret; - xcb_xv_query_image_attributes_request_t xcb_out; - - xcb_out.port = port; - xcb_out.id = id; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** uint32_t * xcb_xv_query_image_attributes_pitches - ** - ** @param const xcb_xv_query_image_attributes_reply_t *R - ** @returns uint32_t * - ** - *****************************************************************************/ - -uint32_t * -xcb_xv_query_image_attributes_pitches (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - return (uint32_t *) (R + 1); -} - - -/***************************************************************************** - ** - ** int xcb_xv_query_image_attributes_pitches_length - ** - ** @param const xcb_xv_query_image_attributes_reply_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_query_image_attributes_pitches_length (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - return R->num_planes; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_query_image_attributes_pitches_end - ** - ** @param const xcb_xv_query_image_attributes_reply_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_query_image_attributes_pitches_end (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** uint32_t * xcb_xv_query_image_attributes_offsets - ** - ** @param const xcb_xv_query_image_attributes_reply_t *R - ** @returns uint32_t * - ** - *****************************************************************************/ - -uint32_t * -xcb_xv_query_image_attributes_offsets (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t prev = xcb_xv_query_image_attributes_pitches_end(R); - return (uint32_t *) ((char *) prev.data + XCB_TYPE_PAD(uint32_t, prev.index)); -} - - -/***************************************************************************** - ** - ** int xcb_xv_query_image_attributes_offsets_length - ** - ** @param const xcb_xv_query_image_attributes_reply_t *R - ** @returns int - ** - *****************************************************************************/ - -int -xcb_xv_query_image_attributes_offsets_length (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - return R->num_planes; -} - - -/***************************************************************************** - ** - ** xcb_generic_iterator_t xcb_xv_query_image_attributes_offsets_end - ** - ** @param const xcb_xv_query_image_attributes_reply_t *R - ** @returns xcb_generic_iterator_t - ** - *****************************************************************************/ - -xcb_generic_iterator_t -xcb_xv_query_image_attributes_offsets_end (const xcb_xv_query_image_attributes_reply_t *R /**< */) -{ - xcb_generic_iterator_t i; - xcb_generic_iterator_t child = xcb_xv_query_image_attributes_pitches_end(R); - i.data = ((uint32_t *) child.data) + (R->num_planes); - i.rem = 0; - i.index = (char *) i.data - (char *) R; - return i; -} - - -/***************************************************************************** - ** - ** xcb_xv_query_image_attributes_reply_t * xcb_xv_query_image_attributes_reply - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_query_image_attributes_cookie_t cookie - ** @param xcb_generic_error_t **e - ** @returns xcb_xv_query_image_attributes_reply_t * - ** - *****************************************************************************/ - -xcb_xv_query_image_attributes_reply_t * -xcb_xv_query_image_attributes_reply (xcb_connection_t *c /**< */, - xcb_xv_query_image_attributes_cookie_t cookie /**< */, - xcb_generic_error_t **e /**< */) -{ - return (xcb_xv_query_image_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_put_image_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param uint32_t id - ** @param int16_t src_x - ** @param int16_t src_y - ** @param uint16_t src_w - ** @param uint16_t src_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @param uint16_t width - ** @param uint16_t height - ** @param uint32_t data_len - ** @param const uint8_t *data - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_put_image_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t id /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.id = id; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_put_image - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param uint32_t id - ** @param int16_t src_x - ** @param int16_t src_y - ** @param uint16_t src_w - ** @param uint16_t src_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @param uint16_t width - ** @param uint16_t height - ** @param uint32_t data_len - ** @param const uint8_t *data - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_put_image (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - uint32_t id /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint32_t data_len /**< */, - const uint8_t *data /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 4, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[6]; - xcb_void_cookie_t xcb_ret; - xcb_xv_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.id = id; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_parts[4].iov_base = (char *) data; - xcb_parts[4].iov_len = data_len * sizeof(uint8_t); - xcb_parts[5].iov_base = 0; - xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_shm_put_image_checked - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param xcb_shm_seg_t shmseg - ** @param uint32_t id - ** @param uint32_t offset - ** @param int16_t src_x - ** @param int16_t src_y - ** @param uint16_t src_w - ** @param uint16_t src_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @param uint16_t width - ** @param uint16_t height - ** @param uint8_t send_event - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_shm_put_image_checked (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t id /**< */, - uint32_t offset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t send_event /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SHM_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_shm_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.shmseg = shmseg; - xcb_out.id = id; - xcb_out.offset = offset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.send_event = send_event; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - - -/***************************************************************************** - ** - ** xcb_void_cookie_t xcb_xv_shm_put_image - ** - ** @param xcb_connection_t *c - ** @param xcb_xv_port_t port - ** @param xcb_drawable_t drawable - ** @param xcb_gcontext_t gc - ** @param xcb_shm_seg_t shmseg - ** @param uint32_t id - ** @param uint32_t offset - ** @param int16_t src_x - ** @param int16_t src_y - ** @param uint16_t src_w - ** @param uint16_t src_h - ** @param int16_t drw_x - ** @param int16_t drw_y - ** @param uint16_t drw_w - ** @param uint16_t drw_h - ** @param uint16_t width - ** @param uint16_t height - ** @param uint8_t send_event - ** @returns xcb_void_cookie_t - ** - *****************************************************************************/ - -xcb_void_cookie_t -xcb_xv_shm_put_image (xcb_connection_t *c /**< */, - xcb_xv_port_t port /**< */, - xcb_drawable_t drawable /**< */, - xcb_gcontext_t gc /**< */, - xcb_shm_seg_t shmseg /**< */, - uint32_t id /**< */, - uint32_t offset /**< */, - int16_t src_x /**< */, - int16_t src_y /**< */, - uint16_t src_w /**< */, - uint16_t src_h /**< */, - int16_t drw_x /**< */, - int16_t drw_y /**< */, - uint16_t drw_w /**< */, - uint16_t drw_h /**< */, - uint16_t width /**< */, - uint16_t height /**< */, - uint8_t send_event /**< */) -{ - static const xcb_protocol_request_t xcb_req = { - /* count */ 2, - /* ext */ &xcb_xv_id, - /* opcode */ XCB_XV_SHM_PUT_IMAGE, - /* isvoid */ 1 - }; - - struct iovec xcb_parts[4]; - xcb_void_cookie_t xcb_ret; - xcb_xv_shm_put_image_request_t xcb_out; - - xcb_out.port = port; - xcb_out.drawable = drawable; - xcb_out.gc = gc; - xcb_out.shmseg = shmseg; - xcb_out.id = id; - xcb_out.offset = offset; - xcb_out.src_x = src_x; - xcb_out.src_y = src_y; - xcb_out.src_w = src_w; - xcb_out.src_h = src_h; - xcb_out.drw_x = drw_x; - xcb_out.drw_y = drw_y; - xcb_out.drw_w = drw_w; - xcb_out.drw_h = drw_h; - xcb_out.width = width; - xcb_out.height = height; - xcb_out.send_event = send_event; - - xcb_parts[2].iov_base = (char *) &xcb_out; - xcb_parts[2].iov_len = sizeof(xcb_out); - xcb_parts[3].iov_base = 0; - xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); - return xcb_ret; -} - |