From: John Stebbins Date: Thu, 15 Oct 2015 14:46:58 +0000 (-0700) Subject: macui: add grayscale filter X-Git-Tag: 1.0.0~828^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eed929c17d0f00486299a1413ab5a58c49327b7c;p=handbrake macui: add grayscale filter --- diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index 802eb2bda..b194e86d8 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -218,8 +218,6 @@ break; } - job->grayscale = self.filters.grayscale; - // Map the settings in the dictionaries for the SubtitleList array to match title->list_subtitle BOOL one_burned = NO; for (NSDictionary *subtitleDict in self.subtitles.tracks) @@ -484,6 +482,13 @@ self.picture.cropTop, self.picture.cropBottom, self.picture.cropLeft, self.picture.cropRight].UTF8String); + // Add grayscale filter + if (self.filters.grayscale) + { + filter = hb_filter_init(HB_FILTER_GRAYSCALE); + hb_add_filter(job, filter, NULL); + } + // Add framerate shaping filter filter = hb_filter_init(HB_FILTER_VFR); hb_add_filter(job, filter, [[NSString stringWithFormat:@"%d:%d:%d",