From 21bdc03908369098d144b3b6143fb6fb5192bc1d Mon Sep 17 00:00:00 2001 From: Valentin Vanelslande Date: Fri, 21 Sep 2018 18:28:46 -0500 Subject: [PATCH] Force camera pixel format to RGB565 on Linux --- src/citra_qt/camera/qt_multimedia_camera.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/citra_qt/camera/qt_multimedia_camera.cpp b/src/citra_qt/camera/qt_multimedia_camera.cpp index e18508c24a..dabccac94f 100644 --- a/src/citra_qt/camera/qt_multimedia_camera.cpp +++ b/src/citra_qt/camera/qt_multimedia_camera.cpp @@ -172,6 +172,9 @@ void QtMultimediaCameraHandler::CreateCamera(const std::string& camera_name) { } settings.setMinimumFrameRate(30); settings.setMaximumFrameRate(30); +#ifdef __linux__ + settings.setPixelFormat(QVideoFrame::PixelFormat::Format_RGB565); +#endif camera->setViewfinder(&camera_surface); camera->load(); }