• Home
  • Raw
  • Download

Lines Matching refs:prediction

424 static int32_t *aptx_reconstructed_differences_update(Prediction *prediction,  in aptx_reconstructed_differences_update()  argument
428 int32_t *rd1 = prediction->reconstructed_differences, *rd2 = rd1 + order; in aptx_reconstructed_differences_update()
429 int p = prediction->pos; in aptx_reconstructed_differences_update()
432 prediction->pos = p = (p + 1) % order; in aptx_reconstructed_differences_update()
437 static void aptx_prediction_filtering(Prediction *prediction, in aptx_prediction_filtering() argument
446 … reconstructed_sample = av_clip_intp2(reconstructed_difference + prediction->predicted_sample, 23); in aptx_prediction_filtering()
447 …predictor = av_clip_intp2((MUL64(prediction->s_weight[0], prediction->previous_reconstructed_sampl… in aptx_prediction_filtering()
448 + MUL64(prediction->s_weight[1], reconstructed_sample)) >> 22, 23); in aptx_prediction_filtering()
449 prediction->previous_reconstructed_sample = reconstructed_sample; in aptx_prediction_filtering()
451 …reconstructed_differences = aptx_reconstructed_differences_update(prediction, reconstructed_differ… in aptx_prediction_filtering()
455 prediction->d_weight[i] -= rshift32(prediction->d_weight[i] - srd*srd0, 8); in aptx_prediction_filtering()
456 predicted_difference += MUL64(reconstructed_differences[-i], prediction->d_weight[i]); in aptx_prediction_filtering()
459 prediction->predicted_difference = av_clip_intp2(predicted_difference >> 22, 23); in aptx_prediction_filtering()
460 prediction->predicted_sample = av_clip_intp2(predictor + prediction->predicted_difference, 23); in aptx_prediction_filtering()
464 Prediction *prediction, in aptx_process_subband() argument
473 -prediction->predicted_difference); in aptx_process_subband()
474 same_sign[0] = sign * prediction->prev_sign[0]; in aptx_process_subband()
475 same_sign[1] = sign * prediction->prev_sign[1]; in aptx_process_subband()
476 prediction->prev_sign[0] = prediction->prev_sign[1]; in aptx_process_subband()
477 prediction->prev_sign[1] = sign | 1; in aptx_process_subband()
480 sw1 = rshift32(-same_sign[1] * prediction->s_weight[1], 1); in aptx_process_subband()
484 weight[0] = 254 * prediction->s_weight[0] + 0x800000*same_sign[0] + sw1; in aptx_process_subband()
485 prediction->s_weight[0] = av_clip(rshift32(weight[0], 8), -range, range); in aptx_process_subband()
487 range = 0x3C0000 - prediction->s_weight[0]; in aptx_process_subband()
488 weight[1] = 255 * prediction->s_weight[1] + 0xC00000*same_sign[1]; in aptx_process_subband()
489 prediction->s_weight[1] = av_clip(rshift32(weight[1], 8), -range, range); in aptx_process_subband()
491 aptx_prediction_filtering(prediction, in aptx_process_subband()
501 &channel->prediction[subband], in ff_aptx_invert_quantize_and_prediction()
530 Prediction *prediction = &channel->prediction[subband]; in ff_aptx_init() local
531 prediction->prev_sign[0] = 1; in ff_aptx_init()
532 prediction->prev_sign[1] = 1; in ff_aptx_init()