Add very special handling for the MJPG video format
[kaka/cakelight.git] / src / kaka / cakelight / Configuration.java
index 9975658..755586f 100644 (file)
@@ -53,6 +53,7 @@ public class Configuration {
         public int height;
         public int bpp;
         public int format;
+        public boolean mjpg;
         public double saturation;
         public String device;
         public boolean deviceIsAutomatic;
@@ -72,6 +73,9 @@ public class Configuration {
                 case "YVYU":
                     format = Imgproc.COLOR_YUV2BGR_YVYU;
                     break;
+                case "MJPG":
+                    format = 0;
+                    mjpg = true;
                 default:
                     format = Imgproc.COLOR_YUV2BGR_UYVY;
             }