eDSP  0.0.1
A cross-platform DSP library written in C++.
Namespaces | Functions
mu_law_compressor.hpp File Reference
#include <edsp/meta/expects.hpp>
#include <edsp/math/numeric.hpp>
#include <edsp/meta/iterator.hpp>
#include <algorithm>
#include <functional>

Go to the source code of this file.

Namespaces

 edsp
 
 edsp::quantizer
 

Functions

template<typename InputIt , typename OutputIt >
constexpr void edsp::quantizer::mu_law_compression (InputIt first, InputIt last, OutputIt d_first, meta::value_type_t< InputIt > absolute_max_value, meta::diff_type_t< InputIt > compression_factor)
 The \( \mu \) law converts data in 16-bit linear formats to a 8-bit µ-law format. More...
 
template<typename InputIt , typename OutputIt >
constexpr void edsp::quantizer::inverse_mu_law_compression (InputIt first, InputIt last, OutputIt d_first, meta::value_type_t< InputIt > absolute_max_value, meta::diff_type_t< InputIt > compression_factor)
 The \( \mu \) law converts data in 8-bit µ-law format to 16-bit linear formats. More...