summaryrefslogtreecommitdiffstats
path: root/libass/ass.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.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.h')
-rw-r--r--libass/ass.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libass/ass.h b/libass/ass.h
index 5aef92e..2d767f7 100644
--- a/libass/ass.h
+++ b/libass/ass.h
@@ -23,7 +23,7 @@
#include <stdarg.h>
#include "ass_types.h"
-#define LIBASS_VERSION 0x01000000
+#define LIBASS_VERSION 0x01010000
/*
* A linked list of images produced by an ass renderer.
@@ -214,6 +214,14 @@ void ass_set_hinting(ASS_Renderer *priv, ASS_Hinting ht);
void ass_set_line_spacing(ASS_Renderer *priv, double line_spacing);
/**
+ * \brief Set vertical line position.
+ * \param priv renderer handle
+ * \param line_position vertical line position of subtitles in percent
+ * (0-100: 0 = on the bottom (default), 100 = on top)
+ */
+void ass_set_line_position(ASS_Renderer *priv, double line_position);
+
+/**
* \brief Set font lookup defaults.
* \param default_font path to default font to use. Must be supplied if
* fontconfig is disabled or unavailable.