• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage representations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Fwd: NSImage representations (From: Jeremy Rotsztain <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Jeremy Rotsztain <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Jeremy Rotsztain <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Alastair Houghton <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)

  • Prev by Date: Re: .m to .mm causes missing function pointers
  • Next by Date: Re: Handling Multiple Document Types
  • Previous by thread: Re: NSImage representations
  • Next by thread: Re: NSImage representations
  • Index(es):
    • Date
    • Thread