• Home
  • Raw
  • Download

Lines Matching refs:work

139 static void get_match_score(float *work, const float *coefs, float *vect,  in get_match_score()  argument
146 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER); in get_match_score()
148 orthogonalize(work, ortho1); in get_match_score()
150 orthogonalize(work, ortho2); in get_match_score()
153 g += work[i] * work[i]; in get_match_score()
154 c += data[i] * work[i]; in get_match_score()
195 static int adaptive_cb_search(const int16_t *adapt_cb, float *work, in adaptive_cb_search() argument
205 get_match_score(work, coefs, exc, NULL, NULL, data, &score, &gain); in adaptive_cb_search()
220 ff_celp_lp_synthesis_filterf(work, coefs, exc, BLOCKSIZE, LPC_ORDER); in adaptive_cb_search()
222 data[i] -= best_gain * work[i]; in adaptive_cb_search()
243 static void find_best_vect(float *work, const float *coefs, in find_best_vect() argument
256 get_match_score(work, coefs, vect, ortho1, ortho2, data, &score, &g); in find_best_vect()
278 static void fixed_cb_search(float *work, const float *coefs, float *data, in fixed_cb_search() argument
291 memcpy(cba_vect, work, sizeof(cba_vect)); in fixed_cb_search()
293 find_best_vect(work, coefs, ff_cb1_vects, cba_idx ? cba_vect : NULL, NULL, in fixed_cb_search()
303 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER); in fixed_cb_search()
305 orthogonalize(work, cba_vect); in fixed_cb_search()
307 data[i] -= gain * work[i]; in fixed_cb_search()
308 memcpy(cb1_vect, work, sizeof(cb1_vect)); in fixed_cb_search()
313 find_best_vect(work, coefs, ff_cb2_vects, cba_idx ? cba_vect : NULL, in fixed_cb_search()
332 float data[BLOCKSIZE] = { 0 }, work[LPC_ORDER + BLOCKSIZE]; in ra144_encode_subblock() local
342 work[i] = ractx->curr_sblock[BLOCKSIZE + i]; in ra144_encode_subblock()
350 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, data, BLOCKSIZE, in ra144_encode_subblock()
353 zero[i] = work[LPC_ORDER + i]; in ra144_encode_subblock()
362 memset(work, 0, LPC_ORDER * sizeof(*work)); in ra144_encode_subblock()
364 cba_idx = adaptive_cb_search(ractx->adapt_cb, work + LPC_ORDER, coefs, in ra144_encode_subblock()
371 memcpy(cba, work + LPC_ORDER, sizeof(cba)); in ra144_encode_subblock()
376 fixed_cb_search(work + LPC_ORDER, coefs, data, cba_idx, &cb1_idx, &cb2_idx); in ra144_encode_subblock()
381 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, cb1, BLOCKSIZE, in ra144_encode_subblock()
383 memcpy(cb1, work + LPC_ORDER, sizeof(cb1)); in ra144_encode_subblock()
385 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, cb2, BLOCKSIZE, in ra144_encode_subblock()
387 memcpy(cb2, work + LPC_ORDER, sizeof(cb2)); in ra144_encode_subblock()