Home
last modified time | relevance | path

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

123

/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 + (p->y * strideY); in kernel()
132 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel()
134 const uchar *u = pinU + ((p->y >> 1) * strideU); in kernel()
[all …]
DrsCpuIntrinsicLUT.cpp61 uchar *out = (uchar *)p->out; in kernel()
62 const uchar *in = (uchar *)p->in; 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()
DrsCpuIntrinsicHistogram.cpp168 uchar *in = (uchar *)p->in; in kernelP1U4()
185 uchar *in = (uchar *)p->in; in kernelP1U3()
201 uchar *in = (uchar *)p->in; in kernelP1U2()
216 uchar *in = (uchar *)p->in; in kernelP1L4()
234 uchar *in = (uchar *)p->in; in kernelP1L3()
251 uchar *in = (uchar *)p->in; in kernelP1L2()
267 uchar *in = (uchar *)p->in; in kernelP1L1()
282 uchar *in = (uchar *)p->in; in kernelP1U1()
DrsCpuIntrinsicConvolve3x3.cpp109 uchar4 o = {(uchar)px.x, (uchar)px.y, (uchar)px.z, (uchar)px.w}; in ConvolveOneU4()
134 static void ConvolveOneU1(const RsForEachStubParamStruct *p, 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 * p->y); in kernelU1()
294 const uchar *py2 = (const uchar *)(pin + stride * y1); in kernelU1()
296 uchar *out = (uchar *)p->out; in kernelU1()
[all …]
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 …]
DrsCpuIntrinsicResize.cpp154 static uchar OneBiCubic(const uchar *yp0, const uchar *yp1, const uchar *yp2, const uchar *yp3, in OneBiCubic()
175 return (uchar)p; in OneBiCubic()
187 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
227 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
267 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
281 const uchar *yp0 = pin + stride * ys0; in kernelU1()
282 const uchar *yp1 = pin + stride * ys1; in kernelU1()
283 const uchar *yp2 = pin + stride * ys2; in kernelU1()
284 const uchar *yp3 = pin + stride * ys3; in kernelU1()
286 uchar *out = ((uchar *)p->out) + xstart; in kernelU1()
DrsCpuIntrinsicConvolve5x5.cpp175 static void OneU1(const RsForEachStubParamStruct *p, 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 …]
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/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]; variable
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/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;
Dartistic1.rs24 static uchar gLutR[256]; variable
25 static uchar gLutG[256]; variable
26 static uchar gLutB[256]; variable
/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) {
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]; variable
25 static uchar gLutG[256]; variable
26 static uchar gLutB[256]; variable
/frameworks/rs/scriptc/
Drs_math.rsh84 _RS_RUNTIME uchar __attribute__((const, overloadable, always_inline)) rsClamp(uchar amount, uchar l…
247 _RS_RUNTIME uchar4 __attribute__((const, overloadable)) rsYuvToRGBA_uchar4(uchar y, uchar u, uchar
248 _RS_RUNTIME float4 __attribute__((const, overloadable)) rsYuvToRGBA_float4(uchar y, uchar u, uchar
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dgreyscale.fs28 uchar RS_KERNEL toU8(uchar4 v_in) {
30 return (uchar)dot(f4.rgb, gMonoMult);
33 uchar4 RS_KERNEL toU8_4(uchar v_in) {
Dgrain.fs19 uchar RS_KERNEL genRand() {
20 return (uchar)rsRand(0xff);
43 uchar RS_KERNEL blend9(uint32_t x, uint32_t y) {
71 return (uchar)p20;
Dblend.rs17 uchar alpha = 0x0;
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
Dlaunchtest.rs23 void __attribute__((kernel)) k_x(uchar in, uint32_t x) {
29 uchar __attribute__((kernel)) k_xy(uint32_t x, uint32_t y) {
/frameworks/rs/driver/runtime/
Drs_convert.c33 #define CVT_FUNC(type) CVT_FUNC_2(type, uchar) \
45 CVT_FUNC(uchar)
Drs_core.c21 extern uchar __attribute__((overloadable)) rsClamp(uchar v, uchar l, uchar h) { in rsClamp()
Drs_allocation.c247 ELEMENT_AT(uchar)
303 extern const uchar __attribute__((overloadable)) in SET_ELEMENT_AT_TYPE()
308 extern const uchar __attribute__((overloadable))
317 const uchar *pin = (const uchar *)alloc->mHal.drvState.lod[1].mallocPtr; in rsGetElementAtYuv_uchar_U()
322 extern const uchar __attribute__((overloadable))
331 const uchar *pin = (const uchar *)alloc->mHal.drvState.lod[2].mallocPtr; in rsGetElementAtYuv_uchar_V()
/frameworks/rs/tests/typecheck/
Dkernels.rs31 uchar uc1;
32 uchar uc1i = 1;
119 void RS_KERNEL test_U8(uchar in) {
/frameworks/rs/driver/runtime/arch/
Dgeneric.c100 _CLAMP(uchar);
311 extern uchar __attribute__((overloadable)) max(uchar v1, uchar v2) { in max()
512 extern uchar __attribute__((overloadable)) min(uchar v1, uchar v2) { in min()
628 extern uchar4 __attribute__((overloadable)) rsYuvToRGBA_uchar4(uchar y, uchar u, uchar v) { in rsYuvToRGBA_uchar4()
648 extern float4 __attribute__((overloadable)) rsYuvToRGBA_float4(uchar y, uchar u, uchar v) { in rsYuvToRGBA_float4()
768 c.x = (uchar)clamp((r * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
769 c.y = (uchar)clamp((g * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
770 c.z = (uchar)clamp((b * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
778 c.x = (uchar)clamp((r * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
779 c.y = (uchar)clamp((g * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
[all …]

123