summaryrefslogtreecommitdiffstats
path: root/libvo/sub.h
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-28 13:41:02 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-28 13:41:02 +0000
commit17c39c4e5794ecf8771e218e40843ad211f2ae71 (patch)
treed6ecd57a19af50eb134dc6c660bed6b2369dc324 /libvo/sub.h
parent288868f16a20ce9d5f3586f5a6442c7b4005e7ff (diff)
downloadmpv-17c39c4e5794ecf8771e218e40843ad211f2ae71.tar.bz2
mpv-17c39c4e5794ecf8771e218e40843ad211f2ae71.tar.xz
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> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8602 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/sub.h')
-rw-r--r--libvo/sub.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/sub.h b/libvo/sub.h
index 66be2a280f..6e69c4c2e1 100644
--- a/libvo/sub.h
+++ b/libvo/sub.h
@@ -101,6 +101,8 @@ extern int sub_width_p;
extern int sub_alignment;
extern int sub_visibility;
extern int suboverlap_enabled;
+extern int sub_bkg_color; /* subtitles background color */
+extern int sub_bkg_alpha;
//extern void vo_draw_text_osd(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
//extern void vo_draw_text_progbar(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));