File: xv.api

package info (click to toggle)
pdp 1%3A0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,904 kB
  • ctags: 4,405
  • sloc: ansic: 22,321; asm: 2,088; makefile: 551; perl: 145; sh: 93; cpp: 4
file content (36 lines) | stat: -rw-r--r-- 829 bytes parent folder | download | duplicates (4)
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