v001QTSource.h
Description: Binary data
v001QTSource.m
Description: Binary data
On Sep 26, 2008, at 8:39 AM, [EMAIL PROTECTED] wrote:
Hello list,Perhaps somebody is ahead of me on this, its a pretty obvious step but I haven't found it documented.I am making an application based on the Quartz Composer Performer example. It provides just the framework I need, but I was surprised to find the MovieSource class not using the technique recommended in technote 2143:QuickTime movies: create a visual context to render the movie into using the QuickTime 7 APIs (see QuickTime Reference Update). Then pass the CVImageBuffers obtained by QTVisualContextCopyImageForTime() to the appropriate composition's Image input and release them. For best performances, it's highly recommended to use a QuickTime OpenGL texture context that uses the same OpenGL context and pixel format as a the ones used to render the composition (assuming a QCRenderer is used, as the QCView does not provide this information).The example MovieSource passes NSImage, and you can imagine the performance is less than splendid.I didn't find an example of that exact scenario anywhere in the sample code, so I have assembled an "accelerated" MovieSource class from what I have found. It works, but only for a second or so of playback, at which point my debugging skills quickly hit the wall. Hence asking here if anybody has a similar class working, or if somebody at Apple could supply the seeming obvious hole in their documentation. I imagine the code is very similar to the async mode in the Movie Loader patch.You should be able to drop the attached class into the performer project, making sure to remove the existing MovieSource from the target.Thanks, Toby<MovieSource-Accelerated.m> _______________________________________________Do not post admin requests to the list. They will be ignored.Quartzcomposer-dev mailing list ([email protected] )Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/doktorp%40mac.com This email sent to [EMAIL PROTECTED]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]

