From 5d5ddb2ad00a13e719585cefbbb59fa307fa2f73 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 25 Nov 2012 23:32:35 +0100 Subject: sub: add --sub-gray option to display image subs in grayscale MPlayer/mplayer2 still show DVD subtitles in gray. Depending on who you ask, this can be considered a bug or a feature. Include rendering in gray as explicit feature, so the user can decide what is better. This affects all indexed sub bitmaps entering the OSD rendering path. Currently, this means all image subs are affected by this option, but nothing else. --- core/cfg-mplayer.h | 1 + core/options.h | 1 + 2 files changed, 2 insertions(+) (limited to 'core') diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h index ded7245f83..23b937f91a 100644 --- a/core/cfg-mplayer.h +++ b/core/cfg-mplayer.h @@ -507,6 +507,7 @@ const m_option_t common_opts[] = { M_CHOICES(({"exact", 0}, {"fuzzy", 1}, {"all", 2}))}, {"sub-pos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, OPT_FLOATRANGE("sub-gauss", sub_gauss, 0, 0.0, 3.0), + OPT_MAKE_FLAGS("sub-gray", sub_gray, 0), OPT_MAKE_FLAGS("ass", ass_enabled, 0), OPT_FLOATRANGE("sub-scale", sub_scale, 0, 0, 100), OPT_FLOATRANGE("ass-line-spacing", ass_line_spacing, 0, -1000, 1000), diff --git a/core/options.h b/core/options.h index 58d6a64e70..47f4593b9b 100644 --- a/core/options.h +++ b/core/options.h @@ -114,6 +114,7 @@ typedef struct MPOpts { struct osd_style_opts *osd_style; float sub_scale; float sub_gauss; + int sub_gray; int ass_enabled; float ass_line_spacing; int ass_top_margin; -- cgit v1.2.3