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

fix(video): support UYVY camera pixel format

Fixes #5479.
This commit is contained in:
Teemu Ikonen 2019-01-04 21:41:06 +02:00
parent 55ef1e0370
commit 4c42e0ea5b

View File

@ -43,6 +43,7 @@ static std::map<uint32_t, uint8_t> createPixFmtToQuality()
m[V4L2_PIX_FMT_H264] = 3;
m[V4L2_PIX_FMT_MJPEG] = 2;
m[V4L2_PIX_FMT_YUYV] = 1;
m[V4L2_PIX_FMT_UYVY] = 1;
return m;
}
const std::map<uint32_t, uint8_t> pixFmtToQuality = createPixFmtToQuality();
@ -53,6 +54,7 @@ static std::map<uint32_t, QString> createPixFmtToName()
m[V4L2_PIX_FMT_H264] = QString("h264");
m[V4L2_PIX_FMT_MJPEG] = QString("mjpeg");
m[V4L2_PIX_FMT_YUYV] = QString("yuyv422");
m[V4L2_PIX_FMT_UYVY] = QString("uyvy422");
return m;
}
const std::map<uint32_t, QString> pixFmtToName = createPixFmtToName();