]> git.baikalelectronics.ru Git - kernel.git/commit
media: amphion: correct the unspecified color space
authorMing Qian <ming.qian@nxp.com>
Fri, 13 Jan 2023 05:25:51 +0000 (06:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:44 +0000 (09:33 +0100)
commita23103578c6743c55ab88105673f66e87d3da135
tree175c386620ebe3a0e684dae5335e41a4f2f92cba
parenta2ccc6279cdef87cf527ac80c63f506b2b567ede
media: amphion: correct the unspecified color space

[ Upstream commit ff56bb3d5eef31d2c657a1c309dceef0d6093536 ]

in the E.2.1 of Rec. ITU-T H.264 (06/2019),
0 of colour primaries is reserved, and 2 is unspecified.
driver can map V4L2_COLORSPACE_LAST to 0,
and map V4L2_COLORSPACE_DEFAULT to 2.

v4l2_xfer_func and v4l2_ycbcr_encoding are similar case.

Fixes: 12e715366ba9 ("media: amphion: add vpu v4l2 m2m support")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/amphion/vpu_color.c