]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Feb 2017 16:44:37 +0000 (17:44 +0100)
commit7b071234537686546c5f05fdcb40a33ade2f6b04
tree02333fe8c7bf1713b09499a8ee47f583d9e2b6ff
parent8629aed2387cd22d1bde76e798034c3ea31018f7
videodev2.h: go back to limited range Y'CbCr for SRGB and, ADOBERGB

commit 35879ee4769099905fa3bda0b21e73d434e2df6a upstream.

This reverts 'commit 7e0739cd9c40 ("[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: 7e0739cd9c40 ("[media] videodev2.h: fix sYCC/AdobeYCC default quantization range")
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/media/uapi/v4l/pixfmt-007.rst
include/uapi/linux/videodev2.h