HomeSort by relevance Sort by last modified time
    Searched refs:ratio (Results 226 - 250 of 576) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
GLCanvas.java 109 // from * (1 - ratio) + to * ratio
112 float ratio, int x, int y, int w, int h);
115 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
119 float ratio, RectF src, RectF target);
GLES11Canvas.java 451 int toColor, float ratio, int x, int y, int w, int h) {
452 drawMixed(from, toColor, ratio, x, y, w, h, mAlpha);
471 private void setMixedColor(int toColor, float ratio, float alpha) {
474 // alpha * ((1 - ratio) * from + ratio * to)
479 // So, we have combo = alpha * (1 - ratio)
480 // and scale = alpha * ratio / (1 - combo)
482 float combo = alpha * (1 - ratio);
483 float scale = alpha * ratio / (1 - combo);
513 public void drawMixed(BasicTexture from, int toColor, float ratio,
    [all...]
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
GLCanvas.java 107 // from * (1 - ratio) + to * ratio
110 float ratio, int x, int y, int w, int h);
113 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
117 float ratio, RectF src, RectF target);
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
PhotoSource.java 180 float ratio = (outsideRatio / insideRatio < mMaxCropRatio ? local
183 while (ratio < 0.5) {
185 ratio *= 2;
203 ratio = Math.max((float) longSide / (float) rawLongSide,
206 if (Math.abs(ratio - 1.0f) > 0.001) {
207 log(TAG, "still too big, scaling down by " + ratio);
208 options.outWidth = (int) (ratio * options.outWidth);
209 options.outHeight = (int) (ratio * options.outHeight);
  /packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
HoloSpiralView.java 130 float ratio = realPosition / (mWallpaperWidth * 4); local
131 mWallpaperRS.setOffset(ratio, 0, 0, 0);
  /external/chromium_org/cc/layers/
scrollbar_layer_impl_base.h 51 void SetVisibleToTotalLengthRatio(float ratio);
  /external/chromium_org/net/disk_cache/blockfile/
stats.cc 311 int64 ratio = GetCounter(hit) * 100; local
312 if (!ratio)
315 ratio /= (GetCounter(hit) + GetCounter(miss));
316 return static_cast<int>(ratio);
  /external/chromium_org/third_party/opus/src/celt/tests/
test_unit_mathops.c 85 double ratio; local
88 ratio = val/sqrt(i);
89 if (fabs(ratio - 1) > .0005 && fabs(val-sqrt(i)) > 2)
91 fprintf (stderr, "sqrt failed: sqrt(%d)="WORD" (ratio = %f)\n", i, val, ratio);
  /external/libopus/celt/tests/
test_unit_mathops.c 85 double ratio; local
88 ratio = val/sqrt(i);
89 if (fabs(ratio - 1) > .0005 && fabs(val-sqrt(i)) > 2)
91 fprintf (stderr, "sqrt failed: sqrt(%d)="WORD" (ratio = %f)\n", i, val, ratio);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMapView.java 132 double ratio = offsetPixels / ((double) maxPixel); local
134 return (int) (minDegrees + spanDegrees * ratio);
140 double ratio = offsetDegrees / ((double) spanDegrees); local
142 return (int) (minPixel + spanPixels * ratio);
  /frameworks/base/media/mca/filterfw/native/core/
geometry.h 86 bool ExpandToAspectRatio(float ratio);
  /frameworks/base/media/mca/filterpacks/native/base/
geometry.h 103 bool ExpandToAspectRatio(float ratio);
  /ndk/tests/device/issue39680-chrono-resolution/jni/
issue39680-chrono-resolution.cpp 3 #include <ratio>
  /external/chromium_org/pdf/
draw_utils.cc 39 inline uint8 GradientChannel(uint8 start, uint8 end, double ratio) {
40 double new_channel = start - (static_cast<double>(start) - end) * ratio;
91 double ratio = static_cast<double>(i) / colors.size(); local
93 GradientChannel(GetRed(start_color), GetRed(end_color), ratio),
94 GradientChannel(GetGreen(start_color), GetGreen(end_color), ratio),
95 GradientChannel(GetBlue(start_color), GetBlue(end_color), ratio),
96 GradientChannel(GetAlpha(start_color), GetAlpha(end_color), ratio));
  /external/chromium_org/third_party/WebKit/Source/platform/audio/
DynamicsCompressorKernel.cpp 112 // Full compression curve with constant ratio after knee.
120 // Constant ratio after knee.
131 // This slope is equal to the inverse of the compression "ratio".
132 // In other words, a compression ratio of 20 would be a slope of 1/20.
180 float DynamicsCompressorKernel::updateStaticCurveParameters(float dbThreshold, float dbKnee, float ratio)
182 if (dbThreshold != m_dbThreshold || dbKnee != m_dbKnee || ratio != m_ratio) {
189 m_ratio = ratio;
211 float ratio,
231 float k = updateStaticCurveParameters(dbThreshold, dbKnee, ratio);
392 // This is linear up to the threshold, then enters a "knee" portion followed by the "ratio" portion
    [all...]
DynamicsCompressor.cpp 148 float ratio = parameterValue(ParamRatio); member in namespace:WebCore
174 ratio,
  /external/valgrind/main/drd/tests/
matinv.c 319 double ratio; local
351 ratio = error / (eps * matrix_size);
355 error, eps, ratio);
357 if (isfinite(ratio) && ratio < 100)
omp_matinv.c 295 double ratio; local
331 ratio = error / (eps * matrix_size);
335 error, eps, ratio);
337 if (isfinite(ratio) && ratio < 100)
  /external/chromium_org/third_party/cld/encodings/compact_lang_det/
cldutil.cc 785 // ratio = max(top/mainstream, mainstream/top)
786 // ratio > 4.0 is 0% reliable, <= 2.0 is 100% reliable
794 double ratio; local
797 ratio = (1.0 * top_kb) / mean_score;
800 ratio = (1.0 * mean_score) / top_kb;
803 if (ratio <= ratio_cutoff - 2.0) {return 100;}
804 if (ratio > ratio_cutoff) {return 0;}
806 int iratio = static_cast<int>(100 * (ratio_cutoff - ratio) / 2.0);
810 // Calculate ratio of score per 1KB vs. expected score per 1KB
831 double ratio = our_score / expected_score local
    [all...]
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/resources/
sunspider-compare-results.js 308 var ratio = isFaster ? (mean1 / mean2) : (mean2 / mean1);
309 var fixedRatio = (ratio < 1.2) ? ratio.toFixed(3).toString() : ((ratio < 10) ? ratio.toFixed(2).toString() : ratio.toFixed(1).toString());
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/model/
ConfigResultsElement.java 305 float ratio = ((float) confirmed) / numbersLength; local
306 if (ratio < 0.8) {
388 double ratio = -(error/delta); local
389 if (ratio > 1) {
402 } else if (ratio > 0.5) {
414 } else if (ratio > 0.25) {
  /external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/
pitch_estimator.c 132 double ratio, log_lag, gain_bias; local
188 ratio = log((double) (k + (PITCH_MIN_LAG/2-2))) - log_lag;
189 bias = 1.0 + gain_bias * exp(-5.0 * ratio * ratio);
221 ratio = ((double) (ind1 + 12)) / ((double) (ind2 + 12));
222 adj = 0.2 * ratio * (2.0 - ratio); /* adjustment factor; inverse parabola as a function of ratio */
242 ratio = ((double) (ind1 + 12)) / ((double) (ind2 + 12));
243 adj = 0.9 * ratio * (2.0 - ratio); /* adjustment factor; inverse parabola as a function of ratio *
    [all...]
  /external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
pitch_estimator.c 132 double ratio, log_lag, gain_bias; local
188 ratio = log((double) (k + (PITCH_MIN_LAG/2-2))) - log_lag;
189 bias = 1.0 + gain_bias * exp(-5.0 * ratio * ratio);
221 ratio = ((double) (ind1 + 12)) / ((double) (ind2 + 12));
222 adj = 0.2 * ratio * (2.0 - ratio); /* adjustment factor; inverse parabola as a function of ratio */
242 ratio = ((double) (ind1 + 12)) / ((double) (ind2 + 12));
243 adj = 0.9 * ratio * (2.0 - ratio); /* adjustment factor; inverse parabola as a function of ratio *
    [all...]
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/timeline/
TimelineMemoryOverview.js 55 var ratio = window.devicePixelRatio;
63 var lowerOffset = 3 * ratio;
  /external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
normal.cc 92 int16_t ratio = WebRtcSpl_DivW32W16(bgn_energy, energy_scaled); local
93 mute_factor = WebRtcSpl_SqrtFloor(static_cast<int32_t>(ratio) << 14);

Completed in 2004 milliseconds

1 2 3 4 5 6 7 8 91011>>