views:

17

answers:

0

I'm a new Apple developer and I'm struggling with the different image representations...

I would Have a CVPixelBufferRef in kCVPixelFormatType_32ARGB format, and I would like to create a new kCVPixelFormatType_24RGB CVPixelBufferRef from it (i.e. discarding the alpha bits).

Is there a simple way to do it, or do I have to copy it with a 'for' loop?

I'm using Mac OSX 10.6.4, and have been working on this sample code.

Thanks, Pinhassi.