comparison 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
comparison
equal deleted inserted replaced
19845:900c9417644b 19846:bcc792bfa431
1 #ifndef __ASS_BITMAP_H__
2 #define __ASS_BITMAP_H__
3
4 typedef struct bitmap_s {
5 int left, top;
6 int w, h; // width, height
7 unsigned char* buffer; // w x h buffer
8 } bitmap_t;
9
10 int glyph_to_bitmap(FT_Glyph glyph, FT_Glyph outline_glyph, bitmap_t** bm_g, bitmap_t** bm_o);
11 void ass_free_bitmap(bitmap_t* bm);
12
13 #endif
14