From 7e3a351a29aa55c06c8e17782bcc33d153784068 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Thu, 13 Jun 2024 16:09:50 +0100 Subject: utils: libtuning: Correct GBRG Image parsing The Image class incorrectly parses data in GBRG bayer formats as the indices to the channels are set incorrectly - fix it. Signed-off-by: Daniel Scally Reviewed-by: Laurent Pinchart Reviewed-by: Stefan Klug Signed-off-by: Laurent Pinchart --- utils/tuning/libtuning/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/tuning/libtuning/image.py') diff --git a/utils/tuning/libtuning/image.py b/utils/tuning/libtuning/image.py index e2181b11..6ff60ec1 100644 --- a/utils/tuning/libtuning/image.py +++ b/utils/tuning/libtuning/image.py @@ -79,7 +79,7 @@ class Image: # is R, then G, then G, then B. bayer_case = { '0 1 1 2': (lt.Color.R, lt.Color.GR, lt.Color.GB, lt.Color.B), - '1 2 0 1': (lt.Color.GB, lt.Color.R, lt.Color.B, lt.Color.GR), + '1 2 0 1': (lt.Color.GB, lt.Color.B, lt.Color.R, lt.Color.GR), '2 1 1 0': (lt.Color.B, lt.Color.GB, lt.Color.GR, lt.Color.R), '1 0 2 1': (lt.Color.GR, lt.Color.R, lt.Color.B, lt.Color.GB) } -- cgit v1.2.1