summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob+HBJobConversion.m
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-10-15 07:46:58 -0700
committerJohn Stebbins <[email protected]>2015-10-15 07:46:58 -0700
commiteed929c17d0f00486299a1413ab5a58c49327b7c (patch)
treeb9789540e6d118e3c0768ee64b87fde95683b6bb /macosx/HBJob+HBJobConversion.m
parent10e3deb6cf13ebbe2020a7736a231db68e6ab27a (diff)
macui: add grayscale filter
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r--macosx/HBJob+HBJobConversion.m9
1 files changed, 7 insertions, 2 deletions
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",