I'm trying to retrieve the video frame image. I'm using Vuforia iOS SDK 5.0
- (void)renderFrameQCAR {
QCAR::State state = QCAR::Renderer::getInstance().begin();
QCAR::Renderer::getInstance().drawVideoBackground();
QCAR::Frame frame = state.getFrame();
int numImages = frame.getNumImages();
for (int i=0; i < numImages; i++) {
const QCAR::Image* image = frame.getImage(i);
const uint8_t* pixels =static_cast<const uint8_t*>(image->getPixels());
NSUInteger width = image->getWidth();
NSUInteger height = image->getHeight();
NSUInteger stride = image->getStride();
QCAR::PIXEL_FORMAT format = image->getFormat();
//process the image pixels
...
- Is there a way to retrieve the detailed YUV format, such as, YUV444, YUV420p, NV21 or NV12?
- Is there a way to set the YUV format for the video frame in QCAR? We can set kCVPixelBufferPixelFormatTypeKey for AVCaptureVideoDataOutput, when using iOS AV Founding. Can we do something similiar for QCAR?
Thank you, AlessandroB. It is useful for us.