|
|
int | adpcm_argo_compress_nibble (const ADPCMChannelStatus *cs, int16_t s, int shift, int flag) |
| |
|
int16_t | ff_adpcm_argo_expand_nibble (ADPCMChannelStatus *cs, int nibble, int shift, int flag) |
| |
| int64_t | adpcm_argo_compress_block (ADPCMChannelStatus *cs, uint8_t *out, const int16_t *samples, int nsamples, int shift, int flag) |
| |
|
bool | begin (int sampleRate, int channels) |
| |
|
void | end () |
| |
|
AVPacket & | encode (int16_t *data, size_t sampleCount) |
| |
|
virtual bool | isTrellis () |
| |
|
int | blockAlign () |
| |
|
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 () |
| |
|
| int | adpcm_encode_init_impl () |
| |
| int | adpcm_encode_frame_impl (AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
| |
| void | encodeDSPSubframe (ADPCMChannelStatus *cs, const int16_t *in, int n, const int16_t *coef1, const int16_t *coef2, int npairs, uint8_t *nibbles_out, int &best_index, int &best_exp) |
| |
| virtual int | packetSize (const AVFrame *frame) |
| |
|
virtual int | adpcm_encode_init () |
| |
|
int | adpcm_encode_close () |
| |
|
uint8_t | adpcm_ima_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
| |
| uint8_t | adpcm_ima_quantize (ADPCMChannelStatus *cs, int target, int shift) |
| |
|
uint8_t | adpcm_ima_qt_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
| |
|
uint8_t | adpcm_yamaha_compress_sample (ADPCMChannelStatus *c, int16_t sample) |
| |
|
virtual int | adpcm_encode_frame (AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
| |
|
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,...) |
| |
◆ adpcm_argo_compress_block()
Quantizes one block of 32 samples. When out is not null, it receives the control byte followed by 16 nibble pairs, most significant nibble first, which is the byte layout the decoder reads.
◆ adpcm_encode_frame_impl()
◆ adpcm_encode_init_impl()
| int adpcm_ffmpeg::EncoderADPCM_ARGO::adpcm_encode_init_impl |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ adpcm_ima_quantize()
Picks the IMA nibble closest to target and advances the state exactly as the decoder's adpcm_ima_expand_nibble(cs, nibble, shift) does.
◆ encodeDSPSubframe()
Quantizes one subframe of n samples for the GameCube style DSP ADPCM family (AFC, THP). Each coefficient pair (coef1[i], coef2[i]) and scale exponent is tried, the one with the lowest error wins, and the history of cs is advanced to the values the decoder will reconstruct. Nibbles are written high nibble first, two per byte.
◆ packetSize()
|
|
inlineprotectedvirtualinherited |
size of the packet produced for frame; codecs whose packets differ in size (e.g. a first packet with extra data) override this
Reimplemented in adpcm_ffmpeg::EncoderADPCM_SBPRO_X.
The documentation for this class was generated from the following file: