Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
- Subject: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
- From: Ken Thomases <email@hidden>
- Date: Mon, 21 Feb 2011 16:02:54 -0600
On Feb 21, 2011, at 3:53 PM, Jonathan Taylor wrote:
> On 21 Feb 2011, at 21:29, Quincey Morris wrote:
>> 3. Use something else, such as CGImage, instead.
>
> Thanks. In this case I need to access every single pixel value unfortunately. I was using NSImages for convenience since I do display some images in the GUI, etc, but the main work of the program involves image processing on the pixel values. Sounds like CGImage is probably what I need if I really want to maximise performance in this case. I'm actually doing a fair amount of work with the pixel data, but nevertheless this one copy (specifically the zero fills as well as memcpy) at the start takes considerably longer than the analysis itself.
NSBitmapImageRep is basically a wrapper around CGImage now. That's what those release notes were saying. So, switching to CGImage probably won't get you anything.
Perhaps Quincey meant to say CIImage, a CoreImage object. That's what the release notes suggest for doing pixel work.
Regards,
Ken
_______________________________________________
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