• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching defs:band

90 static void do_adaptive_prediction(struct G722Band *band, const int cur_diff)
94 const int cur_part_reconst = band->s_zero + cur_diff < 0;
96 sg[0] = sign_lookup[cur_part_reconst != band->part_reconst_mem[0]];
97 sg[1] = sign_lookup[cur_part_reconst == band->part_reconst_mem[1]];
98 band->part_reconst_mem[1] = band->part_reconst_mem[0];
99 band->part_reconst_mem[0] = cur_part_reconst;
101 band->pole_mem[1] = av_clip((sg[0] * av_clip(band->pole_mem[0], -8191, 8191) >> 5) +
102 (sg[1] << 7) + (band->pole_mem[1] * 127 >> 7), -12288, 12288);
104 limit = 15360 - band->pole_mem[1];
105 band->pole_mem[0] = av_clip(-192 * sg[0] + (band->pole_mem[0] * 255 >> 8), -limit, limit);
110 band->zero_mem[i] = ((band->zero_mem[i]*255) >> 8) +
111 ((band->diff_mem[i]^cur_diff) < 0 ? -128 : 128);
114 band->zero_mem[i] = (band->zero_mem[i]*255) >> 8;
117 band->diff_mem[i] = band->diff_mem[i-1];
118 band->diff_mem[0] = av_clip_int16(cur_diff << 1);
120 band->s_zero = 0;
122 band->s_zero += (band->zero_mem[i]*band->diff_mem[i]) >> 15;
125 cur_qtzd_reconst = av_clip_int16((band->s_predictor + cur_diff) << 1);
126 band->s_predictor = av_clip_int16(band->s_zero +
127 (band->pole_mem[0] * cur_qtzd_reconst >> 15) +
128 (band->pole_mem[1] * band->prev_qtzd_reconst >> 15));
129 band->prev_qtzd_reconst = cur_qtzd_reconst;
139 void ff_g722_update_low_predictor(struct G722Band *band, const int ilow)
141 do_adaptive_prediction(band,
142 band->scale_factor * ff_g722_low_inv_quant4[ilow] >> 10);
145 band->log_factor = av_clip((band->log_factor * 127 >> 7) +
147 band->scale_factor = linear_scale_factor(band->log_factor - (8 << 11));
150 void ff_g722_update_high_predictor(struct G722Band *band, const int dhigh,
153 do_adaptive_prediction(band, dhigh);
156 band->log_factor = av_clip((band->log_factor * 127 >> 7) +
158 band->scale_factor = linear_scale_factor(band->log_factor - (10 << 11));