Re: NSImage representations
Re: NSImage representations
- Subject: Re: NSImage representations
- From: Alastair Houghton <email@hidden>
- Date: Mon, 9 Jul 2007 15:57:32 +0100
On 9 Jul 2007, at 15:32, Dorian Johnson wrote:
I've had problems in the past with vImage and endianness - I don't
know why, but it was causing problems for me for some types of images.
ARGB images shouldn't have problems with endianness because they're
ordered collections of bytes rather than words... however, you might
have had RGBA or BGRA or something instead, which you can easily deal
with using vImagePermuteChannels_ARGB8888().
It's 16bpp images that are likely to cause trouble, and you can
always byte swap them yourself first. I think vImage expects its
input in native byte order, so it's just a matter of determining what
the byte order was in the file you're loading and swapping if necessary.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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