/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicLUT.cpp | 61 uchar *out = (uchar *)info->outPtr[0]; 62 const uchar *in = (uchar *)info->inPtr[0]; 66 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; 67 const uchar *tg = &tr[256]; 68 const uchar *tb = &tg[256]; 69 const uchar *ta = &tb[256];
|
H A D | rsCpuIntrinsicYuvToRGB.cpp | 66 static uchar4 rsYuvToRGBA_uchar4(uchar y, uchar u, uchar v) { 95 return (uchar4){static_cast<uchar>(p.x), static_cast<uchar>(p.y), 96 static_cast<uchar>(p.z), static_cast<uchar>(p.w)}; 100 extern "C" void rsdIntrinsicYuv_K(void *dst, const uchar *Y, const uchar *uv, uint32_t xstart, size_t xend); 101 extern "C" void rsdIntrinsicYuvR_K(void *dst, const uchar * [all...] |
H A D | rsCpuIntrinsicHistogram.cpp | 174 uchar *in = (uchar *)info->inPtr[0]; 191 uchar *in = (uchar *)info->inPtr[0]; 207 uchar *in = (uchar *)info->inPtr[0]; 222 uchar *in = (uchar *)info->inPtr[0]; 240 uchar *in = (uchar *)inf [all...] |
H A D | rsCpuIntrinsicBlur.cpp | 117 const uchar *ptrIn, int iStride, const float* gPtr, int iradius) { 119 const uchar *pi = ptrIn + x*4; 135 const uchar *ptrIn, int iStride, const float* gPtr, int iradius) { 137 const uchar *pi = ptrIn + x; 152 extern "C" void rsdIntrinsicBlurU1_K(uchar *out, uchar const *in, size_t w, size_t h, 164 const uchar *ptrIn, int iStride, const float* gPtr, int ct, 180 const uchar *pi = ptrIn; 198 const uchar *ptrIn, int iStride, const float* gPtr, int ct, int x1, int x2) { 204 const uchar *p [all...] |
H A D | rsCpuIntrinsicResize.cpp | 163 static uchar OneBiCubic(const uchar *yp0, const uchar *yp1, const uchar *yp2, const uchar *yp3, 184 return (uchar)p; 218 uchar *dst, 222 uchar const *srcn, 223 uchar const *src0, 224 uchar cons [all...] |
H A D | rsCpuIntrinsicConvolve3x3.cpp | 109 uchar4 o = {(uchar)px.x, (uchar)px.y, (uchar)px.z, (uchar)px.w}; 134 static void ConvolveOneU1(const RsExpandKernelDriverInfo *info, uint32_t x, uchar *out, 135 const uchar *py0, const uchar *py1, const uchar *py2, 195 const uchar *pin = (const uchar *)c [all...] |
H A D | rsCpuIntrinsicInlines.h | 19 typedef uint8_t uchar; typedef 26 typedef uchar uchar2 __attribute__((ext_vector_type(2))); 27 typedef uchar uchar3 __attribute__((ext_vector_type(3))); 28 typedef uchar uchar4 __attribute__((ext_vector_type(4))); 68 #define CVT_FUNC(type) CVT_FUNC_2(type, uchar) \ 77 CVT_FUNC(uchar)
|
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | launchtest.rs | 23 void __attribute__((kernel)) k_x(uchar in, uint32_t x) { 29 uchar __attribute__((kernel)) k_xy(uint32_t x, uint32_t y) {
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | greyscale.rs | 29 uchar RS_KERNEL toU8(uchar4 v_in) { 31 return (uchar)dot(f4.rgb, gMonoMult); 34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
|
H A D | artistic1.rs | 24 static uchar gLutR[256]; 25 static uchar gLutG[256]; 26 static uchar gLutB[256];
|
H A D | grain.rs | 20 uchar RS_KERNEL genRand() { 21 return (uchar)rsRand(0xff); 44 uchar RS_KERNEL blend9(uint32_t x, uint32_t y) { 72 return (uchar)p20;
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | greyscale.rs | 29 uchar RS_KERNEL toU8(uchar4 v_in) { 31 return (uchar)dot(f4.rgb, gMonoMult); 34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
|
H A D | posterize.rs | 27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
|
H A D | artistic1.rs | 24 static uchar gLutR[256]; 25 static uchar gLutG[256]; 26 static uchar gLutB[256];
|
H A D | grain.rs | 20 uchar RS_KERNEL genRand() { 21 return (uchar)rsRand(0xff); 44 uchar RS_KERNEL blend9(uint32_t x, uint32_t y) { 72 return (uchar)p20;
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | greyscale.rs | 29 uchar RS_KERNEL toU8(uchar4 v_in) { 31 return (uchar)dot(f4.rgb, gMonoMult); 34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
|
H A D | posterize.rs | 27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
|
H A D | artistic1.rs | 24 static uchar gLutR[256]; 25 static uchar gLutG[256]; 26 static uchar gLutB[256];
|
H A D | grain.rs | 20 uchar RS_KERNEL genRand() { 21 return (uchar)rsRand(0xff); 44 uchar RS_KERNEL blend9(uint32_t x, uint32_t y) { 72 return (uchar)p20;
|
/frameworks/rs/driver/runtime/ |
H A D | rs_convert.c | 33 #define CVT_FUNC(type) CVT_FUNC_2(type, uchar) \ 46 CVT_FUNC(uchar) 65 extern float4 __attribute__((overloadable)) rsYuvToRGBA_float4(uchar y, uchar u, uchar v) {
|
/frameworks/av/cmds/stagefright/filters/ |
H A D | nightvision.rs | 28 // get RGB, scale 0-255 uchar to 0-1.0 float 35 v_out->y = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f); 36 v_out->z = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f); 37 v_out->w = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
|
H A D | saturation.rs | 29 // get RGB, scale 0-255 uchar to 0-1.0 float 37 v_out->y = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f); 38 v_out->z = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f); 39 v_out->w = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
|
/frameworks/av/media/libstagefright/filters/ |
H A D | saturationARGB.rs | 29 // get RGB, scale 0-255 uchar to 0-1.0 float 37 v_out->y = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f); 38 v_out->z = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f); 39 v_out->w = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
|
/frameworks/rs/scriptc/ |
H A D | rs_value_types.rsh | 28 * Unsigned integer: uchar, uint8_t ushort, uint16_t uint, uint32_t ulong, uint64_t 202 * uchar: 8 bit unsigned integer 206 typedef uint8_t uchar; 309 * A vector of two uchars. These two uchar fields packed into a single 16 bit field 312 typedef uchar __attribute__((ext_vector_type(2))) uchar2; 317 * A vector of three uchars. These three uchar fields packed into a single 32 bit field 320 typedef uchar __attribute__((ext_vector_type(3))) uchar3; 325 * A vector of four uchars. These four uchar fields packed into a single 32 bit field 328 typedef uchar __attribute__((ext_vector_type(4))) uchar4;
|
/frameworks/rs/tests/typecheck/ |
H A D | kernels.rs | 31 uchar uc1; 32 uchar uc1i = 1; 119 void RS_KERNEL test_U8(uchar in) {
|