]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: videodev2.h: RGB BT2020 and HSV are always full range
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 20 Aug 2020 10:47:16 +0000 (12:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:40 +0000 (11:08 +0100)
commitdf661bb764a2d54d7353c39521a4879de5bb2ebf
treec754ef64f085b17e8fa20ea442229f349ad1f309
parent17c4ba10aec5e2b9d20dbf5f47ad4ca0851cf1b3
media: videodev2.h: RGB BT2020 and HSV are always full range

[ Upstream commit b305dfe2e93434b12d438434461b709641f62af4 ]

The default RGB quantization range for BT.2020 is full range (just as for
all the other RGB pixel encodings), not limited range.

Update the V4L2_MAP_QUANTIZATION_DEFAULT macro and documentation
accordingly.

Also mention that HSV is always full range and cannot be limited range.

When RGB BT2020 was introduced in V4L2 it was not clear whether it should
be limited or full range, but full range is the right (and consistent)
choice.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/media/uapi/v4l/colorspaces-defs.rst
Documentation/media/uapi/v4l/colorspaces-details.rst
include/uapi/linux/videodev2.h