summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.h
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2022-10-21 00:47:17 +0200
committerOneric <oneric@oneric.stub>2022-10-22 18:05:11 +0200
commit1884f6ef05673941c4db6bc89a8850c167905eff (patch)
treefd0a322e183ad90ff5545c03f138f2c469b0ef35 /libass/ass_bitmap.h
parentcb49725e2f446f0c24aa1bcd161eb74abfe11291 (diff)
downloadlibass-1884f6ef05673941c4db6bc89a8850c167905eff.tar.bz2
libass-1884f6ef05673941c4db6bc89a8850c167905eff.tar.xz
refactor: prefix all internal API with ass_
If static libass is linked into a binary defining functions of the same name there will be issues. To avoid this use an ass_ prefix for namespacing. Before this commit we already did this for most but not yet all internal API. read_file is renamed to ass_load_file as ass_read_file already exists as a public API function. All other functions are simply prefixed with ass_. Fixes: https://github.com/libass/libass/issues/222 Fixes: https://github.com/libass/libass/issues/654
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 3909b59..e21d100 100644
--- a/libass/ass_bitmap.h
+++ b/libass/ass_bitmap.h
@@ -97,19 +97,19 @@ typedef struct {
uint8_t *buffer; // h * stride buffer
} Bitmap;
-bool alloc_bitmap(const BitmapEngine *engine, Bitmap *bm, int32_t w, int32_t h, bool zero);
-bool realloc_bitmap(const BitmapEngine *engine, Bitmap *bm, int32_t w, int32_t h);
-bool copy_bitmap(const BitmapEngine *engine, Bitmap *dst, const Bitmap *src);
+bool ass_alloc_bitmap(const BitmapEngine *engine, Bitmap *bm, int32_t w, int32_t h, bool zero);
+bool ass_realloc_bitmap(const BitmapEngine *engine, Bitmap *bm, int32_t w, int32_t h);
+bool ass_copy_bitmap(const BitmapEngine *engine, Bitmap *dst, const Bitmap *src);
void ass_free_bitmap(Bitmap *bm);
-bool outline_to_bitmap(ASS_Renderer *render_priv, Bitmap *bm,
- ASS_Outline *outline1, ASS_Outline *outline2);
+bool ass_outline_to_bitmap(ASS_Renderer *render_priv, Bitmap *bm,
+ ASS_Outline *outline1, ASS_Outline *outline2);
void ass_synth_blur(const BitmapEngine *engine, Bitmap *bm,
int be, double blur_r2);
bool ass_gaussian_blur(const BitmapEngine *engine, Bitmap *bm, double r2);
-void shift_bitmap(Bitmap *bm, int shift_x, int shift_y);
-void fix_outline(Bitmap *bm_g, Bitmap *bm_o);
+void ass_shift_bitmap(Bitmap *bm, int shift_x, int shift_y);
+void ass_fix_outline(Bitmap *bm_g, Bitmap *bm_o);
#endif /* LIBASS_BITMAP_H */