• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/libvorbis-1.2.3/lib/

Lines Matching refs:ve

90 static int _ve_amp(envelope_lookup *ve,
95 long n=ve->winlength;
104 float minV=ve->minenergy;
109 int stretch=max(VE_MINSTRETCH,ve->stretch/2);
110 float penalty=gi->stretch_penalty-(ve->stretch/2-VE_MINSTRETCH);
115 totalshift+pos*ve->searchstep);*/
119 vec[i]=data[i]*ve->mdct_win[i];
120 mdct_forward(&ve->mdct,vec,vec);
220 envelope_lookup *ve=((private_state *)(v->backend_state))->ve;
223 int first=ve->current/ve->searchstep;
224 int last=v->pcm_current/ve->searchstep-VE_WIN;
228 if(last+VE_WIN+VE_POST>ve->storage){
229 ve->storage=last+VE_WIN+VE_POST; /* be sure */
230 ve->mark=_ogg_realloc(ve->mark,ve->storage*sizeof(*ve->mark));
236 ve->stretch++;
237 if(ve->stretch>VE_MAXSTRETCH*2)
238 ve->stretch=VE_MAXSTRETCH*2;
240 for(i=0;i<ve->ch;i++){
241 float *pcm=v->pcm[i]+ve->searchstep*(j);
242 ret|=_ve_amp(ve,gi,pcm,ve->band,ve->filter+i*VE_BANDS);
245 ve->mark[j+VE_POST]=0;
247 ve->mark[j]=1;
248 ve->mark[j+1]=1;
252 ve->mark[j]=1;
253 if(j>0)ve->mark[j-1]=1;
256 if(ret&4)ve->stretch=-1;
259 ve->current=last*ve->searchstep;
269 j=ve->cursor;
271 while(j<ve->current-(ve->searchstep)){/* account for postecho
275 ve->cursor=j;
277 if(ve->mark[j/ve->searchstep]){
281 if(j>ve->curmark){
287 (totalshift+ve->cursor)/44100.,
298 for(l=0;l<last;l++)marker[l*ve->searchstep]=ve->filter[m].markers[l]*.1;
305 for(l=0;l<last;l++)marker[l*ve->searchstep]=ve->filter[m+VE_BANDS].markers[l]*.1;
309 for(l=0;l<last;l++)marker[l*ve->searchstep]=ve->mark[l]*.4;
318 ve->curmark=j;
323 j+=ve->searchstep;
331 envelope_lookup *ve=((private_state *)(v->backend_state))->ve;
345 if(ve->curmark>=beginW && ve->curmark<endW)return(1);
347 long first=beginW/ve->searchstep;
348 long last=endW/ve->searchstep;
351 if(ve->mark[i])return(1);
358 ahead of ve->current */