diff options
author | John Stebbins <[email protected]> | 2015-10-17 15:57:03 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-11-12 09:49:56 -0800 |
commit | 890a551270ef8110e47d9c503e1588d3d2bc710f (patch) | |
tree | 1e31de5f379c54157c9ec095b55a8eeadca5ef8a /macosx/HBVideo+UIAdditions.m | |
parent | 88ce808b3083415950be070fa7bdc90d49a67eea (diff) |
x264: add multilib support (a.k.a. 10-bit)
This adds the structure to load an libx264 10-bit shared library.
The user must install this library themselves to an appropriate place.
Diffstat (limited to 'macosx/HBVideo+UIAdditions.m')
-rw-r--r-- | macosx/HBVideo+UIAdditions.m | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m index f0e6b2678..0d6aaf1c1 100644 --- a/macosx/HBVideo+UIAdditions.m +++ b/macosx/HBVideo+UIAdditions.m @@ -83,7 +83,8 @@ - (BOOL)turboTwoPassSupported { - return (self.encoder == HB_VCODEC_X264 || self.encoder == HB_VCODEC_X265); + return ((self.encoder & HB_VCODEC_X264_MASK) || + self.encoder == HB_VCODEC_X265); } /** @@ -92,7 +93,7 @@ */ - (NSString *)unparseOptions { - if (self.encoder != HB_VCODEC_X264) + if (!(self.encoder & HB_VCODEC_X264_MASK)) { return @""; } @@ -132,12 +133,12 @@ } // now, unparse - char *fX264PresetsUnparsedUTF8String = hb_x264_param_unparse(x264_preset, - x264_tune, - advanced_opts, - h264_profile, - h264_level, - self.job.picture.width, self.job.picture.height); + char *fX264PresetsUnparsedUTF8String = hb_x264_param_unparse( + hb_video_encoder_get_depth(self.encoder), + x264_preset, x264_tune, advanced_opts, + h264_profile, h264_level, + self.job.picture.width, + self.job.picture.height); // update the text field if (fX264PresetsUnparsedUTF8String != NULL) { |