aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/media/uapi
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-08-04 04:59:47 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-24 07:36:11 -0400
commit9ddbf68d264a8c2578dcb08d550dd00a273e12fa (patch)
tree375e89b080acf9efb0b9b419bd11443f14b11cfc /Documentation/media/uapi
parent1ee6dd5a918bd98dea20a2847f1ca15964dca952 (diff)
[media] v4l2-tpg-core: drop SYCC, use higher precision 601 conversion matrix
The SYCC Y'CbCr encoding is identical to the 601 encoding. Since the SYCC define is about to be removed for use in the kernel we need to drop it in the TPG code as well. This patch also adds a 4th decimal to the 601 conversion matrix. That was specified by the sYCC spec and it makes sense to use this across the board. [mchehab@s-opensource.com: fix conflicts with LaTeX math expression patch] Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/media/uapi')
-rw-r--r--Documentation/media/uapi/v4l/pixfmt-007.rst30
1 files changed, 15 insertions, 15 deletions
diff --git a/Documentation/media/uapi/v4l/pixfmt-007.rst b/Documentation/media/uapi/v4l/pixfmt-007.rst
index c45d8794e8eb..662302cfba8b 100644
--- a/Documentation/media/uapi/v4l/pixfmt-007.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-007.rst
@@ -97,11 +97,11 @@ the following ``V4L2_YCBCR_ENC_601`` encoding:
97 97
98.. math:: 98.. math::
99 99
100 Y' = 0.299R' + 0.587G' + 0.114B' 100 Y' = 0.2990R' + 0.5870G' + 0.1140B'
101 101
102 Cb = -0.169R' - 0.331G' + 0.5B' 102 Cb = -0.1687R' - 0.3313G' + 0.5B'
103 103
104 Cr = 0.5R' - 0.419G' - 0.081B' 104 Cr = 0.5R' - 0.4187G' - 0.0813B'
105 105
106Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range 106Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range
107[-0.5…0.5]. This conversion to Y'CbCr is identical to the one defined in 107[-0.5…0.5]. This conversion to Y'CbCr is identical to the one defined in
@@ -241,11 +241,11 @@ scaled and offset:
241 241
242.. math:: 242.. math::
243 243
244 Y' = \frac{219}{256} * (0.299R' + 0.587G' + 0.114B') + \frac{16}{256} 244 Y' = \frac{219}{256} * (0.2990R' + 0.5870G' + 0.1140B') + \frac{16}{256}
245 245
246 Cb = \frac{224}{256} * (-0.169R' - 0.331G' + 0.5B') 246 Cb = \frac{224}{256} * (-0.1687R' - 0.3313G' + 0.5B')
247 247
248 Cr = \frac{224}{256} * (0.5R' - 0.419G' - 0.081B') 248 Cr = \frac{224}{256} * (0.5R' - 0.4187G' - 0.0813B')
249 249
250Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range 250Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range
251[-0.5…0.5]. The non-standard xvYCC 709 or xvYCC 601 encodings can be 251[-0.5…0.5]. The non-standard xvYCC 709 or xvYCC 601 encodings can be
@@ -440,11 +440,11 @@ the following ``V4L2_YCBCR_ENC_601`` encoding:
440 440
441.. math:: 441.. math::
442 442
443 Y' = 0.299R' + 0.587G' + 0.114B' 443 Y' = 0.2990R' + 0.5870G' + 0.1140B'
444 444
445 Cb = -0.169R' - 0.331G' + 0.5B' 445 Cb = -0.1687R' - 0.3313G' + 0.5B'
446 446
447 Cr = 0.5R' - 0.419G' - 0.081B' 447 Cr = 0.5R' - 0.4187G' - 0.0813B'
448 448
449Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range 449Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range
450[-0.5…0.5]. This transform is identical to one defined in SMPTE 450[-0.5…0.5]. This transform is identical to one defined in SMPTE
@@ -842,11 +842,11 @@ the following ``V4L2_YCBCR_ENC_601`` encoding:
842 842
843.. math:: 843.. math::
844 844
845 Y' = 0.299R' + 0.587G' + 0.114B' 845 Y' = 0.2990R' + 0.5870G' + 0.1140B'
846 846
847 Cb = -0.169R' - 0.331G' + 0.5B' 847 Cb = -0.1687R' - 0.3313G' + 0.5B'
848 848
849 Cr = 0.5R' - 0.419G' - 0.081B' 849 Cr = 0.5R' - 0.4187G' - 0.0813B'
850 850
851Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range 851Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range
852[-0.5…0.5]. The Y'CbCr quantization is limited range. This transform is 852[-0.5…0.5]. The Y'CbCr quantization is limited range. This transform is
@@ -940,11 +940,11 @@ the following ``V4L2_YCBCR_ENC_601`` encoding:
940 940
941.. math:: 941.. math::
942 942
943 Y' = 0.299R' + 0.587G' + 0.114B' 943 Y' = 0.2990R' + 0.5870G' + 0.1140B'
944 944
945 Cb = -0.169R' - 0.331G' + 0.5B' 945 Cb = -0.1687R' - 0.3313G' + 0.5B'
946 946
947 Cr = 0.5R' - 0.419G' - 0.081B' 947 Cr = 0.5R' - 0.4187G' - 0.0813B'
948 948
949Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range 949Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range
950[-0.5…0.5]. The Y'CbCr quantization is limited range. This transform is 950[-0.5…0.5]. The Y'CbCr quantization is limited range. This transform is