annotate libass/ass_library.h @ 32822:deebe1cc3729

Remove needless cast.
author ib
date Wed, 16 Feb 2011 15:56:54 +0000
parents 48d020c5ceca
children 88eebbbbd6a0
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 *
26738
588ce97b44f2 Speak of libass instead of MPlayer in the libass license headers.
diego
parents: 26723
diff changeset
6 * libass is free software; you can redistribute it and/or modify
26723
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
7 * it under the terms of the GNU General Public License as published by
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
9 * (at your option) any later version.
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
10 *
26738
588ce97b44f2 Speak of libass instead of MPlayer in the libass license headers.
diego
parents: 26723
diff changeset
11 * libass is distributed in the hope that it will be useful,
26723
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
14 * GNU General Public License for more details.
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
15 *
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
16 * You should have received a copy of the GNU General Public License along
26738
588ce97b44f2 Speak of libass instead of MPlayer in the libass license headers.
diego
parents: 26723
diff changeset
17 * with libass; if not, write to the Free Software Foundation, Inc.,
26723
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0f892cd714b2 Use standard license header.
diego
parents: 25897
diff changeset
19 */
20477
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
20
25897
aaebaf255b23 Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents: 25535
diff changeset
21 #ifndef LIBASS_LIBRARY_H
aaebaf255b23 Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents: 25535
diff changeset
22 #define LIBASS_LIBRARY_H
20477
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
23
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
24 #include <stdarg.h>
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
25
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
26 typedef struct {
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
27 char *name;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
28 char *data;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
29 int size;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
30 } ASS_Fontdata;
21458
7af6c25a0cfc Keep embedded fonts in ass_library_t and perform actual disk write
eugeni
parents: 20477
diff changeset
31
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
32 struct ass_library {
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
33 char *fonts_dir;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
34 int extract_fonts;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
35 char **style_overrides;
21458
7af6c25a0cfc Keep embedded fonts in ass_library_t and perform actual disk write
eugeni
parents: 20477
diff changeset
36
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
37 ASS_Fontdata *fontdata;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
38 int num_fontdata;
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
39 void (*msg_callback)(int, const char *, va_list, void *);
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
40 void *msg_callback_data;
20477
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
41 };
de4a66d99f41 Libass interface reworked:
eugeni
parents:
diff changeset
42
30200
48d020c5ceca Update internal libass copy to commit 8db4a5
greg
parents: 26738
diff changeset
43 #endif /* LIBASS_LIBRARY_H */