OSDN Git Service

Added buffer management and changed fifo sizes. Changed job->subtitle_scan to job...
[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 NSTextField     * fWidthField;
28     IBOutlet NSStepper       * fWidthStepper;
29     IBOutlet NSTextField     * fHeightField;
30     IBOutlet NSStepper       * fHeightStepper;
31     IBOutlet NSButton        * fRatioCheck;
32     IBOutlet NSMatrix        * fCropMatrix;
33     IBOutlet NSTextField     * fCropTopField;
34     IBOutlet NSStepper       * fCropTopStepper;
35     IBOutlet NSTextField     * fCropBottomField;
36     IBOutlet NSStepper       * fCropBottomStepper;
37     IBOutlet NSTextField     * fCropLeftField;
38     IBOutlet NSStepper       * fCropLeftStepper;
39     IBOutlet NSTextField     * fCropRightField;
40     IBOutlet NSStepper       * fCropRightStepper;
41     IBOutlet NSPopUpButton   * fDeinterlacePopUp;
42         IBOutlet NSButton        * fDetelecineCheck;
43         IBOutlet NSPopUpButton   * fDenoisePopUp;
44         IBOutlet NSButton        * fPARCheck;
45     IBOutlet NSButton        * fEffectsCheck;
46     IBOutlet NSButton        * fPrevButton;
47     IBOutlet NSButton        * fNextButton;
48     IBOutlet NSTextField     * fInfoField;
49         
50     int     MaxOutputWidth;
51     int     MaxOutputHeight;
52     BOOL    autoCrop;
53     
54     struct {
55         int    detelecine;
56         int     deinterlace;
57         int     denoise;
58     } fPictureFilterSettings;
59
60     id delegate;
61 }
62 - (id)initWithDelegate:(id)del;
63
64 - (void) SetHandle: (hb_handle_t *) handle;
65 - (void) SetTitle:  (hb_title_t *)  title;
66 - (void) Display: (int) anim;
67
68 - (IBAction) SettingsChanged: (id) sender;
69 - (IBAction) PreviousPicture: (id) sender;
70 - (IBAction) NextPicture: (id) sender;
71 - (IBAction) ClosePanel: (id) sender;
72
73 - (BOOL) autoCrop;
74 - (void) setAutoCrop: (BOOL) setting;
75
76 - (int) detelecine;
77 - (void) setDetelecine: (int) setting;
78 - (int) deinterlace;
79 - (void) setDeinterlace: (int) setting;
80 - (int) denoise;
81 - (void) setDenoise: (int) setting;
82
83 - (void) showPanelInWindow: (NSWindow *) fWindow forTitle:(hb_title_t *)title;
84 - (BOOL) loadMyNibFile;
85 @end
86
87 @interface NSObject (PictureControllertDelegateMethod)
88 - (void)pictureSettingsDidChange;
89 @end