5 // Created by Damiano Galassi on 23/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.
12 #import "DeviceController.h"
15 @implementation DeviceController
19 if (self = [super init])
21 deviceArray = [[NSMutableArray alloc] init];
29 [deviceArray addObject:[[Device alloc] initWithDeviceName: @"iPod"]];
30 [deviceArray addObject:[[Device alloc] initWithDeviceName: @"PSP"]];
31 [deviceArray addObject:[[Device alloc] initWithDeviceName: @"Zune"]];
32 [deviceArray addObject:[[Device alloc] initWithDeviceName: @"AppleTV"]];
34 Preset * newPreset = [[Preset alloc] initWithMuxer: HB_MUX_IPOD
35 videoCodec: HB_VCODEC_X264
37 videoCodecOptions: @"bframes=0:cabac=0:ref=1:vbv-maxrate=1500:vbv-bufsize=2000:analyse=all:me=umh:subq=6:no-fast-pskip=1:level=30"
38 audioCodec: HB_ACODEC_FAAC
40 audioSampleRate: 48000
45 [[deviceArray objectAtIndex:0] addPreset:newPreset];
47 newPreset = [[Preset alloc] initWithMuxer: HB_MUX_MP4
48 videoCodec: HB_VCODEC_X264
50 videoCodecOptions: @""
51 audioCodec: HB_ACODEC_FAAC
53 audioSampleRate: 48000
58 [[deviceArray objectAtIndex:1] addPreset:newPreset];
62 - (NSArray *) deviceList
64 NSArray *deviceList = [deviceArray copy];
66 [deviceList autorelease];