arduino-audio-tools
Loading...
Searching...
No Matches
ChannelBinDiff Class Reference

Provides combination of binning and subtracting channels. More...

#include <CodecOpusOgg.h>

Inheritance diagram for ChannelBinDiff:
BaseConverter BaseConverter

Classes

struct  ChannelBinDiffState
struct  ChannelBinDiffStateT

Public Member Functions

 ChannelBinDiff ()=default
 ChannelBinDiff ()=default
 ChannelBinDiff (int binSize, int channels, bool average, int bits_per_sample)
 ChannelBinDiff (int binSize, int channels, bool average, int bits_per_sample)
 ~ChannelBinDiff () override
 ~ChannelBinDiff () override
void clear ()
void clear ()
size_t convert (uint8_t *src, size_t size)
size_t convert (uint8_t *src, size_t size)
size_t convert (uint8_t *target, uint8_t *src, size_t size)
size_t convert (uint8_t *target, uint8_t *src, size_t size)
void reset ()
void reset ()
void setAverage (bool average)
void setAverage (bool average)
void setBinSize (int binSize)
void setBinSize (int binSize)
void setBits (int bits)
void setBits (int bits)
void setChannels (int channels)
void setChannels (int channels)

Protected Member Functions

bool isConfigValid ()
bool isConfigValid ()
void resetState ()
void resetState ()

Protected Attributes

bool average = true
int binSize = 4
int bits = 16
int channels = 2
ChannelBinDiffState * state = nullptr

Detailed Description

Provides combination of binning and subtracting channels.

Author
Urs Utzinger
Template Parameters
T

Constructor & Destructor Documentation

◆ ChannelBinDiff() [1/4]

ChannelBinDiff ( )
default

◆ ChannelBinDiff() [2/4]

ChannelBinDiff ( int binSize,
int channels,
bool average,
int bits_per_sample )
inline

◆ ~ChannelBinDiff() [1/2]

~ChannelBinDiff ( )
inlineoverride

◆ ChannelBinDiff() [3/4]

ChannelBinDiff ( )
default

◆ ChannelBinDiff() [4/4]

ChannelBinDiff ( int binSize,
int channels,
bool average,
int bits_per_sample )
inline

◆ ~ChannelBinDiff() [2/2]

~ChannelBinDiff ( )
inlineoverride

Member Function Documentation

◆ clear() [1/2]

void clear ( )
inline

◆ clear() [2/2]

void clear ( )
inline

◆ convert() [1/4]

size_t convert ( uint8_t * src,
size_t size )
inlinevirtual

Implements BaseConverter.

◆ convert() [2/4]

size_t convert ( uint8_t * src,
size_t size )
inlinevirtual

Implements BaseConverter.

◆ convert() [3/4]

size_t convert ( uint8_t * target,
uint8_t * src,
size_t size )
inline

◆ convert() [4/4]

size_t convert ( uint8_t * target,
uint8_t * src,
size_t size )
inline

◆ isConfigValid() [1/2]

bool isConfigValid ( )
inlineprotected

◆ isConfigValid() [2/2]

bool isConfigValid ( )
inlineprotected

◆ reset() [1/2]

void reset ( )
inline

◆ reset() [2/2]

void reset ( )
inline

◆ resetState() [1/2]

void resetState ( )
inlineprotected

◆ resetState() [2/2]

void resetState ( )
inlineprotected

◆ setAverage() [1/2]

void setAverage ( bool average)
inline

◆ setAverage() [2/2]

void setAverage ( bool average)
inline

◆ setBinSize() [1/2]

void setBinSize ( int binSize)
inline

◆ setBinSize() [2/2]

void setBinSize ( int binSize)
inline

◆ setBits() [1/2]

void setBits ( int bits)
inline

◆ setBits() [2/2]

void setBits ( int bits)
inline

◆ setChannels() [1/2]

void setChannels ( int channels)
inline

◆ setChannels() [2/2]

void setChannels ( int channels)
inline

Member Data Documentation

◆ average

bool average = true
protected

◆ binSize

int binSize = 4
protected

◆ bits

int bits = 16
protected

◆ channels

int channels = 2
protected

◆ state

ChannelBinDiffState * state = nullptr
protected

The documentation for this class was generated from the following files: