Mercurial > mplayer.hg
annotate libmpcodecs/vd.h @ 25813:ba7bd4f7e322
Add global ass_force_reload flag.
If it is set, renderer is reconfigured before the next frame.
author | eugeni |
---|---|
date | Wed, 23 Jan 2008 21:18:30 +0000 |
parents | 6ac1ece1f9fe |
children | 4129c8cfa742 |
rev | line source |
---|---|
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
18917
diff
changeset
|
1 #ifndef VD_H |
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
18917
diff
changeset
|
2 #define VD_H |
5323 | 3 |
7471 | 4 #include "mp_image.h" |
5323 | 5 #include "mpc_info.h" |
6 typedef mp_codec_info_t vd_info_t; | |
4878 | 7 |
4988 | 8 /* interface of video decoder drivers */ |
4878 | 9 typedef struct vd_functions_s |
10 { | |
11 vd_info_t *info; | |
12 int (*init)(sh_video_t *sh); | |
13 void (*uninit)(sh_video_t *sh); | |
14 int (*control)(sh_video_t *sh,int cmd,void* arg, ...); | |
15 mp_image_t* (*decode)(sh_video_t *sh,void* data,int len,int flags); | |
16 } vd_functions_t; | |
17 | |
18 // NULL terminated array of all drivers | |
19 extern vd_functions_t* mpcodecs_vd_drivers[]; | |
20 | |
5483 | 21 extern int vd_use_slices; |
22 | |
4878 | 23 #define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */ |
4957 | 24 #define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */ |
4988 | 25 #define VDCTRL_SET_PP_LEVEL 5 /* set postprocessing level */ |
5003 | 26 #define VDCTRL_SET_EQUALIZER 6 /* set color options (brightness,contrast etc) */ |
6780 | 27 #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
|
28 #define VDCTRL_RESYNC_STREAM 8 /* seeking */ |
18917
d9a75b26da6c
Add a new video pts tracking mode, enabled by option -correct-pts.
uau
parents:
11977
diff
changeset
|
29 #define VDCTRL_QUERY_UNSEEN_FRAMES 9 /* current decoder lag */ |
4878 | 30 |
4883 | 31 // callbacks: |
32 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt); | |
33 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
|
34 void mpcodecs_draw_slice(sh_video_t *sh, unsigned char** src, int* stride, int w,int h, int x, int y); |
4883 | 35 |
6708
8058078f1248
support for external pp by divx4. some fixes/cosmetics?
alex
parents:
5483
diff
changeset
|
36 #define VDFLAGS_DROPFRAME 3 |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
18917
diff
changeset
|
37 |
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
18917
diff
changeset
|
38 #endif /* VD_H */ |