• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best format and method for very fast CGImage resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best format and method for very fast CGImage resizing


  • Subject: Re: Best format and method for very fast CGImage resizing
  • From: arri <email@hidden>
  • Date: Mon, 23 Apr 2007 03:22:03 +0200

maybe have a look at Quartz Composer.

you would still first need to create the thumbnailsm (and probably cache/store those on disk), but then just leave the live-resizing job to the GPU.

i would asume none of the other option will be faster.

for the initial creation of the thumbnails, maybe the 'vImage' framework is an option.
there's an example project installed with in /Developer/Example/ Accelerate/vImage/
but i'm not sure, maybe that's overkill when dealing with small images.




.arri


On Apr 22, 2007, at 10:07 PM, Ken Tozier wrote:

Hi

I have some code that generates page thumbnails and presents a grid of these thumbnails that I want to be live-resizable exactly like the thumbnails in iPhoto. I have the grid and image generating code worked out but just need to know the fastest possible way to redraw these images.

As it stands now, I create the thumbnails as a CGImages inside a CGUtilCreateBitmapContext. Should I convert them to CIImages? NSImages? From there, what would be faster: An affine transform in the draw method? Or a CIImage transform?

I have no idea what method produces the fastest resizes so any help greatly appreciated.

Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Best format and method for very fast CGImage resizing (From: Ken Tozier <email@hidden>)

  • Prev by Date: top broken on PPC?
  • Next by Date: Re: Writing to a specified NSUserDefaults domain
  • Previous by thread: Re: Best format and method for very fast CGImage resizing
  • Next by thread: Re: Best format and method for very fast CGImage resizing
  • Index(es):
    • Date
    • Thread