1
0
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:
sudden6 2016-03-22 13:19:31 +01:00
parent 46adb586c9
commit 191aa9079f
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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;