summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache_template.h
diff options
context:
space:
mode:
authorDr.Smile <vabnick@gmail.com>2019-05-20 01:01:34 +0300
committerDr.Smile <vabnick@gmail.com>2019-05-20 01:01:34 +0300
commitd3286d8a5e3a0186457b8596c2809866fa59d052 (patch)
tree1f537f33a9d6c9bd1ebe064d8b9b874ad7987749 /libass/ass_cache_template.h
parent0f0068b0ae5b0bad8472d4a2af6d10e97f982bfc (diff)
downloadlibass-d3286d8a5e3a0186457b8596c2809866fa59d052.tar.bz2
libass-d3286d8a5e3a0186457b8596c2809866fa59d052.tar.xz
renderer: improve handling of subpixel shift
Integral pixel shift is extracted in quantization function now, taking account of full glyph transformation and not only translation part of it. It makes program logic more straight and ensures that subpixel shift from cache key never exceed full pixel.
Diffstat (limited to 'libass/ass_cache_template.h')
-rw-r--r--libass/ass_cache_template.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libass/ass_cache_template.h b/libass/ass_cache_template.h
index 0c4ffdc..5de492c 100644
--- a/libass/ass_cache_template.h
+++ b/libass/ass_cache_template.h
@@ -101,6 +101,14 @@ START(filter, filter_desc)
VECTOR(shadow)
END(FilterDesc)
+// describes glyph bitmap reference
+START(bitmap_ref, bitmap_ref_key)
+ GENERIC(BitmapHashValue *, image)
+ GENERIC(BitmapHashValue *, image_o)
+ VECTOR(pos)
+ VECTOR(pos_o)
+END(BitmapRef)
+
#undef START
#undef GENERIC
#undef STRING