Has anyone successfully used vImageConvert_ChunkyToPlanar8?
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.