[FFmpeg-devel] Audio conversion and floating-point codecs

Andreas Öman andreas
Sun May 23 13:23:32 CEST 2010

On 05/18/2010 12:46 AM, Ronald S. Bultje wrote:
> Hi,
> 2010/5/17 M?ns Rullg?rd<mans at mansr.com>:
>> Frank Barchard<fbarchard at google.com>  writes:
>>> Planar requires interleaving before it can be played.  Is there a
>>> compelling advantage?
>> 1. The user might want it like that.
>> 2. The existing float2int16 asm does interleaving more or less for free.
>>    A separate interleaving pass would definitely be slower.
> I think the real reason is that for most audio codecs, this is the
> natural way in which they decode (and thus store) individual audio
> frames. Thus, decoding in this format is faster and simpler.

Especially if you plan to transcode audio. Currently we interleave
samples just to de-interleave them again. This is clearly inefficient.

More information about the ffmpeg-devel mailing list