From a0f422546d2902029303bba64ece315a2cdf6a2b Mon Sep 17 00:00:00 2001 From: eugeni Date: Sat, 26 Aug 2006 18:24:37 +0000 Subject: Add right and left margins support to libass. Add ability to not use margins even when they are available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19544 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libass/ass.h') diff --git a/libass/ass.h b/libass/ass.h index 493ba2f379..e97b0f6d6c 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -14,6 +14,10 @@ typedef struct ass_settings_s { double line_spacing; // additional line spacing (in frame pixels) 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; + int right_margin; + int use_margins; // 0 - place all subtitles inside original frame + // 1 - use margins for placing toptitles and subtitles double aspect; // frame aspect ratio, d_width / d_height. } ass_settings_t; -- cgit v1.2.3