summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache.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.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.h')
-rw-r--r--libass/ass_cache.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libass/ass_cache.h b/libass/ass_cache.h
index 93e5e11..8e36f84 100644
--- a/libass/ass_cache.h
+++ b/libass/ass_cache.h
@@ -78,11 +78,6 @@ typedef struct outline_hash_key {
} u;
} OutlineHashKey;
-typedef struct {
- BitmapHashValue *image, *image_o;
- int x, y;
-} BitmapRef;
-
enum {
FILTER_BORDER_STYLE_3 = 1,
FILTER_NONZERO_BORDER = 2,