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.
15 @implementation Preset
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;
28 if (self = [super init])
31 fVideoCodec = videoCodec;
32 fVideoBitRate = videoBitRate;
33 fVideoCodecOptions = videoCodecOptions;
34 fAudioCodec = audioCodec;
35 fAudioBitRate = audioBitrate;
36 fAudioSampleRate = audioSampleRate;
38 fMaxHeight = maxHeight;
39 fAnamorphic = anamorphic;
46 [fVideoCodecOptions release];
60 - (NSString *) videoCodecOptions
62 return fVideoCodecOptions;