|
|
int | xa_decode (int16_t *out0, int16_t *out1, const uint8_t *in, ADPCMChannelStatus *left, ADPCMChannelStatus *right, int channels, int sample_offset) |
| |
|
bool | begin (int sampleRate, int channels, int frameSize, int blockAlign=0) |
| | Starts the decoder with an explicit frame size (max samples per channel in one packet). Needed for decode-only codecs, which have no encoder to derive the frame size from. blockAlign is optional and only used by codecs that read avctx.block_align (0 = keep the current value).
|
| |
|
bool | begin (int sampleRate, int channels) |
| |
|
void | end () |
| |
|
AVFrame & | decode (uint8_t *data, size_t size) |
| |
| AVFrame & | decode (AVPacket &packet) |
| |
|
virtual ADPCMVector< AVSampleFormat > | getSampleFormat () |
| |
|
void | flush () |
| |
|
AVCodecContext & | ctx () |
| |
|
void | setCodecID (AVCodecID id) |
| |
|
AVCodecID | codecID () |
| |
|
void | setFrameSize (int fs) |
| |
|
virtual void | setBlockSize (int size) |
| |
|
int | blockSize () |
| |
|
int | frameSize () |
| |
|
int | channels () |
| |
|
bool | isPlanar () |
| |
|
| enum | DataSource { Undefined
, FromFrame
, FromExtended
} |
| |
|
| int | decode_frame_impl (AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
| |
| DataSource | getDataSource (int16_t *frame_data, int16_t *ext_data, int len) |
| |
|
virtual int | adpcm_decode_init () |
| | Init decoder.
|
| |
|
int16_t | adpcm_ima_expand_nibble (ADPCMChannelStatus *c, int8_t nibble, int shift) |
| |
|
int16_t | adpcm_ima_mtf_expand_nibble (ADPCMChannelStatus *c, int nibble) |
| |
|
int16_t | adpcm_ima_cunning_expand_nibble (ADPCMChannelStatus *c, int8_t nibble) |
| |
|
int | adpcm_ima_qt_expand_nibble (ADPCMChannelStatus *c, int nibble) |
| |
|
int16_t | adpcm_yamaha_expand_nibble (ADPCMChannelStatus *c, uint8_t nibble) |
| |
| int | get_nb_samples (ByteReader &gb, int buf_size, int *coded_samples, int *approx_nb_samples) |
| |
|
virtual void | adpcm_flush () |
| | Flush decoder.
|
| |
|
virtual int | adpcm_decode_frame (AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
| | Decode a pcm frame.
|
| |
|
int | decode_frame_init (AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
| |
|
int | av_get_bits_per_sample () |
| |
|
int | ff_get_encode_buffer (AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int flags) |
| |
|
int | ff_get_buffer (AVCodecContext *avctx, AVFrame *frame, int flags) |
| |
|
void | avpriv_request_sample (void *avc, const char *msg,...) |
| |
◆ decode()
determine data source: only once
◆ decode_frame_impl()
| int adpcm_ffmpeg::DecoderADPCM_XA::decode_frame_impl |
( |
AVFrame * |
frame, |
|
|
int * |
got_frame_ptr, |
|
|
AVPacket * |
avpkt |
|
) |
| |
|
inlineprotectedvirtual |
◆ get_nb_samples()
| int adpcm_ffmpeg::ADPCMDecoder::get_nb_samples |
( |
ByteReader & |
gb, |
|
|
int |
buf_size, |
|
|
int * |
coded_samples, |
|
|
int * |
approx_nb_samples |
|
) |
| |
|
inlineprotectedinherited |
Get the number of samples (per channel) that will be decoded from the packet. In one case, this is actually the maximum number of samples possible to decode with the given buf_size.
- Parameters
-
| [out] | coded_samples | set to the number of samples as coded in the packet, or 0 if the codec does not encode the number of samples in each frame. |
| [out] | approx_nb_samples | set to non-zero if the number of samples returned is an approximation. |
◆ getDataSource()
| DataSource adpcm_ffmpeg::ADPCMDecoder::getDataSource |
( |
int16_t * |
frame_data, |
|
|
int16_t * |
ext_data, |
|
|
int |
len |
|
) |
| |
|
inlineprotectedinherited |
The result is not returned consistently: sometimes it is in the frame data, sometimes it is in the extra data. Here we check where it actually is!
The documentation for this class was generated from the following file: