/frameworks/rs/driver/runtime/arch/ |
H A D | clamp.c | 25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 61 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \ 70 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \ 77 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \ 85 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
|
H A D | generic.c | 30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 49 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \ 58 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \ 65 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \ 73 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \ 91 extern float __attribute__((overloadable)) clamp(float amount, float low, float high); 92 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high); 93 extern float3 __attribute__((overloadable)) clamp(float [all...] |
/frameworks/base/core/java/android/view/ |
H A D | RoundScrollbarRenderer.java | 78 sweepAngle = clamp(sweepAngle, MIN_SCROLLBAR_ANGLE_SWIPE, MAX_SCROLLBAR_ANGLE_SWIPE); 82 startAngle = clamp(startAngle, -SCROLLBAR_ANGLE_RANGE / 2, 97 private static float clamp(float val, float min, float max) { method in class:RoundScrollbarRenderer
|
/frameworks/native/libs/math/include/math/ |
H A D | scalar.h | 30 static constexpr T clamp(T v, T min, T max) noexcept {
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { function 94 static inline float4 clamp(float4 amount, float low, float high) { function 103 static inline int2 clamp(int2 amount, int low, int high) { function 110 static inline float2 clamp(float2 amount, float low, float high) { function 117 static inline int clamp(int amount, int low, int high) { function 121 static inline float clamp(float amount, float low, float high) { function
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | threshold.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
H A D | resize.rs | 27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f); 28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f); 89 p = clamp(p + 0.5f, 0.f, 255.f);
|
H A D | bwfilter.rs | 51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
|
H A D | convolve3x3.rs | 42 sum = clamp(sum, 0.f, 255.f);
|
H A D | artistic1.rs | 54 pdist = clamp(pdist, 0.f, 1.f);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | threshold.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
H A D | threshold_half.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, (half) 0.f, (half) 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
H A D | bwfilter.rs | 51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
|
H A D | convolve3x3.rs | 42 sum = clamp(sum, 0.f, 255.f);
|
H A D | artistic1.rs | 54 pdist = clamp(pdist, 0.f, 1.f);
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | resize.rs | 27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f); 28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f); 89 p = clamp(p + 0.5f, 0.f, 255.f);
|
H A D | convolve3x3.rs | 42 sum = clamp(sum, 0.f, 255.f);
|
H A D | artistic1.rs | 54 pdist = clamp(pdist, 0.f, 1.f);
|
/frameworks/base/libs/hwui/ |
H A D | Glop.h | 124 GLenum clamp; member in struct:android::uirenderer::Glop::Fill::TextureData
|
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 82 static inline T clamp(T a, T minValue, T maxValue) { function in class:android::uirenderer::MathUtils
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | colorspace.cpp | 40 static inline uint32 clamp(int32 x) { function 48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v)); 49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v)); 50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u));
|
/frameworks/rs/driver/runtime/ |
H A D | rs_convert.c | 72 color = clamp(color, 0.f, 1.f);
|
H A D | rs_core.c | 23 return clamp(v, l, h); 26 return clamp(v, l, h); 29 return clamp(v, l, h); 32 return clamp(v, l, h); 35 return clamp(v, l, h); 38 return clamp(v, l, h); 41 return clamp(v, l, h);
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | focus_peak.rs | 68 uchar4 out = convert_uchar4(clamp(rgb, 0, 255));
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | fp_mad.rs | 118 data_f1[i] = clamp(data_f1[i], -1.f, 1.f); 144 data_f4[i] = clamp(data_f4[i], -1.f, 1.f);
|