64 kbit/s g711 ULOW Encoder based on https://github.com/pschatzmann/codec-g7xx
More...
#include <CodecG7xx.h>
64 kbit/s g711 ULOW Encoder based on https://github.com/pschatzmann/codec-g7xx
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ G711_ULAWEncoder()
◆ audioInfo() [1/2]
|
|
inlineoverridevirtualinherited |
◆ audioInfo() [2/2]
|
|
inlineoverridevirtualinherited |
◆ audioInfoOut() [1/2]
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in ChannelFormatConverterStream, ChannelFormatConverterStreamT< T >, FormatConverterStream, MP3EncoderShine, NumberFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, Pipeline, PureDataStream, PWMAudioOutput< PWMDriverT >, ResampleStream, ResampleStreamT< TInterpolator >, and SupportedRatesStream.
◆ audioInfoOut() [2/2]
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in ChannelFormatConverterStream, ChannelFormatConverterStreamT< T >, FormatConverterStream, MP3EncoderShine, NumberFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, Pipeline, PureDataStream, PWMAudioOutput< PWMDriverT >, ResampleStream, ResampleStreamT< TInterpolator >, and SupportedRatesStream.
◆ begin() [1/2]
◆ begin() [2/2]
|
|
inlineoverridevirtualinherited |
◆ end()
|
|
inlineoverridevirtualinherited |
◆ frameDurationUs() [1/2]
| virtual uint32_t frameDurationUs |
( |
| ) |
|
|
inlinevirtualinherited |
◆ frameDurationUs() [2/2]
| virtual uint32_t frameDurationUs |
( |
| ) |
|
|
inlinevirtualinherited |
◆ frameSize() [1/2]
| virtual int frameSize |
( |
| ) |
|
|
inlinevirtualinherited |
Optional rtsp function: provide the encoded size (in bytes) of one frame, once known (e.g. after the encoder has seen real data). Lets an RTSPFormat size its RTP fragments to match one frame instead of a fixed guess, so throughput actually tracks frameDurationUs() - a fragment size covering several frames' worth of bytes sent at one-frame timing overruns real-time bandwidth and, over UDP (no flow control), causes packet loss. Returns 0 if not yet known/not applicable (fixed-frame-size codecs have no need to override this).
Reimplemented in ADPCMEncoder, AMRNBEncoder, AMRWBEncoder, EncoderALAC, and MP3ParserEncoder.
◆ frameSize() [2/2]
| virtual int frameSize |
( |
| ) |
|
|
inlinevirtualinherited |
Optional rtsp function: provide the encoded size (in bytes) of one frame, once known (e.g. after the encoder has seen real data). Lets an RTSPFormat size its RTP fragments to match one frame instead of a fixed guess, so throughput actually tracks frameDurationUs() - a fragment size covering several frames' worth of bytes sent at one-frame timing overruns real-time bandwidth and, over UDP (no flow control), causes packet loss. Returns 0 if not yet known/not applicable (fixed-frame-size codecs have no need to override this).
Reimplemented in ADPCMEncoder, AMRNBEncoder, AMRWBEncoder, EncoderALAC, and MP3ParserEncoder.
◆ mime()
|
|
inlineoverridevirtualinherited |
Provides the mime type of the encoded result.
Implements AudioEncoder.
◆ operator bool()
◆ samplesPerFrame() [1/2]
| virtual uint16_t samplesPerFrame |
( |
| ) |
|
|
inlinevirtualinherited |
◆ samplesPerFrame() [2/2]
| virtual uint16_t samplesPerFrame |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setAudioInfo() [1/2]
|
|
inlineoverridevirtualinherited |
◆ setAudioInfo() [2/2]
◆ setOutput()
| void setOutput |
( |
Print & | out_stream | ) |
|
|
inlineoverridevirtualinherited |
Default output assignment (encoders may override to store Print reference).
Reimplemented from AudioEncoder.
◆ write()
| size_t write |
( |
const uint8_t * | data, |
|
|
size_t | len ) |
|
inlineoverridevirtualinherited |
◆ writeBlocking() [1/2]
| void writeBlocking |
( |
Print * | out, |
|
|
uint8_t * | data, |
|
|
size_t | len ) |
|
inlineprotectedinherited |
◆ writeBlocking() [2/2]
| void writeBlocking |
( |
Print * | out, |
|
|
uint8_t * | data, |
|
|
size_t | len ) |
|
inlineprotectedinherited |
◆ code
◆ enc
| uint8_t(* enc) (int) =nullptr |
|
protectedinherited |
◆ enc_bits
◆ enc_routine
| int(* enc_routine) (int sample, int in_coding, struct g72x_state *state_ptr) |
|
protectedinherited |
◆ info
◆ is_active
◆ out_bits
◆ out_buffer
| unsigned int out_buffer = 0 |
|
protectedinherited |
◆ p_mime
| const char* p_mime = nullptr |
|
protectedinherited |
◆ p_print
◆ resid
◆ sample_char
| unsigned char sample_char |
|
protectedinherited |
◆ sample_int16
◆ state
The documentation for this class was generated from the following file: