This patch set creates a new flacdsp subsystem from some code suitable for (simd) optimisation. Using the flexibility thus provided, it then adds support planar output formats.
For some reason, these changes speed up decoding by about 7% on both x86 and ARM. Mans Rullgard (8): flacdec: remove curr_bps from FLACContext flacdec: allocate sample buffers with av_malloc flac: make FLAC_CHMODE_* constants consecutive flacdec: factor out code setting avctx->sample_fmt flacdec: split off channel decorrelation as flacdsp flacdec: move lpc filter to flacdsp flacdec: add planar output support lavc: options: add planar names for request_sample_fmt libavcodec/Makefile | 2 +- libavcodec/flac.c | 3 +- libavcodec/flac.h | 8 +-- libavcodec/flacdec.c | 156 ++++++++++++++--------------------------- libavcodec/flacdsp.c | 121 ++++++++++++++++++++++++++++++++ libavcodec/flacdsp.h | 34 +++++++++ libavcodec/flacdsp_template.c | 103 +++++++++++++++++++++++++++ libavcodec/flacenc.c | 13 +--- libavcodec/options_table.h | 5 ++ 9 files changed, 324 insertions(+), 121 deletions(-) create mode 100644 libavcodec/flacdsp.c create mode 100644 libavcodec/flacdsp.h create mode 100644 libavcodec/flacdsp_template.c -- 1.7.10.2 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
