Home
last modified time | relevance | path

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

123456

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicYuvToRGB.cpp60 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 …]
DrsCpuIntrinsicLUT.cpp55 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()
DrsCpuIntrinsicConvolve3x3.cpp102 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 …]
DrsCpuIntrinsicHistogram.cpp168 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()
DrsCpuIntrinsicBlur.cpp114 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 …]
DrsCpuIntrinsicConvolve5x5.cpp169 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 …]
DrsCpuIntrinsicResize.cpp171 static uchar OneBiCubic(const uchar *yp0, const uchar *yp1, const uchar *yp2, const uchar *yp3, in OneBiCubic()
192 return (uchar)p; in OneBiCubic()
226 uchar *dst,
230 uchar const *srcn,
231 uchar const *src0,
232 uchar const *src1,
233 uchar const *src2,
330 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
408 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
486 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/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/tests/java_api/LivePreview/src/com/android/rs/livepreview/
Dyuv.rscript8 static uchar crossProcess_tableR[256];
9 static uchar crossProcess_tableG[256];
10 static uchar crossProcess_tableB[256];
11 static uchar vignette_table[512];
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/av/media/libstagefright/filters/
Dsaturation.rscript28 // scale 0-255 uchar to 0-1.0 float
36 // convert to uchar, copied from rsPackColorTo8888
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);
DsaturationARGB.rscript29 // 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/cmds/stagefright/filters/
Dsaturation.rscript29 // 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);
Dnightvision.rscript28 // 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);
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayered_filter_fast_d1new.rscript126 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index);
181 void __attribute__((kernel)) MarkLayerMaskPassInput(uchar in_sharp_actual_depth, uint32_t x) {
192 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, x - g_image_size_i4.s0);
247 uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, index);
248 uchar sharp_dilated_depth = rsGetElementAt_uchar(g_sharp_dilated_depth, index);
252 uchar sharp_actual_depth = rsGetElementAt_uchar(g_sharp_actual_depth, index);
265 uchar __attribute__((kernel))
266 ComputeLayerMatteBehindFocalDepthPassInput(uchar in_sharp_dilated_depth, uint32_t x) {
267 uchar sharp_active = rsGetElementAt_uchar(g_sharp_active, x);
271 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 …]
Dpixel_format_f32.rsh31 uchar actual_depth;
35 uchar active;
40 uchar matte;
46 uchar dilated_depth;
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dgreyscale.rscript29 uchar RS_KERNEL toU8(uchar4 v_in) {
31 return (uchar)dot(f4.rgb, gMonoMult);
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
Dposterize.rscript27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
Dgrain.rscript20 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_jb/src/com/android/rs/image/
Dgreyscale.rscript29 uchar RS_KERNEL toU8(uchar4 v_in) {
31 return (uchar)dot(f4.rgb, gMonoMult);
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
Dposterize.rscript27 void setParams(float intensHigh, float intensLow, uchar r, uchar g, uchar b) {
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dgreyscale.rscript29 uchar RS_KERNEL toU8(uchar4 v_in) {
31 return (uchar)dot(f4.rgb, gMonoMult);
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
Dgrain.rscript20 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/CannyLive/src/com/android/example/cannylive/
Dcanny.rscript23 rs_allocation blurImage; // uchar
24 rs_allocation edgeImage; // uchar
27 uchar __attribute__((kernel)) black_uchar() { return 0; }
34 uchar charv = clamp(v * 10, 0, 255);
42 uchar charv = 255 - clamp(v * 10, 0, 255);
50 uchar charv = clamp(v * 10, 0, 255);
58 uchar charv = 255 - clamp(v * 10, 0, 255);
66 return in - (uchar)(v * 10);
96 uchar __attribute__((kernel)) getLum(uchar4 in) {
100 uchar __attribute__((kernel)) getyuv_y(uint32_t x, uint32_t y) {
[all …]

123456