annotate sub/av_sub.h @ 36650:8b2c68d6fd89

Enable specifying a font file in the GUI preferences. This has been broken since the introduction of Fontconfig. Since Fontconfig is selecting fonts by font patterns and the GUI does so by selecting a font file, it is necessary to temporarily disable fontconfig font handling if there is a directory separator character found in the name (or pattern) of the font to be used, i.e. assume the font name to be a pattern if and only if it doesn't contain a directory separator character. Thus set option 'fontconfig' depending on font_name. Set it in guiInit() for the font possibly given in a configuration file or on the command line, and set it in mplayerLoadFont() whenever it is affected by GUI preferences settings. (Although the font selection dialog only allows files to be selected, it is possible to simply enter a fontconfig font pattern in the preferences' text entry field - or to enter it directly into the GUI configuration file or to specify on the command line, both of which always is possible.)
author ib
date Sun, 26 Jan 2014 16:40:49 +0000
parents f4822d5572f5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32457
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
1 /*
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
2 * This file is part of MPlayer.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
3 *
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
7 * (at your option) any later version.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
8 *
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
12 * GNU General Public License for more details.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
13 *
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License along
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
17 */
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
18
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
19 #ifndef MPLAYER_AV_SUB_H
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
20 #define MPLAYER_AV_SUB_H
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
21
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
22 #include <stdint.h>
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
23
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
24 struct sh_sub;
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
25
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
26 void reset_avsub(struct sh_sub *sh);
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
27 int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size,
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
28 double *pts, double *endpts);
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
29
f4822d5572f5 Move av_sub.[ch] to the sub directory.
cigaes
parents:
diff changeset
30 #endif /* MPLAYER_AV_SUB_H */