Home
last modified time | relevance | path

Searched refs:srcData (Results 1 – 1 of 1) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DImageProcessingTest.java119 byte[] srcData = new byte[w * h * 4]; in testBlend()
125 buildSrc(srcData, w, h); in testBlend()
127 src.copyFromUnchecked(srcData); in testBlend()
217 String name = javaBlend(i%14, srcData, dstData); in testBlend()
250 public void buildSrc(byte[] srcData, int width, int height) { in buildSrc() argument
251 for (int i = 0; i < srcData.length / 4; i++) { in buildSrc()
258 srcData[i * 4 + 0] = (byte) d; // red in buildSrc()
259 srcData[i * 4 + 1] = (byte) d; // green in buildSrc()
260 srcData[i * 4 + 2] = (byte) 0; // blue in buildSrc()
261 srcData[i * 4 + 3] = (byte) y; // alpha in buildSrc()