1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
/* Abstract API definition. See also xv.h
Rationale: Since zl is to be wrapped easily in different languages,
it makes sense to make that process as easy as possible, avoiding a
C parsing step. The forms below can easily be manipulated using
the C preprocessor to generate declarations and wrappers. */
/* Cons / Des */
FUN(void, init)
ARG(int, fourcc)
END
FUN(void, free) END
FUN(void, cleanup) END
/* open an xv port (and create XvImage) */
FUN(int, open_on_display)
ARG(zl_xdisplay_p,d)
ARG(int, adaptor)
END
/* close xv port (and delete XvImage */
FUN(void, close) END
/* get XvImage data buffer */
FUN(void_p, image_data)
ARG(zl_xwindow_p, xwin)
ARG(uint, width)
ARG(uint, height)
END
/* display the XvImage */
FUN(void, image_display)
ARG(zl_xwindow_p, xwin)
END
|