XvGetPortAttribute(3)
π XvGetPortAttribute β bestie edition π
okay so real talk, this is a page from libXv (the X Video extension library), and it's literally the XvGetPortAttribute(3) function. she's giving "let me peek at your port settings" energy and honestly? iconic. β¨
πΈ NAME πΈ
XvGetPortAttribute β returns the current value of a port attribute, no cap π
π SYNOPSIS π
#include <X11/extensions/Xvlib.h>
int XvGetPortAttribute(Display *dpy, XvPortID port,
Atom attribute, int p_value);
π¦ ARGUMENTS π¦
dpyβ your connection to the X server. the whole vibe link, the group chat you're in π«Άportβ the port, tied to that given display, whose attribute values are getting returned. specify her, she's the main character.attributeβ an Atom that identifies which attribute this request is querying. bestie, you get control atoms using theXInternAtomrequest with a string from the table down below πp_valueβ pointer to the spot where the attribute value gets written on return. like, on the way back. that's where it lands. π
β¨ DESCRIPTION β¨
XvGetPortAttribute(3) returns the current value of the requested port attribute in the integer pointed to by p_value. the attribute is identified using an Atom that equates to the attribute name. you can use the XInternAtom request with one of the strings below to get a matching Atom. slay.
so here's the whole lineup of attribute strings, what type they are, and their defaults β every single one, we're not skipping a single girl here:
"XV_ENCODING"β Type:XvEncodingIDβ Default: Server dependent"XV_HUE"β Type:[-1000...1000]β Default:0"XV_SATURATION"β Type:[-1000...1000]β Default:0"XV_BRIGHTNESS"β Type:[-1000...1000]β Default:0"XV_CONTRAST"β Type:[-1000...1000]β Default:0
π RETURN VALUES π
[Success]β returned ifXvGetPortAttribute(3)completed successfully. we ate and left no crumbs π[XvBadExtension]β returned if the Xv extension is unavailable. she's not here, she's not coming π[XvBadAlloc]β returned ifXvGetPortAttribute(3)failed to allocate memory to process the request. the budget did NOT stretch, bestie π
π DIAGNOSTICS π
[XvBadPort]β generated if the requested port does not exist. bestie that port is a ghost, she's not real π[BadMatch]β generated if the requested attribute atom does not specify an attribute supported by the adaptor. the vibe check failed, that attribute does not belong here π
π SEE ALSO π
XvSetPortAttribute(3)β the "okay now we change it" girlXvPortNotify(3)β the "hey something changed" girl
okay that's the whole page, you're welcome π this was X Version 11, libXv 1.0.13, so go forth and query those port attributes, bestie β periodt. ππ¦π
π¦ 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