Home
last modified time | relevance | path

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

/external/webrtc/webrtc/common_audio/include/
Daudio_util.h23 typedef std::numeric_limits<int16_t> limits_int16; typedef
31 return v >= 1 ? limits_int16::max() in FloatToS16()
32 : static_cast<int16_t>(v * limits_int16::max() + 0.5f); in FloatToS16()
33 return v <= -1 ? limits_int16::min() in FloatToS16()
34 : static_cast<int16_t>(-v * limits_int16::min() - 0.5f); in FloatToS16()
38 static const float kMaxInt16Inverse = 1.f / limits_int16::max(); in S16ToFloat()
39 static const float kMinInt16Inverse = 1.f / limits_int16::min(); in S16ToFloat()
44 static const float kMaxRound = limits_int16::max() - 0.5f; in FloatS16ToS16()
45 static const float kMinRound = limits_int16::min() + 0.5f; in FloatS16ToS16()
47 return v >= kMaxRound ? limits_int16::max() in FloatS16ToS16()
[all …]