1.1157: -novideo does not work in some cases, e.g. with MPEG demuxers.
[mplayer/greg.git] / vidix / vidixlib.h
blobe1585669d93ee2d83c0aa1f0bf1b60105c9e3dcf
1 /*
2 * vidixlib.h
3 * VIDIXLib - Library for VIDeo Interface for *niX
4 * This interface is introduced as universal one to MPEG decoder,
5 * BES == Back End Scaler and YUV2RGB hw accelerators.
6 * In the future it may be expanded up to capturing and audio things.
7 * Main goal of this this interface imlpementation is providing DGA
8 * everywhere where it's possible (unlike X11 and other).
9 * Copyright 2002 Nick Kurshev
10 * Licence: GPL
11 * This interface is based on v4l2, fbvid.h, mga_vid.h projects
12 * and personally my ideas.
13 * NOTE: This interface is introduces as APP interface.
14 * Don't use it for driver.
15 * It provides multistreaming. This mean that APP can handle
16 * several streams simultaneously. (Example: Video capturing and video
17 * playback or capturing, video playback, audio encoding and so on).
19 #ifndef VIDIXLIB_H
20 #define VIDIXLIB_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #include "vidix.h"
28 typedef void * VDL_HANDLE;
30 /* returns library version */
31 extern unsigned vdlGetVersion( void );
33 /* Opens corresponded video driver and returns handle
34 of associated stream.
35 path - specifies path where drivers are located.
36 name - specifies prefered driver name (can be NULL).
37 cap - specifies driver capability (TYPE_* constants).
38 verbose - specifies verbose level
39 returns !0 if ok else NULL.
41 extern VDL_HANDLE vdlOpen(const char *path,const char *name,unsigned cap,int verbose);
42 /* Closes stream and corresponded driver. */
43 extern void vdlClose(VDL_HANDLE stream);
45 /* Queries driver capabilities. Return 0 if ok else errno */
46 extern int vdlGetCapability(VDL_HANDLE, vidix_capability_t *);
48 /* Queries support for given fourcc. Returns 0 if ok else errno */
49 extern int vdlQueryFourcc(VDL_HANDLE,vidix_fourcc_t *);
51 /* Returns 0 if ok else errno */
52 extern int vdlConfigPlayback(VDL_HANDLE, vidix_playback_t *);
54 /* Returns 0 if ok else errno */
55 extern int vdlPlaybackOn(VDL_HANDLE);
57 /* Returns 0 if ok else errno */
58 extern int vdlPlaybackOff(VDL_HANDLE);
60 /* Returns 0 if ok else errno */
61 extern int vdlPlaybackFrameSelect(VDL_HANDLE, unsigned frame_idx );
63 /* Returns 0 if ok else errno */
64 extern int vdlGetGrKeys(VDL_HANDLE, vidix_grkey_t * );
66 /* Returns 0 if ok else errno */
67 extern int vdlSetGrKeys(VDL_HANDLE, const vidix_grkey_t * );
69 /* Returns 0 if ok else errno */
70 extern int vdlPlaybackGetEq(VDL_HANDLE, vidix_video_eq_t * );
72 /* Returns 0 if ok else errno */
73 extern int vdlPlaybackSetEq(VDL_HANDLE, const vidix_video_eq_t * );
75 /* Returns 0 if ok else errno */
76 extern int vdlPlaybackGetDeint(VDL_HANDLE, vidix_deinterlace_t * );
78 /* Returns 0 if ok else errno */
79 extern int vdlPlaybackSetDeint(VDL_HANDLE, const vidix_deinterlace_t * );
81 /* Returns 0 if ok else errno */
82 extern int vdlQueryNumOemEffects(VDL_HANDLE, unsigned * number );
84 /* Returns 0 if ok else errno */
85 extern int vdlGetOemEffect(VDL_HANDLE, vidix_oem_fx_t * );
87 /* Returns 0 if ok else errno */
88 extern int vdlSetOemEffect(VDL_HANDLE, const vidix_oem_fx_t * );
91 /* Returns 0 if ok else errno */
92 extern int vdlPlaybackCopyFrame(VDL_HANDLE, const vidix_dma_t * );
94 #ifdef __cplusplus
96 #endif
98 #endif