HomeSort by relevance Sort by last modified time
    Searched defs:clamp (Results 1 - 25 of 188) sorted by null

1 2 3 4 5 6 7 8

  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
imgprocutil.h 27 inline int clamp(int min, int val, int max) { function
  /external/chromium-trace/catapult/telemetry/telemetry/internal/actions/
gesture_common.js 53 function clamp(min, value, max) { function
66 rect.top = clamp(0, rect.top, windowHeight);
67 rect.left = clamp(0, rect.left, windowWidth);
68 rect.height = clamp(0, rect.height, windowHeight - rect.top);
69 rect.width = clamp(0, rect.width, windowWidth - rect.left);
  /frameworks/support/core-utils/java/android/support/v4/math/
MathUtils.java 38 public static float clamp(float value, float min, float max) { method in class:MathUtils
59 public static double clamp(double value, double min, double max) { method in class:MathUtils
80 public static int clamp(int value, int min, int max) { method in class:MathUtils
  /packages/apps/Contacts/src/com/android/contacts/util/
MoreMath.java 27 public static int clamp(int input, int lowerBound, int upperBound) { method in class:MoreMath
37 public static float clamp(float input, float lowerBound, float upperBound) { method in class:MoreMath
47 public static double clamp(double input, double lowerBound, double upperBound) { method in class:MoreMath
  /packages/apps/Dialer/java/com/android/dialer/common/
MathUtil.java 54 public static float clamp(float value, float min, float max) { method in class:MathUtil
  /external/libvpx/libvpx/vp8/common/
postproc.h 20 int clamp; member in struct:postproc_state
  /external/libvpx/libvpx/vpx_dsp/
vpx_dsp_common.h 50 static INLINE int clamp(int value, int low, int high) { function
62 default: return (uint16_t)clamp(val, 0, 255);
63 case 10: return (uint16_t)clamp(val, 0, 1023);
64 case 12: return (uint16_t)clamp(val, 0, 4095);
  /packages/apps/Gallery2/jni/filters/
contrast.c 20 unsigned char clamp(int c) function
50 rgb[RED] = clamp((int)(m*rgb[RED]+c));
51 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c));
52 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c));
  /external/libvpx/libvpx/vp9/common/
vp9_postproc.h 31 int clamp; member in struct:postproc_state
  /external/replicaisland/src/com/replica/replicaisland/
Utils.java 39 public final static int clamp(int value, int min, int max) { method in class:Utils
52 result = clamp(value, max, min);
  /external/replicaisland/tools/
ExtractPoints.js 293 function clamp(input) { function
  /packages/apps/Camera2/src/com/android/camera/ui/motion/
LinearScale.java 42 * Clamp a given domain value to the given domain.
44 public float clamp(float domainValue) { method in class:LinearScale
  /external/libvpx/libvpx/test/
add_noise_test.cc 47 const int clamp = vpx_setup_noise(4.4, noise, kNoiseSize); local
54 GetParam()(s, noise, clamp, clamp, width, height, width));
73 GetParam()(s, noise, clamp, clamp, width, height, width));
77 EXPECT_GT(static_cast<int>(s[i]), clamp) << "i = " << i;
84 GetParam()(s, noise, clamp, clamp, width, height, width));
88 EXPECT_LT(static_cast<int>(s[i]), 255 - clamp) << "i = " << i;
99 const int clamp = vpx_setup_noise(4.4, noise, kNoiseSize) local
    [all...]
  /frameworks/base/core/java/android/util/
Range.java 173 public T clamp(T value) { method in class:Range
  /frameworks/base/libs/hwui/utils/
MathUtils.h 86 static inline T clamp(T a, T minValue, T maxValue) { function in class:android::uirenderer::MathUtils
  /cts/hostsidetests/theme/src/android/theme/cts/
ColorUtils.java 40 int Ar = clamp(a(src) + a(dst) * x);
41 int Rr = clamp(r(src) + r(dst) * x);
42 int Gr = clamp(g(src) + g(dst) * x);
43 int Br = clamp(b(src) + b(dst) * x);
47 private static int clamp(int value) { method in class:ColorUtils
  /device/google/contexthub/firmware/os/algos/common/math/
quat.c 19 static float clamp(float x) { return x < 0.0f ? 0.0f : x; } function
26 q->x = sqrtf(clamp(Hx - My - Az + 1.0f) * 0.25f);
27 q->y = sqrtf(clamp(-Hx + My - Az + 1.0f) * 0.25f);
28 q->z = sqrtf(clamp(-Hx - My + Az + 1.0f) * 0.25f);
29 q->w = sqrtf(clamp(Hx + My + Az + 1.0f) * 0.25f);
  /external/deqp/framework/delibs/decpp/
deDefs.hpp 44 //! Clamp x in range a <= x <= b.
45 template<typename T> inline T clamp (T x, T a, T b) { DE_ASSERT(a <= b); return x < a ? a : (x > b ? b : x); } function in namespace:de
  /external/syslinux/com32/lib/jpeg/
bgr24.c 56 static unsigned char clamp(int i) function
103 *p++ = clamp(b);
105 *p++ = clamp(g);
107 *p++ = clamp(r);
159 *p++ = clamp(b);
161 *p++ = clamp(g);
163 *p++ = clamp(r);
168 *p++ = clamp(b);
170 *p++ = clamp(g);
172 *p++ = clamp(r)
    [all...]
rgb24.c 56 static unsigned char clamp(int i) function
102 *p++ = clamp(r);
104 *p++ = clamp(g);
106 *p++ = clamp(b);
158 *p++ = clamp(r);
160 *p++ = clamp(g);
162 *p++ = clamp(b);
167 *p++ = clamp(r);
169 *p++ = clamp(g);
171 *p++ = clamp(b)
    [all...]
  /frameworks/base/core/java/android/view/
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/services/sensorservice/
quat.h 65 } clamp; local
71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f );
72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f );
73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f );
74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f );
  /packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/
PointMeteringParameters.java 114 // Clamp meteringRegion to cropRegion.
115 meteringRegion.left = clamp(meteringRegion.left, cropRegion.left,
117 meteringRegion.top = clamp(meteringRegion.top, cropRegion.top, cropRegion.bottom);
118 meteringRegion.right = clamp(meteringRegion.right, cropRegion.left,
120 meteringRegion.bottom = clamp(meteringRegion.bottom, cropRegion.top,
148 private int clamp(int value, int min, int max) { method in class:PointMeteringParameters
  /prebuilts/go/darwin-x86/src/image/draw/
draw.go 551 // clamp clamps i to the interval [0, 0xffff].
552 func clamp(i int32) int32 { func
616 er = clamp(er + quantErrorCurr[x+1][0]/16)
617 eg = clamp(eg + quantErrorCurr[x+1][1]/16)
618 eb = clamp(eb + quantErrorCurr[x+1][2]/16)
619 ea = clamp(ea + quantErrorCurr[x+1][3]/16)
  /prebuilts/go/linux-x86/src/image/draw/
draw.go 551 // clamp clamps i to the interval [0, 0xffff].
552 func clamp(i int32) int32 { func
616 er = clamp(er + quantErrorCurr[x+1][0]/16)
617 eg = clamp(eg + quantErrorCurr[x+1][1]/16)
618 eb = clamp(eb + quantErrorCurr[x+1][2]/16)
619 ea = clamp(ea + quantErrorCurr[x+1][3]/16)

Completed in 416 milliseconds

1 2 3 4 5 6 7 8