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: Drawing JPEGs fast



Brendan Younger <email@hidden> wrote:

First of all, you can turn off color matching in the GraphicsImporter via kGraphicsImporterDontUseColorMatching,

OK, that helps a little.

 and second, I find QuickTime to be dog-slow at scaling an image to
an appropriate size.  If you can, render each image into an
off-screen window or OpenGL texture at its native resolution and
then use OpenGL or CoreGraphics to scale it to the size you need.

And that would be faster than rendering into a GWorld?

If I rendered into an off-screen window and wanted to scale it with CoreGraphics, would that involve calling GetPortPixMap( GetWindowPort( window ) ) and then creating a CGImage?

  As a final note, caching the image files
themselves seems to be a good idea as well since QuickTime's
antiquated architecture likes to operate on (really small) segments
of the image at a time when a higher throughput coding method would
fare better.

As I mentioned elsewhere in the thread, I don't have image files per se; the image data is in a database.
--
James W. Walker, ScriptPerfection Enterprises, Inc.
<http://www.write-brain.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden


This email sent to 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.