Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
- Subject: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
- From: Jonathan Taylor <email@hidden>
- Date: Mon, 21 Feb 2011 23:07:22 +0000
> I too have ran into this issue recently, with an old project that is
> half-resurrected.
>
> Performance was good in 10.5, but now horrible in 10.6. I'm not sure
> what to do instead.
>
> The CIImage docs say "Core Image images are immutable", and indeed I
> don't see any method like bitmapData. :(
Oh dear, looks like you're right! Immutable would have been fine by me, all I want is const access to the pixels, but that doesn't seem to be possible either.
So as far as my situation goes, what I'm after is an efficient way of starting from a path to some sort of raster image and obtaining a raw pixel buffer I can read. [Obviously if actually reading from disk then the disk will be the bottleneck, but it's often in the disk cache, in which case the extra data copy associated with [NSBitmapImageRep getBitmapDataPlanes] is a problem. I was rather liking the file-format-agnostic abilities of initWithContentsOfFile. Any thoughts?_______________________________________________
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