/frameworks/rs/driver/runtime/ |
D | rs_cl.c | 3 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 …]
|
D | rs_sample.c | 55 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/ |
D | ball_physics.rs | 6 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 …]
|
D | balls.rsh | 3 float2 delta; 4 float2 position;
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | clamp.rs | 6 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);
|
D | copy_test.rs | 29 float2 __attribute((kernel)) copyFloat2(float2 i) {
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
D | clamp.rs | 6 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);
|
D | copy_test.rs | 29 float2 __attribute((kernel)) copyFloat2(float2 i) {
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | fisheye.rsh | 20 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);
|
D | fisheye_approx.rsh | 20 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);
|
D | vignette.rsh | 17 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/ |
D | fisheye_approx.rsh | 20 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);
|
D | fisheye.rsh | 20 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);
|
D | mandelbrot.rs | 26 float2 p; 30 float2 t = 0; 31 float2 t2 = t * t;
|
D | vignette.rsh | 17 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);
|
D | vignette_approx.rsh | 17 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/ |
D | fisheye.rsh | 20 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);
|
D | fisheye_approx.rsh | 20 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);
|
D | vignette_approx.rsh | 17 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/ |
D | rs_core_math.rsh | 144 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/ |
D | generic.c | 89 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/ |
D | mandelbrot.rs | 23 float2 p; 27 float2 t = 0; 28 float2 t2 = t * t;
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicConvolve5x5.cpp | 142 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()
|
D | rsCpuIntrinsicResize.cpp | 74 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()
|
D | rsCpuIntrinsicConvolve3x3.cpp | 120 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()
|