summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 18:49:07 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 18:49:07 +0200
commite82aabb64e8ce02ef350eb324b0034b25239ae85 (patch)
treed3b78ffed1984b4b757da9b9d43c0ffd1599810a
parentc854a0b275d9774b1fcb4bc5a283f610e4ab207f (diff)
Fix YUYV colour space.
-rw-r--r--src/v4l.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/v4l.cc b/src/v4l.cc
index e649209..f220403 100644
--- a/src/v4l.cc
+++ b/src/v4l.cc
@@ -122,7 +122,7 @@ static void toJpeg(int quality, unsigned char *yuyv,
cinfo.image_width = image_width; // image width and height, in pixels
cinfo.image_height = image_height;
cinfo.input_components = 3; // # of color components per pixel
- cinfo.in_color_space = JCS_RGB; // colorspace of input image
+ cinfo.in_color_space = JCS_YCbCr; // colorspace of input image
jpeg_set_defaults(&cinfo);