Home
last modified time | relevance | path

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

/frameworks/av/tools/resampler_tools/
Dfir.cpp32 static inline int64_t toint(double x, int64_t maxval) { in toint() argument
35 v = static_cast<int64_t>(floor(x * maxval + 0.5)); in toint()
36 if (v >= maxval) { in toint()
37 return maxval - 1; // error! in toint()
/frameworks/av/services/audioflinger/
DAudioResamplerFirGen.h150 static inline int64_t toint(double x, int64_t maxval, double& err) { in toint() argument
151 double val = x * maxval; in toint()
157 static inline int64_t toint(double x, int64_t maxval) { in toint() argument
158 return static_cast<int64_t>(floor(x * maxval + 0.5)); in toint()