xcb_xvmc_create_context(3)
π xcb_xvmc_create_context
okay so bestie, welcome to section 3 of the manual β this is the XCB Requests girlies, and today's main character is xcb_xvmc_create_context. she's the one who sets up an XvMC context for you, and honestly? she's giving quiet-luxury utility. no cap.
β¨ NAME β¨
xcb_xvmc_create_context β creates an XvMC context over XCB. (the original page's name line is just vibes and blank space, so we're keeping it real: it's the create-context request, periodt.)
π SYNOPSIS π
first things first, you gotta pull in the header:
#include <xcb/xvmc.h>
π¦ Request function
xcb_xvmc_create_context_cookie_t
xcb_xvmc_create_context(xcb_connection_t *conn,
xcb_xvmc_context_t context_id, xcb_xv_port_t port_id,
xcb_xvmc_surface_t surface_id, uint16_t width, uint16_t height,
uint32_t flags);
π¦ Reply datastructure
typedef struct xcb_xvmc_create_context_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t width_actual;
uint16_t height_actual;
uint32_t flags_return;
uint8_t pad1[20];
} xcb_xvmc_create_context_reply_t;
π¦ Reply function
xcb_xvmc_create_context_reply_t
*xcb_xvmc_create_context_reply(xcb_connection_t *conn,
xcb_xvmc_create_context_cookie_t cookie,
xcb_generic_error_t **e);
π¦ Reply accessors
uint32_t *xcb_xvmc_create_context_priv_data(const
xcb_xvmc_create_context_request_t *reply);
int xcb_xvmc_create_context_priv_data_length(const
xcb_xvmc_create_context_reply_t *reply);
xcb_generic_iterator_t xcb_xvmc_create_context_priv_data_end(const
xcb_xvmc_create_context_reply_t *reply);
πΈ REQUEST ARGUMENTS πΈ
connβ your XCB connection to X11. the whole pipeline, the moment, the lifeline fr.context_idβ TODO: NOT YET DOCUMENTED. not me leaving this blank β the docs really said "mystery" πport_idβ TODO: NOT YET DOCUMENTED. also a mystery box.surface_idβ TODO: NOT YET DOCUMENTED. the silence is loud.widthβ TODO: NOT YET DOCUMENTED. unknown, iconic, mysterious.heightβ TODO: NOT YET DOCUMENTED. same energy.flagsβ TODO: NOT YET DOCUMENTED. undocumented and unbothered.
bestie these are literally marked TODO: NOT YET DOCUMENTED. in the source. i'm not making stuff up, i'm just being honest about the void π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_XVMC_CREATE_CONTEXT. this field is also chillin' in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. vibe check: passed.sequenceβ the sequence number of the last request processed by the X11 server. the receipts, basically.lengthβ the length of the reply, in words (a word is 4 bytes, bestie, write that down).width_actualβ TODO: NOT YET DOCUMENTED. once again, a mystery.height_actualβ TODO: NOT YET DOCUMENTED. the plot thickens (it does not).flags_returnβ TODO: NOT YET DOCUMENTED. we simply do not know.
π§ DESCRIPTION π§
okay soβ¦ there's literally nothing here. the DESCRIPTION section is empty. no thoughts, head empty, slay β¨
β RETURN VALUE β
- Returns an
xcb_xvmc_create_context_cookie_t. that's your little ticket, your receipt for the future. - Errors have to be handled when calling the reply function
xcb_xvmc_create_context_reply. - If you want to handle errors in the event loop instead, use
xcb_xvmc_create_context_unchecked. seexcb-requests(3)for details β iykyk.
π₯ ERRORS π₯
This request does never generate any errors. zero drama, zero chaos, we love a low-maintenance queen π
π SEE ALSO π
nothing listed. the cross-references said "i'm out". we move.
π AUTHOR π
Generated from xvmc.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. they're literally asking for your feedback bestie, go be a helpful icon π«Ά
and that's the whole page, babe. this came to you from X Version 11, rocking libxcb 1.17.0, and yes, the name on the tin is xcb_xvmc_create_context(3). go make some contexts, you absolute legend πβ¨π
π¦ 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