summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.h
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-03-05 19:54:53 +0000
committerdynaflash <[email protected]>2009-03-05 19:54:53 +0000
commitbd8362c95bd788c44040655afb4da4e8c60ba9c2 (patch)
tree13c3e0e7e1c5454d6d7ef837befe9475ec1f626c /macosx/PictureController.h
parent10064dfb1db119c0d87ce07253803ac3d7ca507f (diff)
MacGui: Put Picture Settings and Video Filters into one inspector.
- Separated in a tab view - Move methods from PictureFilterController into PictureController - NOTE: This layout, etc is not final as far as detail by any means, however ... did not want to get too far out from svn due to the mods to xcode and the current development of the build system. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2226 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.h')
-rw-r--r--macosx/PictureController.h92
1 files changed, 89 insertions, 3 deletions
diff --git a/macosx/PictureController.h b/macosx/PictureController.h
index 756488155..fe6552d32 100644
--- a/macosx/PictureController.h
+++ b/macosx/PictureController.h
@@ -10,7 +10,7 @@
@class HBController;
@class PreviewController;
-@class PictureFilterController;
+
//#define HB_NUM_HBLIB_PICTURES 20 // # of preview pictures libhb should generate
@@ -22,9 +22,13 @@
HBController *fHBController;
PreviewController *fPreviewController; // reference to HBController
- PictureFilterController *fPictureFilterController;
IBOutlet NSWindow * fPictureWindow;
+
+ IBOutlet NSTabView * fSizeFilterView;
+
+ /* Picture Sizing */
+
NSMutableDictionary * fPicturePreviews; // NSImages, one for each preview libhb creates, created lazily
int fPicture;
@@ -65,6 +69,51 @@
returned to the previous state when anamorphic is turned
off */
BOOL keepAspectRatioPreviousState;
+
+
+ /* Video Filters */
+
+ IBOutlet NSBox * fPictureFilterBox;
+
+ IBOutlet NSBox * fDetelecineBox;
+ IBOutlet NSPopUpButton * fDetelecinePopUp;
+ IBOutlet NSTextField * fDetelecineField;
+
+ IBOutlet NSBox * fDecombDeinterlaceBox;
+ IBOutlet NSSlider * fDecombDeinterlaceSlider;
+
+ IBOutlet NSBox * fDecombBox;
+ IBOutlet NSPopUpButton * fDecombPopUp;
+ IBOutlet NSTextField * fDecombField;
+
+ IBOutlet NSBox * fDeinterlaceBox;
+ IBOutlet NSPopUpButton * fDeinterlacePopUp;
+ IBOutlet NSTextField * fDeinterlaceField;
+
+ IBOutlet NSBox * fDenoiseBox;
+ IBOutlet NSPopUpButton * fDenoisePopUp;
+ IBOutlet NSTextField * fDenoiseField;
+
+ IBOutlet NSButton * fDeblockCheck;
+ IBOutlet NSTextField * fDeblockField;
+ IBOutlet NSSlider * fDeblockSlider;
+
+ IBOutlet NSButton * fGrayscaleCheck;
+
+ IBOutlet NSTextField * fInfoField;
+
+
+
+ struct {
+ int detelecine;
+ int deinterlace;
+ int decomb;
+ int usedecomb;
+ int denoise;
+ int deblock;
+ int grayscale;
+ } fPictureFilterSettings;
+
}
- (id)init;
@@ -75,7 +124,7 @@
- (IBAction) showPreviewWindow: (id)sender;
- (BOOL) previewFullScreenMode;
- (IBAction) previewGoWindowed: (id)sender;
-- (IBAction) showFilterWindow: (id)sender;
+
@@ -96,6 +145,43 @@
- (void) setToFullScreenMode;
- (void) setToWindowedMode;
+/* Filter Actions */
+- (void) setInitialPictureFilters;
+- (IBAction) FilterSettingsChanged: (id) sender;
+- (void) adjustFilterDisplay: (id) sender;
+- (IBAction) modeDecombDeinterlaceSliderChanged: (id) sender;
+- (IBAction) deblockSliderChanged: (id) sender;
+
+- (int) detelecine;
+- (NSString*) detelecineCustomString;
+- (void) setDetelecine: (int) setting;
+- (void) setDetelecineCustomString: (NSString*) string;
+
+- (int) useDecomb;
+- (void) setUseDecomb: (int) setting;
+
+- (int) decomb;
+- (NSString*) decombCustomString;
+- (void) setDecomb: (int) setting;
+- (void) setDecombCustomString: (NSString*) string;
+
+- (int) deinterlace;
+- (NSString*) deinterlaceCustomString;
+- (void) setDeinterlace: (int) setting;
+- (void) setDeinterlaceCustomString: (NSString*) string;
+
+- (int) denoise;
+- (NSString*) denoiseCustomString;
+- (void) setDenoise: (int) setting;
+- (void) setDenoiseCustomString: (NSString*) string;
+
+- (int) deblock;
+- (void) setDeblock: (int) setting;
+
+- (int) grayscale;
+- (void) setGrayscale: (int) setting;
+
+
@end