• 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: Speed up image display for large raw images?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speed up image display for large raw images?


  • Subject: Re: Speed up image display for large raw images?
  • From: Marco S Hyman <email@hidden>
  • Date: Wed, 15 Aug 2012 20:41:51 -0700

On Aug 15, 2012, at 8:24 PM, Jens Alfke <email@hidden> wrote:

>> The images are typically 25 MB Canon 7D raw image files that have
>> been pre-alloc'ed and initWithContentsOfFile:
>
> NSImage doesn't actually load the image pixels until it needs to. Merely initializing an instance won't do it.

That matches what I'm seeing. The code didn't originally
alloc and init the image until just prior to dropping it in
the image well.  I tried a pre alloc/init on the off chance it
would make things faster.  Nope.

> That said, NSImage has changed a lot over time (especially its caching) and I'm not sure what the best way is to preload an image these days.

For this application the camera preview jpg inside of the raw image
would be of good enough quality.  I'm looking at what it would take
to extract that.

Marc
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Speed up image display for large raw images?
      • From: Mike Abdullah <email@hidden>
References: 
 >Speed up image display for large raw images? (From: Marco S Hyman <email@hidden>)
 >Re: Speed up image display for large raw images? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Where do these come from...
  • Next by Date: Re: Where do these come from...
  • Previous by thread: Re: Speed up image display for large raw images?
  • Next by thread: Re: Speed up image display for large raw images?
  • Index(es):
    • Date
    • Thread