Searched defs:ratio (Results 26 - 50 of 112) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/core/html/shadow/
H A DSliderThumbElement.cpp149 const Decimal ratio = Decimal::fromDouble(static_cast<double>(position) / trackSize); local
150 const Decimal fraction = isVertical || !isLeftToRightDirection ? Decimal(1) - ratio : ratio;
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DPeriodicWave.cpp106 float ratio = fundamentalFrequency > 0 ? fundamentalFrequency / m_lowestFundamentalFrequency : 0.5; local
107 float centsAboveLowestFrequency = log2f(ratio) * 1200;
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
H A DFETurbulence.cpp302 float ratio = 1; local
305 turbulenceFunctionResult += noise2D(channel, paintingData, stitchData, noiseVector) / ratio;
307 turbulenceFunctionResult += fabsf(noise2D(channel, paintingData, stitchData, noiseVector)) / ratio;
310 ratio *= 2;
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dthread_cache.cc480 double ratio = space / max<double>(1, per_thread_cache_size_); local
485 if (ratio < 1.0) {
486 h->max_size_ = static_cast<size_t>(h->max_size_ * ratio);
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dthread_cache.cc469 double ratio = space / max<double>(1, per_thread_cache_size_); local
474 if (ratio < 1.0) {
475 h->max_size_ = static_cast<size_t>(h->max_size_ * ratio);
/external/deqp/modules/glshared/
H A DglsShaderPerformanceCase.cpp77 float ratio = (float)numFrag / (float)numVert; local
79 if (de::abs(ratio - fragmentsPerVertices) < eps)
81 else if (ratio < fragmentsPerVertices)
110 m_testCtx.getLog() << TestLog::Message << "Requested fragment/vertex-ratio: " << de::floatToString(fragmentsPerVertices, 2) << "\n"
111 << "Computed fragment/vertex-ratio: " << de::floatToString(finalRatio, 2)
/external/oprofile/libpp/
H A Dprofile_container.cpp45 // ratio of samples which belongs to this filename.
222 double const ratio = op_ratio(counts[0], total_count[0]); local
223 filename_by_samples const f(*it, ratio);
/external/valgrind/main/drd/tests/
H A Domp_matinv.c295 double ratio; local
331 ratio = error / (eps * matrix_size);
335 error, eps, ratio);
337 if (isfinite(ratio) && ratio < 100)
H A Dmatinv.c319 double ratio; local
351 ratio = error / (eps * matrix_size);
355 error, eps, ratio);
357 if (isfinite(ratio) && ratio < 100)
/external/chromium_org/content/browser/loader/
H A Dasync_resource_handler.cc63 double ratio = static_cast<double>(bytes_read) / buffer_size; local
64 return static_cast<int>(ratio * 100.0 + 0.5); // Round to nearest integer.
/external/chromium_org/pdf/
H A Ddraw_utils.cc39 inline uint8 GradientChannel(uint8 start, uint8 end, double ratio) { argument
40 double new_channel = start - (static_cast<double>(start) - end) * ratio;
103 double ratio = static_cast<double>(i) / colors.size(); local
105 GradientChannel(GetRed(start_color), GetRed(end_color), ratio),
106 GradientChannel(GetGreen(start_color), GetGreen(end_color), ratio),
107 GradientChannel(GetBlue(start_color), GetBlue(end_color), ratio),
108 GradientChannel(GetAlpha(start_color), GetAlpha(end_color), ratio));
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
H A Dvideosource.cc168 // The aspect ratio in |constraint.value| has been converted to a string and
173 // ratio but small enough to avoid matching wrong aspect ratios.
174 double ratio = static_cast<double>(format_in.width) / format_in.height; local
175 return (value <= ratio + kRoundingTruncation);
178 double ratio = static_cast<double>(format_in.width) / format_in.height; local
181 return (value >= ratio - kRoundingTruncation);
/external/chromium_org/third_party/skia/src/pathops/
H A DSkPathOpsQuad.cpp300 static int valid_unit_divide(double numer, double denom, double* ratio) argument
313 *ratio = r;
/external/chromium_org/third_party/speex/libspeex/
H A Dsb_celp.c428 float ratio; local
449 ratio = 2*log((1.f+e_high)/(1.f+e_low));
452 if (ratio<-4)
453 ratio=-4;
454 if (ratio>2)
455 ratio=2;
456 /*if (ratio>-2)*/
461 st->relative_quality+=1.0*(ratio+2);
499 /*fprintf (stderr, "%f %f\n", ratio, low_qual);*/
1007 /* Calculate reponse ratio betwee
[all...]
/external/chromium_org/third_party/sqlite/src/src/
H A Dbackup.c437 int ratio = pgszDest/pgszSrc; local
438 nDestTruncate = (nSrcPage+ratio-1)/ratio;
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/
H A Dpitch_estimator.c133 double ratio, log_lag, gain_bias; local
189 ratio = log((double) (k + (PITCH_MIN_LAG/2-2))) - log_lag;
190 bias = 1.0 + gain_bias * exp(-5.0 * ratio * ratio);
222 ratio = ((double) (ind1 + 12)) / ((double) (ind2 + 12));
223 adj = 0.2 * ratio * (2.0 - ratio); /* adjustment factor; inverse parabola as a function of ratio */
243 ratio = ((double) (ind1 + 12)) / ((double) (ind2 + 12));
244 adj = 0.9 * ratio * (2.
[all...]
/external/chromium_org/third_party/zlib/contrib/minizip/
H A Dminiunz.c237 uLong ratio=0; local
247 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size);
278 ratio,
314 uLong ratio=0; local
/external/chromium_org/ui/views/controls/scrollbar/
H A Dbase_scroll_bar.cc414 // The height of the thumb is the ratio of the Viewport height to the
416 double ratio = static_cast<double>(viewport_size) / contents_size_; local
417 int thumb_size = static_cast<int>(ratio * GetTrackSize());
/external/e2fsprogs/lib/ext2fs/
H A Dgen_bitmap64.c762 int n, ratio; local
780 ratio = 1 << fs->cluster_ratio_bits;
784 i += ratio - n;
789 if (n >= ratio)
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/
H A DHybridNonLinearSolver.h108 Scalar ratio; member in class:Eigen::HybridNonLinearSolver
266 /* compute the ratio of the actual to the predicted reduction. */
267 ratio = 0.;
269 ratio = actred / prered;
272 if (ratio < Scalar(.1)) {
279 if (ratio >= Scalar(.5) || ncsuc > 1)
281 if (abs(ratio - 1.) <= Scalar(.1)) {
287 if (ratio >= Scalar(1e-4)) {
328 if (ratio >= Scalar(1e-4))
509 /* compute the ratio o
[all...]
H A DLevenbergMarquardt.h120 Scalar ratio; member in class:Eigen::LevenbergMarquardt
298 /* compute the ratio of the actual to the predicted */
300 ratio = 0.;
302 ratio = actred / prered;
305 if (ratio <= Scalar(.25)) {
315 } else if (!(par != 0. && ratio < Scalar(.75))) {
321 if (ratio >= Scalar(1e-4)) {
332 if (abs(actred) <= parameters.ftol && prered <= parameters.ftol && Scalar(.5) * ratio <= 1. && delta <= parameters.xtol * xnorm)
334 if (abs(actred) <= parameters.ftol && prered <= parameters.ftol && Scalar(.5) * ratio <= 1.)
342 if (abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scalar(.5) * ratio <
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dppp_defs.h124 /* the compression ratio is defined as in_count / bytes_out */
128 double ratio; /* not computed in kernel. */ member in struct:compstat
/external/oprofile/pp/
H A Dopreport.cpp228 double ratio = op_ratio(count, total_count); local
229 cout << format_percent(ratio * 100, percent_int_width,
/external/skia/src/pathops/
H A DSkPathOpsQuad.cpp300 static int valid_unit_divide(double numer, double denom, double* ratio) argument
313 *ratio = r;
/external/speex/libspeex/
H A Dsb_celp.c428 float ratio; local
449 ratio = 2*log((1.f+e_high)/(1.f+e_low));
452 if (ratio<-4)
453 ratio=-4;
454 if (ratio>2)
455 ratio=2;
456 /*if (ratio>-2)*/
461 st->relative_quality+=1.0*(ratio+2);
499 /*fprintf (stderr, "%f %f\n", ratio, low_qual);*/
1007 /* Calculate reponse ratio betwee
[all...]

Completed in 2850 milliseconds

12345