| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
hi all, so I was able to setup the OutputMovie, ICMCompressionSessionRef like the code in CaptureAndCompressIPBMovie. But now a have a new Problem: How do I get CIImage back into the CVImageBufferRef? - (void)captureOutput:(QTCaptureOutput *)captureOutput didOutputVideoFrame:(CVImageBufferRef)videoFrame withSampleBuffer: (QTSampleBuffer *)sampleBuffer fromConnection:(QTCaptureConnection *)connection { OSStatus err = noErr; if (isRecording) { long presentationTime = [sampleBuffer presentationTime].timeValue; long duration = [sampleBuffer duration].timeValue; CIImage *inputImage = [CIImage imageWithCVImageBuffer:videoFrame]; [effectFilter setValue:inputImage forKey:@"inputImage"]; //How do I get CIImage back into the CVImageBufferRef? err = ICMCompressionSessionEncodeFrame( compressionSession, videoFrame, presentationTime, duration, kICMValidTime_DisplayTimeStampIsValid, NULL, NULL, NULL ); } } Thanks for your time. Regards. Hannes Osius
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.