Searched defs:Clamp (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/tools/perf/metrics/
H A Dstatistics.py11 def Clamp(value, low=0.0, high=1.0): function
12 """Clamp a value between some low and high value."""
127 discrepancy = Clamp((discrepancy-inv_sample_count) / (1.0-inv_sample_count))
/external/chromium_org/native_client_sdk/src/examples/demo/flock/
H A Dvector2.h53 // Clamp a vector to a maximum magnitude. Works on the vector in-place.
55 void Clamp(double max_mag) { function in class:Vector2
/external/chromium_org/content/browser/accessibility/
H A Dbrowser_accessibility_manager_android.cc30 int Clamp(int val, int min, int max) { function in namespace:__anon7889
426 int nearest_x = Clamp(x, node_bounds.x(), node_bounds.right());
427 int nearest_y = Clamp(y, node_bounds.y(), node_bounds.bottom());
/external/chromium_org/content/browser/android/
H A Dedge_effect.cc63 T Clamp(T value, T low, T high) { function in namespace:content::__anon7904
113 layer->SetOpacity(Clamp(opacity, 0.f, 1.f));
175 edge_alpha_ = edge_alpha_start_ = Clamp(distance, kPullEdgeBegin, kMaxAlpha);
177 = Clamp(distance * kPullDistanceEdgeFactor, kHeldEdgeScaleY, 1.f);
191 Clamp(glow_scale_y_ + glow_change * kPullDistanceGlowFactor,
224 dpi_scale_ * Clamp(std::abs(velocity), kMinVelocity, kMaxVelocity);
241 edge_alpha_finish_ = Clamp(scaled_velocity * kVelocityEdgeFactor, 0.f, 1.f);
243 edge_scale_y_finish_ = Clamp(scaled_velocity * kVelocityEdgeFactor,
253 glow_alpha_finish_ = Clamp(glow_alpha_start_,
/external/chromium_org/media/base/simd/
H A Dconvert_rgb_to_yuv_sse2.cc53 static inline int Clamp(int value) { function in namespace:media
66 return Clamp(y + 16);
74 return Clamp(u + 128);
82 return Clamp(v + 128);
/external/jmonkeyengine/engine/src/core/com/jme3/texture/
H A DTexture.java193 Clamp, enum constant in enum:Texture.WrapMode
201 * Clamp if not supported.
207 * on Clamp if not supported.
223 * on Clamp if not supported.
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
H A DV8Binding.h274 Clamp enumerator in enum:WebCore::IntegerConversionConfiguration
/external/chromium_org/ui/native_theme/
H A Dnative_theme_base.cc963 color[1] = Clamp(hsv[1] + saturate_amount, 0.0, 1.0);
964 color[2] = Clamp(hsv[2] + brighten_amount, 0.0, 1.0);
999 SkScalar NativeThemeBase::Clamp(SkScalar value, function in class:ui::NativeThemeBase
1033 SkScalar min_diff = Clamp((hsv1[1] + hsv2[1]) * 1.2f, 0.28f, 0.5f);
1034 SkScalar diff = Clamp(fabs(hsv1[2] - hsv2[2]) / 2, min_diff, 0.5f);

Completed in 2291 milliseconds