From 45c6f4b53d656e18ecfe9e00b142409e08cd3cd5 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 10 Jan 2016 08:11:17 +0100 Subject: MacGui: add rotate filter support to HBJob. --- macosx/HBJob+HBJobConversion.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'macosx/HBJob+HBJobConversion.m') diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index 78fc16229..1a7bd4c08 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -482,6 +482,13 @@ hb_add_filter(job, filter, NULL); } + // Add rotate filter + if (self.filters.rotate) + { + filter = hb_filter_init(HB_FILTER_ROTATE); + hb_add_filter(job, filter, [NSString stringWithFormat:@"%d", self.filters.rotate].UTF8String); + } + // Add framerate shaping filter filter = hb_filter_init(HB_FILTER_VFR); hb_add_filter(job, filter, [[NSString stringWithFormat:@"%d:%d:%d", -- cgit v1.2.3