diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-05-19 01:05:25 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-18 15:17:28 +0200 |
commit | 4284cf9ef050044619c773b195f0eb941f922e88 (patch) | |
tree | fa1c57bce88ca589a4dc00390dc35860fb928a16 /subreader.h | |
parent | d5eaf6a820d73181f07de3387cd1c115a49648f5 (diff) | |
download | mpv-4284cf9ef050044619c773b195f0eb941f922e88.tar.bz2 mpv-4284cf9ef050044619c773b195f0eb941f922e88.tar.xz |
subtitles: style support for common SubRip tags and MicroDVD
SubRip subtitles have no "official" spec for any styling support, but
various tags are in common use; previous code filtered out text
between <> to remove HTML-style tags. Add support for those tags and
for MicroDVD subtitle styling. The style display is implemented by
converting the subtitles to the ASS subtitle format and displaying
them with libass, so libass needs to be enabled.
Original patch by Clément Bœsch <ubitux@gmail.com>.
Diffstat (limited to 'subreader.h')
-rw-r--r-- | subreader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subreader.h b/subreader.h index b1aa07421b..9c7465d71a 100644 --- a/subreader.h +++ b/subreader.h @@ -20,6 +20,7 @@ #define MPLAYER_SUBREADER_H #include <stdio.h> +#include <stdbool.h> #include "config.h" @@ -84,7 +85,8 @@ extern char *fribidi_charset; extern int flip_hebrew; extern int fribidi_flip_commas; -sub_data* sub_read_file (char *filename, float pts); +struct MPOpts; +sub_data* sub_read_file (char *filename, float pts, struct MPOpts *opts); subtitle* subcp_recode (subtitle *sub); // enca_fd is the file enca uses to determine the codepage. // setting to NULL disables enca. |