diff options
author | Christian König <[email protected]> | 2012-02-29 15:12:42 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2012-03-02 13:14:21 +0100 |
commit | 14766f820069ca987543918bce96410c481e5d20 (patch) | |
tree | fddc9d5ac54d9767c760cd6c93376c4dbc19c5b5 /src/gallium/auxiliary/vl/vl_csc.h | |
parent | 74a4e9089488e7f341d21053bbf2d4aa52b99b70 (diff) |
vl/csc: simplify matrix handling
A csc matrix is only 4x3 not 4x4, also define a VDPAU compatible type for it.
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_csc.h')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_csc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_csc.h b/src/gallium/auxiliary/vl/vl_csc.h index 7a31dd4eb26..4e36e0b0eda 100644 --- a/src/gallium/auxiliary/vl/vl_csc.h +++ b/src/gallium/auxiliary/vl/vl_csc.h @@ -30,6 +30,8 @@ #include "pipe/p_compiler.h" +typedef float vl_csc_matrix[3][4]; + struct vl_procamp { float brightness; @@ -51,6 +53,6 @@ extern const struct vl_procamp vl_default_procamp; void vl_csc_get_matrix(enum VL_CSC_COLOR_STANDARD cs, struct vl_procamp *procamp, bool full_range, - float *matrix); + vl_csc_matrix *matrix); #endif /* vl_csc_h */ |