/frameworks/rs/java/tests/ImageProcessing_jb/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);
|
D | greyscale.rs | 23 float4 f4 = rsUnpackColor8888(v_in); 30 float4 f4 = convert_float4(v_in);
|
/frameworks/rs/java/tests/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);
|
D | greyscale.rs | 23 float4 f4 = rsUnpackColor8888(v_in); 30 float4 f4 = convert_float4(v_in);
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
D | shader_def.rsh | 22 float4 light0_Posision; 27 float4 light1_Posision; 36 float4 light_Posision[2]; 50 float4 light0_DiffuseColor; 51 float4 light0_SpecularColor; 53 float4 light1_DiffuseColor; 54 float4 light1_SpecularColor; 58 float4 light_DiffuseColor[2]; 59 float4 light_SpecularColor[2]; 63 float4 light0_DiffuseColor; [all …]
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | shader_def.rsh | 22 float4 light0_Posision; 27 float4 light1_Posision; 41 float4 light0_DiffuseColor; 42 float4 light0_SpecularColor; 44 float4 light1_DiffuseColor; 45 float4 light1_SpecularColor; 49 float4 light_DiffuseColor[2]; 50 float4 light_SpecularColor[2]; 54 float4 light0_DiffuseColor; 55 float4 light0_SpecularColor; [all …]
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | ip2_convolve3x3.rs | 31 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)); 32 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, x, y1)); 33 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)); 34 float4 p10 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y)); 35 float4 p11 = convert_float4(rsGetElementAt_uchar4(gIn, x, y)); 36 float4 p12 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y)); 37 float4 p20 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)); 38 float4 p21 = convert_float4(rsGetElementAt_uchar4(gIn, x, y2)); 39 float4 p22 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y2));
|
D | threshold.fs | 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);
|
D | convolve5x5.fs | 38 float4 p0 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y0)) * gCoeffs[0] 44 float4 p1 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5] 50 float4 p2 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y2)) * gCoeffs[10] 56 float4 p3 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y3)) * gCoeffs[15] 62 float4 p4 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y4)) * gCoeffs[20]
|
/frameworks/rs/driver/runtime/ |
D | rs_cl.c | 5 extern float4 __attribute__((overloadable)) convert_float4(int4 c); 9 extern int4 __attribute__((overloadable)) convert_int4(float4 c); 15 extern float4 __attribute__((overloadable)) fmin(float4 v, float v2); 20 extern float4 __attribute__((overloadable)) fmax(float4 v, float v2); 38 extern float4 __attribute__((overloadable)) fnc(float4 v) { \ 39 float4 r; \ 61 extern int4 __attribute__((overloadable)) fnc(float4 v) { \ 84 extern float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2) { \ 85 float4 r; \ 107 extern float4 __attribute__((overloadable)) fnc(float4 v1, float v2) { \ [all …]
|
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 …]
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | test_app.rsh | 29 float4 cameraPos; 33 float4 lightPos_0; 34 float4 lightColor_0; 35 float4 lightPos_1; 36 float4 lightColor_1; 37 float4 cameraPos; 38 float4 diffuse; 49 float4 position;
|
/frameworks/rs/java/tests/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/rs/scriptc/ |
D | rs_math.rsh | 103 float4 *left, float4 *right, 104 float4 *top, float4 *bottom, 105 float4 *near, float4 *far) { 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 163 float4 *left, float4 *right, 164 float4 *top, float4 *bottom, 165 float4 *near, float4 *far) { 236 _RS_RUNTIME uchar4 __attribute__((const, overloadable)) rsPackColorTo8888(float4 color); 239 * Unpack a uchar4 color to float4. The resulting float range will be (0-1). [all …]
|
D | rs_core_math.rsh | 162 extern float4 __attribute__((const, overloadable))acos(float4 v); 198 extern float4 __attribute__((const, overloadable))acosh(float4); 234 extern float4 __attribute__((const, overloadable))acospi(float4 v); 270 extern float4 __attribute__((const, overloadable))asin(float4 v); 306 extern float4 __attribute__((const, overloadable))asinh(float4); 342 extern float4 __attribute__((const, overloadable))asinpi(float4 v); 378 extern float4 __attribute__((const, overloadable))atan(float4 v); 414 extern float4 __attribute__((const, overloadable))atan2(float4 y, float4 x); 450 extern float4 __attribute__((const, overloadable))atan2pi(float4 y, float4 x); 486 extern float4 __attribute__((const, overloadable))atanh(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); 91 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high); 94 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high); 133 extern float4 __attribute__((overloadable)) fmax(float4 v1, float4 v2) { in fmax() 134 float4 r; in fmax() 157 extern float4 __attribute__((overloadable)) fmax(float4 v1, float v2) { in fmax() 158 float4 r; in fmax() 189 extern float4 __attribute__((overloadable)) fmin(float4 v1, float4 v2) { in fmin() 190 float4 r; in fmin() [all …]
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
D | clamp.rs | 25 float4 src4 = { 2.0f, 2.0f, 1.0f, 4.0f }; 26 float4 min4 = { 0.5f, -3.0f, 3.0f, 4.0f }; 27 float4 max4 = { 1.0f, 9.0f, 4.0f, 4.0f }; 29 float4 res4 = clamp(src4, min4, max4);
|
D | copy_test.rs | 37 float4 __attribute((kernel)) copyFloat4(float4 i) {
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | clamp.rs | 25 float4 src4 = { 2.0f, 2.0f, 1.0f, 4.0f }; 26 float4 min4 = { 0.5f, -3.0f, 3.0f, 4.0f }; 27 float4 max4 = { 1.0f, 9.0f, 4.0f, 4.0f }; 29 float4 res4 = clamp(src4, min4, max4);
|
D | copy_test.rs | 37 float4 __attribute((kernel)) copyFloat4(float4 i) {
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicBlur.cpp | 116 static void OneVU4(const RsForEachStubParamStruct *p, float4 *out, int32_t x, int32_t y, in OneVU4() 121 float4 blurredPixel = 0; in OneVU4() 126 float4 pf = convert_float4(pvy[0]); in OneVU4() 163 static void OneVFU4(float4 *out, in OneVFU4() 181 float4 blurredPixel = 0; in OneVFU4() 185 float4 pf = convert_float4(((const uchar4 *)pi)[0]); in OneVFU4() 251 const float4 *ptrIn, const float* gPtr, int iradius) { in OneHU4() 253 float4 blurredPixel = 0; in OneHU4() 257 float4 pf = ptrIn[validX]; in OneHU4() 285 float4 stackbuf[2048]; in kernelU4() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 99 float4 px = convert_float4(py0[x0]) * coeff[0] + in OneU4() 218 static void OneF4(const RsForEachStubParamStruct *p, uint32_t x, float4 *out, in OneF4() 219 … const float4 *py0, const float4 *py1, const float4 *py2, const float4 *py3, const float4 *py4, in OneF4() 228 float4 px = py0[x0] * coeff[0] + in OneF4() 524 const float4 *py0 = (const float4 *)(pin + stride * y0); in kernelF4() 525 const float4 *py1 = (const float4 *)(pin + stride * y1); in kernelF4() 526 const float4 *py2 = (const float4 *)(pin + stride * y2); in kernelF4() 527 const float4 *py3 = (const float4 *)(pin + stride * y3); in kernelF4() 528 const float4 *py4 = (const float4 *)(pin + stride * y4); in kernelF4() 530 float4 *out = (float4 *)p->out; in kernelF4()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | scenegraph_objects.rsh | 65 float4 value; 129 float4 boundingSphere; 130 float4 worldBoundingSphere; 142 float4 clear_color; 152 float4 position; 159 float4 frustumPlanes[6]; 169 float4 position; 170 float4 color; 180 float4 float_value; 261 float4 pos = {(float)screenX, height - (float)screenY, 0.0f, 1.0f};
|