Mercurial > mplayer.hg
annotate libass/ass_mp.h @ 32188:bba9058031a0
Slightly restructure OSS audio check; fixes the warning:
tmp.c:2: warning: unused variable 'arg'
author | diego |
---|---|
date | Thu, 16 Sep 2010 14:57:04 +0000 |
parents | 4c2bbab833d1 |
children |
rev | line source |
---|---|
20008
fa122b7c71c6
Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents:
19652
diff
changeset
|
1 /* |
26723 | 2 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
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 | 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 | 7 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
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 | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
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 | 18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 */ | |
20008
fa122b7c71c6
Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents:
19652
diff
changeset
|
20 |
25897
aaebaf255b23
Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents:
25813
diff
changeset
|
21 #ifndef LIBASS_MP_H |
aaebaf255b23
Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents:
25813
diff
changeset
|
22 #define LIBASS_MP_H |
18937 | 23 |
32056 | 24 #include "config.h" |
31792
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
25 #include <stdint.h> |
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
26 |
19401
c0c3a2f8bb32
Add subdata to ass_track conversion for external subtitles.
eugeni
parents:
18937
diff
changeset
|
27 #include "subreader.h" |
30124
248d9886d0b0
Fix compilation if FreeType is not available, in particular do not try to build
reimar
parents:
30066
diff
changeset
|
28 #if defined(CONFIG_ASS_INTERNAL) || !defined(CONFIG_ASS) |
26138
74055622161d
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
25897
diff
changeset
|
29 #include "ass.h" |
30026
868442ec038e
Make ass_mp.h use the system-libass headers when the internal one is disabled.
reimar
parents:
26738
diff
changeset
|
30 #else |
868442ec038e
Make ass_mp.h use the system-libass headers when the internal one is disabled.
reimar
parents:
26738
diff
changeset
|
31 #include <ass/ass.h> |
868442ec038e
Make ass_mp.h use the system-libass headers when the internal one is disabled.
reimar
parents:
26738
diff
changeset
|
32 #endif |
19401
c0c3a2f8bb32
Add subdata to ass_track conversion for external subtitles.
eugeni
parents:
18937
diff
changeset
|
33 |
31792
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
34 extern ASS_Library* ass_library; |
18937 | 35 extern int ass_enabled; |
36 extern float ass_font_scale; | |
37 extern float ass_line_spacing; | |
38 extern int ass_top_margin; | |
39 extern int ass_bottom_margin; | |
40 extern int extract_embedded_fonts; | |
19495 | 41 extern char **ass_force_style_list; |
19563 | 42 extern int ass_use_margins; |
19646 | 43 extern char* ass_color; |
44 extern char* ass_border_color; | |
19652
2c016957360a
Add -ass-styles option. It allows to load styles from a file and use them
eugeni
parents:
19646
diff
changeset
|
45 extern char* ass_styles_file; |
23134
1de2a46a0987
Add -ass-hinting option for setting font hinting method.
eugeni
parents:
22886
diff
changeset
|
46 extern int ass_hinting; |
18937 | 47 |
31792
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
48 ASS_Track* ass_default_track(ASS_Library* library); |
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
49 int ass_process_subtitle(ASS_Track* track, subtitle* sub); |
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
50 ASS_Track* ass_read_subdata(ASS_Library* library, sub_data* subdata, double fps); |
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
51 ASS_Track* ass_read_stream(ASS_Library* library, const char *fname, char *charset); |
19401
c0c3a2f8bb32
Add subdata to ass_track conversion for external subtitles.
eugeni
parents:
18937
diff
changeset
|
52 |
31792
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
53 void ass_configure(ASS_Renderer* priv, int w, int h, int hinting); |
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
54 void ass_configure_fonts(ASS_Renderer* priv); |
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
55 ASS_Library* ass_init(void); |
20446
e8adc3778348
Split ass_configure() into several smaller functions.
eugeni
parents:
20008
diff
changeset
|
56 |
21506
8174acbf0633
Speed up ASS subtitles display by detecting changes between two consecutive
eugeni
parents:
20706
diff
changeset
|
57 typedef struct { |
31792
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
58 ASS_Image* imgs; |
21506
8174acbf0633
Speed up ASS subtitles display by detecting changes between two consecutive
eugeni
parents:
20706
diff
changeset
|
59 int changed; |
31792
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
60 } EOSD_ImageList; |
21506
8174acbf0633
Speed up ASS subtitles display by detecting changes between two consecutive
eugeni
parents:
20706
diff
changeset
|
61 |
25813 | 62 extern int ass_force_reload; |
31792
55dacfca4a43
Rename libass types to match upstream libass >= 0.9.7
greg
parents:
31688
diff
changeset
|
63 ASS_Image* ass_mp_render_frame(ASS_Renderer *priv, ASS_Track* track, long long now, int* detect_change); |
25813 | 64 |
25897
aaebaf255b23
Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents:
25813
diff
changeset
|
65 #endif /* LIBASS_MP_H */ |