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/HBVideoController.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/HBVideoController.m')
-rw-r--r-- | macosx/HBVideoController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m index 8ade4da8b..9a0ecb14a 100644 --- a/macosx/HBVideoController.m +++ b/macosx/HBVideoController.m @@ -128,7 +128,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; } else if ([keyPath isEqualToString:@"video.unparseOptions"]) { - if (self.video.encoder == HB_VCODEC_X264) + if (self.video.encoder & HB_VCODEC_X264_MASK) { fDisplayX264PresetsUnparseTextField.stringValue = [NSString stringWithFormat:@"x264 Unparse: %@", self.video.unparseOptions]; } @@ -214,7 +214,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; fPresetsBox.contentView = fPresetView; [self setupPresetsSlider]; - if (self.video.encoder == HB_VCODEC_X264) + if (self.video.encoder & HB_VCODEC_X264_MASK) { self.advancedController.hidden = NO; } @@ -250,7 +250,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; */ - (void)toggleAdvancedOptionsCheckBoxForEncoder:(int)encoder { - if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBShowAdvancedTab"] && (encoder == HB_VCODEC_X264)) + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBShowAdvancedTab"] && (encoder & HB_VCODEC_X264_MASK)) { fX264UseAdvancedOptionsCheck.hidden = NO; fDividerLine.hidden = YES; |