0

IKPictureTakerを起動し、結果の画像を.tiffファイルとして保存する単純な小さなosxアプリがあります。すべて正常に機能しているようですが、写真を撮るたびにこのエラーが繰り返し発生します。

2009-11-10 12:25:38.890 Take A Picture[855:9c23] *** QTCaptureSession warning: Session received the following error while decompressing video: Error Domain=NSOSStatusErrorDomain Code=-67441 "Operation could not be completed. (OSStatus error -67441.)". Make sure that the formats of all video outputs are properly configured.

コードは非常に単純です。

- (void)awakeFromNib
{


IKPictureTaker *sharedPictureTaker = [IKPictureTaker pictureTaker];

[sharedPictureTaker setValue:[NSNumber numberWithBool:YES] forKey:IKPictureTakerShowEffectsKey];

[sharedPictureTaker beginPictureTakerWithDelegate:self didEndSelector:@selector(pictureTakerDidEnd:returnCode:contextInfo:) contextInfo:nil];
}


- (void) pictureTakerDidEnd:(IKPictureTaker *) picker
             returnCode:(NSInteger) code
            contextInfo:(void*) contextInfo
{

NSImage *image = [picker outputImage];
NSString *folder = @"/Users/Mike/Library/Application Support/file.tiff";
folder = [folder stringByExpandingTildeInPath];
[[image TIFFRepresentation] writeToFile:@"~/Library/Application Support/file2.tiff" atomically:NO];
}
4

1 に答える 1