Home
last modified time | relevance | path

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

12345678910>>...16

/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.rscript22 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) {
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.rscript28 static float gaussian[MAX_RADIUS * 2 + 1];
53 const float e = M_E;
54 const float pi = M_PI;
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.rscript73 const float m2Values[] = { 11.f, 21.f,
75 const float m3Values[] = { 11.f, 21.f, 31.f,
78 const float m4Values[] = { 11.f, 21.f, 31.f, 41.f,
114 static void loadByRow2(rs_matrix2x2* m2, const float* v) {
122 static void loadByRow3(rs_matrix3x3* m3, const float* v) {
130 static void loadByRow4(rs_matrix4x4* m4, const float* v) {
145 const float m2Values[] = { 11.f, 12.f,
147 const float m3Values[] = { 11.f, 12.f, 13.f,
150 const float m4Values[] = { 11.f, 12.f, 13.f, 14.f,
251 const float m2Values[] = { 11.f, 12.f,
[all …]
Dinit_test.rscript4 float a;
11 void root(const float *in, float *out) {
Dintrinsic_convolve5x5.rscript24 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.rscript23 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 …]
Drs_frac_f32.rscript4 void root(const float *in, float *out) {
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestFastDistance.rscript24 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.rscript23 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) {
DTestNativeLength.rscript23 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) {
DTestLength.rscript23 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) {
DTestDot.rscript24 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) {
DTestDistance.rscript24 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.rscript24 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…
DTestStep.rscript24 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.rscript23 float __attribute__((kernel)) testLgammaFloatFloat(float inV) {
40 float __attribute__((kernel)) testLgammaFloatIntFloat(float inV, unsigned int x) {
42 float out = lgamma(inV, &outSignOfGamma);
DTestFmin.rscript24 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.rscript24 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);
DTestFract.rscript24 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) {
DTestModf.rscript24 float __attribute__((kernel)) testModfFloatFloatFloat(float inV, unsigned int x) {
25 float outIntegralPart = 0;
26 float out = modf(inV, &outIntegralPart);
/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);
/cts/apps/CameraITS/utils/
Dzoom_capture_utils.py56 result_zoom: float
57 circle: Iterable[float] # TODO: b/338638040 - create a dataclass for circles
58 radius_tol: float
59 offset_tol: float
60 focal_length: float
182 (255-img_bw).astype(numpy.float)/255.0, axis=2), img_copy_name)
268 if isinstance(value, float):
340 radius_0 = float(test_data[0].circle[2])
341 z_0 = float(test_data[0].result_zoom)
349 radius_0 = float(test_data[i].circle[2])
[all …]

12345678910>>...16