From e82aabb64e8ce02ef350eb324b0034b25239ae85 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 19 Sep 2014 18:49:07 +0200 Subject: Fix YUYV colour space. --- src/v4l.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3