diff options
author | greg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-08 18:35:44 +0000 |
---|---|---|
committer | greg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-08 18:35:44 +0000 |
commit | 9aea06cf7dde9592672e4dba09fb03b2b89d6863 (patch) | |
tree | 0062d1e95bc58bd51028e14a6d88240a1d94ee7d /libass/ass_bitmap.h | |
parent | f51c039c5fcdc24c3f33e1a48bed73bdb17e9e11 (diff) | |
download | mpv-9aea06cf7dde9592672e4dba09fb03b2b89d6863.tar.bz2 mpv-9aea06cf7dde9592672e4dba09fb03b2b89d6863.tar.xz |
Update internal libass copy to commit 8db4a5
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30242 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_bitmap.h')
-rw-r--r-- | libass/ass_bitmap.h | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/libass/ass_bitmap.h b/libass/ass_bitmap.h index c0b4ad201f..338db01193 100644 --- a/libass/ass_bitmap.h +++ b/libass/ass_bitmap.h @@ -1,5 +1,3 @@ -// -*- c-basic-offset: 8; indent-tabs-mode: t -*- -// vim:ts=8:sw=8:noet:ai: /* * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com> * @@ -26,16 +24,18 @@ #include <ft2build.h> #include FT_GLYPH_H -typedef struct ass_synth_priv_s ass_synth_priv_t; +#include "ass.h" -ass_synth_priv_t* ass_synth_init(double); -void ass_synth_done(ass_synth_priv_t* priv); +typedef struct ass_synth_priv ASS_SynthPriv; -typedef struct bitmap_s { - int left, top; - int w, h; // width, height - unsigned char* buffer; // w x h buffer -} bitmap_t; +ASS_SynthPriv *ass_synth_init(double); +void ass_synth_done(ASS_SynthPriv *priv); + +typedef struct { + int left, top; + int w, h; // width, height + unsigned char *buffer; // w x h buffer +} Bitmap; /** * \brief perform glyph rendering @@ -46,8 +46,12 @@ typedef struct bitmap_s { * \param bm_g out: pointer to the bitmap of glyph shadow is returned here * \param be 1 = produces blurred bitmaps, 0 = normal bitmaps */ -int glyph_to_bitmap(ass_synth_priv_t* priv_blur, FT_Glyph glyph, FT_Glyph outline_glyph, bitmap_t** bm_g, bitmap_t** bm_o, bitmap_t** bm_s, int be, double blur_radius); +int glyph_to_bitmap(ASS_Library *library, ASS_SynthPriv *priv_blur, + FT_Glyph glyph, FT_Glyph outline_glyph, + Bitmap **bm_g, Bitmap **bm_o, Bitmap **bm_s, + int be, double blur_radius, FT_Vector shadow_offset, + int border_style); -void ass_free_bitmap(bitmap_t* bm); +void ass_free_bitmap(Bitmap *bm); -#endif /* LIBASS_BITMAP_H */ +#endif /* LIBASS_BITMAP_H */ |