]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:02:47 +0000 (12:02 +0100)
commit674d0c115b10f5d5a302b71d79fe57197a69f7a6
treeafbc6167e6de650bcb56d7192e60a97132049743
parent67b658005d92760e5e07b02c5d4395f0dbd3ab72
media: videodev2.h: RGB BT2020 and HSV are always full range

BugLink: https://bugs.launchpad.net/bugs/1904450
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
Documentation/media/uapi/v4l/colorspaces-defs.rst
Documentation/media/uapi/v4l/colorspaces-details.rst
include/uapi/linux/videodev2.h