Re: Speed up image display for large raw images?
Re: Speed up image display for large raw images?
- Subject: Re: Speed up image display for large raw images?
- From: Mike Abdullah <email@hidden>
- Date: Thu, 16 Aug 2012 07:38:45 +0100
On 16 Aug 2012, at 04:41, Marco S Hyman <email@hidden> wrote:
> 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.
Easy, CGImageSource.
_______________________________________________
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