#include <AEEncoder.h>
IAEEncoder interface for on the fly audio compression
◆ IAEEncoder()
IAEEncoder::IAEEncoder |
( |
| ) |
|
|
default |
◆ ~IAEEncoder()
virtual IAEEncoder::~IAEEncoder |
( |
| ) |
|
|
virtualdefault |
◆ Encode()
Encodes the supplied samples into a provided buffer
- Parameters
-
in | the PCM samples encoder requested format |
in_size | input buffer size |
output | buffer |
out_size | output buffer size |
- Returns
- size of encoded data
Implemented in CAEEncoderFFmpeg.
◆ GetBitRate()
virtual unsigned int IAEEncoder::GetBitRate |
( |
| ) |
|
|
pure virtual |
Returns the bitrate of the encoder
- Returns
- bit rate in bits per second
Implemented in CAEEncoderFFmpeg.
◆ GetCodecID()
virtual AVCodecID IAEEncoder::GetCodecID |
( |
| ) |
|
|
pure virtual |
Returns the AVCodecID of the encoder
- Returns
- the ffmpeg codec id
Implemented in CAEEncoderFFmpeg.
◆ GetData()
virtual int IAEEncoder::GetData |
( |
uint8_t ** | data | ) |
|
|
pure virtual |
Get the encoded data
- Parameters
-
data | return pointer to the buffer with the current encoded block |
- Returns
- the size in bytes of *data
Implemented in CAEEncoderFFmpeg.
◆ GetDelay()
virtual double IAEEncoder::GetDelay |
( |
unsigned int | bufferSize | ) |
|
|
pure virtual |
Get the delay in seconds
- Parameters
-
bufferSize | how much encoded data the caller has buffered to add to the delay |
- Returns
- the delay in seconds including any un-fetched encoded data
Implemented in CAEEncoderFFmpeg.
◆ GetFrames()
virtual unsigned int IAEEncoder::GetFrames |
( |
| ) |
|
|
pure virtual |
Return the number of frames needed to encode
- Returns
- number of frames (frames * channels = samples * bits per sample = bytes)
Implemented in CAEEncoderFFmpeg.
◆ Initialize()
Called to setup the encoder to accept data in the specified format
- Parameters
-
format | the desired audio format, may be changed to suit the encoder |
allow_planar_input | allow engine to use with planar formats |
- Returns
- true on success, false on failure
Implemented in CAEEncoderFFmpeg.
◆ IsCompatible()
Return true if the supplied format is compatible with the current open encoder.
- Parameters
-
format | the format to compare |
- Returns
- true if compatible, false if not
Implemented in CAEEncoderFFmpeg.
◆ Reset()
virtual void IAEEncoder::Reset |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: