dasp icon indicating copy to clipboard operation
dasp copied to clipboard

Feature Request: Support for Planar Sample-layouts

Open rawler opened this issue 3 years ago • 3 comments

As far as I can tell, dasp::slice currently assumes Interleaved frame-layouts. (LRLRLRLRLRLRLRLR) In some cases (for example when working with FFmpeg), I get audio in Planar layout (LLLLLLLLRRRRRRRR). Currently I cannot use large parts of DASP due to this, and are instead forced to write my own functionality for iteration over sequences of Frames. It would be awesome if DASP instead could support it.

rawler avatar Mar 10 '21 10:03 rawler

Thanks for the issue! Totally agreed w.r.t. supporting different slice layouts.

I've never seen the term Planar used to refer to this layout before, normally just Noninterleaved. I'm curious, do you have some references for this term being used in the wild?

mitchmindtree avatar Aug 04 '21 17:08 mitchmindtree

Planar is the term used by FFmpeg (which I'm using together with DASP). It seems to have leaked out into other products using it, like Shotcut, but also to Gstreamer and WebAudio. The term is also used in Qt, but for video.

rawler avatar Aug 11 '21 08:08 rawler

write my own functionality for iteration over sequences of Frames

@rawler maybe that code could be the basis for implementing this upstream?

Be-ing avatar Nov 30 '21 21:11 Be-ing