[Bug 773073] audioconvert: endian conversion optimization
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Oct 17 09:57:55 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=773073
--- Comment #3 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Check the audioconvert code, there are functions for more or less that but that
involves packing from S32 too.
Basically you write a simple loop for e.g. 16 bit samples:
> for (i = 0; i < nsamples; i++)
> dst[i] = GUINT16_SWAP_LE_BE(src[i])
and that's it. Same thing for 24, 32 and 64 bits. Any compiler should be able
to optimize that, even with SIMD instructions if it supports
auto-vectorization.
--
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