annotate ass_mp.h @ 32335:fdf3f93c2828

Move some code around to avoid forward declarations in top-level .c files.
author diego
date Fri, 01 Oct 2010 18:29:35 +0000
parents ef21cbba62ee
children b4c3659d16b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32209
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
1 /*
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
2 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
3 *
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
4 * This file is part of MPlayer.
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
5 *
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
6 * MPlayer is free software; you can redistribute it and/or modify
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
9 * (at your option) any later version.
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
10 *
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
11 * MPlayer is distributed in the hope that it will be useful,
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
14 * GNU General Public License for more details.
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
15 *
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License along
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
17 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
19 */
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
20
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
21 #ifndef MPLAYER_ASS_MP_H
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
22 #define MPLAYER_ASS_MP_H
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
23
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
24 #include "config.h"
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
25 #include <stdint.h>
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
26
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
27 #include "subreader.h"
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
28 #if defined(CONFIG_ASS_INTERNAL) || !defined(CONFIG_ASS)
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
29 #include "libass/ass.h"
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
30 #else
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
31 #include <ass/ass.h>
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
32 #endif
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
33
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
34 extern ASS_Library* ass_library;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
35 extern int ass_enabled;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
36 extern float ass_font_scale;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
37 extern float ass_line_spacing;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
38 extern int ass_top_margin;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
39 extern int ass_bottom_margin;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
40 extern int extract_embedded_fonts;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
41 extern char **ass_force_style_list;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
42 extern int ass_use_margins;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
43 extern char* ass_color;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
44 extern char* ass_border_color;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
45 extern char* ass_styles_file;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
46 extern int ass_hinting;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
47
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
48 ASS_Track* ass_default_track(ASS_Library* library);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
49 int ass_process_subtitle(ASS_Track* track, subtitle* sub);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
50 ASS_Track* ass_read_subdata(ASS_Library* library, sub_data* subdata, double fps);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
51 ASS_Track* ass_read_stream(ASS_Library* library, const char *fname, char *charset);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
52
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
53 void ass_configure(ASS_Renderer* priv, int w, int h, int hinting);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
54 void ass_configure_fonts(ASS_Renderer* priv);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
55 ASS_Library* ass_init(void);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
56
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
57 typedef struct {
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
58 ASS_Image* imgs;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
59 int changed;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
60 } EOSD_ImageList;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
61
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
62 extern int ass_force_reload;
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
63 ASS_Image* ass_mp_render_frame(ASS_Renderer *priv, ASS_Track* track, long long now, int* detect_change);
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
64
ef21cbba62ee Move libass/ass_mp.[ch] ---> ass_mp.[ch].
diego
parents:
diff changeset
65 #endif /* MPLAYER_ASS_MP_H */