mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 18:12:44 -06:00
Force camera pixel format to RGB565 on Linux
This commit is contained in:
parent
80cdfe1c45
commit
21bdc03908
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,9 @@ void QtMultimediaCameraHandler::CreateCamera(const std::string& camera_name) {
|
||||||
}
|
}
|
||||||
settings.setMinimumFrameRate(30);
|
settings.setMinimumFrameRate(30);
|
||||||
settings.setMaximumFrameRate(30);
|
settings.setMaximumFrameRate(30);
|
||||||
|
#ifdef __linux__
|
||||||
|
settings.setPixelFormat(QVideoFrame::PixelFormat::Format_RGB565);
|
||||||
|
#endif
|
||||||
camera->setViewfinder(&camera_surface);
|
camera->setViewfinder(&camera_surface);
|
||||||
camera->load();
|
camera->load();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue