/frameworks/rs/toolkit/ |
D | Lut3d.cpp | 37 int4 mCubeDimension; 74 int4 dims = mCubeDimension - 1; in kernel() 77 const int4 coordMul = convert<int4>(m * (float4)0x8000); in kernel() 96 int4 baseCoord = convert<int4>(*in) * coordMul; in kernel() 97 int4 coord1 = baseCoord >> (int4)15; in kernel() 100 int4 weight2 = baseCoord & 0x7fff; in kernel() 101 int4 weight1 = (int4)0x8000 - weight2; in kernel() 119 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (int4)7; in kernel() 120 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (int4)7; in kernel() 121 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (int4)7; in kernel() [all …]
|
D | Utils.h | 69 typedef int int4 __attribute__((ext_vector_type(4))); typedef 92 inline int4 clamp(int4 amount, int low, int high) { in clamp() 93 int4 r; in clamp()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsic3DLUT.cpp | 66 int4 dims = { in kernel() 73 const int4 coordMul = convert_int4(m * (float4)0x8000); in kernel() 94 int4 baseCoord = convert_int4(*in) * coordMul; in kernel() 95 int4 coord1 = baseCoord >> (int4)15; in kernel() 98 int4 weight2 = baseCoord & 0x7fff; in kernel() 99 int4 weight1 = (int4)0x8000 - weight2; in kernel() 117 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (int4)7; in kernel() 118 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (int4)7; in kernel() 119 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (int4)7; in kernel() 120 uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (int4)7; in kernel() [all …]
|
D | rsCpuIntrinsicInlines.h | 43 typedef int int4 __attribute__((ext_vector_type(4))); typedef 85 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC() 86 int4 r; in CVT_FUNC()
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | colorcube.rscript | 22 static int4 gDims; 23 static int4 gCoordMul; 38 int4 baseCoord = convert_int4(in) * gCoordMul; 39 int4 coord1 = baseCoord >> (int4)16; 40 int4 coord2 = min(coord1 + 1, gDims - 1); 42 int4 weight2 = baseCoord & 0xffff; 43 int4 weight1 = (int4)0x10000 - weight2;
|
D | wbalance.rscript | 29 int4 hv = rsGetElementAt_int4(histogramValues, i); 56 int4 hv = rsGetElementAt_int4(histogramValues, i);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | colorcube.rscript | 22 static int4 gDims; 23 static int4 gCoordMul; 38 int4 baseCoord = convert_int4(in) * gCoordMul; 39 int4 coord1 = baseCoord >> (int4)16; 40 int4 coord2 = min(coord1 + 1, gDims - 1); 42 int4 weight2 = baseCoord & 0xffff; 43 int4 weight1 = (int4)0x10000 - weight2;
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | colorcube.rscript | 22 static int4 gDims; 23 static int4 gCoordMul; 38 int4 baseCoord = convert_int4(in) * gCoordMul; 39 int4 coord1 = baseCoord >> (int4)16; 40 int4 coord2 = min(coord1 + 1, gDims - 1); 42 int4 weight2 = baseCoord & 0xffff; 43 int4 weight1 = (int4)0x10000 - weight2;
|
D | wbalance.rscript | 29 int4 hv = rsGetElementAt_int4(histogramValues, i); 56 int4 hv = rsGetElementAt_int4(histogramValues, i);
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | find_region.rscript | 71 static int4 padRegionRect_ss(float4 rec) { 77 int4 out = {(int)(rec.x - 1), (int)(rec.y - 1), mWidth + (int)(rec.x - 1), 82 static int4 calcSearchRange_ss(int4 roiBounds, int imgWidth, int imgHeight, 87 return (int4){minr.x, minr.y, maxr.x, maxr.y}; 105 static int2 gfindMin_ss(rs_allocation fit, int4 regionInSearch) { 130 static int width(int4 rec) { return rec.z - rec.x; } 131 static int height(int4 rec) { return rec.w - rec.y; } 146 int4 roiBounds = padRegionRect_ss(bounds); 148 int4 searchRange = calcSearchRange_ss(roiBounds, imgWidth, imgHeight, 2); 150 int4 regionInSearch = roiBounds - searchRange.xyxy; [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | increment.rscript | 19 int4 RS_KERNEL increment(int4 in)
|
D | double.rscript | 19 int4 RS_KERNEL doubleKernel(int4 in)
|
D | int4.rscript | 21 int4 gi4 = {2, 2, 2, 2}; 25 int4 i4 = {u4.x, u4.y, u4.z, u4.w};
|
D | addup.rscript | 22 int4 RS_KERNEL add(uint x)
|
D | increment2.rscript | 21 void RS_KERNEL increment2(int4 in, int x)
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | increment.rscript | 21 int4 RS_KERNEL increment(int4 in)
|
D | double.rscript | 21 int4 RS_KERNEL doubleKernel(int4 in)
|
D | int4.rscript | 23 int4 gi4 = {2, 2, 2, 2}; 27 int4 i4 = {u4.x, u4.y, u4.z, u4.w};
|
D | increment2.rscript | 23 void RS_KERNEL increment2(int4 in, int x)
|
D | addup.rscript | 24 int4 RS_KERNEL add(uint x)
|
/frameworks/rs/script_api/include/ |
D | rs_convert.rsh | 95 convert_float4(int4 v); 158 convert_char4(int4 v); 221 convert_uchar4(int4 v); 284 convert_short4(int4 v); 347 convert_ushort4(int4 v); 364 extern int4 __attribute__((const, overloadable)) 373 extern int4 __attribute__((const, overloadable)) 382 extern int4 __attribute__((const, overloadable)) 391 extern int4 __attribute__((const, overloadable)) 400 extern int4 __attribute__((const, overloadable)) [all …]
|
/frameworks/rs/tests/cpp_api/typecheck/ |
D | kernels.rscript | 64 int4 i4; 65 int4 i4i = {1, 2, 3, 4};
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | layered_filter_d1new_helper.rsh | 42 const int4 image_size_i4, 83 const int4 image_size_i4, 125 uint32_t x, uint32_t y, const int4 image_size_i4, 180 uint32_t x, uint32_t y, const int4 image_size_i4, 214 uint32_t x, uint32_t y, const int4 image_size_i4,
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | math.rscript | 13 volatile int4 i4; 94 f4 = fnc(f4, (int4*) &i4); 101 f4 = fnc(f4, f4, (int4*) &i4); 216 volatile int4 prefix##_i_4 = 1; \
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | math.rs.bak | 13 volatile int4 i4; 60 volatile int4 prefix##_i_4 = 1; \ 208 f4 = fnc(f4, (int4*) &i4); 215 f4 = fnc(f4, f4, (int4*) &i4);
|