Remove hackish support for the non-free fixed-point AMR-NB reference code.

Originally committed as revision 8813 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Diego Biurrun 18 years ago
parent 8d27c5f891
commit 73508bc6d3
  1. 13
      configure
  2. 23
      doc/ffmpeg-doc.texi
  3. 10
      libavcodec/Makefile

13
configure vendored

@ -99,7 +99,6 @@ show_help(){
echo " --enable-xvid enable Xvid encoding via xvidcore," echo " --enable-xvid enable Xvid encoding via xvidcore,"
echo " native MPEG-4/Xvid encoder exists [default=no]" echo " native MPEG-4/Xvid encoder exists [default=no]"
echo " --enable-amr-nb enable amr-nb floating point audio codec" echo " --enable-amr-nb enable amr-nb floating point audio codec"
echo " --enable-amr-nb-fixed enable amr-nb fixed-point codec"
echo " --enable-amr-wb enable amr-wb floating point audio codec" echo " --enable-amr-wb enable amr-wb floating point audio codec"
echo "" echo ""
echo "Advanced options (experts only):" echo "Advanced options (experts only):"
@ -557,7 +556,6 @@ CONFIG_LIST='
demuxers demuxers
amr amr
amr_nb amr_nb
amr_nb_fixed
amr_wb amr_wb
audio_beos audio_beos
audio_oss audio_oss
@ -683,8 +681,8 @@ zmbv_encoder_deps="zlib"
aac_decoder_deps="libfaad" aac_decoder_deps="libfaad"
mpeg4aac_decoder_deps="libfaad" mpeg4aac_decoder_deps="libfaad"
amr_nb_decoder_deps_any="amr_nb amr_nb_fixed" amr_nb_decoder_deps="amr_nb"
amr_nb_encoder_deps_any="amr_nb amr_nb_fixed" amr_nb_encoder_deps="amr_nb"
amr_wb_decoder_deps="amr_wb" amr_wb_decoder_deps="amr_wb"
amr_wb_encoder_deps="amr_wb" amr_wb_encoder_deps="amr_wb"
dts_decoder_deps="libdts" dts_decoder_deps="libdts"
@ -790,7 +788,6 @@ v4l="yes"
# libraries # libraries
amr_nb="no" amr_nb="no"
amr_nb_fixed="no"
amr_wb="no" amr_wb="no"
avisynth="no" avisynth="no"
dc1394="no" dc1394="no"
@ -1579,9 +1576,7 @@ for thread in $THREADS_LIST; do
fi fi
done done
enabled_any amr_nb amr_nb_fixed amr_wb && enable amr enabled_any amr_nb amr_wb && enable amr
enabled_all amr_nb amr_nb_fixed &&
die "Only one of amr_nb and amr_nb_fixed may be enabled."
# these are off by default, so fail if requested and not available # these are off by default, so fail if requested and not available
enabled amr_nb && require libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm enabled amr_nb && require libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm
@ -1860,7 +1855,6 @@ echo "x264 enabled $x264"
echo "XviD enabled $xvid" echo "XviD enabled $xvid"
echo "zlib enabled $zlib" echo "zlib enabled $zlib"
echo "AMR-NB float support $amr_nb" echo "AMR-NB float support $amr_nb"
echo "AMR-NB fixed support $amr_nb_fixed"
echo "AMR-WB float support $amr_wb" echo "AMR-WB float support $amr_wb"
if disabled gpl; then if disabled gpl; then
echo "License: LGPL" echo "License: LGPL"
@ -2042,7 +2036,6 @@ if enabled source_path_used; then
libavcodec/sparc \ libavcodec/sparc \
libavcodec/mlib \ libavcodec/mlib \
libavcodec/ppc \ libavcodec/ppc \
libavcodec/amr \
libpostproc \ libpostproc \
libavutil \ libavutil \
libswscale \ libswscale \

@ -844,25 +844,12 @@ explicitly requested by passing the appropriate flags to @file{./configure}.
@section AMR @section AMR
AMR comes in two different flavors, WB and NB. FFmpeg can make use of the AMR comes in two different flavors, WB and NB. FFmpeg can make use of the
AMR WB (floating-point mode) and the AMR NB (both floating-point and AMR WB (floating-point mode) and the AMR NB (floating-point mode) reference
fixed-point mode) reference decoders and encoders. decoders and encoders.
@itemize Go to @url{http://www.penguin.cz/~utx/amr} and follow the instructions for
installing the libraries. Then pass @code{--enable-amr-nb} and/or
@item For AMR WB floating-point and AMR NB floating point support, go to @code{--enable-amr-wb} to configure to enable the libraries.
@url{http://www.penguin.cz/~utx/amr} and follow the instructions for building
the libraries. Pass @code{--enable-amr-nb} and/or @code{--enable-amr-wb} to
configure to enable the libraries.
@item For AMR NB fixed-point download TS26.073 REL-6 V6.0.0 from
@url{http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-600.zip}
and extract the source to the directory @file{libavcodec/amr}.
You must also add @code{-DMMS_IO} to @code{CFLAGS} in
@file{libavcodec/amr/makefile}, i.e.
``@code{CFLAGS = -Wall -pedantic-errors -I. $(CFLAGS_$(MODE)) -D$(VAD) -DMMS_IO}''.
Pass @code{--enable-amr-nb-fixed} to configure to enable it.
@end itemize
@chapter Supported File Formats and Codecs @chapter Supported File Formats and Codecs

@ -271,10 +271,6 @@ OBJS-$(CONFIG_X264) += x264.o
OBJS-$(CONFIG_XVID) += xvidff.o xvid_rc.o OBJS-$(CONFIG_XVID) += xvidff.o xvid_rc.o
OBJS-$(CONFIG_AMR) += amr.o OBJS-$(CONFIG_AMR) += amr.o
ifeq ($(CONFIG_AMR_NB_FIXED),yes)
EXTRAOBJS += amr/*.o
EXTRADEPS=amrlibs
endif
OBJS-$(CONFIG_AAC_PARSER) += parser.o OBJS-$(CONFIG_AAC_PARSER) += parser.o
@ -397,9 +393,6 @@ endif
include ../common.mak include ../common.mak
amrlibs:
$(MAKE) -C amr spclib fipoplib
tests: apiexample $(TESTS) tests: apiexample $(TESTS)
clean:: clean::
@ -413,7 +406,6 @@ clean::
sh4/*.o sh4/*~ \ sh4/*.o sh4/*~ \
sparc/*.o sparc/*~ \ sparc/*.o sparc/*~ \
apiexample $(TESTS) apiexample $(TESTS)
-$(MAKE) -C amr clean
apiexample: apiexample.o $(LIB) apiexample: apiexample.o $(LIB)
@ -429,4 +421,4 @@ motion-test: motion_test.o $(LIB)
fft-test: fft-test.o $(LIB) fft-test: fft-test.o $(LIB)
.PHONY: amrlibs tests .PHONY: tests

Loading…
Cancel
Save