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 <dan.scally@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
e9dc398b92
commit
7e3a351a29
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue