Raise LIBASS_VERSION, forgotten in r31293.
[mplayer/glamo.git] / libass / ass_parse.h
blobc65b56515816cc04da4f0bbcf400dfb40615c0ed
1 /*
2 * Copyright (C) 2009 Grigori Goronzy <greg@geekmind.org>
4 * This file is part of libass.
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.
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.
19 #ifndef LIBASS_PARSE_H
20 #define LIBASS_PARSE_H
22 #define BLUR_MAX_RADIUS 100.0
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)
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);
38 #endif /* LIBASS_PARSE_H */