58 static const int8_t
fibonacci[16] = { -34, -21, -13, -8, -5, -3, -2, -1, 0, 1, 2, 3, 5, 8, 13, 21 };
59 static const int8_t
exponential[16] = { -128, -64, -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, 64 };
61 #define MAX_FRAME_SIZE 2048
77 val = av_clip_uint8(val + table[d & 0xF]);
79 val = av_clip_uint8(val + table[d >> 4]);
96 if (!esc->
data[0] && avpkt) {
97 int chan_size = avpkt->
size / avctx->
channels - hdr_size;
109 esc->
fib_acc[1] = avpkt->
data[2+chan_size+1] + 128;
121 memcpy(esc->
data[0], &avpkt->
data[hdr_size], chan_size);
123 memcpy(esc->
data[1], &avpkt->
data[2*hdr_size+chan_size], chan_size);
144 for (ch = 0; ch < avctx->
channels; ch++) {
193 #if CONFIG_EIGHTSVX_FIB_DECODER
194 AVCodec ff_eightsvx_fib_decoder = {
208 #if CONFIG_EIGHTSVX_EXP_DECODER
209 AVCodec ff_eightsvx_exp_decoder = {