我需要水平翻轉一些我正在預覽和捕捉的視頻。 A-la iChat,我有一個網絡攝像頭,並希望它看起來好像用戶正在看鏡子。翻轉Quicktime預覽和捕捉
我在QTCaptureView
中預覽Quicktime視頻。我的捕捉是逐幀完成的(出於我不會進入的原因),如下所示:
imageRep = [NSCIImageRep imageRepWithCIImage: [CIImage imageWithCVImageBuffer: frame]];
image = [[NSImage alloc] initWithSize: [imageRep size]];
[image addRepresentation: imageRep];
[movie addImage: image forDuration: someDuration withAttributes: someAttributes];
任何提示?
這看起來像`QTCaptureView`它可能會記錄工作,但怎麼樣? – Dan 2009-05-04 19:46:56
類似這樣的東西可能會工作,使用與上述flipFilter變量相同的設置: [captureView setWantsLayer:YES]; captureView.layer.filters = [NSArray arrayWithObject:flipFilter]; – 2009-05-05 23:17:52