Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fastest image format for QC?



Hi Camillo-

Based on advice from this list in the past, I've been using CVPixelBuffers as input images, with much improved performance as a result.  If you need sample code for the generation of a pixel buffer from an image, let me know.  Hope this helps!

John


John Pannell

Positive Spin Media

http://www.positivespinmedia.com


On Jan 27, 2007, at 1:46 PM, Camillo Lugaresi wrote:

Hello,

I am rendering a scene consisting of multiple objects, using a QC composition to draw each object. The inputs are an image representing the object (to which the composition applies some effects), and a few numerical parameters. Since the number of possible objects is quite vast (on the order of thousands), and the set of objects displayed in a given frame changes constantly, I use a single QCRenderer and change its inputs as needed to draw each object.

Setting the input image incurs a considerable performance penalty, as the source NSImage is re-rendered into an internal QCGLCGImage each time. Is there an image format that QC can use directly, without converting it to a different internal representation? Is it possible to pass images already in the form of OpenGL textures?

Thanks,
Camillo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
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

References: 
 >Fastest image format for QC? (From: Camillo Lugaresi <email@hidden>)



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.