[chronojump] Added support for old JPEG webcams
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added support for old JPEG webcams
- Date: Mon, 4 Nov 2019 15:14:19 +0000 (UTC)
commit 5fe91f690ff81a6923c245891acd40d871e594fa
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Nov 4 16:12:22 2019 +0100
Added support for old JPEG webcams
src/webcam/webcamFfmpegSupportedModes.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/webcam/webcamFfmpegSupportedModes.cs b/src/webcam/webcamFfmpegSupportedModes.cs
index f2d817de..50c16d65 100644
--- a/src/webcam/webcamFfmpegSupportedModes.cs
+++ b/src/webcam/webcamFfmpegSupportedModes.cs
@@ -175,7 +175,7 @@ public class WebcamFfmpegSupportedModesLinux : WebcamFfmpegSupportedModes
{
LogB.Information("\nline: " + l);
//note v4l2-ctl packaged for Debian previous to buster prints "Pixel Format:", but on
Buster is: "[0]: 'YUYV' (YUYV 4:2:2)"
- if(l.Contains("Pixel Format:") || l.Contains("YUYV 4:2:2") || l.Contains("MJPG") ||
l.Contains("Motion-JPEG"))
+ if(l.Contains("Pixel Format:") || l.Contains("YUYV 4:2:2") || l.Contains("MJPG") ||
l.Contains("Motion-JPEG") || l.Contains("JPEG"))
{
wsmList = new WebcamSupportedModesList(parsePixelFormat(l));
@@ -283,6 +283,8 @@ public class WebcamFfmpegSupportedModesLinux : WebcamFfmpegSupportedModes
return "yuyv422";
else if(m == "MJPG")
return "mjpeg";
+ else if(m == "JPEG")
+ return "mjpeg";
else
return string.Format("{0}", m);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]