xcb_xvmc_create_subpicture(3)
๐ฆ xcb_xvmc_create_subpicture ๐ฆ
okay bestie, welcome to the libxcb corner of the X universe ๐ this one's a request page for xcb_xvmc_create_subpicture โ yes, the X-Video Motion Compensation subpicture saga, and yes, it's giving "the docs said TODO and I said ok bestie same". let's go โจ
โจ NAME โจ
xcb_xvmc_create_subpicture โ and that's genuinely it, the description line is empty in the original, no cap ๐
๐ธ SYNOPSIS ๐ธ
first things first, you gotta pull in the header:
#include <xcb/xvmc.h>
๐ Request function ๐
xcb_xvmc_create_subpicture_cookie_t
xcb_xvmc_create_subpicture(xcb_connection_t *conn,
xcb_xvmc_subpicture_t subpicture_id, xcb_xvmc_context_t context,
uint32_t xvimage_id, uint16_t width, uint16_t height);
๐ Reply datastructure ๐
typedef struct xcb_xvmc_create_subpicture_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t width_actual;
uint16_t height_actual;
uint16_t num_palette_entries;
uint16_t entry_bytes;
uint8_t component_order[4];
uint8_t pad1[12];
} xcb_xvmc_create_subpicture_reply_t;
๐ Reply function ๐
xcb_xvmc_create_subpicture_reply_t
*xcb_xvmc_create_subpicture_reply(xcb_connection_t *conn,
xcb_xvmc_create_subpicture_cookie_t cookie,
xcb_generic_error_t **e);
๐ Reply accessors ๐
uint32_t *xcb_xvmc_create_subpicture_priv_data(const
xcb_xvmc_create_subpicture_request_t *reply);
int xcb_xvmc_create_subpicture_priv_data_length(const
xcb_xvmc_create_subpicture_reply_t *reply);
xcb_generic_iterator_t xcb_xvmc_create_subpicture_priv_data_end(const
xcb_xvmc_create_subpicture_reply_t *reply);
๐ REQUEST ARGUMENTS ๐
connโ the XCB connection to X11. your whole link to the server, your main character wire ๐subpicture_idโTODO: NOT YET DOCUMENTED.yeah. the original literally says that. we don't know, bestie ๐contextโTODO: NOT YET DOCUMENTED.again ๐ญxvimage_idโTODO: NOT YET DOCUMENTED.the streak continues ๐widthโTODO: NOT YET DOCUMENTED.they really left us on read ๐ซถheightโTODO: NOT YET DOCUMENTED.and that's the last one โจ
๐ REPLY FIELDS ๐
response_typeโ the type of this reply, and in this case it'sXCB_XVMC_CREATE_SUBPICTURE. this field is also present in thexcb_generic_reply_tand you can use it to tell replies apart from each other. it's the little name tag at the party ๐sequenceโ the sequence number of the last request processed by the X11 server. lowkey the receipts of what got done last ๐lengthโ the length of the reply, in words (a word is 4 bytes). so like, do the math, 4 bytes per word, periodt ๐งฎwidth_actualโTODO: NOT YET DOCUMENTED.the actual width, allegedly, but nobody wrote it down ๐height_actualโTODO: NOT YET DOCUMENTED.same energy ๐ญnum_palette_entriesโTODO: NOT YET DOCUMENTED.๐จ mysteryentry_bytesโTODO: NOT YET DOCUMENTED.bytes of what bestie, bytes of WHAT ๐ฉcomponent_orderโTODO: NOT YET DOCUMENTED.it's an array of 4, that's all we get โจ
๐ DESCRIPTION ๐
so... the DESCRIPTION section in the original is completely empty. like, nothing. zero words. a whole heading and then the void stared back ๐ณ๏ธ that's the vibe, and I'm not gonna make stuff up to fill it, because that would be lying to you and I would never ๐
๐ซถ RETURN VALUE ๐ซถ
returns an xcb_xvmc_create_subpicture_cookie_t ๐ช yes, a cookie. errors have to be handled when calling the reply function xcb_xvmc_create_subpicture_reply.
if you'd rather handle errors in the event loop instead, use xcb_xvmc_create_subpicture_unchecked. see xcb-requests(3) for details โ go read it, iykyk ๐
๐ ERRORS ๐
this request does never generate any errors. not one. zero. she's unproblematic, she's the moment, she could never ๐
โญ SEE ALSO โญ
okay so this section is empty in the original too โ no references listed, nothing to see, no links to follow. that's it, that's the section ๐ฆ
๐ AUTHOR ๐
generated from xvmc.xml. contact xcb@lists.freedesktop.org for corrections and improvements.
friendly reminder bestie: everything above is exactly what the original says โ including every TODO: NOT YET DOCUMENTED. โ I did not invent behaviour, I just gave it a glow-up โจ
okay that's the whole page, and as a lil sign-off: this beauty comes from X Version 11, libxcb 1.17.0, and it's the xcb_xvmc_create_subpicture(3) manual page ๐ slay, go create some subpictures, and don't forget to call the reply function or your cookie just sits there ๐ชโจ
๐ฆ 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