diff options
author | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
commit | c762b2c0ec5b6fb58d1fd453e2b5aed526c6d693 (patch) | |
tree | e0ab43c5ddd28ed876158b689be0c93c2380d970 /macosx/HBVideo+UIAdditions.m | |
parent | de7355d5ad5257c4cce5e0a99fffb3ee58264ba0 (diff) |
MacGui: set the minimum deployment target to 10.10. Remove Growl and use macOS standard notifications. Remove deprecated API usage and code that doesn't compile anymore (QTKit).
Diffstat (limited to 'macosx/HBVideo+UIAdditions.m')
-rw-r--r-- | macosx/HBVideo+UIAdditions.m | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m index 1a07bb810..0c0410b3a 100644 --- a/macosx/HBVideo+UIAdditions.m +++ b/macosx/HBVideo+UIAdditions.m @@ -413,3 +413,31 @@ } @end + +@implementation HBVideo (EncoderAdditions) + +- (BOOL)isUnparsedSupported:(int)encoder +{ + return encoder & HB_VCODEC_X264_MASK; +} +- (BOOL)isPresetSystemSupported:(int)encoder +{ + return hb_video_encoder_get_presets(encoder) != NULL; +} + +- (BOOL)isSimpleOptionsPanelSupported:(int)encoder +{ + return encoder & HB_VCODEC_FFMPEG_MASK; +} + +- (BOOL)isOldAdvancedPanelSupported:(int)encoder +{ + return encoder & HB_VCODEC_X264_MASK; +} + +- (void)qualityLimitsForEncoder:(int)encoder low:(float *)low high:(float *)high granularity:(float *)granularity direction:(int *)direction +{ + hb_video_quality_get_limits(encoder, low, high, granularity, direction); +} + +@end |