Home
last modified time | relevance | path

Searched refs:stride (Results 1 – 25 of 37) 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.java55 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
64 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame()
65 if (isWindowWhite(ideal, start, stride, windowWidth, windowHeight) in verifySame()
66 && isWindowWhite(given, start, stride, windowWidth, windowHeight)) { in verifySame()
70 double[] means = getMeans(ideal, given, start, stride, windowWidth, windowHeight); in verifySame()
73 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride, in verifySame()
94 private boolean isWindowWhite(int[] colors, int start, int stride, in isWindowWhite() argument
98 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite()
120 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride, in getMeans() argument
126 int index = indexFromXAndY(x, y, stride, start); in getMeans()
[all …]
DBitmapComparer.java30 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
36 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument
37 return x + (y * stride) + offset; in indexFromXAndY()
DExactComparer.java29 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
35 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DRegionVerifier.java42 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
48 isVerified &= verifySubRect(bitmap, offset, stride, width, height, in verify()
54 isVerified &= verifySubRect(bitmap, offset, stride, width, height, in verify()
62 private boolean verifySubRect(int[] bitmap, int offset, int stride, int width, int height, in verifySubRect() argument
64 final int newOffset = rect.top * stride + rect.left + offset; in verifySubRect()
65 return subVerifier.verify(bitmap, newOffset, stride, rect.width(), rect.height()); in verifySubRect()
DBitmapVerifier.java41 public abstract boolean verify(int[] bitmap, int offset, int stride, int width, int height); in verify() argument
46 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument
47 return x + (y * stride) + offset; in indexFromXAndY()
DPerPixelBitmapVerifier.java55 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
60 int index = indexFromXAndY(x, y, stride, offset); in verify()
80 mDifferenceBitmap.setPixels(differenceMap, offset, stride, 0, 0, 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()
DColorCountVerifier.java37 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
42 bitmap[indexFromXAndY(x, y, stride, offset)], mColor, mThreshold)) { in verify()
DGoldenImageVerifier.java52 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
53 boolean success = mBitmapComparer.verifySame(mGoldenBitmapArray, bitmap, offset, stride, in verify()
DSamplePointWideGamutVerifier.java66 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java195 int stride = width; in testGetYuvData() local
196 int[] argb = new int[stride * height]; in testGetYuvData()
197 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData()
198 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData()
200 stride, stride in testGetYuvData()
230 int stride = width + paddings; in generateYuvImage() local
233 int[] argb = new int [stride * height]; in generateYuvImage()
234 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage()
235 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage()
239 strides = new int[] {stride, stride}; in generateYuvImage()
[all …]
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapcomparers/
DBitmapComparer.java30 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
36 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument
37 return x + (y * stride) + offset; in indexFromXAndY()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/
DBitmapVerifier.java41 public abstract boolean verify(int[] bitmap, int offset, int stride, int width, int height); in verify() argument
46 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument
47 return x + (y * stride) + offset; in indexFromXAndY()
DPerPixelBitmapVerifier.java55 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
60 int index = indexFromXAndY(x, y, stride, offset); in verify()
80 mDifferenceBitmap.setPixels(differenceMap, offset, stride, 0, 0, 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()
/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()
114 int stride = (int)alloc.getStride(); in test2DWrite() local
115 byte[] dataIn = new byte[stride * dimY]; in test2DWrite()
122 assertEquals(dataIn[j*stride + i], dataOut[j*dimX*vecWidth + i]); in test2DWrite()
DScriptGroupTest.java437 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2GatherScatterAcrossKernelsViaGlobals()
439 stride); in testBuilder2GatherScatterAcrossKernelsViaGlobals()
441 Type.createX(mRS, Element.I32_4(mRS), stride), in testBuilder2GatherScatterAcrossKernelsViaGlobals()
497 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2KernelOutputToGlobal()
499 stride); in testBuilder2KernelOutputToGlobal()
501 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/view/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp87 int32_t bottom, uint32_t color, uint32_t stride) { in fillRegion() argument
90 ptr += stride * top; in fillRegion()
96 ptr += stride; in fillRegion()
119 fillRegion(data, 0, 0, width, height, color, desc.stride); in getSolidBuffer()
148 fillRegion(data, 0, 0, width / 2, height / 2, colorTopLeft, desc.stride); in getQuadrantBuffer()
149 fillRegion(data, width / 2, 0, width, height / 2, colorTopRight, desc.stride); in getQuadrantBuffer()
151 desc.stride); in getQuadrantBuffer()
153 desc.stride); in getQuadrantBuffer()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapTests.java163 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in testChangeDuringUiAnimation() argument
165 int[] red = new int[offset + height * stride]; in testChangeDuringUiAnimation()
167 int[] blue = new int[offset + height * stride]; in testChangeDuringUiAnimation()
169 boolean isRed = comparer.verifySame(red, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation()
170 boolean isBlue = comparer.verifySame(blue, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation()
DInfrastructureTests.java52 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in testRenderSpecIsolation()
58 return !(new MSSIMComparer(threshold)).verifySame(ideal, given, offset, stride, in testRenderSpecIsolation()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferGLTest.cpp99 if (info.param.stride & kUseSrgb) { in GetTestName()
102 if (info.param.stride & kExplicitYuvSampling) { in GetTestName()
244 const bool use_srgb = desc.stride & kUseSrgb; in UploadRedPixels()
550 ptrdiff_t row_offset = golden.y * desc.stride; in CheckCpuGoldenPixelsRgba()
723 ptrdiff_t row_offset = golden.y * desc.stride; in WriteGoldenPixelsRgba()
1138 if (GetParam().stride & kGlFormat) return; in MakeCurrent()
1262 const bool use_srgb = desc.stride & kUseSrgb; in SetUpBuffer()
1343 if (desc.stride & kGlFormat) { in SetUpBuffer()
1490 if (desc.stride & kGlFormat) { in SetUpTexture()
1629 bool isGlFormat = GetParam().stride & kGlFormat; in SetUpFramebuffer()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BasicVulkanGpuTest.cpp111 uint8_t *target = dst + ((y * hwbDesc.stride * formatDesc.pixelWidth) + in verifyBasicBufferImport()
/cts/tests/tests/media/src/android/media/cts/
DVpxCodecTestBase.java341 int stride, int sliceHeight, byte[] nv12) { in NV12ToYUV420() argument
346 System.arraycopy(nv12, i * stride, yuv, i * width, width); in NV12ToYUV420()
354 nv_offset = stride * (sliceHeight + i); in NV12ToYUV420()
368 int stride, int sliceHeight, byte[] src) { in PackYUV420() argument
372 System.arraycopy(src, (i + top) * stride + left, dst, i * width, width); in PackYUV420()
375 int u_src_offset = stride * sliceHeight; in PackYUV420()
383 System.arraycopy(src, u_src_offset + (i + top) * (stride / 2) + left, in PackYUV420()
385 System.arraycopy(src, v_src_offset + (i + top) * (stride / 2) + left, in PackYUV420()

12