• Home
  • Raw
  • Download

Lines Matching refs:predictor

162             c->status[0].predictor = av_clip_intp2(AV_RL32(avctx->extradata    ), 18);  in adpcm_decode_init()
163 c->status[1].predictor = av_clip_intp2(AV_RL32(avctx->extradata + 4), 18); in adpcm_decode_init()
169 c->status[0].predictor = av_clip_intp2(AV_RL32(avctx->extradata + 16), 18); in adpcm_decode_init()
171 c->status[1].predictor = av_clip_intp2(AV_RL32(avctx->extradata + 4), 18); in adpcm_decode_init()
174 c->status[0].predictor = av_clip_intp2(AV_RL32(avctx->extradata + 0), 18); in adpcm_decode_init()
176 c->status[1].predictor = av_clip_intp2(AV_RL32(avctx->extradata + 8), 18); in adpcm_decode_init()
238 pred = c->predictor; in adpcm_agm_expand_nibble()
256 c->predictor = pred; in adpcm_agm_expand_nibble()
274 c->predictor = pred; in adpcm_agm_expand_nibble()
281 int predictor; in adpcm_ima_expand_nibble() local
294 predictor = c->predictor; in adpcm_ima_expand_nibble()
295 if (sign) predictor -= diff; in adpcm_ima_expand_nibble()
296 else predictor += diff; in adpcm_ima_expand_nibble()
298 c->predictor = av_clip_int16(predictor); in adpcm_ima_expand_nibble()
301 return (int16_t)c->predictor; in adpcm_ima_expand_nibble()
307 int predictor; in adpcm_ima_alp_expand_nibble() local
317 predictor = c->predictor; in adpcm_ima_alp_expand_nibble()
318 if (sign) predictor -= diff; in adpcm_ima_alp_expand_nibble()
319 else predictor += diff; in adpcm_ima_alp_expand_nibble()
321 c->predictor = av_clip_int16(predictor); in adpcm_ima_alp_expand_nibble()
324 return (int16_t)c->predictor; in adpcm_ima_alp_expand_nibble()
329 int step_index, step, delta, predictor; in adpcm_ima_mtf_expand_nibble() local
334 predictor = c->predictor + delta; in adpcm_ima_mtf_expand_nibble()
337 c->predictor = av_clip_int16(predictor >> 4); in adpcm_ima_mtf_expand_nibble()
340 return (int16_t)c->predictor; in adpcm_ima_mtf_expand_nibble()
346 int predictor; in adpcm_ima_cunning_expand_nibble() local
355 predictor = c->predictor + step * nibble; in adpcm_ima_cunning_expand_nibble()
357 c->predictor = av_clip_int16(predictor); in adpcm_ima_cunning_expand_nibble()
360 return c->predictor; in adpcm_ima_cunning_expand_nibble()
365 int nibble, step_index, predictor, sign, delta, diff, step, shift; in adpcm_ima_wav_expand_nibble() local
376 predictor = c->predictor; in adpcm_ima_wav_expand_nibble()
377 if (sign) predictor -= diff; in adpcm_ima_wav_expand_nibble()
378 else predictor += diff; in adpcm_ima_wav_expand_nibble()
380 c->predictor = av_clip_int16(predictor); in adpcm_ima_wav_expand_nibble()
383 return (int16_t)c->predictor; in adpcm_ima_wav_expand_nibble()
389 int predictor; in adpcm_ima_qt_expand_nibble() local
402 predictor = c->predictor - diff; in adpcm_ima_qt_expand_nibble()
404 predictor = c->predictor + diff; in adpcm_ima_qt_expand_nibble()
406 c->predictor = av_clip_int16(predictor); in adpcm_ima_qt_expand_nibble()
409 return c->predictor; in adpcm_ima_qt_expand_nibble()
414 int predictor; in adpcm_ms_expand_nibble() local
416 predictor = (((c->sample1) * (c->coeff1)) + ((c->sample2) * (c->coeff2))) / 64; in adpcm_ms_expand_nibble()
417 predictor += ((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta; in adpcm_ms_expand_nibble()
420 c->sample1 = av_clip_int16(predictor); in adpcm_ms_expand_nibble()
433 int step_index, predictor, sign, delta, diff, step; in adpcm_ima_oki_expand_nibble() local
442 predictor = c->predictor; in adpcm_ima_oki_expand_nibble()
443 if (sign) predictor -= diff; in adpcm_ima_oki_expand_nibble()
444 else predictor += diff; in adpcm_ima_oki_expand_nibble()
446 c->predictor = av_clip_intp2(predictor, 11); in adpcm_ima_oki_expand_nibble()
449 return c->predictor * 16; in adpcm_ima_oki_expand_nibble()
464 c->predictor = ((c->predictor * 254) >> 8) + (sign ? -diff : diff); in adpcm_ct_expand_nibble()
465 c->predictor = av_clip_int16(c->predictor); in adpcm_ct_expand_nibble()
470 return (int16_t)c->predictor; in adpcm_ct_expand_nibble()
482 c->predictor = av_clip(c->predictor + (sign ? -diff : diff), -16384,16256); in adpcm_sbpro_expand_nibble()
490 return (int16_t) c->predictor; in adpcm_sbpro_expand_nibble()
496 c->predictor = 0; in adpcm_yamaha_expand_nibble()
500 c->predictor += (c->step * ff_adpcm_yamaha_difflookup[nibble]) / 8; in adpcm_yamaha_expand_nibble()
501 c->predictor = av_clip_int16(c->predictor); in adpcm_yamaha_expand_nibble()
504 return c->predictor; in adpcm_yamaha_expand_nibble()
509 c->predictor += ff_adpcm_mtaf_stepsize[c->step][nibble]; in adpcm_mtaf_expand_nibble()
510 c->predictor = av_clip_int16(c->predictor); in adpcm_mtaf_expand_nibble()
513 return c->predictor; in adpcm_mtaf_expand_nibble()
539 sample += c->predictor; in adpcm_zork_expand_nibble()
545 c->predictor = sample; in adpcm_zork_expand_nibble()
658 *samples++ = c->status[i].predictor = get_sbits(&gb, 16); in adpcm_swf_decode()
681 c->status[i].predictor -= vpdiff; in adpcm_swf_decode()
683 c->status[i].predictor += vpdiff; in adpcm_swf_decode()
688 c->status[i].predictor = av_clip_int16(c->status[i].predictor); in adpcm_swf_decode()
690 *samples++ = c->status[i].predictor; in adpcm_swf_decode()
989 int predictor; in adpcm_decode_frame() local
995 predictor = sign_extend(bytestream2_get_be16u(&gb), 16); in adpcm_decode_frame()
996 step_index = predictor & 0x7F; in adpcm_decode_frame()
997 predictor &= ~0x7F; in adpcm_decode_frame()
1000 int diff = predictor - cs->predictor; in adpcm_decode_frame()
1008 cs->predictor = predictor; in adpcm_decode_frame()
1029 cs->predictor = samples_p[i][0] = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1081 c->status[i].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1104 c->status[i].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1186 c->status[channel ].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1188 c->status[channel + 1].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1205 cs->predictor = *samples++ = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1228 c->status[0].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1229 c->status[1].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1238 diff_channel = c->status[1].predictor; in adpcm_decode_frame()
1265 diff_channel = (diff_channel + c->status[1].predictor) / 2; in adpcm_decode_frame()
1266 *samples++ = c->status[0].predictor + c->status[1].predictor; in adpcm_decode_frame()
1267 *samples++ = c->status[0].predictor - c->status[1].predictor; in adpcm_decode_frame()
1274 diff_channel = (diff_channel + c->status[1].predictor) / 2; in adpcm_decode_frame()
1275 *samples++ = c->status[0].predictor + c->status[1].predictor; in adpcm_decode_frame()
1276 *samples++ = c->status[0].predictor - c->status[1].predictor; in adpcm_decode_frame()
1286 cs->predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1314 cs->predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1400 cs->predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1477 c->status[i].predictor = bytestream2_get_le32u(&gb); in adpcm_decode_frame()
1478 if (FFABS((int64_t)c->status[i].predictor) > (1<<16)) in adpcm_decode_frame()
1609 current_sample = c->status[channel].predictor; in adpcm_decode_frame()
1652 c->status[channel].predictor = current_sample; in adpcm_decode_frame()
1706 c->status[0].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1735 c->status[i].predictor = sign_extend(bytestream2_get_be16u(&gb), 16); in adpcm_decode_frame()
2131 c->status[channel].predictor = 0; in adpcm_flush()