XvQueryExtension(3)
π XvQueryExtension(3) π
okay bestie, welcome to the libXv Functions corner of the man page universe β¨ this one is called XvQueryExtension, and it's your lil' backstage pass to the Xv video extension β like, "hey girl, what version are you, what's your revision, and where do your requests/events/errors live?" that whole vibe π
πΈ NAME πΈ
XvQueryExtension β return version and release of extension π
β¨ SYNOPSIS β¨
#include <X11/extensions/Xvlib.h>
int XvQueryExtension(Display *dpy, unsigned int *p_version,
unsigned int *p_revision,
unsigned int *p_request_base,
unsigned int *p_event_base,
unsigned int *p_error_base);
π«Ά ARGUMENTS π«Ά
dpyβ the connection to the X server. your lil' hotline to the display, basically πp_versionβ a pointer to where the current version number of the Xv video extension gets written. she's holding a spot for it πp_revisionβ a pointer to where the revision number of the Xv video extension gets written. same deal, different number πp_request_baseβ a pointer to where the extension major request number is returned. that's where your request codes start counting from β¨p_event_baseβ a pointer to where the extension event base is returned. events start here, no cap πp_error_baseβ a pointer to where the extension error base is returned. and yes, errors have a home base too π
π« DESCRIPTION π«
so XvQueryExtension(3) returns the version and release numbers for the Xv video extension that's currently loaded on the system. literally just asking the extension "who are you and what era are you from" π¦
and that's not all β the extension major request number, the event base, and the error base are also returned. so you get the whole identity card, not just the face card π
π₯ RETURN VALUES π₯
[Success]β returned ifXvQueryExtension(3)completed successfully. we love a happy ending, periodt π[XvBadExtension]β returned if the Xv video extension is not available for the named display. big sad, the extension ghosted you π
ngl, if you get XvBadExtension it's giving "this display doesn't have Xv, bestie" β no extension, no vibes, no nothing π
π SEE ALSO π
Xv(3)β go read the main character's page, iykyk π
and that's the whole page, bestie!! this lil' gem ships with X Version 11, libXv 1.0.13 β so go forth, query that extension, and slay β¨ππ
π¦ where this page comes from
- alpine 3.22: libxv-doc 1.0.13-r0 Β· MIT
- alpine 3.23: libxv-doc 1.0.13-r0 Β· MIT
- alpine 3.24: libxv-doc 1.0.13-r0 Β· MIT
- arch rolling: libxv 1.0.13-1 Β· SMLNJ AND HPND-sell-variant
- fedora 43: libXv-devel 1.0.13-3.fc43 Β· SMLNJ AND HPND-sell-variant
- fedora 43: libXv-devel 1.0.13-3.fc43 Β· SMLNJ AND HPND-sell-variant
- fedora 44: libXv-devel 1.0.13-4.fc44 Β· SMLNJ AND HPND-sell-variant
- fedora 44: libXv-devel 1.0.13-4.fc44 Β· SMLNJ AND HPND-sell-variant
- ubuntu resolute: libxv-dev 2:1.0.13-1 Β· MIT
- ubuntu stonking: libxv-dev 2:1.0.13-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms