changeset 27077:7898eaa0f6ac

move content of vidixlib.h into vidix.h
author ben
date Fri, 20 Jun 2008 20:09:54 +0000
parents 3dccfe530193
children 7f6bec0700aa
files vidix/vidix.h vidix/vidixlib.h
diffstat 2 files changed, 96 insertions(+), 92 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/vidix.h	Fri Jun 20 20:07:36 2008 +0000
+++ b/vidix/vidix.h	Fri Jun 20 20:09:54 2008 +0000
@@ -305,4 +305,100 @@
   char *name[80];	/* effect name to display */
 } vidix_oem_fx_t;
 
+typedef struct VDXDriver {
+  const char *name;
+  struct VDXDriver *next;
+  int (* probe) (int verbose, int force);
+  int (* get_caps) (vidix_capability_t *cap);
+  int (*query_fourcc)(vidix_fourcc_t *);
+  int (*init)(void);
+  void (*destroy)(void);
+  int (*config_playback)(vidix_playback_t *);
+  int (*playback_on)( void );
+  int (*playback_off)( void );
+  /* Functions below can be missed in driver ;) */
+  int (*frame_sel)( unsigned frame_idx );
+  int (*get_eq)( vidix_video_eq_t * );
+  int (*set_eq)( const vidix_video_eq_t * );
+  int (*get_deint)( vidix_deinterlace_t * );
+  int (*set_deint)( const vidix_deinterlace_t * );
+  int (*copy_frame)( const vidix_dma_t * );
+  int (*get_gkey)( vidix_grkey_t * );
+  int (*set_gkey)( const vidix_grkey_t * );
+  int (*get_num_fx)( unsigned * );
+  int (*get_fx)( vidix_oem_fx_t * );
+  int (*set_fx)( const vidix_oem_fx_t * );
+} VDXDriver;
+
+typedef struct VDXContext {
+  VDXDriver *drv;
+  /* might be filled in by much more info later on */
+} VDXContext;
+
+/***************************************************************************/
+/*                              PUBLIC API                                 */
+/***************************************************************************/
+
+typedef VDXContext *VDL_HANDLE;
+
+/* Opens corresponded video driver and returns handle of associated stream.
+ *   path - specifies path where drivers are located.
+ *   name - specifies prefered driver name (can be NULL).
+ *   cap  - specifies driver capability (TYPE_* constants).
+ *   verbose - specifies verbose level
+ * returns handle if ok else NULL.
+ */
+VDL_HANDLE vdlOpen (const char *name,unsigned cap,int verbose);
+
+/* Closes stream and corresponded driver. */
+void vdlClose (VDL_HANDLE ctx);
+
+/* Queries driver capabilities. Return 0 if ok else errno */
+int vdlGetCapability (VDL_HANDLE, vidix_capability_t *);
+
+/* Queries support for given fourcc. Returns 0 if ok else errno */
+int vdlQueryFourcc (VDL_HANDLE, vidix_fourcc_t *);
+
+/* Returns 0 if ok else errno */
+int vdlConfigPlayback (VDL_HANDLE, vidix_playback_t *);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackOn (VDL_HANDLE);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackOff (VDL_HANDLE);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackFrameSelect (VDL_HANDLE, unsigned frame_idx);
+
+/* Returns 0 if ok else errno */
+int vdlGetGrKeys (VDL_HANDLE, vidix_grkey_t *);
+
+/* Returns 0 if ok else errno */
+int vdlSetGrKeys (VDL_HANDLE, const vidix_grkey_t *);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackGetEq (VDL_HANDLE, vidix_video_eq_t *);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackSetEq (VDL_HANDLE, const vidix_video_eq_t *);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackGetDeint (VDL_HANDLE, vidix_deinterlace_t *);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackSetDeint (VDL_HANDLE, const vidix_deinterlace_t *);
+
+/* Returns 0 if ok else errno */
+int vdlQueryNumOemEffects (VDL_HANDLE, unsigned *number);
+
+/* Returns 0 if ok else errno */
+int vdlGetOemEffect (VDL_HANDLE, vidix_oem_fx_t *);
+
+/* Returns 0 if ok else errno */
+int vdlSetOemEffect (VDL_HANDLE, const vidix_oem_fx_t *);
+
+/* Returns 0 if ok else errno */
+int vdlPlaybackCopyFrame (VDL_HANDLE, const vidix_dma_t *);
+
 #endif /* MPLAYER_VIDIX_H */
--- a/vidix/vidixlib.h	Fri Jun 20 20:07:36 2008 +0000
+++ b/vidix/vidixlib.h	Fri Jun 20 20:09:54 2008 +0000
@@ -38,96 +38,4 @@
 
 #include "vidix.h"
 
-typedef struct VDXDriver {
-  const char *name;
-  struct VDXDriver *next;
-  int (* probe) (int verbose, int force);
-  int (* get_caps) (vidix_capability_t *cap);
-  int (*query_fourcc)(vidix_fourcc_t *);
-  int (*init)(void);
-  void (*destroy)(void);
-  int (*config_playback)(vidix_playback_t *);
-  int (*playback_on)( void );
-  int (*playback_off)( void );
-  /* Functions below can be missed in driver ;) */
-  int (*frame_sel)( unsigned frame_idx );
-  int (*get_eq)( vidix_video_eq_t * );
-  int (*set_eq)( const vidix_video_eq_t * );
-  int (*get_deint)( vidix_deinterlace_t * );
-  int (*set_deint)( const vidix_deinterlace_t * );
-  int (*copy_frame)( const vidix_dma_t * );
-  int (*get_gkey)( vidix_grkey_t * );
-  int (*set_gkey)( const vidix_grkey_t * );
-  int (*get_num_fx)( unsigned * );
-  int (*get_fx)( vidix_oem_fx_t * );
-  int (*set_fx)( const vidix_oem_fx_t * );
-} VDXDriver;
-
-typedef struct VDXContext {
-  VDXDriver *drv;
-  /* might be filled in by much more info later on */
-} VDXContext;
-
-typedef VDXContext *VDL_HANDLE;
-
-/* Opens corresponded video driver and returns handle of associated stream.
- *   path - specifies path where drivers are located.
- *   name - specifies prefered driver name (can be NULL).
- *   cap  - specifies driver capability (TYPE_* constants).
- *   verbose - specifies verbose level
- * returns handle if ok else NULL.
- */
-VDL_HANDLE vdlOpen (const char *name,unsigned cap,int verbose);
-
-/* Closes stream and corresponded driver. */
-void vdlClose (VDL_HANDLE ctx);
-
-/* Queries driver capabilities. Return 0 if ok else errno */
-int vdlGetCapability (VDL_HANDLE, vidix_capability_t *);
-
-/* Queries support for given fourcc. Returns 0 if ok else errno */
-int vdlQueryFourcc (VDL_HANDLE, vidix_fourcc_t *);
-
-/* Returns 0 if ok else errno */
-int vdlConfigPlayback (VDL_HANDLE, vidix_playback_t *);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackOn (VDL_HANDLE);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackOff (VDL_HANDLE);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackFrameSelect (VDL_HANDLE, unsigned frame_idx);
-
-/* Returns 0 if ok else errno */
-int vdlGetGrKeys (VDL_HANDLE, vidix_grkey_t *);
-
-/* Returns 0 if ok else errno */
-int vdlSetGrKeys (VDL_HANDLE, const vidix_grkey_t *);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackGetEq (VDL_HANDLE, vidix_video_eq_t *);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackSetEq (VDL_HANDLE, const vidix_video_eq_t *);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackGetDeint (VDL_HANDLE, vidix_deinterlace_t *);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackSetDeint (VDL_HANDLE, const vidix_deinterlace_t *);
-
-/* Returns 0 if ok else errno */
-int vdlQueryNumOemEffects (VDL_HANDLE, unsigned *number);
-
-/* Returns 0 if ok else errno */
-int vdlGetOemEffect (VDL_HANDLE, vidix_oem_fx_t *);
-
-/* Returns 0 if ok else errno */
-int vdlSetOemEffect (VDL_HANDLE, const vidix_oem_fx_t *);
-
-/* Returns 0 if ok else errno */
-int vdlPlaybackCopyFrame (VDL_HANDLE, const vidix_dma_t *);
-
 #endif /* MPLAYER_VIDIXLIB_H */