annotate libass/ass_library.h @ 35802:2849b02700e5

Remove pointless menuIsInitialized. The draw handler won't be called prior to the initialization, because it is set only during initialization.
author ib
date Sat, 26 Jan 2013 00:45:58 +0000
parents 88eebbbbd6a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20477
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
1 /*
26723
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
2 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
3 *
26738
588ce97b44f2 Speak of libass instead of MPlayer in the libass license headers.
diego
parents: 26723
diff changeset
4 * This file is part of libass.
26723
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
5 *
34011
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
6 * Permission to use, copy, modify, and distribute this software for any
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
7 * purpose with or without fee is hereby granted, provided that the above
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
8 * copyright notice and this permission notice appear in all copies.
26723
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
9 *
34011
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
88eebbbbd6a0 Update included libass copy to 0.9.13 release.
reimar
parents: 30200
diff changeset
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26723
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
17 */
20477
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
18
25897
aaebaf255b23 Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents: 25535
diff changeset
19 #ifndef LIBASS_LIBRARY_H
aaebaf255b23 Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents: 25535
diff changeset
20 #define LIBASS_LIBRARY_H
20477
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
21
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
22 #include <stdarg.h>
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
23
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
24 typedef struct {
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
25 char *name;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
26 char *data;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
27 int size;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
28 } ASS_Fontdata;
21458
7af6c25a0cfc Keep embedded fonts in ass_library_t and perform actual disk write
eugeni
parents: 20477
diff changeset
29
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
30 struct ass_library {
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
31 char *fonts_dir;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
32 int extract_fonts;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
33 char **style_overrides;
21458
7af6c25a0cfc Keep embedded fonts in ass_library_t and perform actual disk write
eugeni
parents: 20477
diff changeset
34
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
35 ASS_Fontdata *fontdata;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
36 int num_fontdata;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
37 void (*msg_callback)(int, const char *, va_list, void *);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
38 void *msg_callback_data;
20477
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
39 };
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
40
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
41 #endif /* LIBASS_LIBRARY_H */