Alessandro,
Yes, we dont set the viewport (at least for these tests).
Here is the code that set the camera mode:
if (!QCAR::CameraDevice::getInstance().init(QCAR::CameraDevice::CAMERA_DEFAULT))
AR_THROW_EXCEPTION_TYPED(ProblemType::QCar, "Impossible to initialize camera. You may have to reboot your device.");
if (!QCAR::CameraDevice::getInstance().selectVideoMode(QCAR::CameraDevice::MODE_DEFAULT))
AR_THROW_EXCEPTION_TYPED(ProblemType::QCar, "Impossible to set video mode.");
if (!QCAR::CameraDevice::getInstance().start())
AR_THROW_EXCEPTION_TYPED(ProblemType::QCar, "Impossible to start camera. You may have to reboot your device.");
if (!QCAR::CameraDevice::getInstance().setFocusMode(QCAR::CameraDevice::FOCUS_MODE_CONTINUOUSAUTO))
Logging::warn("Impossible to set autofocus.");
When I set and get the video mode with coherent values, I get the correct ratio, and the behavior of the logs are:
Quality:
[INFO ] VideoBackgroundConfig: size: 768,1365
[INFO ] VideoMode:w=1280 h=720
[INFO ] width= 1536 height= 2048
[INFO ] ViewPort: X,Y: 384,341 Size X,Y:768,1365
Speed:
[INFO ] VideoBackgroundConfig: size: 768,1024
[INFO ] VideoMode:w=640 h=480
[INFO ] width= 1536 height= 2048
[INFO ] ViewPort: X,Y: 384,512 Size X,Y:768,1024
So, the speed mode works, like 2.8.
The quality mode is zoomed by 40% on the ipad3.
Correct.
Of course, since you're already playing with the configureVideoBackground code and you're familiar with the way it works, one option is to just downscale a bit the image so that it appears less "zoomed'; however, as the maths suggest, this can only be done either at the cost of introducing black side bands around the camera image or to introduce an aspect ratio distortion in the rendered camera image.
Otherwise, the "general" recommendation otherwise remains the same, i.e. to use Mode Speed and get the same (lower) resolution that you were getting in SDK 2.8.