Searched refs:clamp (Results 26 - 50 of 125) sorted by relevance

12345

/frameworks/rs/driver/runtime/arch/
H A Dclamp.c25 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 Dgeneric.c30 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 DRoundScrollbarRenderer.java78 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 Dscalar.h30 static constexpr T clamp(T v, T min, T max) noexcept {
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h85 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 Dthreshold.rs88 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 Dresize.rs27 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 Dbwfilter.rs51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
H A Dconvolve3x3.rs42 sum = clamp(sum, 0.f, 255.f);
H A Dartistic1.rs54 pdist = clamp(pdist, 0.f, 1.f);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A Dthreshold.rs88 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 Dthreshold_half.rs88 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 Dbwfilter.rs51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
H A Dconvolve3x3.rs42 sum = clamp(sum, 0.f, 255.f);
H A Dartistic1.rs54 pdist = clamp(pdist, 0.f, 1.f);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A Dresize.rs27 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 Dconvolve3x3.rs42 sum = clamp(sum, 0.f, 255.f);
H A Dartistic1.rs54 pdist = clamp(pdist, 0.f, 1.f);
/frameworks/base/libs/hwui/
H A DGlop.h124 GLenum clamp; member in struct:android::uirenderer::Glop::Fill::TextureData
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h82 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 Dcolorspace.cpp40 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 Drs_convert.c72 color = clamp(color, 0.f, 1.f);
H A Drs_core.c23 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 Dfocus_peak.rs68 uchar4 out = convert_uchar4(clamp(rgb, 0, 255));
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Dfp_mad.rs118 data_f1[i] = clamp(data_f1[i], -1.f, 1.f);
144 data_f4[i] = clamp(data_f4[i], -1.f, 1.f);

Completed in 928 milliseconds

12345