• Home
  • Raw
  • Download

Lines Matching refs:ve

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