• Home
  • Raw
  • Download

Lines Matching refs:ltp

44     put_bits(&s->pb, 1, ics->ltp.present);  in ff_aac_encode_ltp_info()
45 if (!ics->ltp.present) in ff_aac_encode_ltp_info()
47 put_bits(&s->pb, 11, ics->ltp.lag); in ff_aac_encode_ltp_info()
48 put_bits(&s->pb, 3, ics->ltp.coef_idx); in ff_aac_encode_ltp_info()
50 put_bits(&s->pb, 1, ics->ltp.used[i]); in ff_aac_encode_ltp_info()
69 sce->ics.ltp.lag = 0; in ff_aac_ltp_insert_new_frame()
75 static void get_lag(float *buf, const float *new, LongTermPrediction *ltp) in get_lag() argument
94 ltp->lag = FFMAX(av_clip_uintp2(lag, 11), 0); in get_lag()
95 ltp->coef_idx = quant_array_idx(max_ratio, ltp_coef, 8); in get_lag()
96 ltp->coef = ltp_coef[ltp->coef_idx]; in get_lag()
99 static void generate_samples(float *buf, LongTermPrediction *ltp) in generate_samples() argument
102 if (!ltp->lag) { in generate_samples()
103 ltp->present = 0; in generate_samples()
105 } else if (ltp->lag < 1024) { in generate_samples()
106 samples_num = ltp->lag + 1024; in generate_samples()
109 buf[i] = ltp->coef*buf[i + 2048 - ltp->lag]; in generate_samples()
126 get_lag(pred_signal, samples, &sce->ics.ltp); in ff_aac_update_ltp()
127 generate_samples(pred_signal, &sce->ics.ltp); in ff_aac_update_ltp()
139 sce0->ics.ltp.present = 0; in ff_aac_adjust_common_ltp()
144 int sum = sce0->ics.ltp.used[sfb] + sce1->ics.ltp.used[sfb]; in ff_aac_adjust_common_ltp()
146 sce0->ics.ltp.used[sfb] = 0; in ff_aac_adjust_common_ltp()
152 sce0->ics.ltp.present = !!count; in ff_aac_adjust_common_ltp()
169 if (sce->ics.ltp.lag) { in ff_aac_search_for_ltp()
171 memset(&sce->ics.ltp, 0, sizeof(LongTermPrediction)); in ff_aac_search_for_ltp()
176 if (!sce->ics.ltp.lag || s->lambda > 120.0f) in ff_aac_search_for_ltp()
209 sce->ics.ltp.used[w*16+g] = 1; in ff_aac_search_for_ltp()
217 sce->ics.ltp.present = !!count && (saved_bits >= 0); in ff_aac_search_for_ltp()
218 sce->ics.predictor_present = !!sce->ics.ltp.present; in ff_aac_search_for_ltp()
221 if (!sce->ics.ltp.present && !!count) { in ff_aac_search_for_ltp()
225 if (sce->ics.ltp.used[w*16+g]) { in ff_aac_search_for_ltp()