summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-06-27 20:10:45 +0200
committerGrigori Goronzy <greg@blackbox>2011-06-27 20:10:45 +0200
commitfd1acd2373662a14f3131d1a20b587ba5e4aa393 (patch)
tree221ec745a8d3749a2d26a92654c500d8cdebce69 /libass/ass_render.h
parent6d24b594428cacbfc2b12e36f664710643d05789 (diff)
downloadlibass-fd1acd2373662a14f3131d1a20b587ba5e4aa393.tar.bz2
libass-fd1acd2373662a14f3131d1a20b587ba5e4aa393.tar.xz
cache: use outline-bitmap hierarchy to slim down bitmap hash key
The bitmap hash key duplicated a lot of information the glyph hash key already saves. The subclassing introduced recently complicates this even more. Modify the hash key to utilize a pointer to the glyph hash value instead, which is faster and more flexible. Make sure to always empty the bitmap cache when the glyph cache is emptied.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r--libass/ass_render.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index de2377a..80ec394 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -121,6 +121,7 @@ typedef struct {
double shadow_y;
double frx, fry, frz; // rotation
double fax, fay; // text shearing
+ unsigned italic;
BitmapHashKey hash_key;
} GlyphInfo;