summaryrefslogtreecommitdiffstats
path: root/macosx/HBFilters+UIAdditions.h
blob: 6b42688854882ac46997dcb884344b5c5642a274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*  HBFilters+UIAdditions.h $

 This file is part of the HandBrake source code.
 Homepage: <http://handbrake.fr/>.
 It may be used under the terms of the GNU General Public License. */

#import <Foundation/Foundation.h>
#import <HandBrakeKit/HBFilters.h>

@interface HBFilters (UIAdditions)

/**
 *  Getters to get the possible values for the filters.
 */
+ (NSDictionary *)detelecinePresetsDict;

+ (NSDictionary *)combDetectionPresetsDict;

+ (NSDictionary *)deinterlaceTypesDict;
+ (NSDictionary *)decombPresetsDict;
+ (NSDictionary *)deinterlacePresetsDict;

+ (NSDictionary *)denoisePresetDict;
+ (NSDictionary *)nlmeansTunesDict;
+ (NSDictionary *)denoiseTypesDict;

+ (NSDictionary *)sharpenPresetDict;
+ (NSDictionary *)sharpenTunesDict;
+ (NSDictionary *)sharpenTypesDict;

+ (NSDictionary *)deblockPresetDict;
+ (NSDictionary *)deblockTunesDict;

- (BOOL)customDetelecineSelected;

@property (nonatomic, readonly) BOOL customCombDetectionSelected;

- (BOOL)deinterlaceEnabled;
- (BOOL)customDeinterlaceSelected;

- (BOOL)sharpenEnabled;
- (BOOL)customSharpenSelected;
- (BOOL)sharpenTunesAvailable;

- (BOOL)deblockTunesAvailable;
- (BOOL)customDeblockSelected;

@property (nonatomic, readonly) NSArray *detelecineSettings;

@property (nonatomic, readonly) NSArray *combDetectionSettings;

@property (nonatomic, readonly) NSArray *deinterlaceTypes;
@property (nonatomic, readonly) NSArray *deinterlacePresets;

@property (nonatomic, readonly) NSArray *sharpenTypes;
@property (nonatomic, readonly) NSArray *sharpenPresets;
@property (nonatomic, readonly) NSArray *sharpenTunes;

@property (nonatomic, readonly) NSArray *deblockPresets;
@property (nonatomic, readonly) NSArray *deblockTunes;

@end

/**
 *  A collection of NSValueTransformer to map between localized UI values
 *  and the internals values.
 */

@interface HBGenericDictionaryTransformer : NSValueTransformer
@property (nonatomic, strong) NSDictionary *dict;
@end

@interface HBDetelecineTransformer : HBGenericDictionaryTransformer
@end

@interface HBCombDetectionTransformer : HBGenericDictionaryTransformer
@end

@interface HBDeinterlaceTransformer : HBGenericDictionaryTransformer
@end

@interface HBDeinterlacePresetTransformer : HBGenericDictionaryTransformer
@end

@interface HBDenoisePresetTransformer : HBGenericDictionaryTransformer
@end

@interface HBDenoiseTuneTransformer : HBGenericDictionaryTransformer
@end

@interface HBDenoiseTransformer : HBGenericDictionaryTransformer
@end

@interface HBSharpenPresetTransformer : HBGenericDictionaryTransformer
@end

@interface HBSharpenTuneTransformer : HBGenericDictionaryTransformer
@end

@interface HBSharpenTransformer : HBGenericDictionaryTransformer
@end

@interface HBDeblockTuneTransformer : HBGenericDictionaryTransformer
@end

@interface HBDeblockTransformer : HBGenericDictionaryTransformer
@end