annotate libass/ass_parse.h @ 30466:cd3f6962fcfd

Set the PixelFormat right after creating the window and set it only once.
author reimar
date Thu, 04 Feb 2010 22:46:01 +0000
parents 48d020c5ceca
children 6e7f60f6f9d4
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);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
30 void change_border(ASS_Renderer *render_priv, double border_x,
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
31 double border_y);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
32 void apply_transition_effects(ASS_Renderer *render_priv, ASS_Event *event);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
33 unsigned get_next_char(ASS_Renderer *render_priv, char **str);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
34 extern void change_alpha(uint32_t *var, uint32_t new, double pwr);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
35 extern uint32_t mult_alpha(uint32_t a, uint32_t b);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
36
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
37
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents:
diff changeset
38 #endif /* LIBASS_PARSE_H */