Searched refs:maxval (Results 1 - 2 of 2) sorted by relevance

/frameworks/av/tools/resampler_tools/
H A Dfir.cpp32 static inline int64_t toint(double x, int64_t maxval) { argument
35 v = static_cast<int64_t>(floor(x * maxval + 0.5));
36 if (v >= maxval) {
37 return maxval - 1; // error!
/frameworks/av/services/audioflinger/
H A DAudioResamplerFirGen.h141 * @param maxval is the maximum integer scale factor expressed as an int64 (for headroom).
152 static inline int64_t toint(double x, int64_t maxval, double& err) { argument
153 double val = x * maxval;
159 static inline int64_t toint(double x, int64_t maxval) { argument
160 return static_cast<int64_t>(floor(x * maxval + 0.5));

Completed in 2005 milliseconds