libgpac  0.5.0
Public Attributes | List of all members
GF_ColorMatrix Struct Reference

color matrix object More...

#include <gpac/color.h>

Public Attributes

Fixed m [20]
 
u32 identity
 

Detailed Description

The Color transformation matrix object allows complete color space transformation (shift, rotate, skew, add).
The matrix coefs are in rgba order, hence the color RGBA is transformed to:

R' m0 m1 m2 m3 m4 R
G' m5 m6 m7 m8 m9 G
B' = m10 m11 m12 m13 m14 x B
A' m15 m16 m17 m18 m19 A
0 0 0 0 0 1 0

Coeficients are in intensity scale, ranging from 0 to FIX_ONE.

Member Data Documentation

Fixed GF_ColorMatrix::m[20]

color matrix coefficient

u32 GF_ColorMatrix::identity

internal flag to speed up things when matrix is identity. This is a read only flag, do not modify it


The documentation for this struct was generated from the following file: