Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 228) sorted by relevance

12345678910

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dverify.rs35 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 …]
Dyuv.rs27 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 …]
DComputeTest.java56 b2.y = 2; in testJavaVectorTypes()
59 assertTrue(b2.y == 2); in testJavaVectorTypes()
62 b3.y = 2; in testJavaVectorTypes()
66 assertTrue(b3.y == 2); in testJavaVectorTypes()
70 b4.y = 2; in testJavaVectorTypes()
75 assertTrue(b4.y == 2); in testJavaVectorTypes()
81 d2.y = 2.0; in testJavaVectorTypes()
84 assertTrue(d2.y == 2.0); in testJavaVectorTypes()
87 d3.y = 2.0; in testJavaVectorTypes()
91 assertTrue(d3.y == 2.0); in testJavaVectorTypes()
[all …]
Dvoid_ptr.rs7 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 …]
Dfe_all.rs11 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 …]
Dkernel_all.rs11 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 …]
DFloat16ArithmeticTest.java67 private boolean checkFloat16Output(int x, int y, short[][][] refValues, in checkFloat16Output() argument
72 short in2 = Float16TestData.input[y]; in checkFloat16Output()
73 short out = output[x + y * numInputs]; in checkFloat16Output()
74 short lb = refValues[x][y][0]; in checkFloat16Output()
75 short ub = refValues[x][y][1]; in checkFloat16Output()
113 private boolean checkFloat16Add(int x, int y) { in checkFloat16Add() argument
114 return checkFloat16Output(x, y, Float16TestData.ReferenceOutputForAdd, in checkFloat16Add()
128 for (int y = 0; y < numInputs; y ++) { in testFloat16Add()
129 checkFloat16Add(x, y); in testFloat16Add()
134 private boolean checkFloat16Sub(int x, int y) { in checkFloat16Sub() argument
[all …]
Dintrinsic_colormatrix.rs29 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 …]
Dvector.rs49 _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 …]
Dgetset.rs67 uint y = idx / gWidth; \
68 ty i = rsGetElementAt_##ty(gAlloc2DIn, x, y); \
69 rsSetElementAt_##ty(gAlloc2DOut, i, x, y); \
73 uint y = idx / gWidth; \
74 ty##2 i = rsGetElementAt_##ty##2(gAlloc2DIn, x, y); \
75 rsSetElementAt_##ty##2(gAlloc2DOut, i, x, y); \
79 uint y = idx / gWidth; \
80 ty##3 i = rsGetElementAt_##ty##3(gAlloc2DIn, x, y); \
81 rsSetElementAt_##ty##3(gAlloc2DOut, i, x, y); \
85 uint y = idx / gWidth; \
[all …]
Dintrinsic_convolve3x3.rs25 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 …]
DAtomicTest.rs67 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);
/cts/tests/tests/rsblas/src/android/renderscript/cts/
Dverify.rs33 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/
Dverify.rs41 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/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rs44 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/rscpp/librscpptest/
Dfe_all.rs11 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/tests/renderscript/src/android/renderscript/cts/refocus/
Dluts_for_speedup_f32.rsh11 // 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 …]
Dlayered_filter_fast_f32.rs97 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/graphics/src/android/graphics/cts/
DBitmapShaderTest.java57 for (int y = 0; y < NUM_TILES; y++) { in testBitmapShader()
59 checkTile(b, x * TILE_WIDTH, y * TILE_HEIGHT); in testBitmapShader()
69 for (int y = 0; y < TILE_HEIGHT; y++) { in checkTile()
72 y < BORDER_WIDTH || y >= TILE_HEIGHT - BORDER_WIDTH) { in checkTile()
73 assertColor(BORDER_COLOR, bitmap, x + tileY, y + tileY); in checkTile()
75 assertColor(CENTER_COLOR, bitmap, x + tileY, y + tileY); in checkTile()
86 private void assertColor(int color, Bitmap bitmap, int x, int y) { in assertColor() argument
87 if (x < bitmap.getWidth() && y < bitmap.getHeight()) { in assertColor()
88 assertEquals(color, bitmap.getPixel(x, y)); in assertColor()
DBlurMaskFilterTest.java47 for (int y = 0; y < CENTER; y++) { in testBlurMaskFilter()
48 if (x < CENTER - OFFSET - RADIUS || y < CENTER - OFFSET - RADIUS) { in testBlurMaskFilter()
50 checkQuadrants(Color.TRANSPARENT, b, x, y, 5); in testBlurMaskFilter()
51 } else if (x > CENTER - OFFSET + RADIUS && y > CENTER - OFFSET + RADIUS) { in testBlurMaskFilter()
53 checkQuadrants(Color.RED, b, x, y, 5); in testBlurMaskFilter()
56 checkQuadrants(Color.RED, b, x, y, 255); in testBlurMaskFilter()
62 private void checkQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) { in checkQuadrants() argument
66 checkColor(color, bitmap.getPixel(x, y), alphaTolerance); in checkQuadrants()
67 checkColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in checkQuadrants()
68 checkColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in checkQuadrants()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java130 CodecImage image, Rect area, int y, int u, int v); in fillImageRectWithYUV() argument
132 public static void fillImageRectWithYUV(Image image, Rect area, int y, int u, int v) { in fillImageRectWithYUV() argument
133 fillImageRectWithYUV(ImageWrapper.createFromImage(image), area, y, u, v); in fillImageRectWithYUV() local
166 int width, height, rowStride, pixelStride, x, y; in getImageMD5Checksum() local
182 for (y = 0; y < height; ++y) { in getImageMD5Checksum()
183 System.arraycopy(bb, y * width, b, y * rowStride + offs, width); in getImageMD5Checksum()
187 for (y = 0; y < height; ++y) { in getImageMD5Checksum()
188 int lineOffset = offs + y * rowStride; in getImageMD5Checksum()
190 bb[y * width + x] = b[lineOffset + x * pixelStride]; in getImageMD5Checksum()
197 for (y = 0; y < height; ++y) { in getImageMD5Checksum()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/
DPassFailVisualizer.java32 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/uirendering/src/android/uirendering/cts/bitmapcomparers/
DWeightedPixelDifference.java43 for (int y = 0 ; y < regionSize ; y++) { in inspectRegions()
45 int index = indexFromXAndY(x, y, stride, start); in inspectRegions()
76 for (int y = 0 ; y < height ; y += regionSize) { in verifySame()
78 int index = indexFromXAndY(x, y,stride, offset); in verifySame()
89 for (int y = 0 ; y < height ; y++) { in verifySame()
91 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
/cts/tests/openglperf2/jni/graphics/
DMatrix.cpp76 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/uirendering/src/android/uirendering/cts/bitmapverifiers/
DPerPixelBitmapVerifier.java52 protected int getExpectedColor(int x, int y) { in getExpectedColor() argument
59 for (int y = 0 ; y < height ; y++) { in verify()
61 int index = indexFromXAndY(x, y, stride, offset); in verify()
62 if (!verifyPixel(x, y, bitmap[index])) { in verify()
64 Log.d(TAG, "Expected : " + Integer.toHexString(getExpectedColor(x, y)) in verify()
66 + " at position (" + x + "," + y + ")"); in verify()
89 protected boolean verifyPixel(int x, int y, int observedColor) { in verifyPixel() argument
90 int expectedColor = getExpectedColor(x, y); in verifyPixel()

12345678910