OSDN Git Service

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)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 26 Aug 2020 14:39:35 +0000 (16:39 +0200)
commitb305dfe2e93434b12d438434461b709641f62af4
tree741781efdec836ca81b3b3f9fbf5b7760dfea317
parent1c5a9be98ea937f9d34dd2236f5d87c51c226cb5
media: videodev2.h: RGB BT2020 and HSV are always full range

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>
Documentation/userspace-api/media/v4l/colorspaces-defs.rst
Documentation/userspace-api/media/v4l/colorspaces-details.rst
include/uapi/linux/videodev2.h