I need to horizontally flip some video that I view and capture. A-la iChat, I have a webcam and want it to look like the user is looking in the mirror.
I watch Quicktime video in format QTCaptureView. My capture is done frame by frame (for reasons that I won’t go into), with something like:
imageRep = [NSCIImageRep imageRepWithCIImage: [CIImage imageWithCVImageBuffer: frame]];
image = [[NSImage alloc] initWithSize: [imageRep size]];
[image addRepresentation: imageRep]
[movie addImage: image forDuration: someDuration withAttributes: someAttributes]
Any tips?
source
share