OSDN Git Service

1bfde5be3e6d468618e0b00c2c1c7b17f9dd8fa6
[handbrake-jp/handbrake-jp-git.git] / macosx / HBFilterController.h
1 /* $Id: PictureController.h,v 1.6 2005/04/14 20:40:05 titer Exp $
2
3    This file is part of the HandBrake source code.
4    Homepage: <http://handbrake.fr/>.
5    It may be used under the terms of the GNU General Public License. */
6
7 #import <Cocoa/Cocoa.h>
8
9 #include "hb.h" 
10
11 @class HBController;
12 @class PreviewController;
13
14
15 //#define HB_NUM_HBLIB_PICTURES      20   // # of preview pictures libhb should generate
16
17 @interface PictureFilterController : NSWindowController
18 {
19     hb_handle_t              * fHandle;
20     hb_title_t               * fTitle;
21
22     HBController             *fHBController;
23     PreviewController        *fPreviewController;        // reference to HBController
24     IBOutlet NSWindow        * fFilterWindow;
25
26     IBOutlet NSBox           * fPictureFilterBox;
27
28     IBOutlet NSPopUpButton   * fDeinterlacePopUp;
29     IBOutlet NSButton        * fDecombCheck;
30         IBOutlet NSButton        * fDetelecineCheck;
31     IBOutlet NSButton        * fDeblockCheck;
32     IBOutlet NSTextField     * fDeblockField;
33     IBOutlet NSSlider        * fDeblockSlider;
34         IBOutlet NSPopUpButton   * fDenoisePopUp;
35         IBOutlet NSPopUpButton   * fAnamorphicPopUp;
36     IBOutlet NSSlider        * fPictureSlider;
37     IBOutlet NSTextField     * fInfoField;
38         
39     IBOutlet NSButton        * fPreviewOpenButton;
40     IBOutlet NSButton        * fPictureSizeOpenButton;
41         
42     int     MaxOutputWidth;
43     int     MaxOutputHeight;
44     BOOL    autoCrop;
45     BOOL    allowLooseAnamorphic;
46     
47     int output_width, output_height, output_par_width, output_par_height;
48     int display_width;
49     
50     /* used to track the previous state of the keep aspect
51     ratio checkbox when turning anamorphic on, so it can be
52     returned to the previous state when anamorphic is turned
53     off */
54     BOOL    keepAspectRatioPreviousState; 
55     
56     struct {
57         int     detelecine;
58         int     deinterlace;
59         int     decomb;
60         int     denoise;
61         int     deblock;
62     } fPictureFilterSettings;
63
64
65 }
66 - (id)init;
67
68 - (void) SetHandle: (hb_handle_t *) handle;
69 - (void) SetTitle:  (hb_title_t *)  title;
70 - (void)setHBController: (HBController *)controller;
71 - (IBAction) showFilterWindow: (id)sender;
72 - (IBAction) showPreviewWindow: (id)sender;
73
74 - (void) setInitialPictureFilters;
75
76
77 - (IBAction) FilterSettingsChanged: (id) sender;
78
79
80
81 - (BOOL) autoCrop;
82 - (void) setAutoCrop: (BOOL) setting;
83
84 - (BOOL) allowLooseAnamorphic;
85 - (void) setAllowLooseAnamorphic: (BOOL) setting;
86 - (IBAction) deblockSliderChanged: (id) sender;
87 - (int) detelecine;
88 - (void) setDetelecine: (int) setting;
89 - (int) deinterlace;
90 - (void) setDeinterlace: (int) setting;
91 - (int) decomb;
92 - (void) setDecomb: (int) setting;
93 - (int) denoise;
94 - (void) setDenoise: (int) setting;
95 - (int) deblock;
96 - (void) setDeblock: (int) setting;
97
98 - (IBAction)showPreviewPanel: (id)sender forTitle: (hb_title_t *)title;
99 - (IBAction) showPictureSettingsWindow: (id)sender;
100
101 - (void) setToFullScreenMode;
102 - (void) setToWindowedMode;
103
104
105 @end
106