• Home
• Explore

Transcript
```A P P L I C A T I O N
11.17.3.2
N O T E
typedef MM_FLOAT Mat3x3[9]
Matrix with 3 columns and 3 rows for perspective geometry operations. If m is a Mat3x3 matrix type and x,y
in an input vector the resulting vector is:
m[0] m[3]
(m[1] m[4]
m[2] m[5]
m[0] × x + m[3] × y + m[6]
m[2] × x + m[5] × y + m[8]
m[6]
y
m[7]) × ( x ) =
1
m[8]
m[1] × x + m[4] × y + m[7]
m[2] × x + m[5] × y + m[8]
(
11.17.3.3
1
)
typedef MM_FLOAT Mat4x3[12]
Matrix with 4 columns and 3 rows for color operations with the R, G, B or Y, U, V channels. If m is a Mat4x3
matrix type and R, G, B in an input vector the resulting vector is:
m[0] m[3]
(m[1] m[4]
m[2] m[5]
11.17.3.4
m[6] m[9]
m[0] × R + m[3] × G + m[6] × B + m[9]
R
m[7] m[12]) × (G) = (m[1] × R + m[4] × G + m[7] × B + m[10])
B
m[8] m[11]
m[2] × R + m[5] × G + m[8] × B + m[11]
typedef MM_FLOAT Mat4x4[16]
Matrix with 4 columns and 4 rows for perspective geometry operations including z calculation. The Mat4x4
matrix is defined in the following order
m[0]
m[1]
(
m[2]
m[3]
m[4] m[8] m[12]
m[5] m[9] m[13]
)
m[6] m[10] m[14]
m[7] m[11] m[15]
11.17.3.5
typedef MM_FLOAT Mat5x4[20]
Matrix with 5 columns and 4 rows for color operations with the R, G, B, A or Y, U, V, A channels. If m is a
Mat5x4 matrix type and R, G, B, A in an input vector the resulting vector is:
m[0]
m[1]
(
m[2]
m[3]
m[4] m[8] m[12]
m[5] m[9] m[13]
m[6] m[10] m[14]
m[7] m[11] m[15]
m[16]
m[0] × R + m[4] × G + m[8] × B + m[12] × A + m[16]
R
m[17]
m[1] × R + m[5] × G + m[9] × B + m[13] × A + m[17]
G
)×( ) = (
)
m[18]
m[2] × R + m[6] × G + m[10] × B + m[14] × A + m[18]
B
A
m[19]
m[3] × R + m[7] × G + m[11] × B + m[15] × A + m[19]
11.17.4 Function Documentation
11.17.4.1
MML_GDC_2D_MATRIX_API void utMat3x2Copy (
dst,
const Mat3x2 src
Mat3x2
)
Copy the matrix content to a new one.
180
CONFIDENTIAL
S6E2DH_AN709-00022-1v0-E, September 11, 2015
```
Similar