summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-29 22:24:01 +0200
committerGrigori Goronzy <greg@blackbox>2012-10-01 15:41:13 +0200
commit0594b9fcb5952448dee7eaa3646f7b1281ae8f80 (patch)
tree8f57557cdb6dacee13a490ca6282ac6db8d34902 /libass/ass_render.h
parent758b15ecd437137bb9e794884fa8483430a0fee6 (diff)
downloadlibass-0594b9fcb5952448dee7eaa3646f7b1281ae8f80.tar.bz2
libass-0594b9fcb5952448dee7eaa3646f7b1281ae8f80.tar.xz
Add ass_set_line_position() API function for subtitle position
This allows users to change the vertical position of normal subtitles. MPlayer has such a feature as -sub-pos option using its internal subtitle renderer. Bump LIBASS_VERSION to indicate the API addition.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r--libass/ass_render.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index ad72a74..d0d9aa3 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -67,6 +67,7 @@ typedef struct {
int frame_height;
double font_size_coeff; // font size multiplier
double line_spacing; // additional line spacing (in frame pixels)
+ double line_position; // vertical position for subtitles, 0-100 (0 = no change)
int top_margin; // height of top margin. Everything except toptitles is shifted down by top_margin.
int bottom_margin; // height of bottom margin. (frame_height - top_margin - bottom_margin) is original video height.
int left_margin;