Home
last modified time | relevance | path

Searched refs:stride (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSUtils.java37 int stride, int skip) { in genRandom() argument
39 for (int i = 0; i < array.length / stride; i++) { in genRandom()
40 for (int j = 0; j < stride; j++) { in genRandom()
41 if (j >= stride - skip) in genRandom()
42 array[i * stride + j] = 0; in genRandom()
44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom()
57 int stride, int skip) { in genRandom() argument
59 for (int i = 0; i < array.length / stride; i++) { in genRandom()
60 for (int j = 0; j < stride; j++) { in genRandom()
61 if (j >= stride - skip) in genRandom()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.java50 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
57 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame()
58 if (isWindowWhite(ideal, start, stride) && isWindowWhite(given, start, stride)) { in verifySame()
62 double[] means = getMeans(ideal, given, start, stride); in verifySame()
65 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride); in verifySame()
87 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
110 private boolean isWindowWhite(int[] colors, int start, int stride) { in isWindowWhite() argument
113 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite()
135 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride) { in getMeans() argument
140 int index = indexFromXAndY(x, y, stride, start); in getMeans()
[all …]
DBitmapComparer.java34 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
43 Allocation given, int offset, int stride, int width, int height, in verifySameRS() argument
51 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument
52 return x + (y * stride) + offset; in indexFromXAndY()
DWeightedPixelDifference.java41 private static boolean inspectRegions(int[] ideal, int start, int stride, int regionSize) { in inspectRegions() argument
45 int index = indexFromXAndY(x, y, stride, start); in inspectRegions()
71 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
78 int index = indexFromXAndY(x, y,stride, offset); in verifySame()
79 if (inspectRegions(ideal, index, stride, regionSize)) { in verifySame()
91 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
DMeanSquaredComparer.java44 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
46 float totalError = getMSE(ideal, given, offset, stride, width, height); in verifySame()
53 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
78 public static float getMSE(int[] ideal, int[] given, int offset, int stride, int width, in getMSE() argument
84 int index = indexFromXAndY(x, y, stride, offset); in getMSE()
DBaseRenderScriptComparer.java16 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
24 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
28 Allocation given, int offset, int stride, int width, int height, in verifySameRS() argument
35 return verifySameRowsRS(resources, ideal, given, offset, stride, width, height, in verifySameRS()
DExactComparer.java36 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
42 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
60 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
DPSNRComparer.java40 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
46 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
59 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
DThresholdDifferenceComparer.java46 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
51 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
69 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
DNearPixelComparer.java31 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
44 int index = indexFromXAndY(x + dx, y + dy, stride, offset); in verifySame()
DPassComparer.java23 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DBitmapVerifier.java33 public abstract boolean verify(int[] bitmap, int offset, int stride, int width, int height); in verify() argument
38 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument
39 return x + (y * stride) + offset; in indexFromXAndY()
DInvertVerifier.java29 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
30 boolean success = mBitmapVerifier.verify(bitmap, offset, stride, width, height); in verify()
DSamplePointVerifier.java47 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
54 int index = indexFromXAndY(x, y, stride, offset); in verify()
68 mDifferenceBitmap.setPixels(differenceMap, offset, stride, 0, 0, in verify()
DPerPixelBitmapVerifier.java56 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
61 int index = indexFromXAndY(x, y, stride, offset); in verify()
82 mDifferenceBitmap.setPixels(differenceMap, offset, stride, 0, 0, in verify()
DGoldenImageVerifier.java35 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
36 boolean success = mBitmapComparer.verifySame(mGoldenBitmapArray, bitmap, offset, stride, in verify()
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java202 int stride = width; in testGetYuvData() local
203 int[] argb = new int[stride * height]; in testGetYuvData()
204 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData()
205 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData()
207 stride, stride in testGetYuvData()
236 int stride = width + paddings; in generateYuvImage() local
239 int[] argb = new int [stride * height]; in generateYuvImage()
240 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage()
241 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage()
245 strides = new int[] {stride, stride}; in generateYuvImage()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationByteBufferTest.java60 int stride = (int)alloc.getStride(); in testByteBufferHelper() local
65 byte byteInBuffer = bb.get(posY * stride + posX * vecWidth * byteSize); in testByteBufferHelper()
113 int stride = (int)alloc.getStride(); in test2DWrite() local
114 byte[] dataIn = new byte[stride * dimY]; in test2DWrite()
121 assertEquals(dataIn[j*stride + i], dataOut[j*dimX*vecWidth + i]); in test2DWrite()
DScriptGroupTest.java390 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2GatherScatterAcrossKernelsViaGlobals()
392 stride); in testBuilder2GatherScatterAcrossKernelsViaGlobals()
394 Type.createX(mRS, Element.I32_4(mRS), stride), in testBuilder2GatherScatterAcrossKernelsViaGlobals()
447 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2KernelOutputToGlobal()
449 stride); in testBuilder2KernelOutputToGlobal()
451 Type.createX(mRS, Element.I32_4(mRS), stride), in testBuilder2KernelOutputToGlobal()
DRSBaseCompute.java236 int stride = element.getVectorSize(); in enforceOrdering() local
237 if (stride == 3) { in enforceOrdering()
238 stride = 4; in enforceOrdering()
240 int size = INPUTSIZE * stride; in enforceOrdering()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DInfrastructureTests.java56 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in testRenderSpecIsolation()
62 return !(new MSSIMComparer(threshold)).verifySame(ideal, given, offset, stride, in testRenderSpecIsolation()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp200 int width, stride, height; in checksum() local
204 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_STRIDE, &stride)) { in checksum()
205 stride = width; in checksum()
212 memcpy(bb + i * width, in + i * stride, width); in checksum()
/cts/tests/tests/graphics/src/android/opengl/cts/
DCompressedTextureLoader.java183 int pixelSize, int stride){ in compressTexture() argument
187 ETC1.encodeImage(input, width, height, pixelSize, stride, compressedImage); in compressTexture()
/cts/tests/tests/media/src/android/media/cts/
DVp8CodecTestBase.java337 int stride, int sliceHeight, byte[] nv12) { in NV12ToYUV420() argument
342 System.arraycopy(nv12, i * stride, yuv, i * width, width); in NV12ToYUV420()
350 nv_offset = stride * (sliceHeight + i); in NV12ToYUV420()
364 int stride, int sliceHeight, byte[] src) { in PackYUV420() argument
368 System.arraycopy(src, i * stride, dst, i * width, width); in PackYUV420()
371 int u_src_offset = stride * sliceHeight; in PackYUV420()
376 System.arraycopy(src, u_src_offset + i * (stride / 2), in PackYUV420()
378 System.arraycopy(src, v_src_offset + i * (stride / 2), in PackYUV420()
DDecoderTest.java1069 int stride = mMasterBuffer.length / signal.length;
1070 assertEquals("wrong data size", mMasterBuffer.length, signal.length * stride);
1074 short mastersample = mMasterBuffer[i * stride];
2421 private static long checksum(ByteBuffer buf, int width, int height, int stride) {
2424 + width + " x " + height + " , " + stride + " cap = " + cap,
2425 width > 0 && width <= stride && height > 0 && height * stride <= cap);
2438 crc.update(b, i * stride + offs, width);
2445 buf.position(pos + i * stride);
2451 buf.position(pos + i * stride);

12