summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache_template.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-06-27 21:04:12 +0200
committerGrigori Goronzy <greg@blackbox>2011-06-27 21:04:12 +0200
commit2a97a6cfc2c99a8998d4464d765530e08f9751ae (patch)
treeced694d216fb36787cce62f3e72cb2e9a0a7dbfd /libass/ass_cache_template.h
parentfd1acd2373662a14f3131d1a20b587ba5e4aa393 (diff)
downloadlibass-2a97a6cfc2c99a8998d4464d765530e08f9751ae.tar.bz2
libass-2a97a6cfc2c99a8998d4464d765530e08f9751ae.tar.xz
cache: unified bitmap cache
Similarly to the glyph cache, subclass the bitmap cache to allow both outline bitmaps and clipping mask bitmaps to coexist in the same cache in a much cleaner way.
Diffstat (limited to 'libass/ass_cache_template.h')
-rw-r--r--libass/ass_cache_template.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/libass/ass_cache_template.h b/libass/ass_cache_template.h
index 495ccbd..f2080a6 100644
--- a/libass/ass_cache_template.h
+++ b/libass/ass_cache_template.h
@@ -59,8 +59,8 @@
-// describes a bitmap; bitmaps with equivalents structs are considered identical
-START(bitmap, bitmap_hash_key)
+// describes an outline bitmap
+START(outline_bitmap, outline_bitmap_hash_key)
GENERIC(OutlineHashValue *, outline)
GENERIC(char, be) // blur edges
GENERIC(double, blur) // gaussian blur
@@ -76,7 +76,12 @@ START(bitmap, bitmap_hash_key)
GENERIC(int, shift_y)
FTVECTOR(advance) // subpixel shift vector
FTVECTOR(shadow_offset) // shadow subpixel shift
-END(BitmapHashKey)
+END(OutlineBitmapHashKey)
+
+// describe a clip mask bitmap
+START(clip_bitmap, clip_bitmap_hash_key)
+ STRING(text)
+END(ClipMaskHashKey)
// describes an outline glyph
START(glyph, glyph_hash_key)