4878
|
1 typedef struct vd_info_s
|
|
2 {
|
4988
|
3 /* codec long name ("Autodesk FLI/FLC Animation decoder" */
|
4878
|
4 const char *name;
|
4988
|
5 /* short name (same as driver name in codecs.conf) ("dshow") */
|
4878
|
6 const char *short_name;
|
4988
|
7 /* codec family: -vfm id */
|
4878
|
8 const int id;
|
|
9 /* interface author/maintainer */
|
|
10 const char *maintainer;
|
|
11 /* codec author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */
|
|
12 const char *author;
|
|
13 /* any additional comments */
|
|
14 const char *comment;
|
|
15 } vd_info_t;
|
|
16
|
4988
|
17 /* interface of video decoder drivers */
|
4878
|
18 typedef struct vd_functions_s
|
|
19 {
|
|
20 vd_info_t *info;
|
|
21 int (*init)(sh_video_t *sh);
|
|
22 void (*uninit)(sh_video_t *sh);
|
|
23 int (*control)(sh_video_t *sh,int cmd,void* arg, ...);
|
|
24 mp_image_t* (*decode)(sh_video_t *sh,void* data,int len,int flags);
|
|
25 } vd_functions_t;
|
|
26
|
|
27 // NULL terminated array of all drivers
|
|
28 extern vd_functions_t* mpcodecs_vd_drivers[];
|
|
29
|
|
30 #define CONTROL_OK 1
|
|
31 #define CONTROL_TRUE 1
|
|
32 #define CONTROL_FALSE 0
|
|
33 #define CONTROL_UNKNOWN -1
|
|
34 #define CONTROL_ERROR -2
|
|
35 #define CONTROL_NA -3
|
|
36
|
|
37 #define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */
|
4957
|
38 #define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */
|
4988
|
39 #define VDCTRL_SET_PP_LEVEL 5 /* set postprocessing level */
|
5003
|
40 #define VDCTRL_SET_EQUALIZER 6 /* set color options (brightness,contrast etc) */
|
4878
|
41
|
4883
|
42 // callbacks:
|
|
43 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt);
|
|
44 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h);
|
|
45
|