OSDN Git Service

gallium/vl Fix brightness matrix description
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 8 Mar 2016 06:30:52 +0000 (07:30 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 22 Feb 2017 09:18:30 +0000 (10:18 +0100)
The brightness matrix doesn't actually match the procamp matrix and
what's calculated in vl_csc_get_matrix.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_csc.c

index c8efe28..1587e6c 100644 (file)
  * [ 0, 0, 0, 1]
  *
  * brightness
- * [ 1, 0, 0, b]
- * [ 0, 1, 0, 0]
- * [ 0, 0, 1, 0]
- * [ 0, 0, 0, 1]
+ * [ 1, 0, 0, b/c]
+ * [ 0, 1, 0,   0]
+ * [ 0, 0, 1,   0]
+ * [ 0, 0, 0,   1]
  *
  * saturation
  * [ 1, 0, 0, 0]