OSDN Git Service

62e78af4a2ae65868e54bf298d8bf2688ad541e2
[handbrake-jp/handbrake-jp-git.git] / macosx / PictureController.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.m0k.org/>.
5    It may be used under the terms of the GNU General Public License. */
6
7 #include <Cocoa/Cocoa.h>
8
9 #include "hb.h"
10 #include "PictureGLView.h"
11
12 @interface PictureController : NSObject
13 {
14     hb_handle_t              * fHandle;
15     hb_title_t               * fTitle;
16
17     bool                       fHasQE;
18     uint8_t                  * fBuffer;
19     int                        fBufferSize;
20     uint8_t                  * fTexBuf[2];
21     int                        fTexBufSize;
22     int                        fPicture;
23
24     IBOutlet NSPanel         * fPicturePanel;
25
26     IBOutlet HBPictureGLView * fPictureGLView;
27     IBOutlet NSBox           * fPictureGLViewArea;
28     IBOutlet NSTextField     * fWidthField;
29     IBOutlet NSStepper       * fWidthStepper;
30     IBOutlet NSTextField     * fHeightField;
31     IBOutlet NSStepper       * fHeightStepper;
32     IBOutlet NSButton        * fRatioCheck;
33     IBOutlet NSMatrix        * fCropMatrix;
34     IBOutlet NSTextField     * fCropTopField;
35     IBOutlet NSStepper       * fCropTopStepper;
36     IBOutlet NSTextField     * fCropBottomField;
37     IBOutlet NSStepper       * fCropBottomStepper;
38     IBOutlet NSTextField     * fCropLeftField;
39     IBOutlet NSStepper       * fCropLeftStepper;
40     IBOutlet NSTextField     * fCropRightField;
41     IBOutlet NSStepper       * fCropRightStepper;
42     IBOutlet NSPopUpButton   * fDeinterlacePopUp;
43         IBOutlet NSButton        * fDetelecineCheck;
44     IBOutlet NSButton        * fDeblockCheck;
45         IBOutlet NSPopUpButton   * fDenoisePopUp;
46         IBOutlet NSButton        * fPARCheck;
47     IBOutlet NSButton        * fEffectsCheck;
48     IBOutlet NSButton        * fPrevButton;
49     IBOutlet NSButton        * fNextButton;
50     IBOutlet NSTextField     * fInfoField;
51         
52     int     MaxOutputWidth;
53     int     MaxOutputHeight;
54     BOOL    autoCrop;
55     
56     /* used to track the previous state of the keep aspect
57     ratio checkbox when turning anamorphic on, so it can be
58     returned to the previous state when anamorphic is turned
59     off */
60     BOOL    keepAspectRatioPreviousState; 
61     
62     struct {
63         int    detelecine;
64         int     deinterlace;
65         int     denoise;
66         int     deblock;
67     } fPictureFilterSettings;
68
69     id delegate;
70 }
71 - (id)initWithDelegate:(id)del;
72
73 - (void) SetHandle: (hb_handle_t *) handle;
74 - (void) SetTitle:  (hb_title_t *)  title;
75 - (void) Display: (int) anim;
76
77 - (IBAction) SettingsChanged: (id) sender;
78 - (IBAction) PreviousPicture: (id) sender;
79 - (IBAction) NextPicture: (id) sender;
80 - (IBAction) ClosePanel: (id) sender;
81
82 - (BOOL) autoCrop;
83 - (void) setAutoCrop: (BOOL) setting;
84
85 - (int) detelecine;
86 - (void) setDetelecine: (int) setting;
87 - (int) deinterlace;
88 - (void) setDeinterlace: (int) setting;
89 - (int) denoise;
90 - (void) setDenoise: (int) setting;
91 - (int) deblock;
92 - (void) setDeblock: (int) setting;
93
94 - (void)showPanelInWindow: (NSWindow *)fWindow forTitle: (hb_title_t *)title;
95 - (BOOL) loadMyNibFile;
96 @end
97
98 @interface NSObject (PictureControllertDelegateMethod)
99 - (void)pictureSettingsDidChange;
100 @end