/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | verify.rs | 35 for (uint32_t y = 0; y < h; y++) { 37 float4 pref = rsGetElementAt_float4(in1, x, y); 38 float4 ptst = rsGetElementAt_float4(in2, x, y); 40 e |= !compare_float(pref.y, ptst.y); 45 errorLoc.y = y; 56 for (uint32_t y = 0; y < h; y++) { 58 float3 pref = rsGetElementAt_float3(in1, x, y); 59 float3 ptst = rsGetElementAt_float3(in2, x, y); 61 e |= !compare_float(pref.y, ptst.y); 65 errorLoc.y = y; [all …]
|
D | yuv.rs | 27 static uchar4 yuvToRGBA4(uchar y, uchar u, uchar v) { 28 short Y = ((short)y) - 16; 34 p.y = (Y * 298 - U * 100 - V * 208 + 128) >> 8; 43 if(p.y < 0) { 44 p.y = 0; 46 if(p.y > 255) { 47 p.y = 255; 56 return (uchar4){p.x, p.y, p.z, p.w}; 59 static float4 yuvToRGBA_f4(uchar y, uchar u, uchar v) { 63 float4 color = (float)y * 0.003921569f; [all …]
|
D | void_ptr.rs | 7 void set_output_void_int(void *out, uint32_t x, uint32_t y) { 9 *out_int = x + y; 12 void __attribute__((kernel))check_output_int(const int in, uint32_t x, uint32_t y) 14 if (in != x + y) { 19 void set_output_void_char(void *out, uint32_t x, uint32_t y) { 21 *out_int = x + y; 24 void __attribute__((kernel))check_output_char(const uchar in, uint32_t x, uint32_t y) 26 if (in != x + y) { 31 int __attribute__((kernel)) set_output_int(uint32_t x, uint32_t y) { 32 return x + y; [all …]
|
D | fe_all.rs | 11 aout[0].y = ain[0].y + 1; 17 aout[0].y = ain[0].y + 1; 24 aout[0].y = ain[0].y + 1; 37 aout[0].y = ain[0].y + 1; 43 aout[0].y = ain[0].y + 1; 50 aout[0].y = ain[0].y + 1; 63 aout[0].y = ain[0].y + 1; 69 aout[0].y = ain[0].y + 1; 76 aout[0].y = ain[0].y + 1; 89 aout[0].y = ain[0].y + 1; [all …]
|
D | intrinsic_colormatrix.rs | 29 for (uint32_t y = y1; y < y2; y++) { 36 pin.xyzw = rsGetElementAt_float4(in, x, y); 39 pin.xyz = rsGetElementAt_float3(in, x, y); 42 pin.xy = rsGetElementAt_float2(in, x, y); 45 pin.x = rsGetElementAt_float(in, x, y); 54 u.xyzw = rsGetElementAt_uchar4(in, x, y); 57 u.xyz = rsGetElementAt_uchar3(in, x, y); 60 u.xy = rsGetElementAt_uchar2(in, x, y); 63 u.x = rsGetElementAt_uchar(in, x, y); 75 rsSetElementAt_float4(out, pin, x, y); [all …]
|
D | kernel_all.rs | 11 r.y = ain.y + 1; 18 r.y = ain.y + 1; 26 r.y = ain.y + 1; 39 r.y = ain.y + 1; 46 r.y = ain.y + 1; 54 r.y = ain.y + 1; 67 r.y = ain.y + 1; 74 r.y = ain.y + 1; 82 r.y = ain.y + 1; 95 r.y = ain.y + 1; [all …]
|
D | Float16ArithmeticTest.java | 83 private boolean checkFloat16Output(int x, int y, short[][][] refValues, in checkFloat16Output() argument 88 short in2 = Float16TestData.input[y]; in checkFloat16Output() 89 short out = output[x + y * numInputs]; in checkFloat16Output() 90 short lb = refValues[x][y][0]; in checkFloat16Output() 91 short ub = refValues[x][y][1]; in checkFloat16Output() 129 private boolean checkFloat16Add(int x, int y) { in checkFloat16Add() argument 130 return checkFloat16Output(x, y, Float16TestData.ReferenceOutputForAdd, in checkFloat16Add() 141 for (int y = 0; y < numInputs; y ++) { in testFloat16Add() 142 checkFloat16Add(x, y); in testFloat16Add() 147 private boolean checkFloat16Sub(int x, int y) { in checkFloat16Sub() argument [all …]
|
D | vector.rs | 49 _RS_ASSERT(f2.y == 3.99f); 52 _RS_ASSERT(f3.y == 3.99f); 56 _RS_ASSERT(f4.y == 3.99f); 62 _RS_ASSERT(d2.y == 3.99); 65 _RS_ASSERT(d3.y == 3.99); 69 _RS_ASSERT(d4.y == 3.99); 75 _RS_ASSERT(i8_2.y == 3); 78 _RS_ASSERT(i8_3.y == 3); 82 _RS_ASSERT(i8_4.y == 3); 88 _RS_ASSERT(u8_2.y == 3); [all …]
|
D | getset.rs | 67 uint y = idx / gWidth; \ 68 ty i = rsGetElementAt_##ty(gAlloc2DIn, x, y); \ 69 rsSetElementAt_##ty(gAlloc2DOut, i, x, y); \ 74 uint y = idx / realWidth; \ 75 ty##2 i = rsGetElementAt_##ty##2(gAlloc2DIn, x, y); \ 76 rsSetElementAt_##ty##2(gAlloc2DOut, i, x, y); \ 81 uint y = idx / realWidth; \ 82 ty##3 i = rsGetElementAt_##ty##3(gAlloc2DIn, x, y); \ 83 rsSetElementAt_##ty##3(gAlloc2DOut, i, x, y); \ 88 uint y = idx / realWidth; \ [all …]
|
D | AtomicTest.rs | 67 for (uint32_t y = 0; y < dimY; y++) { 69 int v = rsGetElementAt_int(a, x, y); 79 for (uint32_t y = 0; y < dimY; y++) { 81 uint v = rsGetElementAt_uint(a, x, y); 91 for (uint32_t y = 0; y < dimY; y++) { 93 int v = rsGetElementAt_int(a, x, y); 103 for (uint32_t y = 0; y < dimY; y++) { 105 uint v = rsGetElementAt_uint(a, x, y);
|
D | intrinsic_convolve3x3.rs | 25 uchar4 __attribute__((kernel)) convolve_U4(uint32_t x, uint32_t y) { 28 uint32_t y1 = min((int32_t)y+1, gHeight-1); 29 uint32_t y2 = max((int32_t)y-1, 0); 34 float4 p10 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y)); 35 float4 p11 = convert_float4(rsGetElementAt_uchar4(gIn, x, y)); 36 float4 p12 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y)); 66 uchar3 __attribute__((kernel)) convolve_U3(uint32_t x, uint32_t y) { 69 uint32_t y1 = min((int32_t)y+1, gHeight-1); 70 uint32_t y2 = max((int32_t)y-1, 0); 75 float3 p10 = convert_float3(rsGetElementAt_uchar3(gIn, x1, y)); [all …]
|
D | float16_arithmetic.rs | 6 half RS_KERNEL add(int x, int y) { 8 half b = rsGetElementAt_half(gInput, y); 12 half RS_KERNEL sub(int x, int y) { 14 half b = rsGetElementAt_half(gInput, y); 18 half RS_KERNEL mul(int x, int y) { 20 half b = rsGetElementAt_half(gInput, y); 24 half RS_KERNEL div(int x, int y) { 26 half b = rsGetElementAt_half(gInput, y);
|
D | StructFieldTest.java | 35 innerOne.y = r.nextInt(); in makeInnerOne() 64 outer.innerOneA.x, outer.innerOneA.y, outer.innerOneA.f, in testStructField() 66 outer.innerOneB.x, outer.innerOneB.y, outer.innerOneB.f, in testStructField() 68 … outer.innerTwo3[0].innerOne.x, outer.innerTwo3[0].innerOne.y, outer.innerTwo3[0].innerOne.f, in testStructField() 70 … outer.innerTwo3[1].innerOne.x, outer.innerTwo3[1].innerOne.y, outer.innerTwo3[1].innerOne.f, in testStructField() 72 … outer.innerTwo3[2].innerOne.x, outer.innerTwo3[2].innerOne.y, outer.innerTwo3[2].innerOne.f, in testStructField() 74 … outer.innerTwo2[0].innerOne.x, outer.innerTwo2[0].innerOne.y, outer.innerTwo2[0].innerOne.f, in testStructField() 76 … outer.innerTwo2[1].innerOne.x, outer.innerTwo2[1].innerOne.y, outer.innerTwo2[1].innerOne.f, in testStructField() 77 outer.innerOne4[0].x, outer.innerOne4[0].y, outer.innerOne4[0].f, in testStructField() 78 outer.innerOne4[1].x, outer.innerOne4[1].y, outer.innerOne4[1].f, in testStructField() [all …]
|
D | intrinsic_3dlut.rs | 26 gDims.y = rsAllocationGetDimY(gCube); 38 float4 v000 = convert_float4(rsGetElementAt_uchar4(gCube, coord1.x, coord1.y, coord1.z)); 39 float4 v100 = convert_float4(rsGetElementAt_uchar4(gCube, coord2.x, coord1.y, coord1.z)); 40 float4 v010 = convert_float4(rsGetElementAt_uchar4(gCube, coord1.x, coord2.y, coord1.z)); 41 float4 v110 = convert_float4(rsGetElementAt_uchar4(gCube, coord2.x, coord2.y, coord1.z)); 42 float4 v001 = convert_float4(rsGetElementAt_uchar4(gCube, coord1.x, coord1.y, coord2.z)); 43 float4 v101 = convert_float4(rsGetElementAt_uchar4(gCube, coord2.x, coord1.y, coord2.z)); 44 float4 v011 = convert_float4(rsGetElementAt_uchar4(gCube, coord1.x, coord2.y, coord2.z)); 45 float4 v111 = convert_float4(rsGetElementAt_uchar4(gCube, coord2.x, coord2.y, coord2.z)); 52 float4 z0 = mix(yz00, yz10, f.y); [all …]
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | verify.rs | 33 rsDebug(txt, rsGetElementAt_uchar4(a, xy.x, xy.y)); \ 36 rsDebug(txt, rsGetElementAt_uchar3(a, xy.x, xy.y)); \ 39 rsDebug(txt, rsGetElementAt_uchar2(a, xy.x, xy.y)); \ 42 rsDebug(txt, rsGetElementAt_uchar(a, xy.x, xy.y)); \ 48 rsDebug(txt, rsGetElementAt_float4(a, xy.x, xy.y)); \ 51 rsDebug(txt, rsGetElementAt_float3(a, xy.x, xy.y)); \ 54 rsDebug(txt, rsGetElementAt_float2(a, xy.x, xy.y)); \ 57 rsDebug(txt, rsGetElementAt_float(a, xy.x, xy.y)); \ 63 rsDebug(txt, rsGetElementAt_double4(a, xy.x, xy.y)); \ 66 rsDebug(txt, rsGetElementAt_double3(a, xy.x, xy.y)); \ [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | verify.rs | 41 for (uint32_t y=0; y < h; y++) { 43 float4 pref = rsGetElementAt_float4(in1, x, y); 44 float4 ptst = rsGetElementAt_float4(in2, x, y); 46 e |= !compare_float(pref.y, ptst.y); 51 errorLoc.y = y; 63 for (uint32_t y=0; y < h; y++) { 65 float3 pref = rsGetElementAt_float3(in1, x, y); 66 float3 ptst = rsGetElementAt_float3(in2, x, y); 68 e |= !compare_float(pref.y, ptst.y); 72 errorLoc.y = y; [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | fe_all.rs | 11 aout[0].y = ain[0].y + 1; 17 aout[0].y = ain[0].y + 1; 24 aout[0].y = ain[0].y + 1; 37 aout[0].y = ain[0].y + 1; 43 aout[0].y = ain[0].y + 1; 50 aout[0].y = ain[0].y + 1; 63 aout[0].y = ain[0].y + 1; 69 aout[0].y = ain[0].y + 1; 76 aout[0].y = ain[0].y + 1; 89 aout[0].y = ain[0].y + 1; [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | raw_converter.rs | 44 static float4 getGain(uint x, uint y) { 46 float interpY = (((float) y) / rawHeight) * gainMapHeight; 75 ret.y = gammaEncode(rgb.y); 100 if (sorted.z < sorted.y) { 102 sorted.z = sorted.y; 103 sorted.y = tmp; 106 if (sorted.y < sorted.x) { 107 tmp = sorted.y; 108 sorted.y = sorted.x; 112 if (sorted.z < sorted.y) { [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | luts_for_speedup_f32.rsh | 11 // depth y is visible in the presence of a pixel with depth x. 12 // VisibilityProbability.lut[y][x] = 1.0f/(max(x-y,0)+1). 13 // The value range of both x and y is [0,g_kMaxDepthValue]. 14 // The value range of VisibilityProbability.lut[y][x] is [0,1]. 33 for (int y = 0; y <= g_kMaxDepthValue; y++) { 35 if (y == 0 || x == 0) { 36 visibility_probability->lut[y][x] = 0; 37 } else if (y <= back_focal_depth) { 39 visibility_probability->lut[y][x] = 1.0f / (max(z - y, 0) + 1); 40 } else if (y <= front_focal_depth) { [all …]
|
D | layered_filter_fast_f32.rs | 97 UnpackInputImage(uchar4 in, uint32_t x, uint32_t y) { 100 y += g_image_size.margin; 102 const int index = y * g_image_size.width + x; 130 void __attribute__((kernel)) MarkLayerMask(uchar4 in, uint32_t x, uint32_t y) { 136 y += g_image_size.margin; 138 const int index = y * g_image_size.width + x; // index of this pixel 205 ComputeLayerMatteBehindFocalDepth(uchar4 in, uint32_t x, uint32_t y) { 208 y += g_image_size.margin; 210 const int index = y * g_image_size.width + x; 220 ComputeLayerMatteHelper(sharp, x, y, &g_image_size, [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/ |
D | PassFailVisualizer.java | 32 for (int y = 0; y < output.length; y++) { in getDifferences() 33 if (ideal[y] == given[y]) { in getDifferences() 34 output[y] = Color.WHITE; in getDifferences() 36 output[y] = Color.RED; in getDifferences()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BlurMaskFilterTest.java | 54 for (int y = 0; y < CENTER; y++) { in testBlurMaskFilter() 55 if (x < CENTER - OFFSET - CHECK_RADIUS || y < CENTER - OFFSET - CHECK_RADIUS) { in testBlurMaskFilter() 57 verifyQuadrants(Color.TRANSPARENT, b, x, y, 5); in testBlurMaskFilter() 58 } else if (x > CENTER - OFFSET + RADIUS && y > CENTER - OFFSET + RADIUS) { in testBlurMaskFilter() 60 verifyQuadrants(Color.RED, b, x, y, 8); in testBlurMaskFilter() 61 } else if (x > CENTER - OFFSET - RADIUS && y > CENTER - OFFSET - RADIUS) { in testBlurMaskFilter() 63 verifyQuadrants(Color.RED, b, x, y, 255); in testBlurMaskFilter() 69 private void verifyQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) { in verifyQuadrants() argument 73 verifyColor(color, bitmap.getPixel(x, y), alphaTolerance); in verifyQuadrants() 74 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | PerPixelBitmapVerifier.java | 51 protected int getExpectedColor(int x, int y) { in getExpectedColor() argument 58 for (int y = 0 ; y < height ; y++) { in verify() 60 int index = indexFromXAndY(x, y, stride, offset); in verify() 61 if (!verifyPixel(x, y, bitmap[index])) { in verify() 63 Log.d(TAG, "Expected : " + Integer.toHexString(getExpectedColor(x, y)) in verify() 65 + " at position (" + x + "," + y + ")"); in verify() 86 protected boolean verifyPixel(int x, int y, int observedColor) { in verifyPixel() argument 87 int expectedColor = getExpectedColor(x, y); in verifyPixel()
|
/cts/tests/openglperf2/jni/graphics/ |
D | Matrix.cpp | 76 void Matrix::translate(float x, float y, float z) { in translate() argument 77 Matrix* m = newTranslate(x, y, z); in translate() 86 void Matrix::scale(float x, float y, float z) { in scale() argument 87 Matrix* m = newScale(x, y, z); in scale() 96 void Matrix::rotate(float radians, float x, float y, float z) { in rotate() argument 97 Matrix* m = newRotate(radians, x, y, z); in rotate() 112 float y = 0; in multiply() local 120 y += lhs[j4 + 1] * e; in multiply() 126 mData[i4 + 1] = y; in multiply() 197 const float y = 2.0f * (near * r_height); in newFrustum() local [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BasicVulkanGpuTest.cpp | 108 for (size_t y = 0; y < kTestImageHeight; ++y) { in verifyBasicBufferImport() local 110 uint8_t *target = dst + ((y * hwbDesc.stride * formatDesc.pixelWidth) + in verifyBasicBufferImport() 112 *target = x + y; in verifyBasicBufferImport() 135 for (uint32_t y = 0; y < kTestImageHeight; ++y) { in verifyBasicBufferImport() local 137 size_t offset = y * kTestImageWidth * formatDesc.pixelWidth + in verifyBasicBufferImport() 139 ASSERT(framePixels[offset] == x + y, in verifyBasicBufferImport() 141 formatDesc.name.c_str(), x + y, x, y, framePixels[offset]); in verifyBasicBufferImport()
|