This technique is the best if you already have the pixels around and
you can wrap them directly. Otherwise, if you need to render or copy
out those pixels, you're better off using the
QCPlugInOutputImageProvider protocol which will at least defer those
operations and limit them to the region of interest.
On Nov 10, 2007, at 11:52 AM, Marc Epard wrote:
What's the fastest way to send a CGImage out a
QCPlugInOutputImageProvider?
Right now I'm using the technique used for the placeholder image in
the FastImage sample: allocate a buffer, create a bitmap context
around it, CGContextDrawImage into the context,
outputImageProviderFromBufferWithPixelFormat to create the
provider. This seems like the long way around, requiring an extra
buffer and an extra data move into it. It can be a fairly large
image (e.g. 4 megapixels) and it can change frequently. And, yes,
it shows up when I profile my app.
I'm given the CGImageRef from an API I can't change. Is there a
faster way?
-Marc
_______________________________________________
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/pol%40apple.com
This email sent to [EMAIL PROTECTED]
________________________________
Pierre-Olivier Latour - [EMAIL PROTECTED]
Technologist - Apple, Inc.
_______________________________________________
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]