[FFmpeg-devel] [PATCH 0/3] floating-point AC-3 encoder
Justin Ruggles
justin.ruggles
Fri Dec 31 21:11:37 CET 2010
Here is my 2nd attempt at adding a floating-point AC-3 encoder.
This time I modelled it on the mp3 decoder per Michael's suggestion.
I made the new floating-point decoder the default and kept the name
ac3_encoder for that one. I renamed the current encoder
ac3_fixed_encoder.
Justin Ruggles (3):
Move fixed-point parts of the AC-3 encoder to separate files.
Add floating-point AC-3 encoder. Rename the fixed-point AC-3
encoder ac3_fixed_encoder. Rename test acodec-ac3 to
acodec-ac3_fixed and update dependencies. Modify test lavf-rm
to use -acodec ac3_fixed.
Use DSPContext.vector_fmul() and DSPContext.vector_fmul_reverse() in
floating-point version of apply_window(). 46% faster in
function apply_window().
configure | 3 +-
libavcodec/Makefile | 3 +-
libavcodec/ac3enc.c | 447 +++-----------------------------------------
libavcodec/ac3enc_fixed.c | 429 ++++++++++++++++++++++++++++++++++++++++++
libavcodec/ac3enc_fixed.h | 60 ++++++
libavcodec/ac3enc_float.c | 112 +++++++++++
libavcodec/ac3enc_float.h | 46 +++++
libavcodec/allcodecs.c | 1 +
tests/codec-regression.sh | 4 +-
tests/lavf-regression.sh | 2 +-
tests/ref/acodec/ac3 | 2 -
tests/ref/acodec/ac3_fixed | 2 +
12 files changed, 683 insertions(+), 428 deletions(-)
create mode 100644 libavcodec/ac3enc_fixed.c
create mode 100644 libavcodec/ac3enc_fixed.h
create mode 100644 libavcodec/ac3enc_float.c
create mode 100644 libavcodec/ac3enc_float.h
delete mode 100644 tests/ref/acodec/ac3
create mode 100644 tests/ref/acodec/ac3_fixed
More information about the ffmpeg-devel
mailing list