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. --- sub/img_convert.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub/img_convert.h') diff --git a/sub/img_convert.h b/sub/img_convert.h index eab543051c..2ea17ef889 100644 --- a/sub/img_convert.h +++ b/sub/img_convert.h @@ -11,7 +11,9 @@ struct osd_conv_cache *osd_conv_cache_new(void); // These functions convert from one OSD format to another. On success, they copy // the converted image data into c, and change imgs to point to the data. bool osd_conv_idx_to_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs); +// Sub postprocessing bool osd_conv_blur_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs, double gblur); +bool osd_conv_idx_to_gray(struct osd_conv_cache *c, struct sub_bitmaps *imgs); #endif -- cgit v1.2.3