annotate libass/ass_parse.h @ 35788:e3dcd5854344

Move video window initialization code to uiVideoInit().
author ib
date Fri, 25 Jan 2013 15:12:25 +0000
parents 49fc594fda43
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
1 /*
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
2 * Copyright (C) 2009 Grigori Goronzy <greg@geekmind.org>
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
3 *
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
4 * This file is part of libass.
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
5 *
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
6 * Permission to use, copy, modify, and distribute this software for any
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
7 * purpose with or without fee is hereby granted, provided that the above
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
8 * copyright notice and this permission notice appear in all copies.
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
9 *
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
17 */
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
18
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
19 #ifndef LIBASS_PARSE_H
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
20 #define LIBASS_PARSE_H
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
21
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
22 #define BLUR_MAX_RADIUS 100.0
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
23
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
24 #define _r(c) ((c) >> 24)
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
25 #define _g(c) (((c) >> 16) & 0xFF)
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
26 #define _b(c) (((c) >> 8) & 0xFF)
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
27 #define _a(c) ((c) & 0xFF)
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
28
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
29 void update_font(ASS_Renderer *render_priv);
34295
6e7f60f6f9d4 Update libass to 0.10 release.
reimar
parents: 30200
diff changeset
30 double ensure_font_size(ASS_Renderer *priv, double size);
35262
49fc594fda43 Updated libass to 0.10.1
SubJunk
parents: 34295
diff changeset
31 void calc_border(ASS_Renderer *priv, double border_x, double border_y);
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
32 void change_border(ASS_Renderer *render_priv, double border_x,
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
33 double border_y);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
34 void apply_transition_effects(ASS_Renderer *render_priv, ASS_Event *event);
34295
6e7f60f6f9d4 Update libass to 0.10 release.
reimar
parents: 30200
diff changeset
35 void process_karaoke_effects(ASS_Renderer *render_priv);
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
36 unsigned get_next_char(ASS_Renderer *render_priv, char **str);
35262
49fc594fda43 Updated libass to 0.10.1
SubJunk
parents: 34295
diff changeset
37 char *parse_tag(ASS_Renderer *render_priv, char *p, double pwr);
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
38 extern void change_alpha(uint32_t *var, uint32_t new, double pwr);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
39 extern uint32_t mult_alpha(uint32_t a, uint32_t b);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
40
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
41
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
42 #endif /* LIBASS_PARSE_H */