Encoder for ADPCM - Depends on https://github.com/pschatzmann/adpcm>
More...
#include <CodecADPCM.h>
Encoder for ADPCM - Depends on https://github.com/pschatzmann/adpcm
>
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ ADPCMEncoder() [1/2]
◆ ADPCMEncoder() [2/2]
| ADPCMEncoder |
( |
AVCodecID |
id, |
|
|
int |
blockSize = ADAPCM_DEFAULT_BLOCK_SIZE |
|
) |
| |
|
inline |
◆ ~ADPCMEncoder()
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in MP3EncoderShine, PureDataStream, PWMAudioOutput< PWMDriverT >, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
◆ begin() [1/2]
◆ begin() [2/2]
◆ blockSize()
Provides the block size (size of encoded frame) (only available after calling begin)
Implements AudioEncoderExt.
◆ encode()
| virtual bool encode |
( |
int16_t |
sample | ) |
|
|
inlineprotectedvirtual |
◆ end()
◆ frameDurationUs()
| virtual uint32_t frameDurationUs |
( |
| ) |
|
|
inlineoverridevirtual |
provides the frame duration in us (for rtsp)
Reimplemented from AudioEncoder.
◆ frameSize()
Provides the frame size (size of decoded frame) (only available after calling begin)
◆ mime()
Provides the mime type of the encoded result.
Implements AudioEncoder.
◆ operator bool()
◆ samplesPerFrame()
| virtual uint16_t samplesPerFrame |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setAudioInfo()
|
|
inlineoverridevirtualinherited |
Defines the sample rate, number of channels and bits per sample.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, CodecChain, DSFEncoder, FLACEncoder, MP3EncoderShine, OpusAudioEncoder, OpusMultiStreamAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, G729Encoder, BinaryContainerEncoder, OggContainerEncoder, OSCContainerEncoder, and MetaDataFilterEncoder.
◆ setBlockSize()
| void setBlockSize |
( |
int |
blockSize | ) |
|
|
inline |
(re) defines the block size
◆ setId()
| void setId |
( |
AVCodecID |
id | ) |
|
|
inline |
(re) defines the codec id
◆ setImplementation()
| bool setImplementation |
( |
| ) |
|
|
inlineprotected |
change the encoder implementation
◆ setOutput()
| void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlineoverridevirtual |
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
◆ write()
| size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
◆ writeBlocking()
| void writeBlocking |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotectedinherited |
◆ block_size
| int block_size = ADAPCM_DEFAULT_BLOCK_SIZE |
|
protected |
◆ codec_id
| AVCodecID codec_id = AV_CODEC_ID_ADPCM_MS |
|
protected |
◆ current_id
◆ current_sample
◆ info
◆ is_started
◆ p_encoder
| adpcm_ffmpeg::ADPCMEncoder* p_encoder = nullptr |
|
protected |
◆ p_print
◆ pcm_block
◆ total_samples
The documentation for this class was generated from the following file: