[FFmpeg-devel] atrac1 decoder and aea demuxer rev 6

Benjamin Larsson banan
Mon Sep 7 18:39:52 CEST 2009


Vitor Sessak wrote:
> Benjamin Larsson wrote:
>> Vitor Sessak wrote:
>>> Benjamin Larsson wrote:
>>>> Changes:
>>>>
>>>> Lots of cosmetics fixes.
>>>> Optimized the mdct window use.
>>>> Removed one memcopy.
>>>> Changed some code.
>>>>
>>>> Did not do anything to the qmf routines that will be shared with atrac3
>>>> as it will be a svn copy and I'll take comments on that when the
>>>> code is
>>>>  split out in it's own file.
>>> [...]
> 
> Is the following faster?
> 
>     /* round, convert to 16bit and interleave */
>     if (q->channels == 1) {
>         /* mono */
>         q->dsp.vector_clipf(samples, q->out_samples[0], -32700./(1<<15),
> 32700./(1<<15), AT1_SU_SAMPLES);
>     } else {
>         /* stereo */
>         for (i = 0; i < AT1_SU_SAMPLES; i++) {
>             samples[i*2  ] = q->out_samples[0][i];
>             samples[i*2+1] = q->out_samples[1][i];
>         }
>         q->dsp.vector_clipf(samples, samples, -32700./(1<<15),
> 32700./(1<<15), 2*AT1_SU_SAMPLES);
>     }
> 

249314 dezicycles in novector vs
345649 dezicycles in vector

so no.

> I suppose there is no problem them with alignment...
> 
> -Vitor

MvH
Benjamin Larsson



More information about the ffmpeg-devel mailing list