logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XvGrabPort - lock port for exclusive use by client

Arguments

dpy     Specifies the connection to the X server.

       port    Defines the port to be grabbed.

       time    Specifies the request timestamp.

Description

XvGrabPort(3) grabs a port.  Once a client grabs a port, only that client can make video requests to that
       port.

       If  the  time  is  before  the  current port time, the XvGrabPort request is ignored and XvInvalidTime is
       returned.  If the port is already grabbed by another client, XvAlreadyGrabbed is returned.  Otherwise  it
       returns  a  status  of  Success.   The  port  time  is updated when the following requests are processed:
       XvGrabPort(3), XvUngrabPort(3), XvPutVideo(3), XvPutStill(3), XvGetVideo(3), XvGetStill(3).

       If the port is actively processing video for another client, the video is preempted, and an XvVideoNotify
       event with detail XvPreempted is generated for its drawable.

Diagnostics

       [XvBadPort]    Generated if the requested port does not exist.

Name

       XvGrabPort - lock port for exclusive use by client

Return Values

       [Success]
               Returned if XvGrabPort(3) completed successfully.

       [XvInvalidTime]
               Returned if requested time is older than the current port time.

       [XvAlreadyGrabbed]
               Returned if the port is already grabbed by another client.

       [XvBadExtension]
               Returned if the Xv extension is unavailable.

       [XvBadAlloc]
               Returned if XvGrabPort(3) failed to allocate memory to process the request.

See Also

XvUngrabPort(3), XvVideoNotify(3)

X Version 11                                      libXv 1.0.11                                     XvGrabPort(3)

Synopsis

#include<X11/extensions/Xvlib.h>intXvGrabPort(Display*dpy,XvPortIDport,Timetime);

See Also