/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicYuvToRGB.cpp | 60 static uchar4 rsYuvToRGBA_uchar4(uchar y, uchar u, uchar v) { in rsYuvToRGBA_uchar4() 89 return (uchar4){static_cast<uchar>(p.x), static_cast<uchar>(p.y), in rsYuvToRGBA_uchar4() 90 static_cast<uchar>(p.z), static_cast<uchar>(p.w)}; in rsYuvToRGBA_uchar4() 94 extern "C" void rsdIntrinsicYuv_K(void *dst, const uchar *Y, const uchar *uv, uint32_t xstart, size… 95 extern "C" void rsdIntrinsicYuvR_K(void *dst, const uchar *Y, const uchar *uv, uint32_t xstart, siz… 96 extern "C" void rsdIntrinsicYuv2_K(void *dst, const uchar *Y, const uchar *u, const uchar *v, size_… 106 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel() 118 const uchar *Y = pinY + (info->current.y * strideY); in kernel() 126 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel() 128 const uchar *u = pinU + ((info->current.y >> 1) * strideU); in kernel() [all …]
|
D | rsCpuIntrinsicLUT.cpp | 55 uchar *out = (uchar *)info->outPtr[0]; in kernel() 56 const uchar *in = (uchar *)info->inPtr[0]; in kernel() 60 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel() 61 const uchar *tg = &tr[256]; in kernel() 62 const uchar *tb = &tg[256]; in kernel() 63 const uchar *ta = &tb[256]; in kernel()
|
D | rsCpuIntrinsicConvolve3x3.cpp | 102 uchar4 o = {(uchar)px.x, (uchar)px.y, (uchar)px.z, (uchar)px.w}; in ConvolveOneU4() 127 static void ConvolveOneU1(const RsExpandKernelDriverInfo *info, uint32_t x, uchar *out, in ConvolveOneU1() 128 const uchar *py0, const uchar *py1, const uchar *py2, in ConvolveOneU1() 188 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 235 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 280 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 285 const uchar *py0 = (const uchar *)(pin + stride * y2); in kernelU1() 286 const uchar *py1 = (const uchar *)(pin + stride * info->current.y); in kernelU1() 287 const uchar *py2 = (const uchar *)(pin + stride * y1); in kernelU1() 289 uchar *out = (uchar *)info->outPtr[0]; in kernelU1() [all …]
|
D | rsCpuIntrinsicHistogram.cpp | 168 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U4() 185 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U3() 201 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U2() 216 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L4() 234 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L3() 251 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L2() 267 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L1() 282 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U1()
|
D | rsCpuIntrinsicBlur.cpp | 114 const uchar *ptrIn, int iStride, const float* gPtr, int iradius) { in OneVU4() 116 const uchar *pi = ptrIn + x*4; in OneVU4() 132 const uchar *ptrIn, int iStride, const float* gPtr, int iradius) { in OneVU1() 134 const uchar *pi = ptrIn + x; in OneVU1() 152 extern "C" void rsdIntrinsicBlurU1_K(uchar *out, uchar const *in, size_t w, size_t h, 166 const uchar *ptrIn, int iStride, const float* gPtr, int ct, in OneVFU4() 182 const uchar *pi = ptrIn; in OneVFU4() 200 const uchar *ptrIn, int iStride, const float* gPtr, int ct, int x1, int x2) { in OneVFU1() 206 const uchar *pi = ptrIn; in OneVFU1() 235 const uchar *pi = ptrIn; in OneVFU1() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 169 static void OneU1(const RsExpandKernelDriverInfo *info, uint32_t x, uchar *out, in OneU1() 170 … const uchar *py0, const uchar *py1, const uchar *py2, const uchar *py3, const uchar *py4, in OneU1() 351 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 411 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 460 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 469 const uchar *py0 = (const uchar *)(pin + stride * y0); in kernelU1() 470 const uchar *py1 = (const uchar *)(pin + stride * y1); in kernelU1() 471 const uchar *py2 = (const uchar *)(pin + stride * y2); in kernelU1() 472 const uchar *py3 = (const uchar *)(pin + stride * y3); in kernelU1() 473 const uchar *py4 = (const uchar *)(pin + stride * y4); in kernelU1() [all …]
|
D | rsCpuIntrinsicResize.cpp | 156 static uchar OneBiCubic(const uchar *yp0, const uchar *yp1, const uchar *yp2, const uchar *yp3, in OneBiCubic() 177 return (uchar)p; in OneBiCubic() 211 uchar *dst, 215 uchar const *srcn, 216 uchar const *src0, 217 uchar const *src1, 218 uchar const *src2, 315 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 382 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 449 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() [all …]
|
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) in CVT_FUNC() argument
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | layered_filter_fast_d1new.rs | 127 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index); 182 void __attribute__((kernel)) MarkLayerMaskPassInput(uchar in_sharp_actual_depth, uint32_t x) { 193 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, x - g_image_size_i4.s0); 248 uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, index); 249 uchar sharp_dilated_depth = rsGetElementAt_uchar(g_sharp_dilated_depth, index); 253 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index); 266 uchar __attribute__((kernel)) 267 ComputeLayerMatteBehindFocalDepthPassInput(uchar in_sharp_dilated_depth, uint32_t x) { 268 uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, x); 272 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, x); [all …]
|
/frameworks/rs/driver/runtime/ |
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) { in rsYuvToRGBA_float4()
|
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
D | yuv.rs | 8 static uchar crossProcess_tableR[256]; variable 9 static uchar crossProcess_tableG[256]; constant 10 static uchar crossProcess_tableB[256]; constant 11 static uchar vignette_table[512]; constant 98 crossProcess_tableR[i] = (uchar)(res.r * 255.f); 99 crossProcess_tableG[i] = (uchar)(res.g * 255.f); 100 crossProcess_tableB[i] = (uchar)(res.b * 255.f); 111 vignette_table[i] = (uchar)(lumen * 255.f + 0.5f);
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
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) {
|
D | posterize.rs | 27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
|
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/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
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) {
|
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;
|
D | artistic1.rs | 24 static uchar gLutR[256]; variable 25 static uchar gLutG[256]; variable 26 static uchar gLutB[256]; variable
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
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) {
|
D | posterize.rs | 27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
|
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;
|
D | artistic1.rs | 24 static uchar gLutR[256]; variable 25 static uchar gLutG[256]; constant 26 static uchar gLutB[256]; constant
|
/frameworks/av/media/libstagefright/filters/ |
D | saturation.rs | 37 v_out->x = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f); 38 v_out->y = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f); 39 v_out->z = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
|
D | saturationARGB.rs | 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/cmds/stagefright/filters/ |
D | nightvision.rs | 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);
|
D | saturation.rs | 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);
|