From: Laurent Pinchart Date: Wed, 19 Jun 2013 00:41:59 +0000 (-0300) Subject: [media] v4l: Fix colorspace conversion error in sample code X-Git-Tag: v3.12-rc1~135^2~135 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f359a7cb1847900bc87b3498f72c1ee848942a7;p=pandora-kernel.git [media] v4l: Fix colorspace conversion error in sample code The sample code erroneously scales the y1, pb and pr variables from the [0.0 .. 1.0] and [-0.5 .. 0.5] ranges to [0 .. 255] and [-128 .. 127]. Fix it. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed