ao_pulse: support native mute control
[mplayer.git] / sub / ass_mp.h
bloba222d61bbb353f0309cfff634fd2eaae5019d8fa
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>
25 #include <stdbool.h>
27 #include "config.h"
28 #include "subreader.h"
30 #ifdef CONFIG_ASS
31 #include <ass/ass.h>
32 #include <ass/ass_types.h>
34 ASS_Track *mp_ass_default_track(ASS_Library *library, struct MPOpts *opts);
35 ASS_Track *mp_ass_read_subdata(ASS_Library *library, struct MPOpts *opts,
36 sub_data *subdata, double fps);
37 ASS_Track *mp_ass_read_stream(ASS_Library *library, const char *fname,
38 char *charset);
40 struct MPOpts;
41 void mp_ass_configure(ASS_Renderer *priv, struct MPOpts *opts, int w, int h,
42 bool unscaled);
43 void mp_ass_configure_fonts(ASS_Renderer *priv);
44 ASS_Library *mp_ass_init(struct MPOpts *opts);
46 void mp_ass_reload_options(ASS_Renderer *priv, struct MPOpts *opts);
48 #else /* CONFIG_ASS */
50 /* Needed for EOSD code using this type to compile */
52 typedef struct ass_image {
53 int w, h;
54 int stride;
55 unsigned char *bitmap;
56 uint32_t color;
57 int dst_x, dst_y;
58 struct ass_image *next;
59 } ASS_Image;
61 #endif
63 typedef struct {
64 ASS_Image *imgs;
65 int changed;
66 } mp_eosd_images_t;
69 #endif /* MPLAYER_ASS_MP_H */