Home
last modified time | relevance | path

Searched refs:uchar (Results 1 – 25 of 129) sorted by relevance

123456

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicYuvToRGB.cpp66 static uchar4 rsYuvToRGBA_uchar4(uchar y, uchar u, uchar v) { in rsYuvToRGBA_uchar4()
95 return (uchar4){static_cast<uchar>(p.x), static_cast<uchar>(p.y), in rsYuvToRGBA_uchar4()
96 static_cast<uchar>(p.z), static_cast<uchar>(p.w)}; in rsYuvToRGBA_uchar4()
100 extern "C" void rsdIntrinsicYuv_K(void *dst, const uchar *Y, const uchar *uv, uint32_t xstart, size…
101 extern "C" void rsdIntrinsicYuvR_K(void *dst, const uchar *Y, const uchar *uv, uint32_t xstart, siz…
102 extern "C" void rsdIntrinsicYuv2_K(void *dst, const uchar *Y, const uchar *u, const uchar *v, size_…
112 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel()
124 const uchar *Y = pinY + (info->current.y * strideY); in kernel()
132 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel()
134 const uchar *u = pinU + ((info->current.y >> 1) * strideU); in kernel()
[all …]
DrsCpuIntrinsicLUT.cpp61 uchar *out = (uchar *)info->outPtr[0]; in kernel()
62 const uchar *in = (uchar *)info->inPtr[0]; in kernel()
66 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel()
67 const uchar *tg = &tr[256]; in kernel()
68 const uchar *tb = &tg[256]; in kernel()
69 const uchar *ta = &tb[256]; in kernel()
DrsCpuIntrinsicConvolve3x3.cpp109 uchar4 o = {(uchar)px.x, (uchar)px.y, (uchar)px.z, (uchar)px.w}; in ConvolveOneU4()
134 static void ConvolveOneU1(const RsExpandKernelDriverInfo *info, uint32_t x, uchar *out, in ConvolveOneU1()
135 const uchar *py0, const uchar *py1, const uchar *py2, in ConvolveOneU1()
195 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
242 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
287 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
292 const uchar *py0 = (const uchar *)(pin + stride * y2); in kernelU1()
293 const uchar *py1 = (const uchar *)(pin + stride * info->current.y); in kernelU1()
294 const uchar *py2 = (const uchar *)(pin + stride * y1); in kernelU1()
296 uchar *out = (uchar *)info->outPtr[0]; in kernelU1()
[all …]
DrsCpuIntrinsicHistogram.cpp174 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U4()
191 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U3()
207 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U2()
222 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L4()
240 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L3()
257 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L2()
273 uchar *in = (uchar *)info->inPtr[0]; in kernelP1L1()
288 uchar *in = (uchar *)info->inPtr[0]; in kernelP1U1()
DrsCpuIntrinsicBlur.cpp117 const uchar *ptrIn, int iStride, const float* gPtr, int iradius) { in OneVU4()
119 const uchar *pi = ptrIn + x*4; in OneVU4()
135 const uchar *ptrIn, int iStride, const float* gPtr, int iradius) { in OneVU1()
137 const uchar *pi = ptrIn + x; in OneVU1()
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, in OneVFU4()
180 const uchar *pi = ptrIn; in OneVFU4()
198 const uchar *ptrIn, int iStride, const float* gPtr, int ct, int x1, int x2) { in OneVFU1()
204 const uchar *pi = ptrIn; in OneVFU1()
233 const uchar *pi = ptrIn; in OneVFU1()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp175 static void OneU1(const RsExpandKernelDriverInfo *info, uint32_t x, uchar *out, in OneU1()
176 … const uchar *py0, const uchar *py1, const uchar *py2, const uchar *py3, const uchar *py4, in OneU1()
357 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
417 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
466 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
475 const uchar *py0 = (const uchar *)(pin + stride * y0); in kernelU1()
476 const uchar *py1 = (const uchar *)(pin + stride * y1); in kernelU1()
477 const uchar *py2 = (const uchar *)(pin + stride * y2); in kernelU1()
478 const uchar *py3 = (const uchar *)(pin + stride * y3); in kernelU1()
479 const uchar *py4 = (const uchar *)(pin + stride * y4); in kernelU1()
[all …]
DrsCpuIntrinsicResize.cpp163 static uchar OneBiCubic(const uchar *yp0, const uchar *yp1, const uchar *yp2, const uchar *yp3, in OneBiCubic()
184 return (uchar)p; in OneBiCubic()
218 uchar *dst,
222 uchar const *srcn,
223 uchar const *src0,
224 uchar const *src1,
225 uchar const *src2,
322 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
389 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
456 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
[all …]
DrsCpuIntrinsicInlines.h19 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/java/tests/Refocus/src/com/android/rs/test/
Dlayered_filter_fast_d1new.rs127 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index);
182 uchar __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);
249 uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, index);
250 uchar sharp_dilated_depth = rsGetElementAt_uchar(g_sharp_dilated_depth, index);
254 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index);
267 uchar __attribute__((kernel))
268 ComputeLayerMatteBehindFocalDepthPassInput(uchar in_sharp_dilated_depth, uint32_t x) {
269 uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, x);
273 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, x);
[all …]
Dlayered_filter_d1new_helper.rsh41 static inline void Alloc_ComputeLayerMatteHelper(uchar sharp_input_actual_depth, int index_sharp_me…
60 const uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, current_meta_index);
61 … const uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, current_meta_index);
76 …rsSetElementAt_uchar(g_sharp_matte, (uchar)(dilation_radius + 1 - (int)half_sqrt((float)min_dist))…
78 rsSetElementAt_uchar(g_sharp_dilated_depth, (uchar)depth, index_sharp_meta);
82 static inline uchar ComputeLayerMattePassInputHelper(uchar sharp_input_actual_depth, int index_shar…
101 const uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, current_meta_index);
102 … const uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, current_meta_index);
116 …rsSetElementAt_uchar(g_sharp_matte, (uchar)(dilation_radius + 1 - (int)half_sqrt((float)min_dist))…
118 return (uchar)depth;
[all …]
/frameworks/rs/driver/runtime/
Drs_convert.c33 #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/java/tests/LivePreview/src/com/android/rs/livepreview/
Dyuv.rs8 static uchar crossProcess_tableR[256]; variable
9 static uchar crossProcess_tableG[256]; variable
10 static uchar crossProcess_tableB[256]; constant
11 static uchar vignette_table[512]; variable
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/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dgreyscale.rs29 uchar RS_KERNEL toU8(uchar4 v_in) {
31 return (uchar)dot(f4.rgb, gMonoMult);
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
Dposterize.rs27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
Dgrain.rs20 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/
Dgreyscale.rs29 uchar RS_KERNEL toU8(uchar4 v_in) {
31 return (uchar)dot(f4.rgb, gMonoMult);
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
Dposterize.rs27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
Dgrain.rs20 uchar RS_KERNEL genRand() {
21 return (uchar)rsRand(0xff);
44 uchar RS_KERNEL blend9(uint32_t x, uint32_t y) {
72 return (uchar)p20;
Dartistic1.rs24 static uchar gLutR[256]; constant
25 static uchar gLutG[256]; variable
26 static uchar gLutB[256]; constant
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dgreyscale.rs29 uchar RS_KERNEL toU8(uchar4 v_in) {
31 return (uchar)dot(f4.rgb, gMonoMult);
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
Dgrain.rs20 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/av/media/libstagefright/filters/
Dsaturation.rs37 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);
DsaturationARGB.rs37 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/
Dnightvision.rs35 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);
Dsaturation.rs37 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);

123456