diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-14 20:24:53 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-14 20:24:53 +0000 |
commit | b51b557529e0b83e866bc705b4f4330f013997cb (patch) | |
tree | 437c1d97b53a246f32176a21f98682b64e1ff6e1 /libass/ass_utils.h | |
parent | 92b7c0aae0469f0f92c31901ca8a7b787878615b (diff) | |
download | mpv-b51b557529e0b83e866bc705b4f4330f013997cb.tar.bz2 mpv-b51b557529e0b83e866bc705b4f4330f013997cb.tar.xz |
Limit ass_font_set_transform to nonrotating transformations.
Rotations are not needed here (they are performed in transform3d) and they
disable autohinter.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23317 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_utils.h')
-rw-r--r-- | libass/ass_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h index 6c4eccecd5..53b4b4f96a 100644 --- a/libass/ass_utils.h +++ b/libass/ass_utils.h @@ -50,6 +50,12 @@ static inline double d6_to_double(int x) { static inline int double_to_d6(double x) { return (int)(x * 64); } +static inline double d16_to_double(int x) { + return ((double)x) / 0x10000; +} +static inline int double_to_d16(double x) { + return (int)(x * 0x10000); +} #endif |