xcb_xv_get_video(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_xv_get_video β€” the manual page, but make it a group chat πŸ’–

okay so bestie, you know xcb_xv_get_video? It's a request function from XCB Requests (that's the manual it lives in, in case you were wondering who let it out of the house), and it's part of libxcb. Sit down, hydrate, and let's get into it. 🫢


✨ NAME ✨

xcb_xv_get_video β€” and that's literally it. The original page leaves it blank after the dash, no cap. No description in the NAME line. Just vibes. πŸŽ€


🌸 SYNOPSIS 🌸

First things first, you gotta bring in the header:

#include <xcb/xv.h>

πŸ¦‹ Request function πŸ¦‹

xcb_void_cookie_t xcb_xv_get_video(xcb_connection_t *conn,
       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);

look at all those arguments. twelve of them. it's giving main character energy, honestly. πŸ’…


πŸŽ€ REQUEST ARGUMENTS πŸŽ€

  • conn β€” the XCB connection to X11. your little hotline to the server, bestie. πŸ’œ
  • port β€” TODO: NOT YET DOCUMENTED. (not me being left on read by the docs 😭)
  • drawable β€” TODO: NOT YET DOCUMENTED.
  • gc β€” TODO: NOT YET DOCUMENTED.
  • vid_x β€” TODO: NOT YET DOCUMENTED.
  • vid_y β€” TODO: NOT YET DOCUMENTED.
  • vid_w β€” TODO: NOT YET DOCUMENTED.
  • vid_h β€” TODO: NOT YET DOCUMENTED.
  • drw_x β€” TODO: NOT YET DOCUMENTED.
  • drw_y β€” TODO: NOT YET DOCUMENTED.
  • drw_w β€” TODO: NOT YET DOCUMENTED.
  • drw_h β€” TODO: NOT YET DOCUMENTED.
ngl the docs really said "figure it out yourself ✨" for basically every single argument here. I'm not gonna make stuff up β€” the original says NOT YET DOCUMENTED, so that's exactly what I'm telling you. fr fr.

πŸ’… DESCRIPTION πŸ’…

...yeah. There isn't one. The DESCRIPTION section is just empty in the original. Nothing. A whole section with zero words. It's giving "ghosted by the manpage". πŸ’€


🌈 RETURN VALUE 🌈

So it hands you back an xcb_void_cookie_t. The whole thing about errors? If there are any, you have to deal with them in the event loop, bestie. That's the assignment. πŸ‘‘

But wait β€” if you'd rather handle errors directly with xcb_request_check instead, then use xcb_xv_get_video_checked and it'll sort you out. Peep xcb-requests(3) for the full tea. ⭐


πŸ”₯ ERRORS πŸ”₯

Iconic behaviour honestly: this request does never generate any errors. Zero. None. Not a single one. Slay. ✨


🧚 SEE ALSO 🧚

Nothing here. The original lists no references at all. Empty section, empty heart. πŸ“


πŸ‘‘ AUTHOR πŸ‘‘

Generated from xv.xml. And if you spot something that needs fixing or improving, hit up xcb@lists.freedesktop.org β€” they're the ones who take corrections. πŸ’–


and that's the whole page, bestie!! hope that made sense πŸ¦‹ this was xcb_xv_get_video(3), from X Version 11, libxcb 1.17.0 β€” those are the source and version flexing at the bottom of the original, so I'm passing the crown to them. mwah πŸ’‹ go forth and request responsibly. 🌸✨