Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
173
11.17.4.21 MML_GDC_2D_MATRIX_API void utMat3x3TranslatePre ( Mat3x3 m, MM_FLOAT x,
MM_FLOAT y )
Modify a 3x3-matrix by pre-multiplying a move matrix. The resulting matrix represents m = m_trans
∗
m.
Parameters
in,out
m
The matrix to modify.
in
x
Move dimension in x direction.
in
y
Move dimension in y direction.
11.17.4.22 MML_GDC_2D_MATRIX_API void utMat4x3CalcColMatrix ( Mat4x3 dst, MM_FLOAT
fContrast, MM_FLOAT fBrightness, MM_FLOAT fSaturation, MM_FLOAT fHue )
Calculate a color matrix with given parameters.
Parameters
out
dst
Destination color matrix. Previous matrix values will be overwritten.
in
fContrast
Set the contrast (color component amplification). A useful range for fContrast is 0.0 .. 2.0
with 1.0 stands for no contrast modifications and higher and lower values stand for
amplification and attenuation.
in
fBrightness
Set the brightness (color component offset). A useful range for fBrightness is -1.0 .. 1.0 with
0.0 stands for no brightness modifications and higher and lower values stand for
amplification and attenuation.
in
fSaturation
Set the color saturation. A useful range for fSaturation is 0.0 .. 2.0 with 1.0 stands for no
saturation modifications and higher and lower values stand for amplification and attenuation.
A value of 0.0 will result in a gray image.
in
fHue
Color modification in degrees. The useful range is 0 .. 360 where 0 and 360 run into a
identical result which means no modification.
Note
The parameters are not checked concerning the range. A wrong value will result in a wrong image.
11.17.4.23 MML_GDC_2D_MATRIX_API void utMat4x3Copy ( Mat4x3 dst, const Mat4x3 src )
Copy the matrix content to a new one.
Parameters
out
dst
The destination matrix.
in
src
The source matrix.
11.17.4.24 MML_GDC_2D_MATRIX_API void utMat4x3LoadIdentity ( Mat4x3 m )
Fill a 4x3-matrix with a unit matrix.
Parameters
in,out
m
The matrix to modify.