Lines Matching refs:step_index
165 int step_index;
169 step = ff_adpcm_step_table[c->step_index];
170 step_index = c->step_index + ff_adpcm_index_table[(unsigned)nibble];
171 step_index = av_clip(step_index, 0, 88);
184 c->step_index = step_index;
191 int nibble, step_index, predictor, sign, delta, diff, step, shift;
195 step = ff_adpcm_step_table[c->step_index];
196 step_index = c->step_index + ff_adpcm_index_tables[bps - 2][nibble];
197 step_index = av_clip(step_index, 0, 88);
207 c->step_index = step_index;
214 int step_index;
218 step = ff_adpcm_step_table[c->step_index];
219 step_index = c->step_index + ff_adpcm_index_table[nibble];
220 step_index = av_clip(step_index, 0, 88);
233 c->step_index = step_index;
255 int step_index, predictor, sign, delta, diff, step;
257 step = ff_adpcm_oki_step_table[c->step_index];
258 step_index = c->step_index + ff_adpcm_index_table[(unsigned)nibble];
259 step_index = av_clip(step_index, 0, 48);
269 c->step_index = step_index;
429 c->status[i].step_index = get_bits(&gb, 6);
438 int step = ff_adpcm_step_table[c->status[i].step_index];
455 c->status[i].step_index += table[delta & (~signmask)];
457 c->status[i].step_index = av_clip(c->status[i].step_index, 0, 88);
608 if (!s->status[0].step_index) {
703 int step_index;
709 step_index = predictor & 0x7F;
712 if (cs->step_index == step_index) {
720 cs->step_index = step_index;
724 if (cs->step_index > 88u){
725 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index[%d] = %i\n",
726 channel, cs->step_index);
744 cs->step_index = sign_extend(bytestream2_get_le16u(&gb), 16);
745 if (cs->step_index > 88u){
746 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index[%d] = %i\n",
747 i, cs->step_index);
787 c->status[i].step_index = sign_extend(bytestream2_get_le16u(&gb), 16);
788 if (c->status[i].step_index > 88u) {
789 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index[%d] = %i\n",
790 i, c->status[i].step_index);
852 cs->step_index = sign_extend(bytestream2_get_le16u(&gb), 16);
853 if (cs->step_index > 88u){
854 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index[%d] = %i\n",
855 channel, cs->step_index);
876 c->status[0].step_index = bytestream2_get_byteu(&gb);
877 c->status[1].step_index = bytestream2_get_byteu(&gb);
878 if (c->status[0].step_index > 88u || c->status[1].step_index > 88u){
879 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index = %i/%i\n",
880 c->status[0].step_index, c->status[1].step_index);
933 cs->step_index = sign_extend(bytestream2_get_le16u(&gb), 16);
934 if (cs->step_index > 88u){
935 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index[%d] = %i\n",
936 channel, cs->step_index);
973 cs->step_index = sign_extend(bytestream2_get_le16u(&gb), 16);
975 if (cs->step_index > 88u){
976 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index[%d] = %i\n",
977 channel, cs->step_index);
1036 c->status[i].step_index = bytestream2_get_le32u(&gb);
1037 if (c->status[i].step_index > 88u) {
1038 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index[%d] = %i\n",
1039 i, c->status[i].step_index);
1259 c->status[0].step_index = bytestream2_get_le16u(&gb);
1261 if (c->status[0].step_index > 88u) {
1262 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index = %i\n",
1263 c->status[0].step_index);
1277 c->status[i].step_index = bytestream2_get_byteu(&gb);
1279 if (c->status[i].step_index > 88u) {
1280 av_log(avctx, AV_LOG_ERROR, "ERROR: step_index = %i\n",
1281 c->status[i].step_index);
1303 if (!c->status[0].step_index) {
1308 c->status[0].step_index = 1;