summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-13 21:52:23 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-13 21:52:23 +0200
commit867739ba1b40a035471d2c5e6208d96420cfed95 (patch)
tree638562878f16218189f548bb40b87a7d897de254 /libass/ass_render.h
parent84fff91fc561efee329a16705e97ca9505ea93ba (diff)
downloadlibass-867739ba1b40a035471d2c5e6208d96420cfed95.tar.bz2
libass-867739ba1b40a035471d2c5e6208d96420cfed95.tar.xz
Introduce ASS_Shaper object
Encapsulate all data related to shaping into this new object and migrate all shaping-related code to it. The object is long-living; arrays are allocated only once and then grown as needed.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r--libass/ass_render.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index 87eb3d1..1c49823 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -27,6 +27,9 @@
#include FT_GLYPH_H
#include FT_SYNTHESIS_H
+// XXX: fix the inclusion mess so we can avoid doing this here
+typedef struct ass_shaper ASS_Shaper;
+
#include "ass.h"
#include "ass_font.h"
#include "ass_bitmap.h"
@@ -239,6 +242,7 @@ struct ass_renderer {
ASS_Settings settings;
int render_id;
ASS_SynthPriv *synth_priv;
+ ASS_Shaper *shaper;
ASS_Image *images_root; // rendering result is stored here
ASS_Image *prev_images_root;