diff options
author | ritsuka <[email protected]> | 2014-12-23 10:23:59 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-23 10:23:59 +0000 |
commit | a66b692e29674de9c444fd54f0493d03b4900abc (patch) | |
tree | 1356eec981d0542ad6ca9087794e7cc52a09c664 /macosx/HBVideo.h | |
parent | ee10e1fdb417c7f1047406522379c85c47143bfd (diff) |
MacGui: move the UI helper methods to new categories. Implement NSCoding in more classes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6643 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBVideo.h')
-rw-r--r-- | macosx/HBVideo.h | 53 |
1 files changed, 7 insertions, 46 deletions
diff --git a/macosx/HBVideo.h b/macosx/HBVideo.h index 837aaaeb2..5936c8803 100644 --- a/macosx/HBVideo.h +++ b/macosx/HBVideo.h @@ -6,11 +6,17 @@ #import <Foundation/Foundation.h> +@class HBJob; + /** * HBVideo */ @interface HBVideo : NSObject <NSCoding> +- (instancetype)initWithJob:(HBJob *)job; + +- (void)containerChanged; + - (void)applySettingsFromPreset:(NSDictionary *)preset; - (void)prepareVideoForPreset:(NSMutableDictionary *)preset; @@ -43,51 +49,6 @@ @property (nonatomic, readwrite) BOOL fastDecode; -/** - * Arrays of possible options for the video properties. - */ -@property (nonatomic, readonly) NSArray *encoders; -@property (nonatomic, readonly) NSArray *frameRates; - -@property (nonatomic, readonly) NSArray *presets; -@property (nonatomic, readonly) NSArray *tunes; -@property (nonatomic, readonly) NSArray *profiles; -@property (nonatomic, readonly) NSArray *levels; - -@property (nonatomic, readonly) BOOL fastDecodeSupported; - -@property (nonatomic, readonly) NSString *unparseOptions; - -@property (nonatomic, readonly) double qualityMinValue; -@property (nonatomic, readonly) double qualityMaxValue; - -/** - * Width and height for x264 unparse. Will be removed later. - */ -@property (nonatomic, readwrite) int widthForUnparse; -@property (nonatomic, readwrite) int heightForUnparse; - -/** - * Current container, this will be removed later too. - */ -@property (nonatomic, readwrite) int container; - -@end - -/** - * A series of value trasformers to bridge the libhb enums - * to the textual rapresentations used in the interface. - */ -@interface HBVideoEncoderTransformer : NSValueTransformer -@end - -@interface HBFrameRateTransformer : NSValueTransformer -@end - -@interface HBPresetsTransformer : NSValueTransformer -- (instancetype)initWithEncoder:(int)encoder; -@end +@property (nonatomic, readwrite, assign) HBJob *job; -@interface HBQualityTransformer : NSValueTransformer -- (instancetype)initWithReversedDirection:(BOOL)reverse min:(double)min max:(double)max; @end |