Document ColorMatrix intrinsic and add helpers

Increase size of test image.
Add helpers for greyscale and yuv<>rgb conversions

Change-Id: I6cdd06ae23623b47f5034585ed5d385ff11348ac
This commit is contained in:
Jason Sams
2012-09-05 15:30:18 -07:00
parent fb3ec448f1
commit 8fd5853c1c
7 changed files with 120 additions and 8 deletions

View File

@@ -112,6 +112,34 @@ public class Matrix4f {
System.arraycopy(src.getArray(), 0, mMat, 0, mMat.length);
}
/**
* Sets the values of the matrix to those of the parameter
*
* @param src matrix to load the values from
* @hide
*/
public void load(Matrix3f src) {
mMat[0] = src.mMat[0];
mMat[1] = src.mMat[1];
mMat[2] = src.mMat[2];
mMat[3] = 0;
mMat[4] = src.mMat[3];
mMat[5] = src.mMat[4];
mMat[6] = src.mMat[5];
mMat[7] = 0;
mMat[8] = src.mMat[6];
mMat[9] = src.mMat[7];
mMat[10] = src.mMat[8];
mMat[11] = 0;
mMat[12] = 0;
mMat[13] = 0;
mMat[14] = 0;
mMat[15] = 1;
}
/**
* Sets current values to be a rotation matrix of certain angle
* about a given axis