OSDN Git Service

Change the fifo size from being statically tuned for a Mac Pro with 4 CPUs to dynamic...
[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 NSPopUpButton   * fDenoisePopUp;
45         IBOutlet NSButton        * fPARCheck;
46     IBOutlet NSButton        * fEffectsCheck;
47     IBOutlet NSButton        * fPrevButton;
48     IBOutlet NSButton        * fNextButton;
49     IBOutlet NSTextField     * fInfoField;
50         
51     int     MaxOutputWidth;
52     int     MaxOutputHeight;
53     BOOL    autoCrop;
54     
55     /* used to track the previous state of the keep aspect
56     ratio checkbox when turning anamorphic on, so it can be
57     returned to the previous state when anamorphic is turned
58     off */
59     BOOL    keepAspectRatioPreviousState; 
60     
61     struct {
62         int    detelecine;
63         int     deinterlace;
64         int     denoise;
65     } fPictureFilterSettings;
66
67     id delegate;
68 }
69 - (id)initWithDelegate:(id)del;
70
71 - (void) SetHandle: (hb_handle_t *) handle;
72 - (void) SetTitle:  (hb_title_t *)  title;
73 - (void) Display: (int) anim;
74
75 - (IBAction) SettingsChanged: (id) sender;
76 - (IBAction) PreviousPicture: (id) sender;
77 - (IBAction) NextPicture: (id) sender;
78 - (IBAction) ClosePanel: (id) sender;
79
80 - (BOOL) autoCrop;
81 - (void) setAutoCrop: (BOOL) setting;
82
83 - (int) detelecine;
84 - (void) setDetelecine: (int) setting;
85 - (int) deinterlace;
86 - (void) setDeinterlace: (int) setting;
87 - (int) denoise;
88 - (void) setDenoise: (int) setting;
89
90 - (void)showPanelInWindow: (NSWindow *)fWindow forTitle: (hb_title_t *)title;
91 - (BOOL) loadMyNibFile;
92 @end
93
94 @interface NSObject (PictureControllertDelegateMethod)
95 - (void)pictureSettingsDidChange;
96 @end