Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/cts/tests/tests/renderscript/libcoremathtestcpp/
DCoreMathTestJni.cpp119 Java_android_renderscript_cts_CoreMathVerifier_acos(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_acos() argument
120 return acosf(x); in Java_android_renderscript_cts_CoreMathVerifier_acos()
124 Java_android_renderscript_cts_CoreMathVerifier_acosh(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_acosh() argument
125 return acoshf(x); in Java_android_renderscript_cts_CoreMathVerifier_acosh()
129 Java_android_renderscript_cts_CoreMathVerifier_asin(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_asin() argument
130 return asinf(x); in Java_android_renderscript_cts_CoreMathVerifier_asin()
134 Java_android_renderscript_cts_CoreMathVerifier_asinh(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_asinh() argument
135 return asinhf(x); in Java_android_renderscript_cts_CoreMathVerifier_asinh()
139 Java_android_renderscript_cts_CoreMathVerifier_atan(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_atan() argument
140 return atanf(x); in Java_android_renderscript_cts_CoreMathVerifier_atan()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestClamp.rs25 float __attribute__((kernel)) testClampFloatFloatFloatFloat(float inValue, unsigned int x) {
26 float inMinValue = rsGetElementAt_float(gAllocInMinValue, x);
27 float inMaxValue = rsGetElementAt_float(gAllocInMaxValue, x);
31 float2 __attribute__((kernel)) testClampFloat2Float2Float2Float2(float2 inValue, unsigned int x) {
32 float2 inMinValue = rsGetElementAt_float2(gAllocInMinValue, x);
33 float2 inMaxValue = rsGetElementAt_float2(gAllocInMaxValue, x);
37 float3 __attribute__((kernel)) testClampFloat3Float3Float3Float3(float3 inValue, unsigned int x) {
38 float3 inMinValue = rsGetElementAt_float3(gAllocInMinValue, x);
39 float3 inMaxValue = rsGetElementAt_float3(gAllocInMaxValue, x);
43 float4 __attribute__((kernel)) testClampFloat4Float4Float4Float4(float4 inValue, unsigned int x) {
[all …]
DTestMix.rs25 float __attribute__((kernel)) testMixFloatFloatFloatFloat(float inStart, unsigned int x) {
26 float inStop = rsGetElementAt_float(gAllocInStop, x);
27 float inFraction = rsGetElementAt_float(gAllocInFraction, x);
31 float2 __attribute__((kernel)) testMixFloat2Float2Float2Float2(float2 inStart, unsigned int x) {
32 float2 inStop = rsGetElementAt_float2(gAllocInStop, x);
33 float2 inFraction = rsGetElementAt_float2(gAllocInFraction, x);
37 float3 __attribute__((kernel)) testMixFloat3Float3Float3Float3(float3 inStart, unsigned int x) {
38 float3 inStop = rsGetElementAt_float3(gAllocInStop, x);
39 float3 inFraction = rsGetElementAt_float3(gAllocInFraction, x);
43 float4 __attribute__((kernel)) testMixFloat4Float4Float4Float4(float4 inStart, unsigned int x) {
[all …]
DTestMin.rs24 float __attribute__((kernel)) testMinFloatFloatFloat(float inA, unsigned int x) {
25 float inB = rsGetElementAt_float(gAllocInB, x);
29 float2 __attribute__((kernel)) testMinFloat2Float2Float2(float2 inA, unsigned int x) {
30 float2 inB = rsGetElementAt_float2(gAllocInB, x);
34 float3 __attribute__((kernel)) testMinFloat3Float3Float3(float3 inA, unsigned int x) {
35 float3 inB = rsGetElementAt_float3(gAllocInB, x);
39 float4 __attribute__((kernel)) testMinFloat4Float4Float4(float4 inA, unsigned int x) {
40 float4 inB = rsGetElementAt_float4(gAllocInB, x);
44 half __attribute__((kernel)) testMinHalfHalfHalf(half inA, unsigned int x) {
45 half inB = rsGetElementAt_half(gAllocInB, x);
[all …]
DTestMax.rs24 float __attribute__((kernel)) testMaxFloatFloatFloat(float inA, unsigned int x) {
25 float inB = rsGetElementAt_float(gAllocInB, x);
29 float2 __attribute__((kernel)) testMaxFloat2Float2Float2(float2 inA, unsigned int x) {
30 float2 inB = rsGetElementAt_float2(gAllocInB, x);
34 float3 __attribute__((kernel)) testMaxFloat3Float3Float3(float3 inA, unsigned int x) {
35 float3 inB = rsGetElementAt_float3(gAllocInB, x);
39 float4 __attribute__((kernel)) testMaxFloat4Float4Float4(float4 inA, unsigned int x) {
40 float4 inB = rsGetElementAt_float4(gAllocInB, x);
44 half __attribute__((kernel)) testMaxHalfHalfHalf(half inA, unsigned int x) {
45 half inB = rsGetElementAt_half(gAllocInB, x);
[all …]
DTestStep.rs24 float __attribute__((kernel)) testStepFloatFloatFloat(float inEdge, unsigned int x) {
25 float inV = rsGetElementAt_float(gAllocInV, x);
29 float2 __attribute__((kernel)) testStepFloat2Float2Float2(float2 inEdge, unsigned int x) {
30 float2 inV = rsGetElementAt_float2(gAllocInV, x);
34 float3 __attribute__((kernel)) testStepFloat3Float3Float3(float3 inEdge, unsigned int x) {
35 float3 inV = rsGetElementAt_float3(gAllocInV, x);
39 float4 __attribute__((kernel)) testStepFloat4Float4Float4(float4 inEdge, unsigned int x) {
40 float4 inV = rsGetElementAt_float4(gAllocInV, x);
44 half __attribute__((kernel)) testStepHalfHalfHalf(half inEdge, unsigned int x) {
45 half inV = rsGetElementAt_half(gAllocInV, x);
[all …]
DTestMad.rs25 float __attribute__((kernel)) testMadFloatFloatFloatFloat(float inMultiplicand1, unsigned int x) {
26 float inMultiplicand2 = rsGetElementAt_float(gAllocInMultiplicand2, x);
27 float inOffset = rsGetElementAt_float(gAllocInOffset, x);
31 …2 __attribute__((kernel)) testMadFloat2Float2Float2Float2(float2 inMultiplicand1, unsigned int x) {
32 float2 inMultiplicand2 = rsGetElementAt_float2(gAllocInMultiplicand2, x);
33 float2 inOffset = rsGetElementAt_float2(gAllocInOffset, x);
37 …3 __attribute__((kernel)) testMadFloat3Float3Float3Float3(float3 inMultiplicand1, unsigned int x) {
38 float3 inMultiplicand2 = rsGetElementAt_float3(gAllocInMultiplicand2, x);
39 float3 inOffset = rsGetElementAt_float3(gAllocInOffset, x);
43 …4 __attribute__((kernel)) testMadFloat4Float4Float4Float4(float4 inMultiplicand1, unsigned int x) {
[all …]
DTestFma.rs25 float __attribute__((kernel)) testFmaFloatFloatFloatFloat(float inMultiplicand1, unsigned int x) {
26 float inMultiplicand2 = rsGetElementAt_float(gAllocInMultiplicand2, x);
27 float inOffset = rsGetElementAt_float(gAllocInOffset, x);
31 …2 __attribute__((kernel)) testFmaFloat2Float2Float2Float2(float2 inMultiplicand1, unsigned int x) {
32 float2 inMultiplicand2 = rsGetElementAt_float2(gAllocInMultiplicand2, x);
33 float2 inOffset = rsGetElementAt_float2(gAllocInOffset, x);
37 …3 __attribute__((kernel)) testFmaFloat3Float3Float3Float3(float3 inMultiplicand1, unsigned int x) {
38 float3 inMultiplicand2 = rsGetElementAt_float3(gAllocInMultiplicand2, x);
39 float3 inOffset = rsGetElementAt_float3(gAllocInOffset, x);
43 …4 __attribute__((kernel)) testFmaFloat4Float4Float4Float4(float4 inMultiplicand1, unsigned int x) {
[all …]
DTestFmax.rs24 float __attribute__((kernel)) testFmaxFloatFloatFloat(float inA, unsigned int x) {
25 float inB = rsGetElementAt_float(gAllocInB, x);
29 float2 __attribute__((kernel)) testFmaxFloat2Float2Float2(float2 inA, unsigned int x) {
30 float2 inB = rsGetElementAt_float2(gAllocInB, x);
34 float3 __attribute__((kernel)) testFmaxFloat3Float3Float3(float3 inA, unsigned int x) {
35 float3 inB = rsGetElementAt_float3(gAllocInB, x);
39 float4 __attribute__((kernel)) testFmaxFloat4Float4Float4(float4 inA, unsigned int x) {
40 float4 inB = rsGetElementAt_float4(gAllocInB, x);
44 half __attribute__((kernel)) testFmaxHalfHalfHalf(half inA, unsigned int x) {
45 half inB = rsGetElementAt_half(gAllocInB, x);
[all …]
DTestFmin.rs24 float __attribute__((kernel)) testFminFloatFloatFloat(float inA, unsigned int x) {
25 float inB = rsGetElementAt_float(gAllocInB, x);
29 float2 __attribute__((kernel)) testFminFloat2Float2Float2(float2 inA, unsigned int x) {
30 float2 inB = rsGetElementAt_float2(gAllocInB, x);
34 float3 __attribute__((kernel)) testFminFloat3Float3Float3(float3 inA, unsigned int x) {
35 float3 inB = rsGetElementAt_float3(gAllocInB, x);
39 float4 __attribute__((kernel)) testFminFloat4Float4Float4(float4 inA, unsigned int x) {
40 float4 inB = rsGetElementAt_float4(gAllocInB, x);
44 half __attribute__((kernel)) testFminHalfHalfHalf(half inA, unsigned int x) {
45 half inB = rsGetElementAt_half(gAllocInB, x);
[all …]
DTestFdim.rs24 float __attribute__((kernel)) testFdimFloatFloatFloat(float inA, unsigned int x) {
25 float inB = rsGetElementAt_float(gAllocInB, x);
29 float2 __attribute__((kernel)) testFdimFloat2Float2Float2(float2 inA, unsigned int x) {
30 float2 inB = rsGetElementAt_float2(gAllocInB, x);
34 float3 __attribute__((kernel)) testFdimFloat3Float3Float3(float3 inA, unsigned int x) {
35 float3 inB = rsGetElementAt_float3(gAllocInB, x);
39 float4 __attribute__((kernel)) testFdimFloat4Float4Float4(float4 inA, unsigned int x) {
40 float4 inB = rsGetElementAt_float4(gAllocInB, x);
44 half __attribute__((kernel)) testFdimHalfHalfHalf(half inA, unsigned int x) {
45 half inB = rsGetElementAt_half(gAllocInB, x);
[all …]
DTestPow.rs24 float __attribute__((kernel)) testPowFloatFloatFloat(float inBase, unsigned int x) {
25 float inExponent = rsGetElementAt_float(gAllocInExponent, x);
29 float2 __attribute__((kernel)) testPowFloat2Float2Float2(float2 inBase, unsigned int x) {
30 float2 inExponent = rsGetElementAt_float2(gAllocInExponent, x);
34 float3 __attribute__((kernel)) testPowFloat3Float3Float3(float3 inBase, unsigned int x) {
35 float3 inExponent = rsGetElementAt_float3(gAllocInExponent, x);
39 float4 __attribute__((kernel)) testPowFloat4Float4Float4(float4 inBase, unsigned int x) {
40 float4 inExponent = rsGetElementAt_float4(gAllocInExponent, x);
44 half __attribute__((kernel)) testPowHalfHalfHalf(half inBase, unsigned int x) {
45 half inExponent = rsGetElementAt_half(gAllocInExponent, x);
[all …]
DTestFmod.rs24 float __attribute__((kernel)) testFmodFloatFloatFloat(float inNumerator, unsigned int x) {
25 float inDenominator = rsGetElementAt_float(gAllocInDenominator, x);
29 float2 __attribute__((kernel)) testFmodFloat2Float2Float2(float2 inNumerator, unsigned int x) {
30 float2 inDenominator = rsGetElementAt_float2(gAllocInDenominator, x);
34 float3 __attribute__((kernel)) testFmodFloat3Float3Float3(float3 inNumerator, unsigned int x) {
35 float3 inDenominator = rsGetElementAt_float3(gAllocInDenominator, x);
39 float4 __attribute__((kernel)) testFmodFloat4Float4Float4(float4 inNumerator, unsigned int x) {
40 float4 inDenominator = rsGetElementAt_float4(gAllocInDenominator, x);
44 half __attribute__((kernel)) testFmodHalfHalfHalf(half inNumerator, unsigned int x) {
45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);
[all …]
DTestDistance.rs24 float __attribute__((kernel)) testDistanceFloatFloatFloat(float inLeftVector, unsigned int x) {
25 float inRightVector = rsGetElementAt_float(gAllocInRightVector, x);
29 float __attribute__((kernel)) testDistanceFloat2Float2Float(float2 inLeftVector, unsigned int x) {
30 float2 inRightVector = rsGetElementAt_float2(gAllocInRightVector, x);
34 float __attribute__((kernel)) testDistanceFloat3Float3Float(float3 inLeftVector, unsigned int x) {
35 float3 inRightVector = rsGetElementAt_float3(gAllocInRightVector, x);
39 float __attribute__((kernel)) testDistanceFloat4Float4Float(float4 inLeftVector, unsigned int x) {
40 float4 inRightVector = rsGetElementAt_float4(gAllocInRightVector, x);
44 half __attribute__((kernel)) testDistanceHalfHalfHalf(half inLeftVector, unsigned int x) {
45 half inRightVector = rsGetElementAt_half(gAllocInRightVector, x);
[all …]
DTestNativeAtan2pi.rs24 float __attribute__((kernel)) testNativeAtan2piFloatFloatFloat(float inNumerator, unsigned int x) {
25 float inDenominator = rsGetElementAt_float(gAllocInDenominator, x);
29 …2 __attribute__((kernel)) testNativeAtan2piFloat2Float2Float2(float2 inNumerator, unsigned int x) {
30 float2 inDenominator = rsGetElementAt_float2(gAllocInDenominator, x);
34 …3 __attribute__((kernel)) testNativeAtan2piFloat3Float3Float3(float3 inNumerator, unsigned int x) {
35 float3 inDenominator = rsGetElementAt_float3(gAllocInDenominator, x);
39 …4 __attribute__((kernel)) testNativeAtan2piFloat4Float4Float4(float4 inNumerator, unsigned int x) {
40 float4 inDenominator = rsGetElementAt_float4(gAllocInDenominator, x);
44 half __attribute__((kernel)) testNativeAtan2piHalfHalfHalf(half inNumerator, unsigned int x) {
45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);
[all …]
DTestCopysign.rs24 float __attribute__((kernel)) testCopysignFloatFloatFloat(float inMagnitudeValue, unsigned int x) {
25 float inSignValue = rsGetElementAt_float(gAllocInSignValue, x);
29 …2 __attribute__((kernel)) testCopysignFloat2Float2Float2(float2 inMagnitudeValue, unsigned int x) {
30 float2 inSignValue = rsGetElementAt_float2(gAllocInSignValue, x);
34 …3 __attribute__((kernel)) testCopysignFloat3Float3Float3(float3 inMagnitudeValue, unsigned int x) {
35 float3 inSignValue = rsGetElementAt_float3(gAllocInSignValue, x);
39 …4 __attribute__((kernel)) testCopysignFloat4Float4Float4(float4 inMagnitudeValue, unsigned int x) {
40 float4 inSignValue = rsGetElementAt_float4(gAllocInSignValue, x);
44 half __attribute__((kernel)) testCopysignHalfHalfHalf(half inMagnitudeValue, unsigned int x) {
45 half inSignValue = rsGetElementAt_half(gAllocInSignValue, x);
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dverify.rs36 for (uint32_t x=0; x < w; x++) {
37 float4 pref = rsGetElementAt_float4(in1, x, y);
38 float4 ptst = rsGetElementAt_float4(in2, x, y);
39 bool e = !compare_float(pref.x, ptst.x);
44 errorLoc.x = x;
57 for (uint32_t x=0; x < w; x++) {
58 float3 pref = rsGetElementAt_float3(in1, x, y);
59 float3 ptst = rsGetElementAt_float3(in2, x, y);
60 bool e = !compare_float(pref.x, ptst.x);
64 errorLoc.x = x;
[all …]
Dintrinsic_colormatrix.rs30 for (uint32_t x = x1; x < x2; x++) {
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 …]
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 …]
Dyuv.rs33 p.x = (Y * 298 + V * 409 + 128) >> 8;
37 if(p.x < 0) {
38 p.x = 0;
40 if(p.x > 255) {
41 p.x = 255;
56 return (uchar4){p.x, p.y, p.z, p.w};
79 for (int x = 0; x < w; x++) {
81 int py = rsGetElementAt_uchar(ay, x, y);
82 int pu = rsGetElementAt_uchar(au, x >> 1, y >> 1);
83 int pv = rsGetElementAt_uchar(av, x >> 1, y >> 1);
[all …]
Dfe_all.rs10 aout[0].x = ain[0].x + 1;
16 aout[0].x = ain[0].x + 1;
23 aout[0].x = ain[0].x + 1;
36 aout[0].x = ain[0].x + 1;
42 aout[0].x = ain[0].x + 1;
49 aout[0].x = ain[0].x + 1;
62 aout[0].x = ain[0].x + 1;
68 aout[0].x = ain[0].x + 1;
75 aout[0].x = ain[0].x + 1;
88 aout[0].x = ain[0].x + 1;
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rs42 for (uint32_t x=0; x < w; x++) {
43 float4 pref = rsGetElementAt_float4(in1, x, y);
44 float4 ptst = rsGetElementAt_float4(in2, x, y);
45 bool e = !compare_float(pref.x, ptst.x);
50 errorLoc.x = x;
64 for (uint32_t x=0; x < w; x++) {
65 float3 pref = rsGetElementAt_float3(in1, x, y);
66 float3 ptst = rsGetElementAt_float3(in2, x, y);
67 bool e = !compare_float(pref.x, ptst.x);
71 errorLoc.x = x;
[all …]
/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/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rs44 static float4 getGain(uint x, uint y) {
45 float interpX = (((float) x) / rawWidth) * gainMapWidth;
67 static float gammaEncode(float x) {
68 return (x <= 0.0031308f) ? x * 12.92f : 1.055f * pow(x, 0.4166667f) - 0.055f;
74 ret.x = gammaEncode(rgb.x);
106 if (sorted.y < sorted.x) {
108 sorted.y = sorted.x;
109 sorted.x = tmp;
120 minmax.x = sorted.x;
124 minmax = native_powr(minmax, 3.f) * toneMapCoeffs.x +
[all …]
/cts/tests/tests/rscpp/librscpptest/
Dfe_all.rs10 aout[0].x = ain[0].x + 1;
16 aout[0].x = ain[0].x + 1;
23 aout[0].x = ain[0].x + 1;
36 aout[0].x = ain[0].x + 1;
42 aout[0].x = ain[0].x + 1;
49 aout[0].x = ain[0].x + 1;
62 aout[0].x = ain[0].x + 1;
68 aout[0].x = ain[0].x + 1;
75 aout[0].x = ain[0].x + 1;
88 aout[0].x = ain[0].x + 1;
[all …]

12345678910>>...15