XvGetPortAttribute(3)

πŸ“¦
version 1.0.13 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– 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 the XInternAtom request 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 if XvGetPortAttribute(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 if XvGetPortAttribute(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 πŸ“


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