Home
last modified time | relevance | path

Searched refs:float2 (Results 1 – 25 of 83) sorted by relevance

1234

/frameworks/rs/driver/runtime/
Drs_cl.c3 extern float2 __attribute__((overloadable)) convert_float2(int2 c);
7 extern int2 __attribute__((overloadable)) convert_int2(float2 c);
13 extern float2 __attribute__((overloadable)) fmin(float2 v, float v2);
18 extern float2 __attribute__((overloadable)) fmax(float2 v, float v2);
25 extern float2 __attribute__((overloadable)) fnc(float2 v) { \
26 float2 r; \
48 extern int2 __attribute__((overloadable)) fnc(float2 v) { \
71 extern float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2) { \
72 float2 r; \
94 extern float2 __attribute__((overloadable)) fnc(float2 v1, float v2) { \
[all …]
Drs_sample.c55 static inline float2 __attribute__((overloadable))
58 float2 r = {p[x], p[x+1]}; in getElementAt2()
90 static inline float2 __attribute__((overloadable))
94 float2 r = {p[x], p[x+1]}; in getElementAt2()
149 float2 p0 = getElementAt2(p, iPixel); in getSample_LA()
150 float2 p1 = getElementAt2(p, next); in getSample_LA()
151 float2 r = p0 * w0 + p1 * w1; in getSample_LA()
217 float2 p0 = getElementAt2(p, stride, locX, locY); in getSample_LA()
218 float2 p1 = getElementAt2(p, stride, nextX, locY); in getSample_LA()
219 float2 p2 = getElementAt2(p, stride, locX, nextY); in getSample_LA()
[all …]
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
Dball_physics.rs6 float2 gGravityVector = {0.f, 9.8f};
8 float2 gMinPos = {0.f, 0.f};
9 float2 gMaxPos = {1280.f, 700.f};
11 static float2 touchPos[10]; constant
32 float2 fv = 0;
34 float2 pos = ball->position;
58 float2 bcptr = rsGetElementAt_float2(gGridCache, bg->cacheIdx + cidx);
59 float2 vec = bcptr - pos;
60 float2 vec2 = vec * vec;
78 float2 vec = touchPos[i] - ball->position;
[all …]
Dballs.rsh3 float2 delta;
4 float2 position;
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Dclamp.rs6 float2 src2 = { 2.0f, 2.0f};
7 float2 min2 = { 0.5f, -3.0f};
8 float2 max2 = { 1.0f, 9.0f};
10 float2 res2 = clamp(src2, min2, max2);
Dcopy_test.rs29 float2 __attribute((kernel)) copyFloat2(float2 i) {
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dclamp.rs6 float2 src2 = { 2.0f, 2.0f};
7 float2 min2 = { 0.5f, -3.0f};
8 float2 max2 = { 1.0f, 9.0f};
10 float2 res2 = clamp(src2, min2, max2);
Dcopy_test.rs29 float2 __attribute((kernel)) copyFloat2(float2 i) {
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dfisheye.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
31 axis_scale = (float2)1.f;
47 const float2 inCoord = {(float)x, (float)y};
48 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
49 const float2 scaledCoord = axis_scale * coord;
54 const float2 new_coord = mad(coord, scalar, center);
Dfisheye_approx.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
31 axis_scale = (float2)1.f;
47 const float2 inCoord = {(float)x, (float)y};
48 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
49 const float2 scaledCoord = axis_scale * coord;
54 const float2 new_coord = mad(coord, scalar, center);
Dvignette.rsh17 static float2 neg_center, axis_scale, inv_dimensions;
28 axis_scale = (float2)1.f;
50 const float2 inCoord = {(float)x, (float)y};
51 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dfisheye_approx.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
31 axis_scale = (float2)1.f;
47 const float2 inCoord = {(float)x, (float)y};
48 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
49 const float2 scaledCoord = axis_scale * coord;
54 const float2 new_coord = mad(coord, scalar, center);
Dfisheye.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
31 axis_scale = (float2)1.f;
47 const float2 inCoord = {(float)x, (float)y};
48 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
49 const float2 scaledCoord = axis_scale * coord;
54 const float2 new_coord = mad(coord, scalar, center);
Dmandelbrot.rs26 float2 p;
30 float2 t = 0;
31 float2 t2 = t * t;
Dvignette.rsh17 static float2 neg_center, axis_scale, inv_dimensions;
28 axis_scale = (float2)1.f;
50 const float2 inCoord = {(float)x, (float)y};
51 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
Dvignette_approx.rsh17 static float2 neg_center, axis_scale, inv_dimensions;
28 axis_scale = (float2)1.f;
50 const float2 inCoord = {(float)x, (float)y};
51 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dfisheye.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
31 axis_scale = (float2)1.f;
47 const float2 inCoord = {(float)x, (float)y};
48 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
49 const float2 scaledCoord = axis_scale * coord;
54 const float2 new_coord = mad(coord, scalar, center);
Dfisheye_approx.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
31 axis_scale = (float2)1.f;
47 const float2 inCoord = {(float)x, (float)y};
48 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
49 const float2 scaledCoord = axis_scale * coord;
54 const float2 new_coord = mad(coord, scalar, center);
Dvignette_approx.rsh17 static float2 neg_center, axis_scale, inv_dimensions;
28 axis_scale = (float2)1.f;
50 const float2 inCoord = {(float)x, (float)y};
51 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
/frameworks/rs/scriptc/
Drs_core_math.rsh144 extern float2 __attribute__((const, overloadable))acos(float2 v);
180 extern float2 __attribute__((const, overloadable))acosh(float2);
216 extern float2 __attribute__((const, overloadable))acospi(float2 v);
252 extern float2 __attribute__((const, overloadable))asin(float2 v);
288 extern float2 __attribute__((const, overloadable))asinh(float2);
324 extern float2 __attribute__((const, overloadable))asinpi(float2 v);
360 extern float2 __attribute__((const, overloadable))atan(float2 v);
396 extern float2 __attribute__((const, overloadable))atan2(float2 y, float2 x);
432 extern float2 __attribute__((const, overloadable))atan2pi(float2 y, float2 x);
468 extern float2 __attribute__((const, overloadable))atanh(float2 v);
[all …]
/frameworks/rs/driver/runtime/arch/
Dgeneric.c89 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high);
92 extern float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high);
118 extern float2 __attribute__((overloadable)) fmax(float2 v1, float2 v2) { in fmax()
119 float2 r; in fmax()
142 extern float2 __attribute__((overloadable)) fmax(float2 v1, float v2) { in fmax()
143 float2 r; in fmax()
174 extern float2 __attribute__((overloadable)) fmin(float2 v1, float2 v2) { in fmin()
175 float2 r; in fmin()
198 extern float2 __attribute__((overloadable)) fmin(float2 v1, float v2) { in fmin()
199 float2 r; in fmin()
[all …]
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
Dmandelbrot.rs23 float2 p;
27 float2 t = 0;
28 float2 t2 = t * t;
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicConvolve5x5.cpp142 float2 px = convert_float2(py0[x0]) * coeff[0] + in OneU2()
260 static void OneF2(const RsForEachStubParamStruct *p, uint32_t x, float2 *out, in OneF2()
261 … const float2 *py0, const float2 *py1, const float2 *py2, const float2 *py3, const float2 *py4, in OneF2()
270 float2 px = py0[x0] * coeff[0] + in OneF2()
573 const float2 *py0 = (const float2 *)(pin + stride * y0); in kernelF2()
574 const float2 *py1 = (const float2 *)(pin + stride * y1); in kernelF2()
575 const float2 *py2 = (const float2 *)(pin + stride * y2); in kernelF2()
576 const float2 *py3 = (const float2 *)(pin + stride * y3); in kernelF2()
577 const float2 *py4 = (const float2 *)(pin + stride * y4); in kernelF2()
579 float2 *out = (float2 *)p->out; in kernelF2()
DrsCpuIntrinsicResize.cpp74 static float2 cubicInterpolate(float2 p0,float2 p1,float2 p2,float2 p3, float x) { in cubicInterpolate()
129 float2 p0 = cubicInterpolate(convert_float2(yp0[xs0]), in OneBiCubic()
134 float2 p1 = cubicInterpolate(convert_float2(yp1[xs0]), in OneBiCubic()
139 float2 p2 = cubicInterpolate(convert_float2(yp2[xs0]), in OneBiCubic()
144 float2 p3 = cubicInterpolate(convert_float2(yp3[xs0]), in OneBiCubic()
149 float2 p = cubicInterpolate(p0, p1, p2, p3, yf); in OneBiCubic()
DrsCpuIntrinsicConvolve3x3.cpp120 float2 px = convert_float2(py0[x1]) * coeff[0] + in ConvolveOneU2()
164 static void ConvolveOneF2(const RsForEachStubParamStruct *p, uint32_t x, float2 *out, in ConvolveOneF2()
165 const float2 *py0, const float2 *py1, const float2 *py2, in ConvolveOneF2()
382 const float2 *py0 = (const float2 *)(pin + stride * y2); in kernelF2()
383 const float2 *py1 = (const float2 *)(pin + stride * p->y); in kernelF2()
384 const float2 *py2 = (const float2 *)(pin + stride * y1); in kernelF2()
386 float2 *out = (float2 *)p->out; in kernelF2()

1234