summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-08-06 13:04:20 +0200
committerGrigori Goronzy <greg@blackbox>2009-08-06 13:15:17 +0200
commit892423a588aea8fb14e84bdb9527df97e945ec57 (patch)
treeca98694d710a7b276b79e278fe06579736a5cdc9 /libass/ass_bitmap.h
parent5ddad362f52080c4f2a46e78fc4cca4f8ca6a2b0 (diff)
downloadlibass-892423a588aea8fb14e84bdb9527df97e945ec57.tar.bz2
libass-892423a588aea8fb14e84bdb9527df97e945ec57.tar.xz
Rename typedefs (breaks API)
Rename all typedefs from the convention foo_bar_t, which can possibly conflict with POSIX types, to FooBar (and ASS_FooBar for public API typedefs). Fix formatting and stray comments while at it.
Diffstat (limited to 'libass/ass_bitmap.h')
-rw-r--r--libass/ass_bitmap.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libass/ass_bitmap.h b/libass/ass_bitmap.h
index f7d8fc21..3b63cee0 100644
--- a/libass/ass_bitmap.h
+++ b/libass/ass_bitmap.h
@@ -26,16 +26,16 @@
#include "ass.h"
-typedef struct ass_synth_priv ass_synth_priv_t;
+typedef struct ass_synth_priv ASS_SynthPriv;
-ass_synth_priv_t *ass_synth_init(double);
-void ass_synth_done(ass_synth_priv_t *priv);
+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_t;
+} Bitmap;
/**
* \brief perform glyph rendering
@@ -46,11 +46,11 @@ typedef struct {
* \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_library_t *library, ass_synth_priv_t *priv_blur,
+int glyph_to_bitmap(ASS_Library *library, ASS_SynthPriv *priv_blur,
FT_Glyph glyph, FT_Glyph outline_glyph,
- bitmap_t **bm_g, bitmap_t **bm_o, bitmap_t **bm_s,
+ Bitmap **bm_g, Bitmap **bm_o, Bitmap **bm_s,
int be, double blur_radius, FT_Vector shadow_offset);
-void ass_free_bitmap(bitmap_t *bm);
+void ass_free_bitmap(Bitmap *bm);
#endif /* LIBASS_BITMAP_H */