How can I obtain raw data from a CVImageBuffer object.

Posted by jslap on Stack Overflow See other posts from Stack Overflow or by jslap
Published on 2010-05-14T20:25:01Z Indexed on 2010/05/14 22:24 UTC
Read the original article Hit count: 402

Filed under:
|
|
|

Hi, I'm trying to use cocoa to grab images from a webcam. I'm able to get the image in RGBA format using the QTKit and the didOutputVideoFrame delegate call, and converting the CVImageBuffer to a CIImage and then to a NSBitmapImageRep.

I know my camera grabs natively in YUV, what I want is to get the YUV data directly from the CVImageBuffer, and proccess the YUV frame before displaying it.

My question is: How can I get the YUV data from the CVImageBuffer?

thanks.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about osx