Lines Matching refs:work

127  * @param work array used to calculate the filtered vector
136 static void get_match_score(float *work, const float *coefs, float *vect,
143 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER);
145 orthogonalize(work, ortho1);
147 orthogonalize(work, ortho2);
150 g += work[i] * work[i];
151 c += data[i] * work[i];
187 * @param work array used to calculate LPC-filtered vectors
192 static int adaptive_cb_search(const int16_t *adapt_cb, float *work,
202 get_match_score(work, coefs, exc, NULL, NULL, data, &score, &gain);
217 ff_celp_lp_synthesis_filterf(work, coefs, exc, BLOCKSIZE, LPC_ORDER);
219 data[i] -= best_gain * work[i];
229 * @param work array used to calculate the filtered vectors
240 static void find_best_vect(float *work, const float *coefs,
253 get_match_score(work, coefs, vect, ortho1, ortho2, data, &score, &g);
266 * @param work array used to calculate LPC-filtered vectors
275 static void fixed_cb_search(float *work, const float *coefs, float *data,
285 * work, because this function is called just after adaptive_cb_search().
288 memcpy(cba_vect, work, sizeof(cba_vect));
290 find_best_vect(work, coefs, ff_cb1_vects, cba_idx ? cba_vect : NULL, NULL,
300 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER);
302 orthogonalize(work, cba_vect);
304 data[i] -= gain * work[i];
305 memcpy(cb1_vect, work, sizeof(cb1_vect));
310 find_best_vect(work, coefs, ff_cb2_vects, cba_idx ? cba_vect : NULL,
329 float data[BLOCKSIZE] = { 0 }, work[LPC_ORDER + BLOCKSIZE];
339 work[i] = ractx->curr_sblock[BLOCKSIZE + i];
347 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, data, BLOCKSIZE,
350 zero[i] = work[LPC_ORDER + i];
359 memset(work, 0, LPC_ORDER * sizeof(*work));
361 cba_idx = adaptive_cb_search(ractx->adapt_cb, work + LPC_ORDER, coefs,
366 * work, see implementation of adaptive_cb_search().
368 memcpy(cba, work + LPC_ORDER, sizeof(cba));
373 fixed_cb_search(work + LPC_ORDER, coefs, data, cba_idx, &cb1_idx, &cb2_idx);
378 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, cb1, BLOCKSIZE,
380 memcpy(cb1, work + LPC_ORDER, sizeof(cb1));
382 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, cb2, BLOCKSIZE,
384 memcpy(cb2, work + LPC_ORDER, sizeof(cb2));