[FFmpeg-devel] [RFC] fast audio interleaving

Aurelien Jacobs aurel
Tue Sep 25 20:54:51 CEST 2007


Benjamin Larsson wrote:

> Hi, lots of audio codecs duplicate the interleaving of left and right
> samples when outputting stereo. Wouldn't it make sense to dsp optimize
> just this operation ? I'm sure there are some SIMD operations that do
> exactly what we need.

One nice solution (IIRC already proposed by Michael long ago) would be
to allow audio codecs to output a planar format. Then if the soundcard
don't support planar format (most probable), it should be converted
to packed format using some independent code (IOW a libswscale for audio).
And indeed that looks like something that can be optimized using SIMD.

Aurel




More information about the ffmpeg-devel mailing list