5323
|
1
|
|
2 #include "mpc_info.h"
|
|
3 typedef mp_codec_info_t vd_info_t;
|
4878
|
4
|
4988
|
5 /* interface of video decoder drivers */
|
4878
|
6 typedef struct vd_functions_s
|
|
7 {
|
|
8 vd_info_t *info;
|
|
9 int (*init)(sh_video_t *sh);
|
|
10 void (*uninit)(sh_video_t *sh);
|
|
11 int (*control)(sh_video_t *sh,int cmd,void* arg, ...);
|
|
12 mp_image_t* (*decode)(sh_video_t *sh,void* data,int len,int flags);
|
|
13 } vd_functions_t;
|
|
14
|
|
15 // NULL terminated array of all drivers
|
|
16 extern vd_functions_t* mpcodecs_vd_drivers[];
|
|
17
|
5483
|
18 extern int vd_use_slices;
|
|
19
|
4878
|
20 #define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */
|
4957
|
21 #define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */
|
4988
|
22 #define VDCTRL_SET_PP_LEVEL 5 /* set postprocessing level */
|
5003
|
23 #define VDCTRL_SET_EQUALIZER 6 /* set color options (brightness,contrast etc) */
|
4878
|
24
|
4883
|
25 // callbacks:
|
|
26 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt);
|
|
27 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h);
|
|
28
|