/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
H A D | expand.cc | 381 int32_t ratio; local 383 ratio = (best_correlation[i] << 16) / best_distortion[i]; 385 ratio = 0; // No correlation set result to zero. 387 ratio = std::numeric_limits<int32_t>::max(); // Denominator is zero. 389 if (ratio > best_ratio) { 391 best_ratio = ratio; 480 // Confirm that amplitude ratio sqrt(energy1 / energy2) is within 0.5 - 2.0, 492 // Calculate sqrt ratio in Q13 (sqrt of en1/en2 in Q26).
|
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/ |
H A D | media_opt_util.cc | 261 // Default: ratio scales the FEC protection up for I frames 262 uint8_t ratio = 1; local 266 ratio = (int8_t) (packetFrameKey / packetFrameDelta); 268 ratio = VCM_MAX(boostRateKey, ratio); 270 return ratio; 480 // The boost factor may depend on several factors: ratio of packet
|
/external/chromium_org/ui/native_theme/ |
H A D | native_theme_win.cc | 120 double ratio = fmod(animated_seconds, interval) / interval; local 121 return static_cast<int>(animation_width * ratio) - object_width;
|
/external/deqp/modules/gles2/performance/ |
H A D | es2pShaderOptimizationTests.cpp | 284 const float ratio = unoptimizedRelevantResult / optimizedRelevantResult; local 285 const int handOptimizationGain = (int)deFloatRound(100.0f/ratio) - 100; 287 log << TestLog::Message << "Unoptimized / optimized " << relevantResultName << " performance ratio: " << ratio << TestLog::EndMessage; 294 m_testCtx.setTestResult(QP_TEST_RESULT_PASS, de::floatToString(ratio, 2).c_str());
|
/external/deqp/modules/gles3/performance/ |
H A D | es3pShaderOptimizationTests.cpp | 287 const float ratio = unoptimizedRelevantResult / optimizedRelevantResult; local 288 const int handOptimizationGain = (int)deFloatRound(100.0f/ratio) - 100; 290 log << TestLog::Message << "Unoptimized / optimized " << relevantResultName << " performance ratio: " << ratio << TestLog::EndMessage; 297 m_testCtx.setTestResult(QP_TEST_RESULT_PASS, de::floatToString(ratio, 2).c_str());
|
/external/libopus/celt/ |
H A D | celt_decoder.c | 612 opus_val16 ratio = celt_sqrt(frac_div32(SHR32(S1,1)+1,S2+1)); local 616 - MULT16_16_Q15(window[i], Q15ONE-ratio); 623 MULT16_32_Q15(ratio, buf[DECODE_BUFFER_SIZE-N+i]);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/ |
H A D | builtin-diff.c | 81 [COMPUTE_RATIO] = "ratio", 216 "(use 'delta','ratio' or 'wdiff')\n", str); 706 "delta,ratio,wdiff:w1,w2 (default delta)", 788 double ratio; local 803 /* No point for ratio number if we are dummy.. */ 808 ratio = pair->diff.period_ratio; 810 ratio = compute_ratio(he, pair); 812 if (ratio > 0.0) 813 scnprintf(buf, size, "%14.6F", ratio);
|
H A D | builtin-stat.c | 666 static const char *get_ratio_color(enum grc_type type, double ratio) argument 675 if (ratio > grc_table[type][0]) 677 else if (ratio > grc_table[type][1]) 679 else if (ratio > grc_table[type][2]) 689 double total, ratio = 0.0; local 695 ratio = avg / total * 100.0; 697 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); 700 color_fprintf(output, color, "%6.2f%%", ratio); 708 double total, ratio = 0.0; local 714 ratio 727 double total, ratio = 0.0; local 746 double total, ratio = 0.0; local 765 double total, ratio = 0.0; local 784 double total, ratio = 0.0; local 803 double total, ratio = 0.0; local 822 double total, ratio = 0.0; local 839 double total, ratio = 0.0; local [all...] |
H A D | builtin-trace.c | 1118 printed += fprintf(fp," [ task - pid ] [ events ] [ ratio ] [ runtime ]\n"); 1133 double ratio; local 1138 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; 1141 if (ratio > 50.0) 1143 else if (ratio > 25.0) 1145 else if (ratio > 5.0) 1150 printed += color_fprintf(fp, color, "%5.1f%%", ratio);
|
/external/opencv/cvaux/src/ |
H A D | cvlmeds.cpp | 1422 double swapd, ratio, bigest; local 1496 ratio = -A[i * N + row] / A[row * N + row]; 1497 B[i] += B[row] * ratio; 1502 A[i * N + j] += A[row * N + j] * ratio;
|
/external/oprofile/libpp/ |
H A D | format_output.cpp | 68 double ratio = op_ratio(dividend, divisor); local 70 return ::format_percent(ratio * 100, percent_int_width, 220 // ratio between 100 and the selected % to grow non fixed field use also
|
/external/pdfium/core/src/fxcodec/codec/ |
H A D | fx_codec_jpeg.cpp | 471 int ratio = (iratio_w > iratio_h) ? iratio_h : iratio_w;
local 472 if (ratio >= 8) {
474 } else if (ratio >= 4) {
476 } else if (ratio >= 2) {
|
/external/blktrace/btt/ |
H A D | output.c | 171 double ratio, q2c_n, d2c_n; local 182 ratio = 1.0; 184 ratio = q2c_n / d2c_n; 191 ratio, 203 ratio,
|
/external/chromium_org/cc/layers/ |
H A D | picture_layer_impl.cc | 37 // tiling's scale if the desired scale is within this ratio. 1100 float ratio = ideal_page_scale_ / raster_page_scale_; local 1102 ratio > kMaxScaleRatioDuringPinch) 1127 // If a tiling exists within the max snapping ratio, snap to its scale. 1132 float ratio = PositiveRatio(tiling_contents_scale, scale); local 1133 if (ratio < snapped_ratio) { 1135 snapped_ratio = ratio;
|
/external/chromium_org/chrome/browser/ui/views/tabs/ |
H A D | tab_drag_controller.cc | 692 double ratio = unselected / Tab::GetStandardSize().width(); local 693 threshold = static_cast<int>(ratio * kHorizontalMoveThreshold); 933 // ratio of mouse_offset_ to original width is maintained.
|
/external/chromium_org/content/browser/web_contents/ |
H A D | web_contents_view_aura.cc | 966 float ratio = fabs(delta_x) / GetViewBounds().width(); local 967 ratio = std::min(1.f, ratio); 969 ratio = 1.f - ratio; 971 kBrightnessMin + ratio * (kBrightnessMax - kBrightnessMin) : 972 kBrightnessMax - ratio * (kBrightnessMax - kBrightnessMin);
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/components/ |
H A D | FlameChart.js | 403 var ratio = window.devicePixelRatio; 404 this._canvas.width = this._offsetWidth * ratio; 405 this._canvas.height = this._offsetHeight * ratio; 783 var ratio = window.devicePixelRatio; variable 784 context.scale(ratio, ratio); 943 var ratio = window.devicePixelRatio; variable 944 context.scale(ratio, ratio);
|
/external/e2fsprogs/misc/ |
H A D | e4defrag.c | 62 #define CALC_SCORE(ratio) \ 63 ((ratio) > 10 ? (80 + 20 * (ratio) / 100) : (8 * (ratio))) 162 float ratio; /* the ratio of fragmentation */ member in struct:frag_statistic_ino 1097 float ratio = 0.0; local 1206 ratio = (float)(physical_ext_count - best_ext_count) * 100 / 1287 if (ratio >= frag_rank[i].ratio) { [all...] |
/external/blktrace/ |
H A D | blkparse.c | 1776 double ratio; local 1853 ratio = 0.0; 1855 ratio = 100.0 * ((double)pdi->seq_skips / 1858 pdi->skips, pdi->seq_skips, ratio);
|
/external/chromium_org/chrome/browser/ |
H A D | chrome_content_browser_client.cc | 563 float ratio = static_cast<float>(minWidth - kWidthForMinFSM) / local 565 return ratio * (kMaxFSM - kMinFSM) + kMinFSM;
|
/external/chromium_org/content/renderer/ |
H A D | render_widget.cc | 285 float ratio = std::max(1.0f, std::max(width_ratio, height_ratio)); local 286 scale_ = 1.f / ratio;
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
H A D | InspectorPageAgent.cpp | 142 float ratio = static_cast<float>(minWidth - kWidthForMinFSM) / (kWidthForMaxFSM - kWidthForMinFSM); local 143 return ratio * (kMaxFSM - kMinFSM) + kMinFSM;
|
/external/pdfium/core/src/fxge/win32/ |
H A D | fx_win32_gdipext.cpp | 313 int ratio = 255 * dest_count / src_count;
local
|
/external/chromium_org/v8/src/heap/ |
H A D | mark-compact.cc | 733 intptr_t ratio; local 737 ratio = (sizes.medium_size_ * 10 + sizes.large_size_ * 2) * 100 / area_size; 740 ratio = (sizes.small_size_ * 5 + sizes.medium_size_) * 100 / area_size; 755 (ratio > ratio_threshold) ? "[fragmented]" : ""); 762 if (ratio <= ratio_threshold) return 0; // Not fragmented. 764 return static_cast<int>(ratio - ratio_threshold);
|
/external/chromium_org/v8/src/ |
H A D | objects-inl.h | 1670 double ratio, 1675 if (ratio >= kPretenureRatio) { 1700 double ratio = local 1707 current_decision, ratio, maximum_size_scavenge); 1712 "AllocationSite(%p): (created, found, ratio) (%d, %d, %f) %s => %s\n", 1713 static_cast<void*>(this), create_count, found_count, ratio, 1646 DCHECK(count < MementoFoundCountBits::kMax); set_pretenure_data( Smi::FromInt(MementoFoundCountBits::update(value, count)), SKIP_WRITE_BARRIER); } inline bool AllocationSite::IncrementMementoFoundCount() { if (IsZombie()) return false; int value = memento_found_count(); set_memento_found_count(value + 1); return memento_found_count() == kPretenureMinimumCreated; } inline void AllocationSite::IncrementMementoCreateCount() { DCHECK(FLAG_allocation_site_pretenuring); int value = memento_create_count(); set_memento_create_count(value + 1); } inline bool AllocationSite::MakePretenureDecision( PretenureDecision current_decision, double ratio, bool maximum_size_scavenge) { if ((current_decision == kUndecided || current_decision == kMaybeTenure)) { if (ratio >= kPretenureRatio) argument
|