Home
last modified time | relevance | path

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

12345678

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dverify.rs37 for (uint32_t y = 0; y < h; y++) {
39 float4 pref = rsGetElementAt_float4(in1, x, y);
40 float4 ptst = rsGetElementAt_float4(in2, x, y);
42 e |= !compare_float(pref.y, ptst.y);
47 errorLoc.y = y;
58 for (uint32_t y = 0; y < h; y++) {
60 float3 pref = rsGetElementAt_float3(in1, x, y);
61 float3 ptst = rsGetElementAt_float3(in2, x, y);
63 e |= !compare_float(pref.y, ptst.y);
67 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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
DFloat16ArithmeticTest.java134 private boolean checkFloat16Output(int x, int y, short[][][] refValues, in checkFloat16Output() argument
139 short in2 = Float16TestData.input[y]; in checkFloat16Output()
140 short out = output[x + y * numInputs]; in checkFloat16Output()
141 short lb = refValues[x][y][0]; in checkFloat16Output()
142 short ub = refValues[x][y][1]; in checkFloat16Output()
178 private boolean checkFloat16Add(int x, int y) { in checkFloat16Add() argument
179 return checkFloat16Output(x, y, Float16TestData.ReferenceOutputForAdd, in checkFloat16Add()
193 for (int y = 0; y < numInputs; y ++) { in testFloat16Add()
194 checkFloat16Add(x, y); in testFloat16Add()
199 private boolean checkFloat16Sub(int x, int y) { in checkFloat16Sub() argument
[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 …]
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);
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 …]
Dfloat16_arithmetic.rs6 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);
Dintrinsic_3dlut.rs26 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/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/tests/hardware/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/suite/cts/deviceTests/browserbench/assets/octane/
Dbox2d.js22y,w,A){A.get instanceof Function&&y.__defineGetter__(w,A.get);A.set instanceof Function&&y.__defin… argument
23y){if(y===G)y=0;for(var w=Array(y||0),A=0;A<y;++A)w[A]=0;return w};F.is=function(y,w){if(y===null)… argument
25 …);this.constructor===K&&this.b2BoundValues.apply(this,arguments)}function y(){y.b2Collision.apply(… function
42 F;Box2D.Collision.b2Bound=G;Box2D.Collision.b2BoundValues=K;Box2D.Collision.b2Collision=y;Box2D.Col…
50 …pe,G=Box2D.Collision.Shapes.b2PolygonShape,K=Box2D.Collision.Shapes.b2Shape,y=Box2D.Common.b2Setti…
52 …rBound=new p};B.prototype.IsValid=function(){var b=this.upperBound.y-this.lowerBound.y;return b=(b…
53y+this.upperBound.y)/2)};B.prototype.GetExtents=function(){return new p((this.upperBound.x-this.lo…
54y-e.p1.y,x=Math.abs(t),C=b.normal,J=0,T=0,P=J=0;P=0;if(Math.abs(v)<Number.MIN_VALUE){if(r<this.low…
55y-this.upperBound.y,f=this.lowerBound.y-b.upperBound.y;if(b.lowerBound.x-this.upperBound.x>0||e>0)…
56 …Math.max(b.upperBound.x,e.upperBound.x);this.upperBound.y=Math.max(b.upperBound.y,e.upperBound.y)}…
[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/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/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()
DNearPixelComparer.java33 for (int y = 0 ; y < height ; y++) { in verifySame()
41 if (x + dx >= width || x + dx < 0 || y + dy >= height || y + dy < 0) { in verifySame()
44 int index = indexFromXAndY(x + dx, y + dy, stride, offset); in verifySame()
52 Log.d(TAG, "Failure at pixel (" + x + "," + y + ")"); in verifySame()
/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()
/cts/suite/cts/deviceTests/opengl/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 …]

12345678