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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com