consistency cosmetics
[mplayer/greg.git] / libass / ass_mp.h
blob1395b45f9d6b716e5b8552cb3a89d428c1af8891
1 // -*- c-basic-offset: 8; indent-tabs-mode: t -*-
2 // vim:ts=8:sw=8:noet:ai:
3 /*
4 Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
6 This program 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 This program 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
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef ASS_MP_H
22 #define ASS_MP_H
24 #include "subreader.h"
26 extern ass_library_t* ass_library;
27 extern int ass_enabled;
28 extern float ass_font_scale;
29 extern float ass_line_spacing;
30 extern int ass_top_margin;
31 extern int ass_bottom_margin;
32 extern int extract_embedded_fonts;
33 extern char **ass_force_style_list;
34 extern int ass_use_margins;
35 extern char* ass_color;
36 extern char* ass_border_color;
37 extern char* ass_styles_file;
38 extern int ass_hinting;
40 ass_track_t* ass_default_track(ass_library_t* library);
41 int ass_process_subtitle(ass_track_t* track, subtitle* sub);
42 ass_track_t* ass_read_subdata(ass_library_t* library, sub_data* subdata, double fps);
44 void ass_configure(ass_renderer_t* priv, int w, int h, int hinting);
45 void ass_configure_fonts(ass_renderer_t* priv);
46 ass_library_t* ass_init(void);
48 typedef struct {
49 ass_image_t* imgs;
50 int changed;
51 } mp_eosd_images_t;
53 #endif /* ASS_MP_H */