Home
last modified time | relevance | path

Searched refs:step_index (Results 1 – 7 of 7) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dadpcm.c167 c->status[0].step_index = av_clip(AV_RL32(avctx->extradata + 4), 0, 88); in adpcm_decode_init()
169 c->status[1].step_index = av_clip(AV_RL32(avctx->extradata + 12), 0, 88); in adpcm_decode_init()
269 int step_index; in adpcm_ima_expand_nibble() local
273 step = ff_adpcm_step_table[c->step_index]; in adpcm_ima_expand_nibble()
274 step_index = c->step_index + ff_adpcm_index_table[(unsigned)nibble]; in adpcm_ima_expand_nibble()
275 step_index = av_clip(step_index, 0, 88); in adpcm_ima_expand_nibble()
288 c->step_index = step_index; in adpcm_ima_expand_nibble()
295 int step_index; in adpcm_ima_alp_expand_nibble() local
299 step = ff_adpcm_step_table[c->step_index]; in adpcm_ima_alp_expand_nibble()
300 step_index = c->step_index + ff_adpcm_index_table[(unsigned)nibble]; in adpcm_ima_alp_expand_nibble()
[all …]
Dvima.c164 int step_index = channel_hint[chan]; in decode_frame() local
171 step_index = av_clip(step_index, 0, 88); in decode_frame()
172 lookup_size = size_table[step_index]; in decode_frame()
187 predict_index = (lookup << (7 - lookup_size)) | (step_index << 6); in decode_frame()
191 diff += ff_adpcm_step_table[step_index] >> (lookup_size - 1); in decode_frame()
201 step_index += step_index_tables[lookup_size - 2][lookup]; in decode_frame()
Dadpcmenc.c182 ff_adpcm_step_table[c->step_index]) + (delta < 0) * 8; in adpcm_ima_compress_sample()
183 c->prev_sample += ((ff_adpcm_step_table[c->step_index] * in adpcm_ima_compress_sample()
186 c->step_index = av_clip(c->step_index + ff_adpcm_index_table[nibble], 0, 88); in adpcm_ima_compress_sample()
194 int diff, step = ff_adpcm_step_table[c->step_index]; in adpcm_ima_qt_compress_sample()
222 c->step_index = av_clip(c->step_index + ff_adpcm_index_table[nibble], 0, 88); in adpcm_ima_qt_compress_sample()
299 nodes[0]->step = c->step_index; in adpcm_compress_trellis()
478 c->step_index = nodes[0]->step; in adpcm_compress_trellis()
520 *dst++ = status->step_index; in adpcm_encode_frame()
563 put_bits(&pb, 7, status->step_index); in adpcm_encode_frame()
614 c->status[i].step_index = av_clip_uintp2(c->status[i].step_index, 6); in adpcm_encode_frame()
[all …]
Dadpcm.h35 int16_t step_index; member
/third_party/libsnd/src/
Dima_oki_adpcm.c77 s = ((state->steps [state->step_index] * s) >> 3) & state->mask ; in adpcm_decode()
86 grace = (state->steps [state->step_index] >> 3) & state->mask ; in adpcm_decode()
94 state->step_index += step_changes [code & 7] ; in adpcm_decode()
95 state->step_index = SF_MIN (SF_MAX (state->step_index, 0), state->max_step_index) ; in adpcm_decode()
112 code = 4 * delta / state->steps [state->step_index] ; in adpcm_encode()
Dima_oki_adpcm.h31 int step_index ; member
/third_party/gstreamer/gstplugins_bad/gst/adpcmenc/
Dadpcmenc.c130 guint8 step_index[2]; member
171 enc->step_index[0] = 0; in adpcmenc_setup()
172 enc->step_index[1] = 0; in adpcmenc_setup()
290 outbuf[write_pos + 2] = enc->step_index[channel]; in adpcmenc_encode_ima_block()
313 &enc->step_index[channel]); in adpcmenc_encode_ima_block()
321 &enc->step_index[channel]); in adpcmenc_encode_ima_block()