xcb_xv_query_encodings(3)
β¨ xcb_xv_query_encodings π
okay so bestie, welcome to the XCB Requests corner of the universe, where we ask the X server politely about stuff and it answers in structs π¦. This one is xcb_xv_query_encodings β the Xv (that's X Video, the thing that makes your video players go brrr) request that goes and asks the server what video encodings are even available. iykyk. π
πΈ NAME πΈ
xcb_xv_query_encodings β she queries the encodings, no cap, that's literally it π
β¨ SYNOPSIS β¨
First things first, you gotta invite her in:
#include <xcb/xv.h>
π«Ά Request function
xcb_xv_query_encodings_cookie_t
xcb_xv_query_encodings(xcb_connection_t *conn,
xcb_xv_port_t port);
π Reply datastructure
typedef struct xcb_xv_query_encodings_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t num_encodings;
uint8_t pad1[22];
} xcb_xv_query_encodings_reply_t;
π¦ Reply function
xcb_xv_query_encodings_reply_t
*xcb_xv_query_encodings_reply(xcb_connection_t *conn,
xcb_xv_query_encodings_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors
int xcb_xv_query_encodings_info_length(const
xcb_xv_query_encodings_reply_t *reply);
xcb_xv_encoding_info_iterator_t
xcb_xv_query_encodings_info_iterator(const
xcb_xv_query_encodings_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, she's the main character here β¨portβ TODO: NOT YET DOCUMENTED. yeah bestie, even the manpage is like "idk her" π the docs just never got written for this one, no cap
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_XV_QUERY_ENCODINGS. lowkey iconic because this exact field also lives inxcb_generic_reply_t, so you can use it to tell replies apart from each other when they're all showing up at the function πsequenceβ the sequence number of the last request processed by the X11 server. it's giving "receipt number" π§Ύlengthβ the length of the reply, measured in words. and heads up, a word here is 4 bytes, not whatever your English teacher said πnum_encodingsβ TODO: NOT YET DOCUMENTED. again!! the docs really said "we'll do it later" and then never did π
β DESCRIPTION β
(no description in the original β she's mysterious, she's aloof, she says nothing and looks pretty π)
π RETURN VALUE π
She hands you back an xcb_xv_query_encodings_cookie_t πͺ. That's your little voucher, your claim ticket, your "come back later and I'll have your answer ready" slip.
But listen β errors have to be handled when you call the reply function xcb_xv_query_encodings_reply. You don't get to skip that part, bestie, that's the whole deal.
If you'd rather handle errors in the event loop instead, use xcb_xv_query_encodings_unchecked β she's the chaotic, no-safety-net version π₯. See xcb-requests(3) for all the details on how that works.
π ERRORS π
This request does never generate any errors. periodt. zero drama, zero problems, she simply does not miss. π β¨
π SEE ALSO π
(nothing listed in the original β the see-also section is empty, so like... go look at literally anything else, queen π)
πΈ AUTHOR πΈ
Generated from xv.xml. If something's wrong or you wanna make it better, contact xcb@lists.freedesktop.org for corrections and improvements. they're literally waiting for your email π«Ά
and that's the whole page bestie!! π this one came to you straight out of X Version 11 with libxcb 1.17.0 energy, from your favorite manual page for xcb_xv_query_encodings(3) β go forth and query those encodings, you've got this ππ¦β¨
π¦ 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