/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | convolve3x3.fs | 31 float4 result; 33 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)); 34 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, x, y1)); 35 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)); 36 float4 p10 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y)); 37 float4 p11 = convert_float4(rsGetElementAt_uchar4(gIn, x, y)); 38 float4 p12 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y)); 39 float4 p20 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)); 40 float4 p21 = convert_float4(rsGetElementAt_uchar4(gIn, x, y2)); 41 float4 p2 [all...] |
H A D | greyscale.fs | 22 float4 f4 = rsUnpackColor8888(v_in); 29 float4 f4 = convert_float4(v_in);
|
H A D | threshold.fs | 73 float4 __attribute__((kernel)) copyIn(uchar4 in) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 89 float4 i = rsGetElementAt_float4(ScratchPixel2, x, validH); 99 float4 __attribute__((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);
|
H A D | colormatrix.fs | 30 float4 f = convert_float4(in);
|
H A 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]
|
H A D | artistic1.rs | 47 float4 v1 = rsUnpackColor8888(in); 48 float4 v2 = rsUnpackColor8888(rsGetElementAt_uchar4(gBlur, x, y));
|
H A D | vignette.rsh | 49 const float4 fin = convert_float4(in); 54 float4 fout;
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A 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));
|
H A D | greyscale.fs | 22 float4 f4 = rsUnpackColor8888(v_in); 29 float4 f4 = convert_float4(v_in);
|
H A D | threshold.fs | 73 float4 __attribute__((kernel)) copyIn(uchar4 in) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 89 float4 i = rsGetElementAt_float4(ScratchPixel2, x, validH); 99 float4 __attribute__((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);
|
H A D | colormatrix.fs | 30 float4 f = convert_float4(in);
|
H A 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/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | convolve3x3.fs | 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));
|
H A D | greyscale.fs | 22 float4 f4 = rsUnpackColor8888(v_in); 29 float4 f4 = convert_float4(v_in);
|
H A D | threshold.fs | 73 float4 __attribute__((kernel)) copyIn(uchar4 in) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 89 float4 i = rsGetElementAt_float4(ScratchPixel2, x, validH); 99 float4 __attribute__((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);
|
H A D | colormatrix.fs | 30 float4 f = convert_float4(in);
|
H A 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/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
H A D | copy_test.rs | 37 float4 __attribute((kernel)) copyFloat4(float4 i) {
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
H A D | copy_test.rs | 37 float4 __attribute((kernel)) copyFloat4(float4 i) {
|
/frameworks/rs/scriptc/ |
H A 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 *righ [all...] |
H A D | rs_cl.rsh | 117 _RS_RUNTIME float4 __attribute__((const, overloadable)) fnc(float4 v); 122 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float4 v); 127 _RS_RUNTIME int4 __attribute__((const, overloadable)) fnc(float4 v); 132 _RS_RUNTIME float4 __attribute__((const, overloadable)) fnc(float4 v1, float4 v2); 137 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float4 v1, float4 v2); 142 _RS_RUNTIME float4 __attribute_ [all...] |
H A D | rs_matrix.rsh | 276 _RS_RUNTIME float4 __attribute__((overloadable)) 277 rsMatrixMultiply(rs_matrix4x4 *m, float4 in); 282 _RS_RUNTIME float4 __attribute__((overloadable)) 288 _RS_RUNTIME float4 __attribute__((overloadable)) 313 _RS_RUNTIME float4 __attribute__((overloadable)) 314 rsMatrixMultiply(const rs_matrix4x4 *m, float4 in); 319 _RS_RUNTIME float4 __attribute__((overloadable)) 325 _RS_RUNTIME float4 __attribute__((overloadable))
|
/frameworks/rs/driver/runtime/ |
H A 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 [all...] |
H A D | rs_sample.c | 70 static inline float4 __attribute__((overloadable)) 107 static inline float4 __attribute__((overloadable)) 111 float4 r = {p[x], p[x+1], p[x+2], p[x+3]}; 127 static float4 __attribute__((overloadable)) 134 float4 ret = {0.f, 0.f, 0.f, r}; 137 static float4 __attribute__((overloadable)) 144 float4 ret = {r, r, r, 1.f}; 147 static float4 __attribute__((overloadable)) 154 float4 ret = {r.x, r.x, r.x, r.y}; 157 static float4 __attribute_ [all...] |
/frameworks/rs/java/tests/HelloComputeNDK/libhellocomputendk/ |
H A D | mono.rs | 23 float4 f4 = rsUnpackColor8888(*v_in);
|