summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.h
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-16 13:08:17 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-16 13:08:17 +0000
commit867aa92076b8b4264e8e1a3378a1b6ed076da7f0 (patch)
tree67e35551c43ac77b304deb23289c14241c1f6679 /libass/ass_bitmap.h
parent52204b1e9381b7c856be3e16dc795a97b041b068 (diff)
downloadmpv-867aa92076b8b4264e8e1a3378a1b6ed076da7f0.tar.bz2
mpv-867aa92076b8b4264e8e1a3378a1b6ed076da7f0.tar.xz
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). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19852 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_bitmap.h')
-rw-r--r--libass/ass_bitmap.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libass/ass_bitmap.h b/libass/ass_bitmap.h
new file mode 100644
index 0000000000..edf4790584
--- /dev/null
+++ b/libass/ass_bitmap.h
@@ -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
+