I am trying to get RGB format of camera data, either 565 or 888. I put the following call in initApplicationNative().
QCAR::setFrameFormat( QCAR::RGB565, true );
When I check the image returned in renderFrame() by calling following:
QCAR::Frame qcarframe = state.getFrame();
for(int i=0; i<qcarframe.getNumImages();i++)
const QCAR::Image *pimg = qcarframe.getImage(i);
LOG( "Image format = %d", pimg->getFormat() );
The result is always 4, which is grayscale image.
I am using vuforia-1.5.9 on Android 2.3. Did I do something wrong? Please help.