Carl Lowenstein wrote:
On 6/19/07, Gus Wirth <[EMAIL PROTECTED]> wrote:
I've been playing around with some video stuff and became curious about
the XvPutVideo function. The function has a man page, and my video card
supports the function directly as shown by the output of xvinfo. From
the man page:

XvPutVideo(3x)

Name
        XvPutVideo - write video into a drawable

Syntax
        #include <X11/extensions/Xvlib.h>

        XvPutVideo(dpy, port, d, gc, vx, vy, vw, vh, dx, dy, dw, dh)

        Display *dpy;
        XvPortID port;
        Drawable d;
        GC gc;
        int vx, vy, dx, dy;
        unsigned int vw, vh;
        unsigned int dw, dh;


So my question is: How do I find where Display, XvPortID, Drawable, and
GC are declared? I have tried to grep through the header files and it is
an overwhelming problem. Is there some search technique I can use? Or
perhaps build some tiny app and use a debugger to tell me where the
stuff comes from?

find /usr/include -exec grep Drawable {} /dev/null \;

;)

Display, Drawable, and GC are standard X11 types and used in almost all X11 calls. You should find them in a file somewhere in /usr/X11R6/include/X11. Probably Xlib.h

I can't help you about XvPortID.  That looks specific to the extension.

-a


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to