Remove HAVE_MATRIXVIEW references
[mplayer/kovensky.git] / libmpcodecs / vd.h
blob30e61c68b3714137a10c101dd6affe1d85d1a2cc
1 #ifndef MPLAYER_VD_H
2 #define MPLAYER_VD_H
4 #include "mp_image.h"
5 #include "mpc_info.h"
6 #include "libmpdemux/stheader.h"
8 typedef mp_codec_info_t vd_info_t;
10 /* interface of video decoder drivers */
11 typedef struct vd_functions
13 const vd_info_t *info;
14 int (*init)(sh_video_t *sh);
15 void (*uninit)(sh_video_t *sh);
16 int (*control)(sh_video_t *sh,int cmd,void* arg, ...);
17 mp_image_t* (*decode)(sh_video_t *sh,void* data,int len,int flags);
18 struct mp_image *(*decode2)(struct sh_video *sh, void *data, int len,
19 int flags, double *reordered_pts);
20 } vd_functions_t;
22 // NULL terminated array of all drivers
23 extern const vd_functions_t * const mpcodecs_vd_drivers[];
25 #define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */
26 #define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */
27 #define VDCTRL_SET_PP_LEVEL 5 /* set postprocessing level */
28 #define VDCTRL_SET_EQUALIZER 6 /* set color options (brightness,contrast etc) */
29 #define VDCTRL_GET_EQUALIZER 7 /* get color options (brightness,contrast etc) */
30 #define VDCTRL_RESYNC_STREAM 8 /* seeking */
31 #define VDCTRL_QUERY_UNSEEN_FRAMES 9 /* current decoder lag */
33 // callbacks:
34 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt);
35 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h);
36 void mpcodecs_draw_slice(sh_video_t *sh, unsigned char** src, int* stride, int w,int h, int x, int y);
38 #define VDFLAGS_DROPFRAME 3
40 #endif /* MPLAYER_VD_H */