Lines Matching defs:hf
1772 * @param hf harmonic filter parameters
1774 static void comp_harmonic_coeff(int16_t *buf, int16_t pitch_lag, HFParam *hf)
1802 hf->index = -1;
1803 hf->gain = 0;
1819 hf->index = i;
1823 if (hf->index == -1) {
1824 hf->index = pitch_lag;
1830 ccr = energy[(hf->index << 1) + 1] * energy[(hf->index << 1) + 1];
1832 eng = energy[(hf->index << 1) + 1];
1835 hf->gain = 0x2800;
1837 hf->gain = ((eng << 15) / max_eng * 0x2800 + (1 << 14)) >> 15;
1839 hf->index += pitch_lag - 3;
1845 * @param hf filter parameters
1847 static void harmonic_filter(HFParam *hf, const int16_t *src, int16_t *dest)
1852 int64_t temp = hf->gain * src[i - hf->index] << 1;
1857 static void harmonic_noise_sub(HFParam *hf, const int16_t *src, int16_t *dest)
1861 int64_t temp = hf->gain * src[i - hf->index] << 1;
2352 HFParam hf[4];
2388 comp_harmonic_coeff(vector + i, p->pitch_lag[j >> 1], hf + j);
2395 harmonic_filter(hf + j, vector + PITCH_MAX + i, in + i);
2420 harmonic_filter(hf + i, vector + PITCH_MAX, impulse_resp);
2430 harmonic_noise_sub(hf + i, vector + PITCH_MAX, in);