Mercurial > mplayer.hg
diff libass/ass_bitmap.h @ 19846:bcc792bfa431
Store bitmap glyphs in a separate struct, instead of FreeType's internal buffer.
This is required for various bitmap modifications (like blur, outline and shadow).
author | eugeni |
---|---|
date | Sat, 16 Sep 2006 13:08:17 +0000 |
parents | |
children | 07be98a5dd5f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libass/ass_bitmap.h Sat Sep 16 13:08:17 2006 +0000 @@ -0,0 +1,14 @@ +#ifndef __ASS_BITMAP_H__ +#define __ASS_BITMAP_H__ + +typedef struct bitmap_s { + int left, top; + int w, h; // width, height + unsigned char* buffer; // w x h buffer +} bitmap_t; + +int glyph_to_bitmap(FT_Glyph glyph, FT_Glyph outline_glyph, bitmap_t** bm_g, bitmap_t** bm_o); +void ass_free_bitmap(bitmap_t* bm); + +#endif +