]> git.baikalelectronics.ru Git - kernel.git/commit
media: rkisp1: Allow setting color space on resizer sink pad
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 12 Aug 2022 22:44:14 +0000 (00:44 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 06:38:43 +0000 (08:38 +0200)
commit7a8a7e720cf455033f65c6d3ae705769b45b7ab6
treed4e8c45c75bd6fc9d91454c33bfd1a9a517fdd37
parenteb9711dbdca719a14dcb44b8bbd796014185a90c
media: rkisp1: Allow setting color space on resizer sink pad

The resizer doesn't deal with color spaces, so it can accept any color
space on its input, and propagates it unchanged to its output. When
operating with a Bayer input format (in pass-through mode) further
restrict the YCbCr encoding and quantization to Rec 601 and full range
respectively, as for raw data the former ought to be ignored and the
latter is always full range.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c