annotate sub/ass_mp.h @ 32725:4802a80f7a50

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