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.h152 static inline int64_t toint(double x, int64_t maxval, double& err) { in toint() argument
153 double val = x * maxval; in toint()
159 static inline int64_t toint(double x, int64_t maxval) { in toint() argument
160 return static_cast<int64_t>(floor(x * maxval + 0.5)); in toint()