| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Greetings. Happy days! Ive finally gotten around to making a working simple app that passes data from one QC Composition to another. However, im using NSImage as the image type, and looking at : http://developer.apple.com/documentation/Cocoa/Reference/QCRenderer_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40004786-CH3g-DontLinkElementID_1 I note there is an 'Opaque QCPortImage' datatype I should be able to use to pass images from the output of one composition to another. Id love to get this working as optimally as possible. In my test application, the source patch is simply a video input patch with the image output published. Using the private patch Image Debugging info, I note it is a CVPixelBuffer, so, in short, where can i find out how to make one of these, or how / can I use the QCPortImage datatype instead since im just going QC -> QC and so on? Ive only seen reference to QCPortImage on that doc too, which makes me curious... My code for passing output of one QC Comp to the input of another is: if(![v001SourceRenderer renderAtTime:time arguments:nil]) NSLog(@"Rendering failed at time %.3fs", time); NSImage* sourceImage; sourceImage = [v001SourceRenderer valueForOutputKey:@"SourceOutput1"]; [v001DestinationRenderer setValue:sourceImage forInputKey:@"DestinationInput1"]; if(![v001DestinationRenderer renderAtTime:time arguments:nil]) NSLog(@"Rendering failed at time %.3fs", time); [v001GLContext flushBuffer]; Thanks, |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/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.