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:06:54 +0000 (11:06 +0100)
commit372865efb5525aab59b7409b11e9d22d4fc0e988
tree4240dd3c50c6c7c26c42c72db661ffcdf22c6b16
parent90b4a2c1fd22f4d72f47cea1b6cf1eede8613245
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