diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-03-08 03:53:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 17:10:54 -0400 |
commit | f658d133ba40af54b167a69b149a78bd966fa269 (patch) | |
tree | 2ae764627d6e02bacf783b64d7c00945ab635079 /Documentation/DocBook/media/v4l | |
parent | 1e8faa5945155ee8035cc3f9add6a715197f36ed (diff) |
[media] DocBook media: fix xv601/709 formulas
The denominator for the scaling and offsets is 256, not 255. Fix this.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'Documentation/DocBook/media/v4l')
-rw-r--r-- | Documentation/DocBook/media/v4l/pixfmt.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml b/Documentation/DocBook/media/v4l/pixfmt.xml index 13540fad3b2f..f2175f0877ed 100644 --- a/Documentation/DocBook/media/v4l/pixfmt.xml +++ b/Documentation/DocBook/media/v4l/pixfmt.xml | |||
@@ -790,9 +790,9 @@ case the BT.601 Y'CbCr encoding is used.</para> | |||
790 | is similar to the Rec. 709 encoding, but it allows for R', G' and B' values that are outside the range | 790 | is similar to the Rec. 709 encoding, but it allows for R', G' and B' values that are outside the range |
791 | [0…1]. The resulting Y', Cb and Cr values are scaled and offset:</term> | 791 | [0…1]. The resulting Y', Cb and Cr values are scaled and offset:</term> |
792 | <listitem> | 792 | <listitem> |
793 | <para>Y' = (219 / 255) * (0.2126R' + 0.7152G' + 0.0722B') + (16 / 255)</para> | 793 | <para>Y' = (219 / 256) * (0.2126R' + 0.7152G' + 0.0722B') + (16 / 256)</para> |
794 | <para>Cb = (224 / 255) * (-0.1146R' - 0.3854G' + 0.5B')</para> | 794 | <para>Cb = (224 / 256) * (-0.1146R' - 0.3854G' + 0.5B')</para> |
795 | <para>Cr = (224 / 255) * (0.5R' - 0.4542G' - 0.0458B')</para> | 795 | <para>Cr = (224 / 256) * (0.5R' - 0.4542G' - 0.0458B')</para> |
796 | </listitem> | 796 | </listitem> |
797 | </varlistentry> | 797 | </varlistentry> |
798 | </variablelist> | 798 | </variablelist> |
@@ -802,9 +802,9 @@ is similar to the Rec. 709 encoding, but it allows for R', G' and B' values that | |||
802 | to the BT.601 encoding, but it allows for R', G' and B' values that are outside the range | 802 | to the BT.601 encoding, but it allows for R', G' and B' values that are outside the range |
803 | [0…1]. The resulting Y', Cb and Cr values are scaled and offset:</term> | 803 | [0…1]. The resulting Y', Cb and Cr values are scaled and offset:</term> |
804 | <listitem> | 804 | <listitem> |
805 | <para>Y' = (219 / 255) * (0.299R' + 0.587G' + 0.114B') + (16 / 255)</para> | 805 | <para>Y' = (219 / 256) * (0.299R' + 0.587G' + 0.114B') + (16 / 256)</para> |
806 | <para>Cb = (224 / 255) * (-0.169R' - 0.331G' + 0.5B')</para> | 806 | <para>Cb = (224 / 256) * (-0.169R' - 0.331G' + 0.5B')</para> |
807 | <para>Cr = (224 / 255) * (0.5R' - 0.419G' - 0.081B')</para> | 807 | <para>Cr = (224 / 256) * (0.5R' - 0.419G' - 0.081B')</para> |
808 | </listitem> | 808 | </listitem> |
809 | </varlistentry> | 809 | </varlistentry> |
810 | </variablelist> | 810 | </variablelist> |