We first bin the channels then we calculate the difference between pairs of channels in a datastream. E.g. For binning, if we bin 4 samples in each channel we will have 4 times less samples per channel E.g. For subtracting if we have 4 channels we end up with 2 channels. The channels will be channel_1 - channel_2 channel_3 - channel_4 This is the same as combining binning and subtracting channels. This will not work if you provide single channel data!
More...
#include <BaseConverter.h>
template<typename T = int16_t>
class audio_tools::ChannelBinDiffT< T >
We first bin the channels then we calculate the difference between pairs of channels in a datastream. E.g. For binning, if we bin 4 samples in each channel we will have 4 times less samples per channel E.g. For subtracting if we have 4 channels we end up with 2 channels. The channels will be channel_1 - channel_2 channel_3 - channel_4 This is the same as combining binning and subtracting channels. This will not work if you provide single channel data!
- Author
- Urs Utzinger
- Template Parameters
-
◆ SumT
template<typename T = int16_t>
◆ ChannelBinDiffT() [1/2]
template<typename T = int16_t>
◆ ChannelBinDiffT() [2/2]
template<typename T = int16_t>
◆ ~ChannelBinDiffT()
template<typename T = int16_t>
◆ clear()
template<typename T = int16_t>
◆ convert() [1/2]
template<typename T = int16_t>
| size_t convert |
( |
uint8_t * |
src, |
|
|
size_t |
size |
|
) |
| |
|
inlinevirtual |
◆ convert() [2/2]
template<typename T = int16_t>
| size_t convert |
( |
uint8_t * |
target, |
|
|
uint8_t * |
src, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ isConfigValid()
template<typename T = int16_t>
◆ reset()
template<typename T = int16_t>
◆ resetState()
template<typename T = int16_t>
◆ resizeState()
template<typename T = int16_t>
◆ setAverage()
template<typename T = int16_t>
| void setAverage |
( |
bool |
average | ) |
|
|
inline |
◆ setBinSize()
template<typename T = int16_t>
| void setBinSize |
( |
int |
binSize | ) |
|
|
inline |
◆ setChannels()
template<typename T = int16_t>
| void setChannels |
( |
int |
channels | ) |
|
|
inline |
◆ average
template<typename T = int16_t>
◆ binSize
template<typename T = int16_t>
◆ channels
template<typename T = int16_t>
◆ partialBin
template<typename T = int16_t>
| SumT* partialBin = nullptr |
|
protected |
◆ partialBinSize
template<typename T = int16_t>
The documentation for this class was generated from the following file: