/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | resize.rs | 38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) { variable 64 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, xs0, ys0)); 65 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, xs1, ys0)); 66 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, xs2, ys0)); 67 float4 p03 = convert_float4(rsGetElementAt_uchar4(gIn, xs3, ys0)); 68 float4 p0 = cubicInterpolate(p00, p01, p02, p03, xf); 70 float4 p10 = convert_float4(rsGetElementAt_uchar4(gIn, xs0, ys1)); 71 float4 p11 = convert_float4(rsGetElementAt_uchar4(gIn, xs1, ys1)); 72 float4 p12 = convert_float4(rsGetElementAt_uchar4(gIn, xs2, ys1)); 73 float4 p13 = convert_float4(rsGetElementAt_uchar4(gIn, xs3, ys1)); [all …]
|
D | threshold.rs | 73 float4 RS_KERNEL copyIn(uchar4 in) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 89 float4 i = rsGetElementAt_float4(ScratchPixel2, x, validH); 99 float4 RS_KERNEL horz(uint32_t x, uint32_t y) { 100 float4 blurredPixel = 0; 104 float4 i = rsGetElementAt_float4(ScratchPixel1, x + r, y); 111 float4 i = rsGetElementAt_float4(ScratchPixel1, validX, y);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | resize.rs | 38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) { variable 64 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, xs0, ys0)); 65 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, xs1, ys0)); 66 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, xs2, ys0)); 67 float4 p03 = convert_float4(rsGetElementAt_uchar4(gIn, xs3, ys0)); 68 float4 p0 = cubicInterpolate(p00, p01, p02, p03, xf); 70 float4 p10 = convert_float4(rsGetElementAt_uchar4(gIn, xs0, ys1)); 71 float4 p11 = convert_float4(rsGetElementAt_uchar4(gIn, xs1, ys1)); 72 float4 p12 = convert_float4(rsGetElementAt_uchar4(gIn, xs2, ys1)); 73 float4 p13 = convert_float4(rsGetElementAt_uchar4(gIn, xs3, ys1)); [all …]
|
D | threshold.rs | 73 float4 RS_KERNEL copyIn(uchar4 in) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 89 float4 i = rsGetElementAt_float4(ScratchPixel2, x, validH); 99 float4 RS_KERNEL horz(uint32_t x, uint32_t y) { 100 float4 blurredPixel = 0; 104 float4 i = rsGetElementAt_float4(ScratchPixel1, x + r, y); 111 float4 i = rsGetElementAt_float4(ScratchPixel1, validX, y);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | resize.rs | 38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) { constant 64 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, xs0, ys0)); 65 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, xs1, ys0)); 66 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, xs2, ys0)); 67 float4 p03 = convert_float4(rsGetElementAt_uchar4(gIn, xs3, ys0)); 68 float4 p0 = cubicInterpolate(p00, p01, p02, p03, xf); 70 float4 p10 = convert_float4(rsGetElementAt_uchar4(gIn, xs0, ys1)); 71 float4 p11 = convert_float4(rsGetElementAt_uchar4(gIn, xs1, ys1)); 72 float4 p12 = convert_float4(rsGetElementAt_uchar4(gIn, xs2, ys1)); 73 float4 p13 = convert_float4(rsGetElementAt_uchar4(gIn, xs3, ys1)); [all …]
|
D | threshold.rs | 73 float4 RS_KERNEL copyIn(uchar4 in) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 89 float4 i = rsGetElementAt_float4(ScratchPixel2, x, validH); 99 float4 RS_KERNEL horz(uint32_t x, uint32_t y) { 100 float4 blurredPixel = 0; 104 float4 i = rsGetElementAt_float4(ScratchPixel1, x + r, y); 111 float4 i = rsGetElementAt_float4(ScratchPixel1, validX, y);
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | nbody.rs | 22 float4 ctr_pos = {x, y, z, CENTER_MASS}; 27 float4 __attribute__((kernel)) fill_pos(uint32_t x) { 29 float4 out = {0, 0, 0, CENTER_MASS}; 30 float4 v = {0, 0, -.000001f, 0}; 39 float4 v = {rsRand(-1000.f, 1000.f), 46 float4 out = {point.x, point.y, point.z, 55 static float4 simulate(float4 in, uint32_t x ,rs_allocation triangles) { constant 59 float4 mass = rsGetElementAt_float4(positions, i); 70 float4 v = rsGetElementAt_float4(velocities, x); 71 float4 out = in; [all …]
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
D | multi_kernel.rs | 21 float4 RS_KERNEL invert(float4 a) { 25 float4 RS_KERNEL scalebytwo(float4 a) { 29 float4 RS_KERNEL scalebythree(float4 a) {
|
/frameworks/rs/driver/runtime/ |
D | rs_sample.c | 69 static inline float4 __attribute__((overloadable)) 106 static inline float4 __attribute__((overloadable)) 110 float4 r = {p[x], p[x+1], p[x+2], p[x+3]}; in getElementAt4() 126 static float4 __attribute__((overloadable)) 133 float4 ret = {0.f, 0.f, 0.f, r}; in getSample_A() 136 static float4 __attribute__((overloadable)) 143 float4 ret = {r, r, r, 1.f}; in getSample_L() 146 static float4 __attribute__((overloadable)) 153 float4 ret = {r.x, r.x, r.x, r.y}; in getSample_LA() 156 static float4 __attribute__((overloadable)) [all …]
|
D | rs_convert.c | 62 static float4 yuv_U_values = {0.f, -0.392f * 0.003921569f, +2.02 * 0.003921569f, 0.f}; 63 static float4 yuv_V_values = {1.603f * 0.003921569f, -0.815f * 0.003921569f, 0.f, 0.f}; 65 extern float4 __attribute__((overloadable)) rsYuvToRGBA_float4(uchar y, uchar u, uchar v) { in rsYuvToRGBA_float4() 66 float4 color = (float)y * 0.003921569f; in rsYuvToRGBA_float4() 67 float4 fU = ((float)u) - 128.f; in rsYuvToRGBA_float4() 68 float4 fV = ((float)v) - 128.f; in rsYuvToRGBA_float4()
|
D | rs_cl.c | 6 extern float4 __attribute__((overloadable)) convert_float4(int4 c); 10 extern int4 __attribute__((overloadable)) convert_int4(float4 c); 16 extern float4 __attribute__((overloadable)) fmin(float4 v, float v2); 21 extern float4 __attribute__((overloadable)) fmax(float4 v, float v2); 39 extern float4 __attribute__((overloadable)) fnc(float4 v) { \ 40 float4 r; \ 62 extern int4 __attribute__((overloadable)) fnc(float4 v) { \ 85 extern float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2) { \ 86 float4 r; \ 108 extern float4 __attribute__((overloadable)) fnc(float4 v1, float v2) { \ [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | layered_filter_fast_d1new.rs | 94 float4 sharp_RGBA; 299 float4 fuzzy_RGBA = rsGetElementAt_float4(g_fuzzy_RGBA, index); 317 float4 fuzzy_RGBA = rsGetElementAt_float4(g_fuzzy_RGBA, x); 337 float4 sharp_RGBA; 338 float4 integral_RGBA; 348 float4 prev_integral_value = 0; 355 float4 this_value = {weight * sharp_RGBA.r, weight * sharp_RGBA.g, 374 float4 sharp_RGBA; 375 float4 integral_RGBA; 380 float4 prev_integral_value = 0; [all …]
|
/frameworks/compile/slang/tests/P_all_api_16/ |
D | all16.rs | 2535 *(float4*)buf30 = acos(*(float4*)buf31); 2539 *(float4*)buf38 = acosh(*(float4*)buf39); 2543 *(float4*)buf46 = acospi(*(float4*)buf47); 2547 *(float4*)buf54 = asin(*(float4*)buf55); 2551 *(float4*)buf62 = asinh(*(float4*)buf63); 2555 *(float4*)buf70 = asinpi(*(float4*)buf71); 2559 *(float4*)buf78 = atan(*(float4*)buf79); 2563 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 2567 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 2571 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_14/ |
D | all14.rs | 2443 *(float4*)buf30 = acos(*(float4*)buf31); 2447 *(float4*)buf38 = acosh(*(float4*)buf39); 2451 *(float4*)buf46 = acospi(*(float4*)buf47); 2455 *(float4*)buf54 = asin(*(float4*)buf55); 2459 *(float4*)buf62 = asinh(*(float4*)buf63); 2463 *(float4*)buf70 = asinpi(*(float4*)buf71); 2467 *(float4*)buf78 = atan(*(float4*)buf79); 2471 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 2475 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 2479 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_12/ |
D | all12.rs | 2373 *(float4*)buf30 = acos(*(float4*)buf31); 2377 *(float4*)buf38 = acosh(*(float4*)buf39); 2381 *(float4*)buf46 = acospi(*(float4*)buf47); 2385 *(float4*)buf54 = asin(*(float4*)buf55); 2389 *(float4*)buf62 = asinh(*(float4*)buf63); 2393 *(float4*)buf70 = asinpi(*(float4*)buf71); 2397 *(float4*)buf78 = atan(*(float4*)buf79); 2401 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 2405 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 2409 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_13/ |
D | all13.rs | 2373 *(float4*)buf30 = acos(*(float4*)buf31); 2377 *(float4*)buf38 = acosh(*(float4*)buf39); 2381 *(float4*)buf46 = acospi(*(float4*)buf47); 2385 *(float4*)buf54 = asin(*(float4*)buf55); 2389 *(float4*)buf62 = asinh(*(float4*)buf63); 2393 *(float4*)buf70 = asinpi(*(float4*)buf71); 2397 *(float4*)buf78 = atan(*(float4*)buf79); 2401 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 2405 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 2409 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_15/ |
D | all15.rs | 2443 *(float4*)buf30 = acos(*(float4*)buf31); 2447 *(float4*)buf38 = acosh(*(float4*)buf39); 2451 *(float4*)buf46 = acospi(*(float4*)buf47); 2455 *(float4*)buf54 = asin(*(float4*)buf55); 2459 *(float4*)buf62 = asinh(*(float4*)buf63); 2463 *(float4*)buf70 = asinpi(*(float4*)buf71); 2467 *(float4*)buf78 = atan(*(float4*)buf79); 2471 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 2475 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 2479 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_11/ |
D | all11.rs | 2373 *(float4*)buf30 = acos(*(float4*)buf31); 2377 *(float4*)buf38 = acosh(*(float4*)buf39); 2381 *(float4*)buf46 = acospi(*(float4*)buf47); 2385 *(float4*)buf54 = asin(*(float4*)buf55); 2389 *(float4*)buf62 = asinh(*(float4*)buf63); 2393 *(float4*)buf70 = asinpi(*(float4*)buf71); 2397 *(float4*)buf78 = atan(*(float4*)buf79); 2401 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 2405 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 2409 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_17/ |
D | all17.rs | 2643 *(float4*)buf30 = acos(*(float4*)buf31); 2647 *(float4*)buf38 = acosh(*(float4*)buf39); 2651 *(float4*)buf46 = acospi(*(float4*)buf47); 2655 *(float4*)buf54 = asin(*(float4*)buf55); 2659 *(float4*)buf62 = asinh(*(float4*)buf63); 2663 *(float4*)buf70 = asinpi(*(float4*)buf71); 2667 *(float4*)buf78 = atan(*(float4*)buf79); 2671 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 2675 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 2679 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_21/ |
D | all21.rs | 4089 *(float4*)buf30 = acos(*(float4*)buf31); 4093 *(float4*)buf38 = acosh(*(float4*)buf39); 4097 *(float4*)buf46 = acospi(*(float4*)buf47); 4101 *(float4*)buf54 = asin(*(float4*)buf55); 4105 *(float4*)buf62 = asinh(*(float4*)buf63); 4109 *(float4*)buf70 = asinpi(*(float4*)buf71); 4113 *(float4*)buf78 = atan(*(float4*)buf79); 4117 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 4121 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 4125 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_18/ |
D | all18.rs | 3202 *(float4*)buf30 = acos(*(float4*)buf31); 3206 *(float4*)buf38 = acosh(*(float4*)buf39); 3210 *(float4*)buf46 = acospi(*(float4*)buf47); 3214 *(float4*)buf54 = asin(*(float4*)buf55); 3218 *(float4*)buf62 = asinh(*(float4*)buf63); 3222 *(float4*)buf70 = asinpi(*(float4*)buf71); 3226 *(float4*)buf78 = atan(*(float4*)buf79); 3230 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 3234 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 3238 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
D | yuv.rs | 14 static float4 crossProcess(float4 color) { constant 15 float4 ncolor = 0.f; 49 static float4 colortemp(float4 color) { constant 50 float4 new_color = color; 51 float4 t = color * ((float4)1.0f - color) * temp; 95 float4 f = ((float)i) / 255.f; 96 float4 res = crossProcess(f);
|
/frameworks/compile/slang/tests/P_all_api_23/ |
D | all23.rs | 4739 *(float4*)buf30 = acos(*(float4*)buf31); 4743 *(float4*)buf38 = acosh(*(float4*)buf39); 4747 *(float4*)buf46 = acospi(*(float4*)buf47); 4751 *(float4*)buf54 = asin(*(float4*)buf55); 4755 *(float4*)buf62 = asinh(*(float4*)buf63); 4759 *(float4*)buf70 = asinpi(*(float4*)buf71); 4763 *(float4*)buf78 = atan(*(float4*)buf79); 4767 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 4771 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 4775 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_19/ |
D | all19.rs | 3426 *(float4*)buf30 = acos(*(float4*)buf31); 3430 *(float4*)buf38 = acosh(*(float4*)buf39); 3434 *(float4*)buf46 = acospi(*(float4*)buf47); 3438 *(float4*)buf54 = asin(*(float4*)buf55); 3442 *(float4*)buf62 = asinh(*(float4*)buf63); 3446 *(float4*)buf70 = asinpi(*(float4*)buf71); 3450 *(float4*)buf78 = atan(*(float4*)buf79); 3454 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 3458 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 3462 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_20/ |
D | all20.rs | 3445 *(float4*)buf30 = acos(*(float4*)buf31); 3449 *(float4*)buf38 = acosh(*(float4*)buf39); 3453 *(float4*)buf46 = acospi(*(float4*)buf47); 3457 *(float4*)buf54 = asin(*(float4*)buf55); 3461 *(float4*)buf62 = asinh(*(float4*)buf63); 3465 *(float4*)buf70 = asinpi(*(float4*)buf71); 3469 *(float4*)buf78 = atan(*(float4*)buf79); 3473 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 3477 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 3481 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|