MPD
0.20.18
|
Convert from an integer sample format to float. More...
#include <FloatConvert.hxx>
Public Types | |
typedef SampleTraits< SampleFormat::FLOAT > | DstTraits |
typedef Traits | SrcTraits |
typedef SrcTraits::value_type | SV |
typedef DstTraits::value_type | DV |
Static Public Member Functions | |
static gcc_const DV | Convert (SV src) noexcept |
Static Public Attributes | |
static constexpr DV | factor = 0.5 / (1 << (SrcTraits::BITS - 2)) |
Convert from an integer sample format to float.
Definition at line 49 of file FloatConvert.hxx.
typedef SampleTraits<SampleFormat::FLOAT> IntegerToFloatSampleConvert< F, Traits >::DstTraits |
Definition at line 50 of file FloatConvert.hxx.
typedef DstTraits::value_type IntegerToFloatSampleConvert< F, Traits >::DV |
Definition at line 54 of file FloatConvert.hxx.
typedef Traits IntegerToFloatSampleConvert< F, Traits >::SrcTraits |
Definition at line 51 of file FloatConvert.hxx.
typedef SrcTraits::value_type IntegerToFloatSampleConvert< F, Traits >::SV |
Definition at line 53 of file FloatConvert.hxx.
|
inlinestaticnoexcept |
Definition at line 59 of file FloatConvert.hxx.
|
static |
Definition at line 56 of file FloatConvert.hxx.