• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/

Lines Matching defs:gain

213  * @param gain array holding the decoded gain
218 float *gain) {
238 gain[i] = qcelp_g12ga[g1[i]];
242 gain[i] = -gain[i];
254 gain[7] = gain[4];
255 gain[6] = 0.4*gain[3] + 0.6*gain[4];
256 gain[5] = gain[3];
257 gain[4] = 0.8*gain[2] + 0.2*gain[3];
258 gain[3] = 0.2*gain[1] + 0.8*gain[2];
259 gain[2] = gain[1];
260 gain[1] = 0.6*gain[0] + 0.4*gain[1];
288 gain[i-1] = q->last_codebook_gain + slope * i;
290 q->last_codebook_gain = gain[i-2];
298 * codebook gain.
339 * @param gain array holding the 4 pitch subframe gain values
342 static void compute_svector(QCELPContext *q, const float *gain,
354 tmp_gain = gain[i] * QCELP_RATE_FULL_CODEBOOK_RATIO;
363 tmp_gain = gain[i] * QCELP_RATE_HALF_CODEBOOK_RATIO;
378 tmp_gain = gain[i] * (QCELP_SQRT1887 / 32768.0);
401 tmp_gain = gain[i] * (QCELP_SQRT1887 / 32768.0);
413 tmp_gain = gain[i] * QCELP_RATE_FULL_CODEBOOK_RATIO;
425 * Apply generic gain control.
428 * @param v_in gain-controlled vector
429 * @param v_ref vector to control gain of
432 * and the behavior of the gain control is
450 ff_log_missing_feature(NULL, "Zero energy for gain control", 1);
464 * @param gain per-subframe gain array, each element is between 0.0 and 2.0
474 const float gain[4], const uint8_t *lag,
485 if(gain[i])
497 *v_out = *v_in + gain[i] * *v_out;
534 // Compute gain & lag for the whole frame.
702 float gain[16];
741 warn_insufficient_frame_quality(avctx, "Codebook gain sanity check failed.");
758 decode_gain_and_index(q, gain);
759 compute_svector(q, gain, outbuffer);
775 decode_gain_and_index(q, gain);
776 compute_svector(q, gain, outbuffer);
792 // FIXME: postfilter and final gain control should be here.