diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-09 00:24:49 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-09 00:24:49 +0000 |
commit | 080311d08f70042db8db88a6696a8a6c61c337df (patch) | |
tree | 82e106e42caafb41b5cfa63492b010be810e3b91 /libvo | |
parent | 14328b41fedf57134a759b5cd4e3d8af330e7e0f (diff) | |
download | mpv-080311d08f70042db8db88a6696a8a6c61c337df.tar.bz2 mpv-080311d08f70042db8db88a6696a8a6c61c337df.tar.xz |
TiVo demuxer and sub-cc/osd decoder
patch by usenet@wingert.org
(http://tivo-mplayer.sourceforge.net/releases/MPlayer-20030501-tivo-patch.gz)
changes by me:
- spit demux_ty to demux_ty and demux_ty_osd (later handles mpeg user-data
decoding, ie sub-cc and osd)
- removed some cosmetics changes
- some compile fixes (gcc3 specific variable decl etc)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10264 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/sub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/sub.c b/libvo/sub.c index cfe5c5199c..bf3a1155f2 100644 --- a/libvo/sub.c +++ b/libvo/sub.c @@ -42,6 +42,7 @@ int sub_alignment=0; /* 0=top, 1=center, 2=bottom */ int sub_visibility=1; int sub_bg_color=0; /* subtitles background color */ int sub_bg_alpha=0; +int sub_justify=0; // return the real height of a char: static inline int get_height(int c,int h){ @@ -449,6 +450,7 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){ obj->bbox.y2 = obj->y + h; // calculate bbox: + if (sub_justify) xmin = 10; obj->bbox.x1=xmin; obj->bbox.x2=xmax; obj->bbox.y1=obj->y; @@ -462,6 +464,7 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){ i=j=0; if ((l=obj->params.subtitle.lines)) for (;;) { x=obj->params.subtitle.xtbl[i++]; + if (sub_justify) x = 10; prevc = -1; while ((c=obj->params.subtitle.utbl[j++])){ x += kerning(vo_font,prevc,c); |