From f159a8cf55c8b3f2193ab20159a255310c7c5ca9 Mon Sep 17 00:00:00 2001 From: "Dr.Smile" Date: Sun, 17 Sep 2017 03:00:34 +0300 Subject: Replace FreeType types with libass native types FT_Vector and FT_BBox types are based on FT_Pos, which is alias of long. FreeType treats it as 32-bit integer, but on some platforms long can be 64-bit. That leads to wasted memory and suboptimal performance. --- libass/ass_bitmap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libass/ass_bitmap.h') diff --git a/libass/ass_bitmap.h b/libass/ass_bitmap.h index 8dc1b19..e919cd5 100644 --- a/libass/ass_bitmap.h +++ b/libass/ass_bitmap.h @@ -24,6 +24,7 @@ #include FT_GLYPH_H #include "ass.h" +#include "ass_outline.h" struct segment; @@ -88,8 +89,6 @@ extern const BitmapEngine ass_bitmap_engine_sse2; extern const BitmapEngine ass_bitmap_engine_avx2; -typedef struct ass_outline ASS_Outline; - typedef struct { int left, top; int w, h; // width, height -- cgit v1.2.3