Lines Matching refs:coded_samples
61 int *coded_samples[MAX_CHANNELS]; member
593 int *coded_samples; in sonic_encode_init() local
653 coded_samples = av_calloc(s->block_align, s->channels * sizeof(**s->coded_samples)); in sonic_encode_init()
654 if (!coded_samples) in sonic_encode_init()
656 for (i = 0; i < s->channels; i++, coded_samples += s->block_align) in sonic_encode_init()
657 s->coded_samples[i] = coded_samples; in sonic_encode_init()
704 av_freep(&s->coded_samples[0]); in sonic_encode_close()
787 s->coded_samples[ch][i] = sum; in sonic_encode_frame()
799 double sample = s->coded_samples[ch][i]; in sonic_encode_frame()
829 s->coded_samples[ch][i] = ROUNDED_DIV(s->coded_samples[ch][i], quant); in sonic_encode_frame()
831 if ((ret = intlist_write(&c, state, s->coded_samples[ch], s->block_align, 1)) < 0) in sonic_encode_frame()
950 tmp = av_calloc(s->block_align, s->channels * sizeof(**s->coded_samples)); in sonic_decode_init()
954 s->coded_samples[i] = tmp; in sonic_decode_init()
972 av_freep(&s->coded_samples[0]); in sonic_decode_close()
1025 intlist_read(&c, state, s->coded_samples[ch], s->block_align, 1); in sonic_decode_frame()
1035 …or_calc_error(s->predictor_k, s->predictor_state[ch], s->num_taps, s->coded_samples[ch][i] * (unsi… in sonic_decode_frame()