1 // -*- c-basic-offset: 8; indent-tabs-mode: t -*-
2 // vim:ts=8:sw=8:noet:ai:
4 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
6 * This file is part of libass.
8 * libass is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * libass is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with libass; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include "subreader.h"
27 #include "ass_types.h"
30 extern ass_library_t
* ass_library
;
31 extern int ass_enabled
;
32 extern float ass_font_scale
;
33 extern float ass_line_spacing
;
34 extern int ass_top_margin
;
35 extern int ass_bottom_margin
;
36 extern int extract_embedded_fonts
;
37 extern char **ass_force_style_list
;
38 extern int ass_use_margins
;
39 extern char* ass_color
;
40 extern char* ass_border_color
;
41 extern char* ass_styles_file
;
42 extern int ass_hinting
;
44 ass_track_t
* ass_default_track(ass_library_t
* library
);
45 int ass_process_subtitle(ass_track_t
* track
, subtitle
* sub
);
46 ass_track_t
* ass_read_subdata(ass_library_t
* library
, sub_data
* subdata
, double fps
);
48 void ass_configure(ass_renderer_t
* priv
, int w
, int h
, int hinting
);
49 void ass_configure_fonts(ass_renderer_t
* priv
);
50 ass_library_t
* ass_init(void);
57 extern int ass_force_reload
;
58 ass_image_t
* ass_mp_render_frame(ass_renderer_t
*priv
, ass_track_t
* track
, long long now
, int* detect_change
);
60 #endif /* LIBASS_MP_H */