Commit 79027ce8 authored by Thiago Santini's avatar Thiago Santini

Fixes default resolution for pupil cams

parent a025cbcf
......@@ -80,17 +80,12 @@ QCameraViewfinderSettings Camera::getViewfinderSettings(const QCameraInfo camera
} else if (description == "Pupil Cam2 ID0") { // Pupil V2
recommended.setMaximumFrameRate(60);
recommended.setMinimumFrameRate(60);
recommended.setResolution(320, 240);
recommended.setResolution(400, 400);
recommended.setPixelFormat( QVideoFrame::Format_Jpeg);
} else if (description == "Pupil Cam2 ID1") {
recommended.setMaximumFrameRate(60);
recommended.setMinimumFrameRate(60);
recommended.setResolution(320, 240);
recommended.setPixelFormat( QVideoFrame::Format_Jpeg);
} else if (description == "Pupil Cam2 ID2") {
recommended.setMaximumFrameRate(30);
recommended.setMinimumFrameRate(30);
recommended.setResolution(1280, 720);
recommended.setResolution(400, 400);
recommended.setPixelFormat( QVideoFrame::Format_Jpeg);
} else {
// Unknown; recommend to maximize fps and minimize resolution
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment