• 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: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has anyone successfully used vImageConvert_ChunkyToPlanar8?


  • Subject: Re: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
  • From: Ken Tozier <email@hidden>
  • Date: Fri, 2 Apr 2004 17:00:36 -0500

vImage isn't really Cocoa, so you should probably be asking one of the other mailing lists, however...

True, but there doesn't seem to be any other forum more specifically devoted to altivec/performance. I submitted A suggestion to the list admin that, if the volume supports it, it might be worth creating one...

The problem is that

const vImage_Buffer *destPlanarBuffers[]

is an array of const pointers, *not* a const array of pointers or a const array of const pointers. (This is almost reminiscent of a certain twisty maze of little passages I'm sure we've all been lost in ;->)

Also, when passed as a parameter, this is equivalent to

const vImage_Buffer **destPlanarBuffers

Anyway, I think you need something like

err = vImageConvert_ChunkyToPlanar8(srcChannels, (const vImage_Buffer **)result, ...);

Thanks Alastair . this made the compiler happy, but I'm getting runtime seg faults (10) now.

vImage is a very very picky api with unhelpful error messages. I've spent three days trying to get this one function to work and in the end it took me all of 15 minutes to write my own chunky to planar function. It's not vectorized so it won't be as fast but at least it works and it's easy to use.

Thanks again,

Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
      • From: Chris Ridd <email@hidden>
  • Prev by Date: -undoManagerForTextView: question
  • Next by Date: Synchronous NSTask?
  • Previous by thread: Re: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
  • Next by thread: Re: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
  • Index(es):
    • Date
    • Thread