Home
last modified time | relevance | path

Searched refs:uchar4 (Results 1 – 25 of 203) sorted by relevance

123456789

/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dmandelbrot.rs25 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) {
43 return (uchar4){0, 0, 0, 0xff};
47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
57 uchar4 RS_KERNEL rootD(uint32_t x, uint32_t y) {
75 return (uchar4){0, 0, 0, 0xff};
79 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
81 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
84 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
Dgreyscale.rs22 uchar4 RS_KERNEL root(uchar4 v_in) {
29 uchar RS_KERNEL toU8(uchar4 v_in) {
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
35 return (uchar4)v_in;
Dwbalance.rs23 static uchar4 estimateWhite() { variable
79 uchar4 out;
94 uchar4 estimation = estimateWhite();
104 uchar4 RS_KERNEL whiteBalanceKernel(uchar4 in) {
109 uchar4 out;
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dmandelbrot.rs25 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) {
43 return (uchar4){0, 0, 0, 0xff};
47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
57 uchar4 RS_KERNEL rootD(uint32_t x, uint32_t y) {
75 return (uchar4){0, 0, 0, 0xff};
79 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
81 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
84 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
Dgreyscale.rs22 uchar4 RS_KERNEL root(uchar4 v_in) {
29 uchar RS_KERNEL toU8(uchar4 v_in) {
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
35 return (uchar4)v_in;
Dposterize.rs24 uchar4 color;
30 uchar4 hats = {r, g, b, 255};
34 uchar4 RS_KERNEL root(uchar4 v_in, uint32_t x, uint32_t y) {
35 uchar4 refpix = rsGetElementAt_uchar4(inputImage, x, y);
Dwbalance.rs23 static uchar4 estimateWhite() { constant
79 uchar4 out;
94 uchar4 estimation = estimateWhite();
104 uchar4 RS_KERNEL whiteBalanceKernel(uchar4 in) {
109 uchar4 out;
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dmandelbrot.rs25 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) {
43 return (uchar4){0, 0, 0, 0xff};
47 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
49 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
52 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
57 uchar4 RS_KERNEL rootD(uint32_t x, uint32_t y) {
75 return (uchar4){0, 0, 0, 0xff};
79 return (uchar4){0xff * (iter / mi3), 0, 0, 0xff};
81 return (uchar4){0xff - (0xff * ((iter - mi3) / mi3)),
84 return (uchar4){0, 0xff - (0xff * ((iter - (mi3 * 2)) / mi3)),
Dgreyscale.rs22 uchar4 RS_KERNEL root(uchar4 v_in) {
29 uchar RS_KERNEL toU8(uchar4 v_in) {
34 uchar4 RS_KERNEL toU8_4(uchar v_in) {
35 return (uchar4)v_in;
Dposterize.rs24 uchar4 color;
30 uchar4 hats = {r, g, b, 255};
34 uchar4 RS_KERNEL root(uchar4 v_in, uint32_t x, uint32_t y) {
35 uchar4 refpix = rsGetElementAt_uchar4(inputImage, x, y);
Dwbalance.rs23 static uchar4 estimateWhite() { constant
79 uchar4 out;
94 uchar4 estimation = estimateWhite();
104 uchar4 RS_KERNEL whiteBalanceKernel(uchar4 in) {
109 uchar4 out;
/frameworks/rs/tests/lldb/cpp/WaitAttach/
Dsimple.rs26 uchar4 __attribute__((kernel)) simple_kernel(uchar4 in)
30 uchar4 result = rsPackColorTo8888(temp);
35 uchar4 __attribute__((kernel)) other_kernel(uchar4 in)
37 uchar4 result = in.wzyx;
/frameworks/rs/tests/lldb/java/DebugWaitAttach/src/rs/
Dsimple.rs26 uchar4 __attribute__((kernel)) simple_kernel(uchar4 in)
30 uchar4 result = rsPackColorTo8888(temp);
35 uchar4 __attribute__((kernel)) other_kernel(uchar4 in)
37 uchar4 result = in.wzyx;
/frameworks/rs/tests/lldb/jni/DebugWaitAttach/jnidebugwaitattach/
Dsimple.rs26 uchar4 __attribute__((kernel)) simple_kernel(uchar4 in)
30 uchar4 result = rsPackColorTo8888(temp);
35 uchar4 __attribute__((kernel)) other_kernel(uchar4 in)
37 uchar4 result = in.wzyx;
/frameworks/compile/slang/tests/F_vector_cast/
Dvector_cast.rs20 uchar4 u;
21 u = (uchar4) c;
24 static uchar4 bar(uchar4 u) { variable
30 uchar4 u;
31 u = bar((uchar4) c);
/frameworks/rs/rsov/compiler/tests/multi_function/
Dblend_mf.rs19 static uchar4 twice(uchar4 in) { constant
32 uchar4 __attribute__((kernel)) setImageAlpha(uchar4 in) {
33 uchar4 out;
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic3DLUT.cpp59 uchar4 *out = (uchar4 *)info->outPtr[0]; in kernel()
60 uchar4 *in = (uchar4 *)info->inPtr[0]; in kernel()
103 const uchar4 *pt_00 = (const uchar4 *)&bp2[0]; in kernel()
104 const uchar4 *pt_10 = (const uchar4 *)&bp2[stride_y]; in kernel()
105 const uchar4 *pt_01 = (const uchar4 *)&bp2[stride_z]; in kernel()
106 const uchar4 *pt_11 = (const uchar4 *)&bp2[stride_y + stride_z]; in kernel()
128 uchar4 ret = convert_uchar4(v2); in kernel()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DerrorCalculator.rs17 uchar4 regionColor = rsGetElementAt_uchar4(ideal, x, y);
20 uchar4 testVal = rsGetElementAt_uchar4(ideal, x + j, y + i);
38 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, x, y);
39 uchar4 givenPixel = rsGetElementAt_uchar4(given, x, y);
50 void displayDifference(const uchar4 *v_in, uchar4 *v_out, uint32_t x, uint32_t y) { constant
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
Dyuv.rs39 static uchar4 crossProcess_i(uchar4 color) { constant
40 uchar4 ncolor = color;
69 static uchar4 vignette(uchar4 color, uint32_t x, uint32_t y) { constant
81 void root(const uchar4 *in, uchar4 *out, uint32_t x, uint32_t y) { constant
82 uchar4 p;
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dreflection3264.rs20 uchar4 ans; field
26 uchar4 expect_ans;
41 void root(uchar4 *output, const user * usr, uint x, uint y) {
52 uchar4 * e_in = (uchar4*)rsGetElementAt(usr->alloc, x, y);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dreflection3264.rs22 uchar4 ans; field
28 uchar4 expect_ans;
43 void root(uchar4 *output, const user * usr, uint x, uint y) {
54 uchar4 * e_in = (uchar4*)rsGetElementAt(usr->alloc, x, y);
/frameworks/rs/script_api/
Drs_convert.spec98 ret: uchar4
102 summary: Create a uchar4 RGBA from floats
104 Packs three or four floating point RGBA values into a uchar4.
119 ret: uchar4
129 ret: uchar4
136 ret: uchar4
147 arg: uchar4 c
148 summary: Create a float4 RGBA from uchar4
150 Unpacks a uchar4 color to float4. The resulting floats will be between 0.0 and 1.0 inclusive.
/frameworks/rs/tests/lldb/java/MultipleRSFiles/src/rs/
Dsecond.rs21 uchar4 __attribute__((kernel)) second_kernel(uchar4 in)
23 uchar4 result = in.wzyx;
/frameworks/rs/tests/lldb/jni/MultipleRSFiles/jnimultiplersfiles/
Dsecond.rs21 uchar4 __attribute__((kernel)) second_kernel(uchar4 in)
23 uchar4 result = in.wzyx;
/frameworks/rs/tests/lldb/cpp/MultipleRSFiles/
Dsecond.rs21 uchar4 __attribute__((kernel)) second_kernel(uchar4 in)
23 uchar4 result = in.wzyx;

123456789