mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
limit webcam to 60fps
This commit is contained in:
parent
46adb586c9
commit
191aa9079f
|
@ -174,6 +174,10 @@ void AVForm::updateVideoModes(int curIndex)
|
||||||
VideoMode mode = videoModes[i];
|
VideoMode mode = videoModes[i];
|
||||||
qDebug("width: %d, height: %d, FPS: %f, pixel format: %s", mode.width, mode.height, mode.FPS, CameraDevice::getPixelFormatString(mode.pixel_format).toStdString().c_str());
|
qDebug("width: %d, height: %d, FPS: %f, pixel format: %s", mode.width, mode.height, mode.FPS, CameraDevice::getPixelFormatString(mode.pixel_format).toStdString().c_str());
|
||||||
|
|
||||||
|
// PS3-Cam protection, everything above 60fps makes no sense
|
||||||
|
if(mode.FPS > 60)
|
||||||
|
continue;
|
||||||
|
|
||||||
for(auto iter = idealModes.begin(); iter != idealModes.end(); ++iter)
|
for(auto iter = idealModes.begin(); iter != idealModes.end(); ++iter)
|
||||||
{
|
{
|
||||||
int res = iter->first;
|
int res = iter->first;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user