MTAF encoder (even channel counts). Each channel pair starts with a 16 byte header: 4 unused bytes, le16 step for each channel, le16 predictor for the first channel, 2 unused bytes, le16 predictor for the second, 2 unused bytes. Then FRAME_SIZE/2 bytes for each channel (low nibble first). The nibble search mirrors DecoderADPCM_MTAF::adpcm_mtaf_expand_nibble.
More...
|
| int | adpcm_encode_init_impl () |
| |
| int | adpcm_encode_frame_impl (AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
| |
|
uint8_t | quantize (int ch, int16_t target) |
| |
| 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,...) |
| |
MTAF encoder (even channel counts). Each channel pair starts with a 16 byte header: 4 unused bytes, le16 step for each channel, le16 predictor for the first channel, 2 unused bytes, le16 predictor for the second, 2 unused bytes. Then FRAME_SIZE/2 bytes for each channel (low nibble first). The nibble search mirrors DecoderADPCM_MTAF::adpcm_mtaf_expand_nibble.