8 #ifndef SkColorMatrix_DEFINED
9 #define SkColorMatrix_DEFINED
25 constexpr
SkColorMatrix(
float m00,
float m01,
float m02,
float m03,
float m04,
26 float m10,
float m11,
float m12,
float m13,
float m14,
27 float m20,
float m21,
float m22,
float m23,
float m24,
28 float m30,
float m31,
float m32,
float m33,
float m34)
29 : fMat { m00, m01, m02, m03, m04,
30 m10, m11, m12, m13, m14,
31 m20, m21, m22, m23, m24,
32 m30, m31, m32, m33, m34 } {}
38 void setScale(
float rScale,
float gScale,
float bScale,
float aScale = 1.0f);
48 void setRowMajor(
const float src[20]) { std::copy_n(src, 20, fMat.begin()); }
49 void getRowMajor(
float dst[20])
const { std::copy_n(fMat.begin(), 20, dst); }
52 std::array<float, 20> fMat;
SkYUVColorSpace
Definition: SkImageInfo.h:68
Definition: SkColorFilter.h:84
Definition: SkColorMatrix.h:18
constexpr SkColorMatrix(float m00, float m01, float m02, float m03, float m04, float m10, float m11, float m12, float m13, float m14, float m20, float m21, float m22, float m23, float m24, float m30, float m31, float m32, float m33, float m34)
Definition: SkColorMatrix.h:25
static SkColorMatrix RGBtoYUV(SkYUVColorSpace)
void postConcat(const SkColorMatrix &mat)
Definition: SkColorMatrix.h:44
void preConcat(const SkColorMatrix &mat)
Definition: SkColorMatrix.h:43
constexpr SkColorMatrix()
Definition: SkColorMatrix.h:20
static SkColorMatrix YUVtoRGB(SkYUVColorSpace)
void setRowMajor(const float src[20])
Definition: SkColorMatrix.h:48
void getRowMajor(float dst[20]) const
Definition: SkColorMatrix.h:49
void setConcat(const SkColorMatrix &a, const SkColorMatrix &b)
void postTranslate(float dr, float dg, float db, float da)
void setSaturation(float sat)
void setScale(float rScale, float gScale, float bScale, float aScale=1.0f)