mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
Matrix4f m = new Matrix4f();
m.set(1, 0, 0.2f);
m.set(1, 1, 0.9f);
m.set(1, 2, 0.2f);
mMatrix.setColorMatrix(m);
Type connect = mInPixelsAllocation.getType();
mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_OUTPUT | Allocation.USAGE_SCRIPT);
mScratchPixelsAllocation2 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT);
Surface s = mScratchPixelsAllocation2.getSurface();
mScratchPixelsAllocation1.setSurface(s);