diff options
author | wm4 <wm4@nowhere> | 2014-11-13 20:51:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-13 20:55:57 +0100 |
commit | 901c5bf00abbe738a5665662e6a3b44f91c4d6d4 (patch) | |
tree | 8ccbb0829f41b32c39c5a2e39708e8cf418e597a /libass/ass_bitmap.h | |
parent | db3d5b69c250e719b07363d43ca26a49821d08c0 (diff) | |
download | libass-901c5bf00abbe738a5665662e6a3b44f91c4d6d4.tar.bz2 libass-901c5bf00abbe738a5665662e6a3b44f91c4d6d4.tar.xz |
Move apply_blur() to ass_bitmap.c
Put all code into one place, which makes it easier to follow.
Diffstat (limited to 'libass/ass_bitmap.h')
-rw-r--r-- | libass/ass_bitmap.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/libass/ass_bitmap.h b/libass/ass_bitmap.h index 852cb0bc..82a21593 100644 --- a/libass/ass_bitmap.h +++ b/libass/ass_bitmap.h @@ -24,19 +24,7 @@ #include "ass.h" -typedef struct ass_synth_priv { - int tmp_w, tmp_h; - void *tmp; - - int g_r; - int g_w; - - double *g0; - unsigned *g; - unsigned *gt2; - - double radius; -} ASS_SynthPriv; +typedef struct ass_synth_priv ASS_SynthPriv; ASS_SynthPriv *ass_synth_init(double); void ass_synth_done(ASS_SynthPriv *priv); @@ -52,6 +40,10 @@ Bitmap *outline_to_bitmap(ASS_Renderer *render_priv, FT_Outline *outline, int bord); Bitmap *alloc_bitmap(int w, int h); + +void ass_synth_blur(ASS_SynthPriv *priv_blur, int opaque_box, int be, + double blur_radius, Bitmap *bm_g, Bitmap *bm_o); + /** * \brief perform glyph rendering * \param glyph original glyph @@ -86,8 +78,6 @@ void mul_bitmaps_c(uint8_t *dst, intptr_t dst_stride, intptr_t w, intptr_t h); void shift_bitmap(Bitmap *bm, int shift_x, int shift_y); void fix_outline(Bitmap *bm_g, Bitmap *bm_o); -void resize_tmp(ASS_SynthPriv *priv, int w, int h); -int generate_tables(ASS_SynthPriv *priv, double radius); Bitmap *copy_bitmap(const Bitmap *src); #endif /* LIBASS_BITMAP_H */ |