• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:sce

1341 static void apply_prediction(AACContext *ac, SingleChannelElement *sce)
1345 if (!sce->ics.predictor_initialized) {
1346 reset_all_predictors(sce->predictor_state);
1347 sce->ics.predictor_initialized = 1;
1350 if (sce->ics.window_sequence[0] != EIGHT_SHORT_SEQUENCE) {
1352 for (k = sce->ics.swb_offset[sfb]; k < sce->ics.swb_offset[sfb + 1]; k++) {
1353 predict(&sce->predictor_state[k], &sce->coeffs[k],
1354 sce->ics.predictor_present && sce->ics.prediction_used[sfb]);
1357 if (sce->ics.predictor_reset_group)
1358 reset_predictor_group(sce->predictor_state, sce->ics.predictor_reset_group);
1360 reset_all_predictors(sce->predictor_state);
1371 static int decode_ics(AACContext *ac, SingleChannelElement *sce,
1375 TemporalNoiseShaping *tns = &sce->tns;
1376 IndividualChannelStream *ics = &sce->ics;
1377 float *out = sce->coeffs;
1392 if (decode_band_types(ac, sce->band_type, sce->band_type_run_end, gb, ics) < 0)
1394 if (decode_scalefactors(ac, sce->sf, gb, global_gain, ics, sce->band_type, sce->band_type_run_end) < 0)
1417 if (decode_spectrum_and_dequant(ac, out, gb, sce->sf, pulse_present, &pulse, ics, sce->band_type) < 0)
1421 apply_prediction(ac, sce);
1556 SingleChannelElement *sce = &che->ch[0];
1577 if ((ret = decode_ics(ac, sce, gb, 0, 0)))
1593 for (g = 0; g < sce->ics.num_window_groups; g++) {
1594 for (sfb = 0; sfb < sce->ics.max_sfb; sfb++, idx++) {
1595 if (sce->band_type[idx] != ZERO_BT) {
1827 static void apply_ltp(AACContext *ac, SingleChannelElement *sce)
1829 const LongTermPrediction *ltp = &sce->ics.ltp;
1830 const uint16_t *offsets = sce->ics.swb_offset;
1833 if (sce->ics.window_sequence[0] != EIGHT_SHORT_SEQUENCE) {
1834 float *predTime = sce->ret;
1841 predTime[i] = sce->ltp_state[i + 2048 - ltp->lag] * ltp->coef;
1844 windowing_and_mdct_ltp(ac, predFreq, predTime, &sce->ics);
1846 if (sce->tns.present)
1847 apply_tns(predFreq, &sce->tns, &sce->ics, 0);
1849 for (sfb = 0; sfb < FFMIN(sce->ics.max_sfb, MAX_LTP_LONG_SFB); sfb++)
1852 sce->coeffs[i] += predFreq[i];
1859 static void update_ltp(AACContext *ac, SingleChannelElement *sce)
1861 IndividualChannelStream *ics = &sce->ics;
1862 float *saved = sce->saved;
1863 float *saved_ltp = sce->coeffs;
1886 memcpy(sce->ltp_state, sce->ltp_state+1024, 1024 * sizeof(*sce->ltp_state));
1887 memcpy(sce->ltp_state+1024, sce->ret, 1024 * sizeof(*sce->ltp_state));
1888 memcpy(sce->ltp_state+2048, saved_ltp, 1024 * sizeof(*sce->ltp_state));
1894 static void imdct_and_windowing(AACContext *ac, SingleChannelElement *sce)
1896 IndividualChannelStream *ics = &sce->ics;
1897 float *in = sce->coeffs;
1898 float *out = sce->ret;
1899 float *saved = sce->saved;