xcb_xv_query_image_attributes(3)
β¨ NAME β¨
xcb_xv_query_image_attributes β bestie it's an XCB request, and the description slot is literally empty, so likeβ¦ that's the whole name, no cap π
It lives in section 3 of the manual (xcb_xv_query_image_attributes(3)), under the XCB Requests umbrella. π¦
πΈ SYNOPSIS πΈ
okay so first things first, you gotta pull in the header:
#include <xcb/xv.h>
π Request function
xcb_xv_query_image_attributes_cookie_t
xcb_xv_query_image_attributes(xcb_connection_t *conn,
xcb_xv_port_t port, uint32_t id, uint16_t width,
uint16_t height);
π Reply datastructure
typedef struct xcb_xv_query_image_attributes_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_planes;
uint32_t data_size;
uint16_t width;
uint16_t height;
uint8_t pad1[12];
} xcb_xv_query_image_attributes_reply_t;
π§ Reply function
xcb_xv_query_image_attributes_reply_t
*xcb_xv_query_image_attributes_reply(xcb_connection_t *conn,
xcb_xv_query_image_attributes_cookie_t cookie,
xcb_generic_error_t **e);
π«Ά Reply accessors
uint32_t *xcb_xv_query_image_attributes_pitches(const
xcb_xv_query_image_attributes_request_t *reply);
int xcb_xv_query_image_attributes_pitches_length(const
xcb_xv_query_image_attributes_reply_t *reply);
xcb_generic_iterator_t xcb_xv_query_image_attributes_pitches_end(const
xcb_xv_query_image_attributes_reply_t *reply);
uint32_t *xcb_xv_query_image_attributes_offsets(const
xcb_xv_query_image_attributes_request_t *reply);
int xcb_xv_query_image_attributes_offsets_length(const
xcb_xv_query_image_attributes_reply_t *reply);
xcb_generic_iterator_t xcb_xv_query_image_attributes_offsets_end(const
xcb_xv_query_image_attributes_reply_t *reply);
not me noticing thepitchesandoffsetsaccessors take anxcb_xv_query_image_attributes_request_t *replywhile their_lengthand_endbesties take thexcb_xv_query_image_attributes_reply_t *replyπ that's just how it is, don't touch it, copy it character for character fr fr
π₯ REQUEST ARGUMENTS π₯
connβ the XCB connection to X11, your lil hotline to the server πportβ TODO: NOT YET DOCUMENTED. yeah bestie the docs simply did not show up to the function πidβ TODO: NOT YET DOCUMENTED. same vibe, empty slot πwidthβ TODO: NOT YET DOCUMENTED. nothing here either πheightβ TODO: NOT YET DOCUMENTED. and that's the whole list, all mysterious β¨
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_XV_QUERY_IMAGE_ATTRIBUTES. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other π¦sequenceβ the sequence number of the last request processed by the X11 server, lowkey the server's lil timestamp for your request πlengthβ the length of the reply, in words. and yes a word is 4 bytes, write that down πnum_planesβ TODO: NOT YET DOCUMENTED. undocumented, iconic behaviour πdata_sizeβ TODO: NOT YET DOCUMENTED. also a mystery πwidthβ TODO: NOT YET DOCUMENTED. yeah. again. πheightβ TODO: NOT YET DOCUMENTED. we love a fully blank field set π«Ά
π DESCRIPTION π
this section is empty in the original. literally nothing. the description has no description. that's the vibe. π
β RETURN VALUE β
You get back an xcb_xv_query_image_attributes_cookie_t πͺ β adorable, I know.
Errors have to be handled when you call the reply function, xcb_xv_query_image_attributes_reply.
And if you'd rather handle errors in the event loop instead? Then use xcb_xv_query_image_attributes_unchecked. see xcb-requests(3) for the deets, bestie π
π ERRORS π
This request does never generate any errors. zero. none. clean run, slay β¨
πΈ SEE ALSO πΈ
nothing listed here in the original β the section's just vibing with an empty guest list π
π¦ AUTHOR π¦
Generated from xv.xml. Contact xcb@lists.freedesktop.org for corrections and improvements π
and that's the whole page, bestie!! π this one came from X Version 11, libxcb 1.17.0, and it's xcb_xv_query_image_attributes(3) β go query those image attributes, you absolute main character ππβ¨
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms