/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | mandelbrot.rs | 25 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) { 43 return (uchar4){0, 0, 0, 0xff}; 47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff}; 49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)), 52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)), 57 uchar4 RS_KERNEL rootD(uint32_t x, uint32_t y) { 75 return (uchar4){0, 0, 0, 0xff}; 79 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff}; 81 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)), 84 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
|
D | greyscale.rs | 22 uchar4 RS_KERNEL root(uchar4 v_in) { 29 uchar RS_KERNEL toU8(uchar4 v_in) { 34 uchar4 RS_KERNEL toU8_4(uchar v_in) { 35 return (uchar4)v_in;
|
D | posterize.rs | 24 uchar4 color; 30 uchar4 hats = {r, g, b, 255}; 34 uchar4 RS_KERNEL root(uchar4 v_in, uint32_t x, uint32_t y) { 35 uchar4 refpix = rsGetElementAt_uchar4(inputImage, x, y);
|
D | wbalance.rs | 28 static uchar4 estimateWhite() { variable 36 uchar4 in = rsGetElementAt_uchar4(histogramSource, j, i); 96 uchar4 out; 111 uchar4 estimation = estimateWhite(); 121 uchar4 RS_KERNEL whiteBalanceKernel(uchar4 in) { 126 uchar4 out;
|
D | blend.rs | 20 uchar4 RS_KERNEL setImageAlpha(uchar4 in, uint32_t x, uint32_t y) { 21 uchar4 out;
|
D | levels.rsh | 24 uchar4 __attribute__((kernel)) root(uchar4 in) { 25 uchar4 out; 37 uchar4 __attribute__((kernel)) root4(uchar4 in) {
|
D | exposure.rs | 26 uchar4 RS_KERNEL exposure(uchar4 in) 28 uchar4 out = 0;
|
D | contrast.rs | 28 uchar4 RS_KERNEL contrast(uchar4 in) { 30 uchar4 o;
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | mandelbrot.rs | 25 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) { 43 return (uchar4){0, 0, 0, 0xff}; 47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff}; 49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)), 52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)), 57 uchar4 RS_KERNEL rootD(uint32_t x, uint32_t y) { 75 return (uchar4){0, 0, 0, 0xff}; 79 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff}; 81 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)), 84 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
|
D | greyscale.rs | 22 uchar4 RS_KERNEL root(uchar4 v_in) { 29 uchar RS_KERNEL toU8(uchar4 v_in) { 34 uchar4 RS_KERNEL toU8_4(uchar v_in) { 35 return (uchar4)v_in;
|
D | wbalance.rs | 23 static uchar4 estimateWhite() { variable 79 uchar4 out; 94 uchar4 estimation = estimateWhite(); 104 uchar4 RS_KERNEL whiteBalanceKernel(uchar4 in) { 109 uchar4 out;
|
D | levels.rsh | 24 uchar4 __attribute__((kernel)) root(uchar4 in) { 25 uchar4 out; 37 uchar4 __attribute__((kernel)) root4(uchar4 in) {
|
D | exposure.rs | 26 uchar4 RS_KERNEL exposure(uchar4 in) 28 uchar4 out = {0, 0, 0, 255};
|
D | contrast.rs | 28 uchar4 RS_KERNEL contrast(uchar4 in) { 30 uchar4 o;
|
D | histogram.rs | 39 uchar4 c = rsGetElementAt_uchar4(gSrc, px, py); 72 static const uchar4 gClear = {0, 0, 0, 0xff}; constant 74 uchar4 RS_KERNEL clear() { 78 uchar4 RS_KERNEL draw(uint x, uint y) {
|
/frameworks/compile/slang/tests/F_vector_cast/ |
D | vector_cast.rs | 20 uchar4 u; 21 u = (uchar4) c; 24 uchar4 bar(uchar4 u) { 30 uchar4 u; 31 u = bar((uchar4) c);
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsic3DLUT.cpp | 66 uchar4 *out = (uchar4 *)p->out; in kernel() 67 uchar4 *in = (uchar4 *)p->in; in kernel() 110 const uchar4 *pt_00 = (const uchar4 *)&bp2[0]; in kernel() 111 const uchar4 *pt_10 = (const uchar4 *)&bp2[stride_y]; in kernel() 112 const uchar4 *pt_01 = (const uchar4 *)&bp2[stride_z]; in kernel() 113 const uchar4 *pt_11 = (const uchar4 *)&bp2[stride_y + stride_z]; in kernel() 135 uchar4 ret = convert_uchar4(v2); in kernel()
|
D | rsCpuIntrinsicResize.cpp | 84 static uchar4 OneBiCubic(const uchar4 *yp0, const uchar4 *yp1, const uchar4 *yp2, const uchar4 *yp3, in OneBiCubic() 201 const uchar4 *yp0 = (const uchar4 *)(pin + stride * ys0); in kernelU4() 202 const uchar4 *yp1 = (const uchar4 *)(pin + stride * ys1); in kernelU4() 203 const uchar4 *yp2 = (const uchar4 *)(pin + stride * ys2); in kernelU4() 204 const uchar4 *yp3 = (const uchar4 *)(pin + stride * ys3); in kernelU4() 206 uchar4 *out = ((uchar4 *)p->out) + xstart; in kernelU4()
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | mandelbrot.rs | 25 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) { 43 return (uchar4){0, 0, 0, 0xff}; 47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff}; 49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)), 52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
|
D | greyscale.fs | 21 uchar4 RS_KERNEL root(uchar4 v_in) { 28 uchar RS_KERNEL toU8(uchar4 v_in) { 33 uchar4 RS_KERNEL toU8_4(uchar v_in) { 34 return (uchar4)v_in;
|
D | levels.rsh | 24 uchar4 __attribute__((kernel)) root(uchar4 in, uint32_t x, uint32_t y) { 25 uchar4 out; 37 uchar4 __attribute__((kernel)) root4(uchar4 in, uint32_t x, uint32_t y) {
|
D | wbalance.rs | 30 static uchar4 estimateWhite() { variable 38 uchar4 in = rsGetElementAt_uchar4(histogramSource, j, i); 98 uchar4 out; 113 uchar4 estimation = estimateWhite(); 134 void whiteBalanceKernel(const uchar4 *in, uchar4 *out) { constant
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
D | yuv.rs | 39 static uchar4 crossProcess_i(uchar4 color) { variable 40 uchar4 ncolor = color; 69 static uchar4 vignette(uchar4 color, uint32_t x, uint32_t y) { constant 81 void root(const uchar4 *in, uchar4 *out, uint32_t x, uint32_t y) { constant 82 uchar4 p;
|
/frameworks/rs/scriptc/ |
D | rs_math.rsh | 196 * Pack floating point (0-1) RGB values into a uchar4. The alpha component is 203 * @return uchar4 205 _RS_RUNTIME uchar4 __attribute__((const, overloadable)) rsPackColorTo8888(float r, float g, float b… 208 * Pack floating point (0-1) RGBA values into a uchar4. 215 * @return uchar4 217 _RS_RUNTIME uchar4 __attribute__((const, overloadable)) rsPackColorTo8888(float r, float g, float b… 220 * Pack floating point (0-1) RGB values into a uchar4. The alpha component is 225 * @return uchar4 227 _RS_RUNTIME uchar4 __attribute__((const, overloadable)) rsPackColorTo8888(float3 color); 230 * Pack floating point (0-1) RGBA values into a uchar4. [all …]
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | errorCalculator.rs | 34 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, x, y); 35 uchar4 givenPixel = rsGetElementAt_uchar4(given, x, y); 46 void displayDifference(const uchar4 *v_in, uchar4 *v_out, uint32_t x, uint32_t y) { constant
|