Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Missing support for UYVY pixel format #5479

Closed
tpikonen opened this issue Jan 4, 2019 · 0 comments
Closed

Missing support for UYVY pixel format #5479

tpikonen opened this issue Jan 4, 2019 · 0 comments
Labels
C-bug The issue contains a bug report M-video Affected Module: Video

Comments

@tpikonen
Copy link
Contributor

tpikonen commented Jan 4, 2019

qTox version: v1.16.3-237-gaa83edf7

Cameras with UYVY pixel format (some old iSight webcams, for example) do not work because the pixel format is not present in the V4L2 camera code. The fix is this trivial patch:

--- a/src/platform/camera/v4l2.cpp
+++ b/src/platform/camera/v4l2.cpp
@@ -53,6 +53,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();
@sudden6 sudden6 added C-bug The issue contains a bug report M-video Affected Module: Video labels Jan 6, 2019
tpikonen added a commit to tpikonen/qTox that referenced this issue Jan 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-bug The issue contains a bug report M-video Affected Module: Video
Projects
None yet
Development

No branches or pull requests

2 participants