2
* Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
4
* This file is part of libass.
6
* libass is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* libass is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License along
17
* with libass; if not, write to the Free Software Foundation, Inc.,
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
#ifndef LIBASS_BITMAP_H
22
#define LIBASS_BITMAP_H
29
typedef struct ass_synth_priv ass_synth_priv_t;
31
ass_synth_priv_t *ass_synth_init(double);
32
void ass_synth_done(ass_synth_priv_t *priv);
36
int w, h; // width, height
37
unsigned char *buffer; // w x h buffer
41
* \brief perform glyph rendering
42
* \param glyph original glyph
43
* \param outline_glyph "border" glyph, produced from original by FreeType's glyph stroker
44
* \param bm_g out: pointer to the bitmap of original glyph is returned here
45
* \param bm_o out: pointer to the bitmap of outline (border) glyph is returned here
46
* \param bm_g out: pointer to the bitmap of glyph shadow is returned here
47
* \param be 1 = produces blurred bitmaps, 0 = normal bitmaps
49
int glyph_to_bitmap(ass_library_t *library, ass_synth_priv_t *priv_blur,
50
FT_Glyph glyph, FT_Glyph outline_glyph,
51
bitmap_t **bm_g, bitmap_t **bm_o, bitmap_t **bm_s,
52
int be, double blur_radius, FT_Vector shadow_offset);
54
void ass_free_bitmap(bitmap_t *bm);
56
#endif /* LIBASS_BITMAP_H */