]> git.baikalelectronics.ru Git - kernel.git/commit
[media] videodev2.h: go back to limited range Y'CbCr for SRGB and, ADOBERGB
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 10 Feb 2017 09:18:36 +0000 (07:18 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 13 Feb 2017 16:33:56 +0000 (14:33 -0200)
commiteed9a381bc6eea92db22813a2da782ffcbdf27e3
tree7f6040964025552c31bc3ab8b84761d3522aef46
parentedc866745a84a07cd81a896cdebb1448a0c88cec
[media] videodev2.h: go back to limited range Y'CbCr for SRGB and, ADOBERGB

This reverts 'commit 301d5dcf70fb ("[media] videodev2.h: fix
sYCC/AdobeYCC default quantization range").

The problem is that many drivers can convert R'G'B' content (often
from sensors) to Y'CbCr, but they all produce limited range Y'CbCr.

To stay backwards compatible the default quantization range for
sRGB and AdobeRGB Y'CbCr encoding should be limited range, not full
range, even though the corresponding standards specify full range.

Update the V4L2_MAP_QUANTIZATION_DEFAULT define accordingly and
also update the documentation.

Fixes: 301d5dcf70fb ("[media] videodev2.h: fix sYCC/AdobeYCC default quantization range")
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v4.9 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/media/uapi/v4l/pixfmt-007.rst
include/uapi/linux/videodev2.h