Log in or register to post comments

Getting Supported Preview Sizes

November 26, 2018 - 12:44pm #1

I am currently recording the output of vuforia content to the openGL. Everything is fine, except for some phones, I am having issues with video size, as some devices don't support some video sizes. In an example i used to create video codec, they check device camera's supported video sizes creating the recording codec as such:

mCamera = Camera.open(CAMERA_ID);

final Camera.Parameters params = mCamera.getParameters();

params.getSupportedPreviewSizes()

However, vuforia hides the Camera api and does not expose that function params.getSupportedPreviewSizes(). How do I get this information from the vuforia's own CameraDevice?

Thanks.

 

Getting Supported Preview Sizes

November 27, 2018 - 1:02pm #2

Hello,

Vuforia Engine maps a limited number camera resolutions to performance modes:

https://library.vuforia.com/content/vuforia-library/en/reference/cpp/classVuforia_1_1CameraDevice.html#a7eabd788dcab19ca586663bf73deddf5

The camera resolution set by a performance mode can be retrieved here:

https://library.vuforia.com/content/vuforia-library/en/reference/cpp/classVuforia_1_1CameraDevice.html#ae2ca7a08e3e29ed255a17fd683f86c9b

Note that different devices will have different performance modes.

Thanks,

Vuforia Engine Support

Log in or register to post comments