XvQueryPortAttributes(3xv) libXv Functions XvQueryPortAttributes(3xv)NAMEXvQueryPortAttributes - return list of attributes of a video port
SYNOPSIS
cc [ flag... ] file... -lXv [ library... ]
#include <X11/extensions/Xvlib.h>
XvAttribute* XvQueryPortAttributes(Display *dpy,
XvPortID port, int *p_num_attributes);
ARGUMENTS
dpy Specifies the connection to the X server.
port Specifies the port whose adaptor is to be queried for its list
of attributes.
p_num_attributes
A pointer to where the number of attributes returned in the
array is written.
DESCRIPTIONXvQueryPortAttributes(3xv)returnsthenumberofattributes and an array of
XvAttributes valid for the given port. The array may be freed with
XFree(3xv).
RETURN VALUES
XvAttribute has the following structure:
typedef struct {
int flags;
int min_value;
int max_value;
char *name;
} XvAttribute;
flags May be XvGettable or XvSettable or both OR'd together indicat‐
ing the particular attribute is readable, writeable or readable
and writeable.
min_value
The minimum attribute values which are valid for the driver.
The maximum attribute values which are valid for the driver.
name A string describing the name of the attribute that may be used
to retrieve the Atom for the particular attribute.
DIAGNOSTICS
[XvBadPort]
Generated if the requested port does not exist.
SEE ALSOXvGetPortAttribute(3xv), XvSetPortAttribute(3xv)ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Availability │x11/library/libxv │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Volatile │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │See XInitThreads(3X11) │
└─────────────────────────────┴─────────────────────────────┘
X Version 11 libXv 1.0.5 XvQueryPortAttributes(3xv)