1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Probe more camera resolutions

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-10-24 12:37:22 +02:00
parent 2401654009
commit e2bde38358
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -79,13 +79,25 @@ void CameraWorker::probeResolutions()
{
subscribe();
// probe resolutions (TODO: add more)
// probe resolutions
QList<QSize> propbeRes = {
QSize( 160, 120), // QQVGA
QSize( 320, 240), // HVGA
QSize(1024, 768), // XGA
QSize( 432, 240), // WQVGA
QSize( 640, 360), // nHD
QSize( 640, 480),
QSize( 800, 600),
QSize( 960, 640),
QSize(1024, 768), // XGA
QSize(1280, 720),
QSize(1280, 1024),
QSize(1360, 768),
QSize(1366, 768),
QSize(1400, 1050),
QSize(1440, 900),
QSize(1600, 1200),
QSize(1680, 1050),
QSize(1920, 1200),
};
for (QSize res : propbeRes)
@ -105,7 +117,7 @@ void CameraWorker::probeResolutions()
unsubscribe();
}
qDebug() << resolutions;
qDebug() << "Camera resolutions:" << resolutions;
emit resProbingFinished(resolutions);
}