Lines Matching refs:Fixed
41 template<class Format, class Fixed, Format Bias>
45 COMPILE_ASSERT((Bias == 0 && sizeof(Fixed) == sizeof(Format)) || in FromInterleavedInternal()
46 sizeof(Fixed) > sizeof(Format), invalid_deinterleave_types); in FromInterleavedInternal()
53 const Fixed v = static_cast<Fixed>(source[offset]) - Bias; in FromInterleavedInternal()
62 template<class Format, class Fixed, Format Bias>
64 int frames, void* dst, Fixed min, Fixed max) { in ToInterleavedInternal()
65 COMPILE_ASSERT((Bias == 0 && sizeof(Fixed) == sizeof(Format)) || in ToInterleavedInternal()
66 sizeof(Fixed) > sizeof(Format), invalid_interleave_types); in ToInterleavedInternal()
75 Fixed sample; in ToInterleavedInternal()
77 sample = v <= -1 ? min : static_cast<Fixed>(-v * min); in ToInterleavedInternal()
79 sample = v >= 1 ? max : static_cast<Fixed>(v * max); in ToInterleavedInternal()