| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm trying to package the vImage function...
"vImageConvert_ChunkyToPlanar8" inside an easier to use
NSBitmapImageRep category like the following but it keeps choking on
the indicated line. I'm sure it's a simple "C" syntax error, but
nothing I've tried satisfies the compiler. Could someone point out what
I'm doing wrong?
vImage_Buffer *result = (vImage_Buffer *) malloc(3 *...
sizeof(vImage_Buffer));
err = vImageConvert_ChunkyToPlanar8 (--
(void *)sourceChannels,
//----------------------------- this is the problem line
---------------------------------
// this doesn't work
result,
// neither does this
(vImage_Buffer *) result,
// nor this
&result
/
/---------------------------------------------------------------------- -
-----------------------
3,
3,
[self pixelsWide],
[self pixelsHigh],
[self bytesPerRow],
flags
);
}
The function is defined like so in the vImage documentation:
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
);
| References: | |
| >Incompatible types error using vImage (From: Ken Tozier <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.