[Bug 751605] New: audio: Add proper support for non-interleaved / planar audio
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Sun Jun 28 03:53:38 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=751605
Bug ID: 751605
Summary: audio: Add proper support for non-interleaved / planar
audio
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: enhancement
Priority: Normal
Component: gst-plugins-base
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: slomo at coaxion.net
QA Contact: gstreamer-bugs at lists.freedesktop.org
CC: ensonic at sonicpulse.de
Blocks: 705986
GNOME version: ---
This is related to bug #705986. Currently we have a field in the caps for that,
however that's not enough.
Similar to planar video formats, there can be alignment constraints for each
"plane" / channel. So that for each channel you e.g. allocate
GST_ROUND_UP_16(samples*bpf).
This sounds like we need to add a GstAudioNonInterleavedMeta. This should
contain an array of channel offsets at least and the number of samples in this
buffer. Which should be enough to support the two relevant cases: 1) one big
memory with channels at some offset in there, 2) one memory per channel,
according to the buffer each channel directly coming after the previous but
actually in different memory areas.
In theory we could go without the meta by always doing things like in case 2),
and if necessary wrapping multiple GstMemory around a single memory area.
However that would be less efficient.
If the meta is not available, we should assume that one channel comes directly
after the other without any padding/alignment.
Any comments, ideas, ...?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list