Don't extend face runs as much as possible
[libass.git] / libass / ass_parse.h
blob2e145dcbfa74dcede20817c42807804c27d5aa87
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 double ensure_font_size(ASS_Renderer *priv, double size);
31 void change_border(ASS_Renderer *render_priv, double border_x,
32 double border_y);
33 void apply_transition_effects(ASS_Renderer *render_priv, ASS_Event *event);
34 void process_karaoke_effects(ASS_Renderer *render_priv);
35 unsigned get_next_char(ASS_Renderer *render_priv, char **str);
36 extern void change_alpha(uint32_t *var, uint32_t new, double pwr);
37 extern uint32_t mult_alpha(uint32_t a, uint32_t b);
40 #endif /* LIBASS_PARSE_H */