summaryrefslogtreecommitdiffstats
path: root/libass/ass.h
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2012-08-23 00:59:46 +0300
committerGrigori Goronzy <greg@blackbox>2013-03-03 23:17:50 +0100
commit0e1702ad7a6a827d400c87b7a98aea11e54d2127 (patch)
treeb10acef8f093190ff44eb243040b26873020bb22 /libass/ass.h
parent340ff8f4cbde87d2ce7d1133889e3afdd66d4e06 (diff)
downloadlibass-0e1702ad7a6a827d400c87b7a98aea11e54d2127.tar.bz2
libass-0e1702ad7a6a827d400c87b7a98aea11e54d2127.tar.xz
Add ass_set_storage_size and fix related scaling issues
\blur radius is not scaled from script to storage resolution but is scaled from storage to display resolution. The same applies to borders and shadows if ScaledBorderAndShadow is "no". (If it is "yes", borders and shadows are scaled from script to display resolution just like before.)
Diffstat (limited to 'libass/ass.h')
-rw-r--r--libass/ass.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libass/ass.h b/libass/ass.h
index 2d767f7..022668b 100644
--- a/libass/ass.h
+++ b/libass/ass.h
@@ -160,6 +160,15 @@ void ass_renderer_done(ASS_Renderer *priv);
void ass_set_frame_size(ASS_Renderer *priv, int w, int h);
/**
+ * \brief Set the source image size in pixels. The source aspect ratio
+ * is automatically reset to the value corresponding to this image size.
+ * \param priv renderer handle
+ * \param w width
+ * \param h height
+ */
+void ass_set_storage_size(ASS_Renderer *priv, int w, int h);
+
+/**
* \brief Set shaping level. This is merely a hint, the renderer will use
* whatever is available if the request cannot be fulfilled.
* \param level shaping level