/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | nbody.rscript | 9 rs_allocation positions; // float4 10 rs_allocation velocities; // float4 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) { 59 float4 mass = rsGetElementAt_float4(positions, i); [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | resize.rscript | 38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) { 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 …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | resize.rscript | 38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) { 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 …]
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | resize.rscript | 38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) { 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 …]
|
/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 …]
|
D | rs_matrix.c | 5 extern float4 __attribute__((overloadable)) convert_float4(uchar4 c); 214 extern float4 __attribute__((overloadable)) 215 rsMatrixMultiply(rs_matrix4x4 *m, float4 in) { in rsMatrixMultiply() 219 extern float4 __attribute__((overloadable)) 224 extern float4 __attribute__((overloadable)) 321 rsExtractFrustumPlanes(const rs_matrix4x4* viewProj, float4* left, float4* right, float4* top, in rsExtractFrustumPlanes() 322 float4* bottom, float4* near, float4* far) { in rsExtractFrustumPlanes() 369 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom, in rsIsSphereInFrustum() 370 float4* near, float4* far) { in rsIsSphereInFrustum()
|
/frameworks/compile/slang/tests/P_all_api_14/ |
D | all14.rscript | 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_15/ |
D | all15.rscript | 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.rscript | 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_12/ |
D | all12.rscript | 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.rscript | 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.rscript | 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_16/ |
D | all16.rscript | 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_21/ |
D | all21.rscript | 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.rscript | 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/compile/slang/tests/P_all_api_20/ |
D | all20.rscript | 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 …]
|
/frameworks/compile/slang/tests/P_all_api_19/ |
D | all19.rscript | 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/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
D | yuv.rscript | 14 static float4 crossProcess(float4 color) { 15 float4 ncolor = 0.f; 49 static float4 colortemp(float4 color) { 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_22/ |
D | all22.rscript | 4809 *(float4*)buf30 = acos(*(float4*)buf31); 4813 *(float4*)buf38 = acosh(*(float4*)buf39); 4817 *(float4*)buf46 = acospi(*(float4*)buf47); 4821 *(float4*)buf54 = asin(*(float4*)buf55); 4825 *(float4*)buf62 = asinh(*(float4*)buf63); 4829 *(float4*)buf70 = asinpi(*(float4*)buf71); 4833 *(float4*)buf78 = atan(*(float4*)buf79); 4837 *(float4*)buf89 = atan2(*(float4*)buf90, *(float4*)buf91); 4841 *(float4*)buf101 = atan2pi(*(float4*)buf102, *(float4*)buf103); 4845 *(float4*)buf110 = atanh(*(float4*)buf111); [all …]
|
/frameworks/compile/slang/tests/P_all_api_23/ |
D | all23.rscript | 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/rs/script_api/ |
D | rs_matrix.spec | 52 arg: float4* left, "Left plane." 53 arg: float4* right, "Right plane." 54 arg: float4* top, "Top plane." 55 arg: float4* bottom, "Bottom plane." 56 arg: float4* near, "Near plane." 57 arg: float4* far, "Far plane." 113 arg: float4* left 114 arg: float4* righ 115 arg: float4* top 116 arg: float4* bottom [all …]
|
/frameworks/rs/script_api/include/ |
D | rs_math.rsh | 215 extern float4 __attribute__((const, overloadable)) 216 acos(float4 v); 254 extern float4 __attribute__((const, overloadable)) 255 acosh(float4 v); 295 extern float4 __attribute__((const, overloadable)) 296 acospi(float4 v); 334 extern float4 __attribute__((const, overloadable)) 335 asin(float4 v); 373 extern float4 __attribute__((const, overloadable)) 374 asinh(float4 v); [all …]
|
/frameworks/rs/driver/runtime/arch/ |
D | generic.c | 22 extern uchar4 __attribute__((overloadable)) convert_uchar4(float4); 23 extern float4 __attribute__((overloadable)) convert_float4(uchar4); 94 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high); 97 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high); 137 extern float4 __attribute__((overloadable)) fmax(float4 v1, float4 v2) { in fmax() 138 float4 r; in fmax() 161 extern float4 __attribute__((overloadable)) fmax(float4 v1, float v2) { in fmax() 162 float4 r; in fmax() 193 extern float4 __attribute__((overloadable)) fmin(float4 v1, float4 v2) { in fmin() 194 float4 r; in fmin() [all …]
|