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

Has anyone successfully used vImageConvert_ChunkyToPlanar8?


  • Subject: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
  • From: Ken Tozier <email@hidden>
  • Date: Thu, 1 Apr 2004 04:00:33 -0500

I've tried every thing I can think of (casting, using pointers to arrays, using examples from others etc) to pass in the "const vImage_Buffer *destPlanarBuffers[]," field of

vImage_Error vImageConvert_ChunkyToPlanar8 (
const void *srcChannels[],
const vImage_Buffer *destPlanarBuffers[],
unsigned int channelCount,
size_t srcStrideBytes,
unsigned int srcWidth,
unsigned int srcHeight,
unsigned int srcRowBytes,
vImage_Flags flags
);


the compiler always returns: "passing arg 2 of `vImageConvert_ChunkyToPlanar8' from incompatible
pointer type" which makes me think it's a syntax error on my part but when literally nothing works, it makes me suspect there is something amiss with the headers or something.

Here's what I've tried so far:

vImage_Buffer *result[3] = { malloc(sizeof(vImage_Buffer)), malloc(sizeof(vImage_Buffer)), malloc(sizeof(vImage_Buffer)) };

/* fill in other fields */

call function
err = vImageConvert_ChunkyToPlanar8(srcChannels, result, <other params here>);
err = vImageConvert_ChunkyToPlanar8(srcChannels, &result, <other params here>);
err = vImageConvert_ChunkyToPlanar8(srcChannels, (vImage_Buffer *) result, <other params here>);
err = vImageConvert_ChunkyToPlanar8(srcChannels, const result, <other params here>);
err = vImageConvert_ChunkyToPlanar8(srcChannels, const &result, <other params here>);
err = vImageConvert_ChunkyToPlanar8(srcChannels, const (vImage_Buffer *) result, <other params here>);


Anyone from Apple perhaps shed some light on this?

Thanks for any help,

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: Alastair Houghton <email@hidden>
  • Prev by Date: Re: [Mom list] Mailing-list and Spam challenge
  • Next by Date: Need a HI guideline advice
  • Previous by thread: Re: [Mom list] Mailing-list and Spam challenge
  • Next by thread: Re: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
  • Index(es):
    • Date
    • Thread