summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-04 12:59:11 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-04 12:59:11 +0200
commit53288ab83600d57f6082815183c068ab21959037 (patch)
treead7ab95115d80c3f48f572b0e2c327c82f93086b /libass/ass_render.h
parent0a539d83afef27b64228f5abd8f21c6e15972b0c (diff)
downloadlibass-53288ab83600d57f6082815183c068ab21959037.tar.bz2
libass-53288ab83600d57f6082815183c068ab21959037.tar.xz
Introduce bitmap runs
Prepare for run-based rendering. In the parser, increment a run id according to relevant style changes (color, border, shadow, etc.) to mark the points where a new bitmap needs to be started. Modify the line wrapper to increment the run ids of each glyph after a break. Add functions to calculate the render size of runs for rasterization.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r--libass/ass_render.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index 80ec394..a204145 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -123,6 +123,8 @@ typedef struct {
double fax, fay; // text shearing
unsigned italic;
+ int bm_run_id;
+
BitmapHashKey hash_key;
} GlyphInfo;
@@ -187,6 +189,9 @@ typedef struct {
int effect_timing;
int effect_skip_timing;
+ // bitmap run id (used for final bitmap rendering)
+ int bm_run_id;
+
enum {
SCROLL_LR, // left-to-right
SCROLL_RL,