Home
last modified time | relevance | path

Searched refs:float (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response.rsh24 // Quantize a float in [0,1] using an integer in [0,kLUTLength-1].
27 static const float kDefaultA = 2.0f;
28 static const float kDefaultB = 4.0f;
29 static const float kDefaultC = 3.0f;
35 float a;
36 float b;
37 float c;
38 float lut_apply_crf_float[kLUTLength + 1];
39 float lut_remove_crf_float[kLUTLength + 1];
44 static inline float ApplyCRF(float v, const CameraResponse_t* camera_response) {
[all …]
Dcamera_response_fast.rsh24 // Quantize a float in [0,1] using an integer in [0,kLUTLength-1].
27 static const float kDefaultA = 2.0f;
28 static const float kDefaultB = 4.0f;
29 static const float kDefaultC = 3.0f;
36 static inline float ApplyCRFdefault(float v) {
37 const float pow_va = pow(v, kDefaultA);
38 const float exp_b = exp(kDefaultB);
39 const float x1 = (exp_b + 1.0f) * pow_va;
40 const float x2 = exp_b * pow_va + 1.0f;
44 static inline float RemoveCRFdefault(float v) {
[all …]
Dpixel_format_f32.rsh27 float red;
28 float green;
29 float blue;
51 float red;
52 float green;
53 float blue;
54 float alpha;
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_resize.rs22 float scaleX;
23 float scaleY;
25 static float4 cubicInterpolate_F4 (float4 p0,float4 p1,float4 p2,float4 p3 , float x) {
30 static float3 cubicInterpolate_F3 (float3 p0,float3 p1,float3 p2,float3 p3 , float x) {
35 static float2 cubicInterpolate_F2 (float2 p0,float2 p1,float2 p2,float2 p3 , float x) {
40 static float cubicInterpolate_F1 (float p0,float p1,float p2,float p3 , float x) { variable
46 float xf = (x + 0.5f) * scaleX - 0.5f;
47 float yf = (y + 0.5f) * scaleY - 0.5f;
96 float xf = (x + 0.5f) * scaleX - 0.5f;
97 float yf = (y + 0.5f) * scaleY - 0.5f;
[all …]
Dintrinsic_blur.rs28 static float gaussian[MAX_RADIUS * 2 + 1]; variable
53 const float e = M_E; constant
54 const float pi = M_PI; constant
55 float sigma = 0.4f * (float)radius + 0.6f;
56 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
57 float coeff2 = - 1.0f / (2.0f * sigma * sigma);
58 float normalizeFactor = 0.0f;
59 float floatR = 0.0f;
61 floatR = (float)r;
68 floatR = (float)r;
DMatrixTest.rs73 const float m2Values[] = { 11.f, 21.f, constant
75 const float m3Values[] = { 11.f, 21.f, 31.f, constant
78 const float m4Values[] = { 11.f, 21.f, 31.f, 41.f, constant
114 static void loadByRow2(rs_matrix2x2* m2, const float* v) { constant
122 static void loadByRow3(rs_matrix3x3* m3, const float* v) { constant
130 static void loadByRow4(rs_matrix4x4* m4, const float* v) { constant
145 const float m2Values[] = { 11.f, 12.f, constant
147 const float m3Values[] = { 11.f, 12.f, 13.f, constant
150 const float m4Values[] = { 11.f, 12.f, 13.f, 14.f, constant
251 const float m2Values[] = { 11.f, 12.f, constant
[all …]
Dintrinsic_convolve5x5.rs24 float gCoeffs[25];
180 float p0 = (float)(rsGetElementAt_uchar(gIn, x0, y0)) * gCoeffs[0]
181 + (float)(rsGetElementAt_uchar(gIn, x1, y0)) * gCoeffs[1]
182 + (float)(rsGetElementAt_uchar(gIn, x2, y0)) * gCoeffs[2]
183 + (float)(rsGetElementAt_uchar(gIn, x3, y0)) * gCoeffs[3]
184 + (float)(rsGetElementAt_uchar(gIn, x4, y0)) * gCoeffs[4];
186 float p1 = (float)(rsGetElementAt_uchar(gIn, x0, y1)) * gCoeffs[5]
187 + (float)(rsGetElementAt_uchar(gIn, x1, y1)) * gCoeffs[6]
188 + (float)(rsGetElementAt_uchar(gIn, x2, y1)) * gCoeffs[7]
189 + (float)(rsGetElementAt_uchar(gIn, x3, y1)) * gCoeffs[8]
[all …]
Dintrinsic_convolve3x3.rs23 float gCoeffs[9];
154 float p00 = rsGetElementAt_uchar(gIn, x1, y1);
155 float p01 = rsGetElementAt_uchar(gIn, x, y1);
156 float p02 = rsGetElementAt_uchar(gIn, x2, y1);
157 float p10 = rsGetElementAt_uchar(gIn, x1, y);
158 float p11 = rsGetElementAt_uchar(gIn, x, y);
159 float p12 = rsGetElementAt_uchar(gIn, x2, y);
160 float p20 = rsGetElementAt_uchar(gIn, x1, y2);
161 float p21 = rsGetElementAt_uchar(gIn, x, y2);
162 float p22 = rsGetElementAt_uchar(gIn, x2, y2);
[all …]
Dinit_test.rs4 float a;
11 void root(const float *in, float *out) { constant
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestFastDistance.rs24 float __attribute__((kernel)) testFastDistanceFloatFloatFloat(float inLeftVector, unsigned int x) {
25 float inRightVector = rsGetElementAt_float(gAllocInRightVector, x);
29 float __attribute__((kernel)) testFastDistanceFloat2Float2Float(float2 inLeftVector, unsigned int x…
34 float __attribute__((kernel)) testFastDistanceFloat3Float3Float(float3 inLeftVector, unsigned int x…
39 float __attribute__((kernel)) testFastDistanceFloat4Float4Float(float4 inLeftVector, unsigned int x…
DTestFastLength.rs23 float __attribute__((kernel)) testFastLengthFloatFloat(float inV) {
27 float __attribute__((kernel)) testFastLengthFloat2Float(float2 inV) {
31 float __attribute__((kernel)) testFastLengthFloat3Float(float3 inV) {
35 float __attribute__((kernel)) testFastLengthFloat4Float(float4 inV) {
DTestLength.rs23 float __attribute__((kernel)) testLengthFloatFloat(float inV) {
27 float __attribute__((kernel)) testLengthFloat2Float(float2 inV) {
31 float __attribute__((kernel)) testLengthFloat3Float(float3 inV) {
35 float __attribute__((kernel)) testLengthFloat4Float(float4 inV) {
DTestNativeLength.rs23 float __attribute__((kernel)) testNativeLengthFloatFloat(float inV) {
27 float __attribute__((kernel)) testNativeLengthFloat2Float(float2 inV) {
31 float __attribute__((kernel)) testNativeLengthFloat3Float(float3 inV) {
35 float __attribute__((kernel)) testNativeLengthFloat4Float(float4 inV) {
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) {
34 float __attribute__((kernel)) testDistanceFloat3Float3Float(float3 inLeftVector, unsigned int x) {
39 float __attribute__((kernel)) testDistanceFloat4Float4Float(float4 inLeftVector, unsigned int x) {
DTestNativeDistance.rs24 float __attribute__((kernel)) testNativeDistanceFloatFloatFloat(float inLeftVector, unsigned int x)…
25 float inRightVector = rsGetElementAt_float(gAllocInRightVector, x);
29 float __attribute__((kernel)) testNativeDistanceFloat2Float2Float(float2 inLeftVector, unsigned int…
34 float __attribute__((kernel)) testNativeDistanceFloat3Float3Float(float3 inLeftVector, unsigned int…
39 float __attribute__((kernel)) testNativeDistanceFloat4Float4Float(float4 inLeftVector, unsigned int…
DTestDot.rs24 float __attribute__((kernel)) testDotFloatFloatFloat(float inLeftVector, unsigned int x) {
25 float inRightVector = rsGetElementAt_float(gAllocInRightVector, x);
29 float __attribute__((kernel)) testDotFloat2Float2Float(float2 inLeftVector, unsigned int x) {
34 float __attribute__((kernel)) testDotFloat3Float3Float(float3 inLeftVector, unsigned int x) {
39 float __attribute__((kernel)) testDotFloat4Float4Float(float4 inLeftVector, unsigned int x) {
DTestStep.rs24 float __attribute__((kernel)) testStepFloatFloatFloat(float inEdge, unsigned int x) {
25 float inV = rsGetElementAt_float(gAllocInV, x);
65 float inV = rsGetElementAt_float(gAllocInV, x);
70 float inV = rsGetElementAt_float(gAllocInV, x);
75 float inV = rsGetElementAt_float(gAllocInV, x);
94 float2 __attribute__((kernel)) testStepFloatFloat2Float2(float inEdge, unsigned int x) {
99 float3 __attribute__((kernel)) testStepFloatFloat3Float3(float inEdge, unsigned int x) {
104 float4 __attribute__((kernel)) testStepFloatFloat4Float4(float inEdge, unsigned int x) {
DTestLgamma.rs23 float __attribute__((kernel)) testLgammaFloatFloat(float inV) {
40 float __attribute__((kernel)) testLgammaFloatIntFloat(float inV, unsigned int x) {
42 float out = lgamma(inV, &outSignOfGamma);
DTestModf.rs24 float __attribute__((kernel)) testModfFloatFloatFloat(float inV, unsigned int x) {
25 float outIntegralPart = 0;
26 float out = modf(inV, &outIntegralPart);
DTestFract.rs24 float __attribute__((kernel)) testFractFloatFloatFloat(float inV, unsigned int x) {
25 float outFloor = 0;
26 float out = fract(inV, &outFloor);
52 float __attribute__((kernel)) testFractFloatFloat(float inV) {
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);
75 float inFraction = rsGetElementAt_float(gAllocInFraction, x);
81 float inFraction = rsGetElementAt_float(gAllocInFraction, x);
87 float inFraction = rsGetElementAt_float(gAllocInFraction, x);
DTestFmin.rs24 float __attribute__((kernel)) testFminFloatFloatFloat(float inA, unsigned int x) {
25 float inB = rsGetElementAt_float(gAllocInB, x);
65 float inB = rsGetElementAt_float(gAllocInB, x);
70 float inB = rsGetElementAt_float(gAllocInB, x);
75 float inB = rsGetElementAt_float(gAllocInB, x);
DTestFmax.rs24 float __attribute__((kernel)) testFmaxFloatFloatFloat(float inA, unsigned int x) {
25 float inB = rsGetElementAt_float(gAllocInB, x);
65 float inB = rsGetElementAt_float(gAllocInB, x);
70 float inB = rsGetElementAt_float(gAllocInB, x);
75 float inB = rsGetElementAt_float(gAllocInB, x);
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rs46 float interpX = (((float) x) / rawWidth) * gainMapWidth;
47 float interpY = (((float) y) / rawHeight) * gainMapHeight;
58 float fracX = interpX - (float) gX;
59 float fracY = interpY - (float) gY;
60 float invFracX = 1.f - fracX;
61 float invFracY = 1.f - fracY;
68 static float gammaEncode(float x) { variable
97 float tmp;
130 float newMid;
196 static void load3x3(uint x, uint y, rs_allocation buf, /*out*/float* outputArray) {
[all …]
/cts/tests/openglperf2/assets/fragment/
Dwater14 precision mediump float;
22 float weight = abs(mod(float(u_Time), 101.0) - 50.0) / 50.0;// loop between 0.0 and 1.0
23 float offset = abs(float(u_Time) / 1000.0);
31 float diffuse = max(dot(lightVector, normal), 0.0);

12345678910>>...15