30200
|
1 /*
|
|
2 * Copyright (C) 2009 Grigori Goronzy <greg@geekmind.org>
|
|
3 *
|
|
4 * This file is part of libass.
|
|
5 *
|
|
6 * Permission to use, copy, modify, and distribute this software for any
|
|
7 * purpose with or without fee is hereby granted, provided that the above
|
|
8 * copyright notice and this permission notice appear in all copies.
|
|
9 *
|
|
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
17 */
|
|
18
|
|
19 #ifndef LIBASS_PARSE_H
|
|
20 #define LIBASS_PARSE_H
|
|
21
|
|
22 #define BLUR_MAX_RADIUS 100.0
|
|
23
|
|
24 #define _r(c) ((c) >> 24)
|
|
25 #define _g(c) (((c) >> 16) & 0xFF)
|
|
26 #define _b(c) (((c) >> 8) & 0xFF)
|
|
27 #define _a(c) ((c) & 0xFF)
|
|
28
|
|
29 void update_font(ASS_Renderer *render_priv);
|
|
30 void change_border(ASS_Renderer *render_priv, double border_x,
|
|
31 double border_y);
|
|
32 void apply_transition_effects(ASS_Renderer *render_priv, ASS_Event *event);
|
|
33 unsigned get_next_char(ASS_Renderer *render_priv, char **str);
|
|
34 extern void change_alpha(uint32_t *var, uint32_t new, double pwr);
|
|
35 extern uint32_t mult_alpha(uint32_t a, uint32_t b);
|
|
36
|
|
37
|
|
38 #endif /* LIBASS_PARSE_H */
|