search for: vorbis_coslook

Displaying 2 results from an estimated 2 matches for "vorbis_coslook".

2002 Jun 25
2
FLOAT_LOOKUP version of lsp_to_curve
...nction using float p=.7071067812f; float q=.7071067812f; will just leads after applying all the products and squaring to p and q having a common factor 0.5 which can be extracted from the formulaes. So I propose to replace: float p=.7071067812f; float q=.7071067812f; float w=vorbis_coslook(wdel*k); float *ftmp=lsp; int c=m>>1; by: float w=vorbis_coslook(wdel*k); float p=lsp[0]-w; float q=lsp[1]-w; float *ftmp=lsp + 2; int c=(m>>1) - 1; and: vorbis_invsq2explook(qexp+m) by: vorbis_invsq2explook(qexp+m-1) André --- >8 ---- List...
2002 Sep 11
1
floor0.c and lsp.c optimisations
Hi, I think that the introduction of the lsp_look lookup array isn't ideal and found a better change that can be applied. in floor0_map_lazy_init() you can replace look->linearmap[W][j]=val; by look->linearmap[W][j]=vorbis_coslook(M_PI*val/look->ln); and in vorbis_lsp_to_curve you then replace float w=vorbis_coslook(wdel*k); ... }while(map[i]==k); by float w=map[i]; ... }while(map[i]==w); then get rid of the ln function parameter and the k local variable. <p><p>Next the fact that p and q are initialised...