QCamera resolution selection
-
I'm having some problems using QCamera on a Microsoft Surface 3 Pro running Win8.1. I can connect to either camera (front or rear) and capture without any problems.
However, the front camera comes up at 1920x1080, but the rear camera is 640x480. I cannot seem to change this.
I've tried changing the resolution using the QImageEncoderSettings:
QImageEncoderSettings imageSettings; imageSettings.setCodec("image/jpeg"); imageSettings.setResolution(1920,1080); imageCapture->setEncodingSettings(imageSettings);
This makes no difference. When I try to get supported resolutions or codecs, both return empty lists.
I know the camera is capable of better. It's spec'd the same as the front camera, I believe, and when I use the system Camera software it is far higher resolution.
How do I get the camera to switch to a higher resolution?
Thanks!
-
Hi and welcome to devnet,
What version of Qt are you currently using ?
-
Visual Studio or MinGW ?