4878
|
1 typedef struct vd_info_s
|
|
2 {
|
|
3 /* driver name ("Matrox Millennium G200/G400" */
|
|
4 const char *name;
|
|
5 /* short name (for config strings) ("mga") */
|
|
6 const char *short_name;
|
|
7 /* -vfm id */
|
|
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
|
|
17 /* interface towards mplayer and */
|
|
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) */
|
|
39 #define VDCTRL_SET_PP_LEVEL 5 /* test for postprocessing support (max level) */
|
4878
|
40
|
4883
|
41 // callbacks:
|
|
42 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt);
|
|
43 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h);
|
|
44
|
|
45
|