summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob+HBJobConversion.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-01-10 08:11:17 +0100
committerDamiano Galassi <[email protected]>2016-01-10 08:11:17 +0100
commit45c6f4b53d656e18ecfe9e00b142409e08cd3cd5 (patch)
tree17402386f67cfdbb49e37c492a49d58b0d29a184 /macosx/HBJob+HBJobConversion.m
parent361c5143f3be4ab72bd08bed724b05007e4d108b (diff)
MacGui: add rotate filter support to HBJob.
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r--macosx/HBJob+HBJobConversion.m7
1 files changed, 7 insertions, 0 deletions
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",