diff options
Diffstat (limited to 'macosx/HBFilters+UIAdditions.m')
-rw-r--r-- | macosx/HBFilters+UIAdditions.m | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/macosx/HBFilters+UIAdditions.m b/macosx/HBFilters+UIAdditions.m index 33acb81b9..230022cc7 100644 --- a/macosx/HBFilters+UIAdditions.m +++ b/macosx/HBFilters+UIAdditions.m @@ -274,6 +274,33 @@ static NSDictionary *denoiseTypesDict = nil; return [self.deinterlace isEqualToString:@"custom"] ? YES : NO; } +- (BOOL)denoiseEnabled +{ + return ![self.denoise isEqualToString:@"off"]; +} + +- (BOOL)customDenoiseSelected +{ + return [self.denoisePreset isEqualToString:@"custom"] && [self denoiseEnabled]; +} + +- (BOOL)denoiseTunesAvailable +{ + return [self.denoise isEqualToString:@"nlmeans"] && ![self.denoisePreset isEqualToString:@"custom"]; +} + +- (NSString *)deblockSummary +{ + if (self.deblock == 0) + { + return NSLocalizedString(@"Off", nil); + } + else + { + return [NSString stringWithFormat: @"%.0ld", (long)self.deblock]; + } +} + - (NSString *)summary { NSMutableString *summary = [NSMutableString string]; |