Mercurial > mplayer.hg
annotate libmpcodecs/vd.h @ 13757:40c44e178073
1.132: MSGTR_EdlCantOpenForWrite updated
1.133: mp_msg transition of unmaintained audio output drivers (referring to date 2004/09/18!)
file isn't yet up to date, will continue updating in steps..
author | kraymer |
---|---|
date | Mon, 25 Oct 2004 16:31:50 +0000 |
parents | efb37725d616 |
children | d9a75b26da6c |
rev | line source |
---|---|
5323 | 1 |
7471 | 2 #include "mp_image.h" |
5323 | 3 #include "mpc_info.h" |
4 typedef mp_codec_info_t vd_info_t; | |
4878 | 5 |
4988 | 6 /* interface of video decoder drivers */ |
4878 | 7 typedef struct vd_functions_s |
8 { | |
9 vd_info_t *info; | |
10 int (*init)(sh_video_t *sh); | |
11 void (*uninit)(sh_video_t *sh); | |
12 int (*control)(sh_video_t *sh,int cmd,void* arg, ...); | |
13 mp_image_t* (*decode)(sh_video_t *sh,void* data,int len,int flags); | |
14 } vd_functions_t; | |
15 | |
16 // NULL terminated array of all drivers | |
17 extern vd_functions_t* mpcodecs_vd_drivers[]; | |
18 | |
5483 | 19 extern int vd_use_slices; |
20 | |
4878 | 21 #define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */ |
4957 | 22 #define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */ |
4988 | 23 #define VDCTRL_SET_PP_LEVEL 5 /* set postprocessing level */ |
5003 | 24 #define VDCTRL_SET_EQUALIZER 6 /* set color options (brightness,contrast etc) */ |
6780 | 25 #define VDCTRL_GET_EQUALIZER 7 /* get color options (brightness,contrast etc) */ |
11977
efb37725d616
flushing stuff after seeking (finally we can view MPEG without thouse blocks after seeking with -vc ffmpeg12)
michael
parents:
7471
diff
changeset
|
26 #define VDCTRL_RESYNC_STREAM 8 /* seeking */ |
4878 | 27 |
4883 | 28 // callbacks: |
29 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt); | |
30 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h); | |
7220
e3ecccc7e505
warning fixes by Dominik Mierzejewski <dominik@rangers.eu.org>
arpi
parents:
6780
diff
changeset
|
31 void mpcodecs_draw_slice(sh_video_t *sh, unsigned char** src, int* stride, int w,int h, int x, int y); |
4883 | 32 |
6708
8058078f1248
support for external pp by divx4. some fixes/cosmetics?
alex
parents:
5483
diff
changeset
|
33 #define VDFLAGS_DROPFRAME 3 |