OSDN Git Service

b42bd510fb59130d37787a66053d073962f054a0
[handbrake-jp/handbrake-jp-git.git] / macosx / InstantHandBrake / Preset.m
1 //
2 //  Preset.h
3 //  InstantHandBrake
4 //
5 //  Created by Damiano Galassi on 15/01/08.
6 //  This file is part of the HandBrake source code.
7 //  Homepage: <http://handbrake.m0k.org/>.
8 //  It may be used under the terms of the GNU General Public License.
9 //
10 //
11
12 #import "Preset.h"
13
14
15 @implementation Preset
16
17 - (id) initWithMuxer: (int) muxer
18           videoCodec: (int) videoCodec
19         videoBitRate: (int) videoBitRate
20    videoCodecOptions: (NSString *) videoCodecOptions
21           audioCodec: (int) audioCodec
22         audioBitrate: (int) audioBitrate
23      audioSampleRate: (int) audioSampleRate
24             maxWidth: (int) maxWidth
25            maxHeight: (int) maxHeight
26           anamorphic: (int) anamorphic;
27 {
28     if (self = [super init])
29     {
30         fMuxer = muxer;
31         fVideoCodec = videoCodec;
32         fVideoBitRate = videoBitRate;
33         fVideoCodecOptions = videoCodecOptions;
34         fAudioCodec = audioCodec;
35         fAudioBitRate = audioBitrate;
36         fAudioSampleRate = audioSampleRate;
37         fMaxWidth = maxWidth;
38         fMaxHeight = maxHeight;
39         fAnamorphic = anamorphic;
40     }
41     return self;
42 }
43
44 - (void) dealloc
45 {
46     [fVideoCodecOptions release];
47     [super dealloc];
48 }
49
50 - (int) muxer
51 {
52     return fMuxer;
53 }
54
55 - (int) videoCodec;
56 {
57     return fVideoCodec;
58 }
59
60 - (NSString *) videoCodecOptions
61 {
62     return fVideoCodecOptions;
63 }
64
65 - (int) videoBitRate
66 {
67     return fVideoBitRate;
68 }
69
70 - (int) AudioCodec;
71 {
72     return fAudioCodec;
73 }
74
75 - (int) maxWidth;
76 {
77     return fMaxWidth;
78 }
79
80 - (int) maxHeight;
81 {
82     return fMaxHeight;
83 }
84
85 @end