manpage: Remove "MPlayer only" notes
[mplayer/glamo.git] / ass_mp.h
blob0694426898843067c0f3557e011989190206b51a
1 /*
2 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
4 * This file is part of MPlayer.
6 * MPlayer is free software; you can redistribute it and/or modify
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.
11 * MPlayer is distributed in the hope that it will be useful,
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.
16 * You should have received a copy of the GNU General Public License along
17 * with libass; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef MPLAYER_ASS_MP_H
22 #define MPLAYER_ASS_MP_H
24 #include <stdint.h>
26 #include "config.h"
27 #include "subreader.h"
29 #ifdef CONFIG_ASS
30 #include <ass/ass.h>
31 #include <ass/ass_types.h>
33 extern ASS_Library *ass_library;
34 extern float ass_font_scale;
35 extern float ass_line_spacing;
36 extern int ass_top_margin;
37 extern int ass_bottom_margin;
38 extern int use_embedded_fonts;
39 extern char **ass_force_style_list;
40 extern int ass_use_margins;
41 extern char *ass_color;
42 extern char *ass_border_color;
43 extern char *ass_styles_file;
44 extern int ass_hinting;
46 ASS_Track *ass_default_track(ASS_Library *library);
47 int ass_process_subtitle(ASS_Track *track, subtitle *sub);
48 ASS_Track *ass_read_subdata(ASS_Library *library, sub_data *subdata,
49 double fps);
50 ASS_Track *ass_read_stream(ASS_Library *library, const char *fname, char *charset);
52 void ass_configure(ASS_Renderer *priv, int w, int h, int hinting);
53 void ass_configure_fonts(ASS_Renderer *priv);
54 ASS_Library *ass_init(void);
56 extern int ass_force_reload;
57 ASS_Image *ass_mp_render_frame(ASS_Renderer *priv, ASS_Track *track,
58 long long now, int *detect_change);
60 #else /* CONFIG_ASS */
62 /* Needed for EOSD code using this type to compile */
64 typedef struct ass_image {
65 int w, h;
66 int stride;
67 unsigned char *bitmap;
68 uint32_t color;
69 int dst_x, dst_y;
70 struct ass_image *next;
71 } ASS_Image;
73 #endif
75 typedef struct {
76 ASS_Image *imgs;
77 int changed;
78 } mp_eosd_images_t;
81 #endif /* MPLAYER_ASS_MP_H */