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.h139 * @param maxval is the maximum integer scale factor expressed as an int64 (for headroom).
150 static inline int64_t toint(double x, int64_t maxval, double& err) { argument
151 double val = x * maxval;
157 static inline int64_t toint(double x, int64_t maxval) { argument
158 return static_cast<int64_t>(floor(x * maxval + 0.5));

Completed in 137 milliseconds