Mercurial > mplayer.hg
annotate libmpcodecs/vd_internal.h @ 8601:7fe391d6c293
The following patch adds two new command line options:
-sub-bkg-color n
-sub-bkg-alpha n
They control the color and alpha value used to initialize the subtitles and OSD BBOX.
With this you can have subtitles inside a traslucent rectangle.
This is useful when a movie already have "hardcoded" subtitles and you
want to overwrite them with rendered subtitles avoiding too much confusion.
patch by Salvador Eduardo Tropea <salvador@inti.gov.ar>
author | arpi |
---|---|
date | Sat, 28 Dec 2002 13:41:02 +0000 |
parents | 1972c3475d93 |
children | 4faee1254928 |
rev | line source |
---|---|
4986 | 1 |
2 #include "codec-cfg.h" | |
5607 | 3 #include "img_format.h" |
4986 | 4 |
5 #include "stream.h" | |
6 #include "demuxer.h" | |
7 #include "stheader.h" | |
8 | |
9 #include "vd.h" | |
4878 | 10 |
5003 | 11 extern int divx_quality; |
12 | |
4878 | 13 // prototypes: |
4966 | 14 //static vd_info_t info; |
4878 | 15 static int control(sh_video_t *sh,int cmd,void* arg,...); |
16 static int init(sh_video_t *sh); | |
17 static void uninit(sh_video_t *sh); | |
18 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags); | |
19 | |
20 #define LIBVD_EXTERN(x) vd_functions_t mpcodecs_vd_##x = {\ | |
21 &info,\ | |
22 init,\ | |
23 uninit,\ | |
24 control,\ | |
25 decode\ | |
26 }; | |
27 |