Re: Convert GWorldPtr into a NSImage
Re: Convert GWorldPtr into a NSImage
- Subject: Re: Convert GWorldPtr into a NSImage
- From: Eric Gorr <email@hidden>
- Date: Thu, 8 Jan 2009 08:54:59 -0500
On Jan 8, 2009, at 6:57 AM, Michael Vannorsdel wrote:
Have a look at vImagePermuteChannels_ARGB8888 in the Accelerate
framework. Should be the fastest and easiest option for reordering
color components in pixel streams.
Looks nearly perfect ... unfortunately, it does not look like it will
take the rowBytes of the GWorldPtr data into account. But, it may
still be faster to create a flattened buffer and pass that into
vImagePermuteChannels_ARGB8888 to do all of the swapping.
_______________________________________________
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