[Ffmpeg-devel] [PATCH] another vorbis optimization

Michael Niedermayer michaelni
Thu Aug 10 23:07:04 CEST 2006


Hi

On Thu, Aug 10, 2006 at 12:38:39PM -0700, Loren Merritt wrote:
> On Thu, 10 Aug 2006, Michael Niedermayer wrote:
> >On Wed, Aug 09, 2006 at 10:21:16PM -0700, Loren Merritt wrote:
> >[...]
> >>+    if(vc->exp_bias){
> >>+        int i;
> >>+        float *win;
> >>+        win = av_malloc(vc->blocksize_0/2 * sizeof(float));
> >>+        for(i=0; i<vc->blocksize_0/2; i++)
> >>+            win[i] = vc->swin[i] * (1<<15);
> >>+        vc->swin = win;
> >>+        win = av_malloc(vc->blocksize_1/2 * sizeof(float));
> >>+        for(i=0; i<vc->blocksize_1/2; i++)
> >>+            win[i] = vc->lwin[i] * (1<<15);
> >>+        vc->lwin = win;
> >>+    }
> >
> >offtopic, but maybe we should change vc->lwin / vc->swin to vc->win[2]?
> 
> like so?

yes, exactly

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list