EA R1/R2/R3 encoder. Packet: a 4 byte sample count, one 4 byte offset per channel (relative to the end of that table), then each channel's data in 28 sample blocks of 15 bytes (a header byte with the coefficient index in the high nibble and the shift in the low nibble, then 14 nibble bytes, high nibble first). R1 starts every channel from a 4 byte state stored in the data and does not keep state across packets. R2 and R3 keep the state in the decoder across packets. R3 is big-endian throughout. The 0xEE escape (raw samples) is never emitted; header 0xEE is skipped.
More...
|
| int | adpcm_encode_init_impl () |
| |
| int | adpcm_encode_frame_impl (AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
| |
|
int | headerSize () |
| |
|
int | channelBytes () |
| |
|
void | encodeBlock (const int *x, int *cur, int *prev, uint8_t *out) |
| |
| 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,...) |
| |
EA R1/R2/R3 encoder. Packet: a 4 byte sample count, one 4 byte offset per channel (relative to the end of that table), then each channel's data in 28 sample blocks of 15 bytes (a header byte with the coefficient index in the high nibble and the shift in the low nibble, then 14 nibble bytes, high nibble first). R1 starts every channel from a 4 byte state stored in the data and does not keep state across packets. R2 and R3 keep the state in the decoder across packets. R3 is big-endian throughout. The 0xEE escape (raw samples) is never emitted; header 0xEE is skipped.