Searched refs:distance (Results 1 - 25 of 454) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/platform/audio/
H A DDistance.cpp52 double DistanceEffect::gain(double distance) argument
54 // don't go beyond maximum distance
55 distance = min(distance, m_maxDistance);
57 // if clamped, don't get closer than reference distance
59 distance = max(distance, m_refDistance);
63 return linearGain(distance);
65 return inverseGain(distance);
67 return exponentialGain(distance);
73 linearGain(double distance) argument
80 inverseGain(double distance) argument
85 exponentialGain(double distance) argument
[all...]
H A DDistance.h49 // Returns scalar gain for the given distance the current distance model is used
50 double gain(double distance);
70 double linearGain(double distance);
71 double inverseGain(double distance);
72 double exponentialGain(double distance);
/external/jmonkeyengine/engine/src/core/com/jme3/collision/
H A DCollisionResult.java52 private float distance; field in class:CollisionResult
55 public CollisionResult(Geometry geometry, Vector3f contactPoint, float distance, int triangleIndex) { argument
58 this.distance = distance;
62 public CollisionResult(Vector3f contactPoint, float distance) { argument
64 this.distance = distance;
83 this.distance = dist;
102 if (distance < other.distance)
[all...]
/external/libvpx/libvpx/vp9/encoder/
H A Dvp9_temporal_filter.h14 void vp9_temporal_filter_prepare(VP9_COMP *cpi, int distance);
/external/chromium-trace/trace-viewer/src/tracing/tracks/
H A Druler_track.css10 .ruler-track-with-distance-measurements {
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
H A DAreaUtils.java55 * @param distance The distance from camera to object.
59 public static float calcScreenArea(BoundingVolume bound, float distance, float screenWidth) { argument
61 return calcScreenArea((BoundingSphere) bound, distance, screenWidth);
63 return calcScreenArea((BoundingBox) bound, distance, screenWidth);
68 private static float calcScreenArea(BoundingSphere bound, float distance, float screenWidth) { argument
74 float radius = (bound.getRadius() * screenWidth) / (distance * 2);
78 private static float calcScreenArea(BoundingBox bound, float distance, float screenWidth) { argument
83 return ((radiusSquare * screenWidth * screenWidth) / (distance * distance *
[all...]
/external/chromium_org/native_client_sdk/src/examples/demo/flock/
H A Dgoose.cc19 // The minimum distance that a goose can be from this goose. If another goose
20 // comes within this distance of this goose, the flocking algorithm tries to
24 // The distance at which attractors have effect on a goose's direction.
27 // The goose will try to turn towards geese within this distance (computed
92 // Compute the distance from this goose to its neighbour.
95 double distance = goose_delta.Magnitude(); local
98 distance, goose_delta, &separation, separation_count);
101 distance, goose, &alignment, align_count);
103 distance, goose, &cohesion, cohesion_count);
125 double distance local
151 double distance = desired_direction.Magnitude(); local
170 AccumulateSeparation(double distance, const Vector2& goose_delta, Vector2* separation, int32_t separation_count) argument
184 AccumulateAlignment(double distance, const Goose& goose, Vector2* alignment, int32_t align_count) argument
195 AccumulateCohesion(double distance, const Goose& goose, Vector2* cohesion, int32_t cohesion_count) argument
[all...]
H A Dgoose.h74 // @param distance The distance from this goose to the neighbouring goose.
84 int32_t AccumulateSeparation(double distance,
93 // @param distance The distance from this goose to the neighbouring goose.
101 int32_t AccumulateAlignment(double distance,
110 // @param {!number} distance The distance from this goose to the neighbouring
120 int32_t AccumulateCohesion(double distance,
/external/chromium_org/ash/wm/workspace/
H A Dmagnetism_matcher_unittest.cc14 const int distance = MagnetismMatcher::kMagneticDistance; local
20 gfx::Rect(initial_bounds.x() - distance - 10,
21 initial_bounds.y() - distance - 10, 2, 3), &edge));
31 initial_bounds.y() + distance + 1 , 1, 1),
39 const int distance = MagnetismMatcher::kMagneticDistance; local
45 gfx::Rect(initial_bounds.x() - distance - 10,
46 initial_bounds.y() - distance - 10, 2, 3), &edge));
55 gfx::Rect(initial_bounds.x() + distance + 1,
69 const int distance = MagnetismMatcher::kMagneticDistance; local
75 gfx::Rect(initial_bounds.right() - distance *
98 const int distance = MagnetismMatcher::kMagneticDistance; local
121 const int distance = MagnetismMatcher::kMagneticDistance; local
146 const int distance = MagnetismMatcher::kMagneticDistance; local
[all...]
/external/chromium_org/third_party/skia/include/core/
H A DSkPathMeasure.h37 /** Pins distance to 0 <= distance <= getLength(), and then computes
42 bool SK_WARN_UNUSED_RESULT getPosTan(SkScalar distance, SkPoint* position,
51 /** Pins distance to 0 <= distance <= getLength(), and then computes
56 bool SK_WARN_UNUSED_RESULT getMatrix(SkScalar distance, SkMatrix* matrix,
59 /** Given a start and stop distance, return in dst the intervening segment(s).
89 SkScalar fDistance; // total distance up to this point
102 SkScalar compute_quad_segs(const SkPoint pts[3], SkScalar distance,
104 SkScalar compute_cubic_segs(const SkPoint pts[3], SkScalar distance,
[all...]
/external/chromium_org/tools/telemetry/telemetry/page/actions/
H A Dswipe.py38 distance = 100
48 if hasattr(self, 'distance'):
49 distance = self.distance
57 distance: %s })
62 distance))
70 distance: %s });"""
74 distance))
/external/openfst/src/script/
H A Dshortest-distance.cc19 #include <fst/script/shortest-distance.h>
25 void ShortestDistance(const FstClass &fst, vector<WeightClass> *distance, argument
27 ShortestDistanceArgs1 args(fst, distance, opts);
34 void ShortestDistance(const FstClass &ifst, vector<WeightClass> *distance, argument
36 ShortestDistanceArgs2 args(ifst, distance, reverse, delta);
/external/skia/include/core/
H A DSkPathMeasure.h37 /** Pins distance to 0 <= distance <= getLength(), and then computes
42 bool SK_WARN_UNUSED_RESULT getPosTan(SkScalar distance, SkPoint* position,
51 /** Pins distance to 0 <= distance <= getLength(), and then computes
56 bool SK_WARN_UNUSED_RESULT getMatrix(SkScalar distance, SkMatrix* matrix,
59 /** Given a start and stop distance, return in dst the intervening segment(s).
89 SkScalar fDistance; // total distance up to this point
102 SkScalar compute_quad_segs(const SkPoint pts[3], SkScalar distance,
104 SkScalar compute_cubic_segs(const SkPoint pts[3], SkScalar distance,
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkPathMeasure.cpp89 SkScalar distance, int mint, int maxt, int ptIndex) {
95 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex);
96 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex);
99 SkScalar prevD = distance;
100 distance += d;
101 if (distance > prevD) {
103 seg->fDistance = distance;
109 return distance;
88 compute_quad_segs(const SkPoint pts[3], SkScalar distance, int mint, int maxt, int ptIndex) argument
112 compute_cubic_segs(const SkPoint pts[4], SkScalar distance, int mint, int maxt, int ptIndex) argument
139 SkScalar distance = 0; local
[all...]
/external/skia/src/core/
H A DSkPathMeasure.cpp89 SkScalar distance, int mint, int maxt, int ptIndex) {
95 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex);
96 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex);
99 SkScalar prevD = distance;
100 distance += d;
101 if (distance > prevD) {
103 seg->fDistance = distance;
109 return distance;
88 compute_quad_segs(const SkPoint pts[3], SkScalar distance, int mint, int maxt, int ptIndex) argument
112 compute_cubic_segs(const SkPoint pts[4], SkScalar distance, int mint, int maxt, int ptIndex) argument
139 SkScalar distance = 0; local
[all...]
/external/openfst/src/include/fst/
H A Dshortest-distance.h1 // shortest-distance.h
19 // Functions and classes to find shortest distance in an FST.
63 // Computation state of the shortest-distance algorithm. Reusable
68 // may not be freed before this class. Vector 'distance' should not be
79 vector<Weight> *distance,
82 : fst_(fst), distance_(distance), state_queue_(opts.state_queue),
104 vector<Weight> rdistance_; // Relaxation distance.
113 // Compute the shortest distance. If 'source' is kNoStateId, use
223 // Shortest-distance algorithm: this version allows fine control
226 // This computes the shortest distance fro
77 ShortestDistanceState( const Fst<Arc> &fst, vector<Weight> *distance, const ShortestDistanceOptions<Arc, Queue, ArcFilter> &opts, bool retain) argument
244 ShortestDistance( const Fst<Arc> &fst, vector<typename Arc::Weight> *distance, const ShortestDistanceOptions<Arc, Queue, ArcFilter> &opts) argument
281 ShortestDistance(const Fst<Arc> &fst, vector<typename Arc::Weight> *distance, bool reverse = false, float delta = kDelta) argument
326 vector<Weight> distance; local
[all...]
/external/openfst/src/include/fst/script/
H A Dprune.h35 const vector<WeightClass> *distance; member in struct:fst::script::PruneOptions
42 distance(d),
50 // If the original opts.distance is not NULL, a new distance will be
61 vector<Weight> *distance = 0; local
63 if (opts.distance) {
64 distance = new vector<Weight>(opts.distance->size());
65 for (unsigned i = 0; i < opts.distance->size(); ++i) {
66 (*distance)[
[all...]
/external/chromium_org/content/common/input/
H A Dsynthetic_smooth_scroll_gesture_params.cc22 distance(other.distance),
H A Dsynthetic_smooth_scroll_gesture_params.h25 gfx::Vector2d distance; member in struct:content::SyntheticSmoothScrollGestureParams
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dshortest-path.h27 #include "fst/lib/shortest-distance.h"
39 bool has_distance; // distance vector already contains the
40 // shortest distance from the initial state
51 // 'ifst'. 'distance' returns the shortest distances from the source
63 vector<typename Arc::Weight> *distance,
85 distance->clear();
95 while (distance->size() < source) {
96 distance->push_back(Weight::Zero());
101 distance->push_back(Weight::One());
111 Weight sd = (*distance)[
61 SingleShortestPath(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, vector<typename Arc::Weight> *distance, ShortestPathOptions<Arc, Queue, ArcFilter> &opts) argument
173 ShortestPathCompare(const vector<Pair>& pairs, const vector<Weight>& distance, StateId sfinal, float d) argument
228 ShortestPath(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, vector<typename Arc::Weight> *distance, ShortestPathOptions<Arc, Queue, ArcFilter> &opts) argument
353 vector<typename Arc::Weight> distance; local
[all...]
/external/chromium_org/ui/gfx/
H A Drect_conversions.h26 // to an integer grid is withing |distance|.
28 const gfx::RectF& rect, float distance);
/external/lzma/Java/SevenZip/Compression/LZ/
H A DOutWindow.java56 public void CopyBlock(int distance, int len) throws IOException argument
58 int pos = _pos - distance - 1;
78 public byte GetByte(int distance) argument
80 int pos = _pos - distance - 1;
/external/javassist/src/main/javassist/bytecode/
H A DLineNumberAttribute.java131 int distance = 0;
133 distance = lineNumber(0) - line;
139 if ((d < 0 && d > distance)
140 || (d >= 0 && (d < distance || distance < 0))) {
141 distance = d;
148 res.line = line + distance;
/external/skia/tests/
H A DPathCoverageTest.cpp49 static inline uint32_t estimate_pointCount(int distance) { argument
51 int shift = 30 - SkCLZ(distance);
71 int distance = estimate_distance(points); local
72 return estimate_pointCount(distance);
76 int distance = estimate_distance(points); local
77 return compute_pointCount(SkIntToScalar(distance), tol);
81 SkScalar distance = compute_distance(points); local
82 return estimate_pointCount(SkScalarRound(distance));
86 SkScalar distance = compute_distance(points); local
87 return compute_pointCount(distance, to
[all...]
/external/chromium_org/third_party/skia/src/effects/
H A DSkDiscretePathEffect.cpp47 SkScalar distance = 0; local
51 distance += delta/2;
54 if (meas.getPosTan(distance, &p, &v)) {
59 distance += delta;
60 if (meas.getPosTan(distance, &p, &v)) {

Completed in 951 milliseconds

1234567891011>>