[Bug 751605] audio: Add proper support for non-interleaved / planar audio

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 23 09:50:06 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=751605

--- Comment #32 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to George Kiagiadakis from comment #31)
> 
> > @@ +55,3 @@
> > +
> > +  gint         n_planes;
> > +  gsize        plane_size;
> > 
> > Or plane_stride?
> 
> Hmm, it's called a plane_stride in GstVideoFrame, but it somehow feels wrong
> here. By convention we usually call "size" the valid amount of information
> and "stride" the step that you have to make to find the next valid object in
> memory.
> 
> In this case plane_size is the amount of valid data. Doing planes[i] +
> plane_size will NOT necessarily give you a pointer to the next plane.

Ah then I misunderstood. But then this is redudant or not? That's simply
n_samples*width/8, and could just move that calculation into a macro instead of
storing it.

-- 
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