mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
010b9547d3
Optimize LE<->BE conversion by adding a dedicated fast path instead of using the generic converter. Implement transform_ip function in order to do the endian swap in place. This saves buffer allocation for the intermediate format, can be done in place and also performs the conversion in one step instead of unpack-convert-pack. For all bit widths the naive algorithm is implemented, which provides the best performance when compiled with -O3. ORC was considered but eventually removed as it requires a dedicated function for in-place conversion (due to the "restrict" parameters). A more complex algorithm for the 24-bit conversion with unrolled loop and 32-bit processing is implemented in the #if 0 section. It performs better if compiled with -O2. With -O3 however the naive algorithm performs better. https://bugzilla.gnome.org/show_bug.cgi?id=773073 |
||
---|---|---|
.. | ||
adder | ||
app | ||
audioconvert | ||
audiorate | ||
audioresample | ||
audiotestsrc | ||
encoding | ||
gio | ||
pbtypes | ||
playback | ||
subparse | ||
tcp | ||
typefind | ||
videoconvert | ||
videorate | ||
videoscale | ||
videotestsrc | ||
volume | ||
Makefile.am | ||
meson.build |