diff options
author | Dr.Smile <vabnick@gmail.com> | 2014-11-10 22:36:21 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2014-11-23 01:49:11 +0300 |
commit | f3f8230189634e0ce4ffe06c1e380bea829d85d9 (patch) | |
tree | 51f5dfc3893a4f38434a145e846b09f22a6359e7 /libass/ass_rasterizer.h | |
parent | 93bd3d9c3a22e354e4720c6b60ba7bbf17d0f461 (diff) | |
download | libass-f3f8230189634e0ce4ffe06c1e380bea829d85d9.tar.bz2 libass-f3f8230189634e0ce4ffe06c1e380bea829d85d9.tar.xz |
Flip coordinate system in rasterizer
Diffstat (limited to 'libass/ass_rasterizer.h')
-rw-r--r-- | libass/ass_rasterizer.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libass/ass_rasterizer.h b/libass/ass_rasterizer.h index 93c7e6f..9da475e 100644 --- a/libass/ass_rasterizer.h +++ b/libass/ass_rasterizer.h @@ -26,12 +26,12 @@ enum { - SEGFLAG_UP = 1, - SEGFLAG_UR_DL = 2, + SEGFLAG_DN = 1, + SEGFLAG_UL_DR = 2, SEGFLAG_EXACT_LEFT = 4, SEGFLAG_EXACT_RIGHT = 8, - SEGFLAG_EXACT_BOTTOM = 16, - SEGFLAG_EXACT_TOP = 32 + SEGFLAG_EXACT_TOP = 16, + SEGFLAG_EXACT_BOTTOM = 32, }; // Polyline segment struct @@ -88,12 +88,11 @@ int rasterizer_set_outline(ASS_Rasterizer *rst, const FT_Outline *path); * \param x0, y0, width, height in: source window (full pixel units) * \param buf out: aligned output buffer (size = stride * height) * \param stride output buffer stride (aligned) - * \param vert_flip vertical flip flag * \return zero on error * Deletes preprocessed polyline after work. */ int rasterizer_fill(ASS_Rasterizer *rst, uint8_t *buf, int x0, int y0, - int width, int height, ptrdiff_t stride, int vert_flip); + int width, int height, ptrdiff_t stride); #endif /* LIBASS_RASTERIZER_H */ |