Mercurial > mplayer.hg
comparison libmpcodecs/vd.h @ 4878:eff8a76e515f
libmpcodecs core - initial version
author | arpi |
---|---|
date | Thu, 28 Feb 2002 00:57:30 +0000 |
parents | |
children | 1602b4fed5a1 |
comparison
equal
deleted
inserted
replaced
4877:9d97874d8691 | 4878:eff8a76e515f |
---|---|
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 */ | |
38 |