summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache.h
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-20 23:19:23 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-20 23:19:23 +0000
commitbf5f0dd91b865b6c2bb65d38b3f94cb40c93757d (patch)
treedbc996ab331ad72ea8d590d6e73209a3d1ee3172 /libass/ass_cache.h
parentc242d459e23d96c587ac7c231291de40af285317 (diff)
downloadlibass-bf5f0dd91b865b6c2bb65d38b3f94cb40c93757d.tar.bz2
libass-bf5f0dd91b865b6c2bb65d38b3f94cb40c93757d.tar.xz
Add shift_[xy] (vector that is added to the glyph before transformation) to
bitmap glyph key. Result of rotation depends on them because of perspective transformation. They are only set when some rotation take place. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23046 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_cache.h')
-rw-r--r--libass/ass_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libass/ass_cache.h b/libass/ass_cache.h
index a0403d0..7ff7588 100644
--- a/libass/ass_cache.h
+++ b/libass/ass_cache.h
@@ -39,6 +39,9 @@ typedef struct bitmap_hash_key_s {
unsigned scale_x, scale_y; // 16.16
int frx, fry, frz; // signed 16.16
+ int shift_x, shift_y; // shift vector that was added to glyph before applying rotation
+ // = 0, if frx = fry = frx = 0
+ // = (glyph base point) - (rotation origin), otherwise
FT_Vector advance; // subpixel shift vector
} bitmap_hash_key_t;