Mercurial > libavcodec.hg
changeset 4843:0e11f292482f libavcodec
Replace hackish support for amr-nb and amr-wb. Instead of including the source
of the reference implementation it is possible to use proper libraries now.
patch by Stanislav Brabec, sbrabec suse cz, changes and bug fixes by me
author | diego |
---|---|
date | Thu, 12 Apr 2007 10:59:52 +0000 |
parents | c3b0eb402862 |
children | 117fb6fbc6b2 |
files | Makefile amr.c |
diffstat | 2 files changed, 6 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Apr 12 10:27:40 2007 +0000 +++ b/Makefile Thu Apr 12 10:59:52 2007 +0000 @@ -4,7 +4,7 @@ # include ../config.mak -CFLAGS+=-I$(SRC_PATH)/libswscale $(AMR_CFLAGS) +CFLAGS+=-I$(SRC_PATH)/libswscale OBJS= bitstream.o \ utils.o \ @@ -270,33 +270,11 @@ OBJS-$(CONFIG_XVID) += xvidff.o xvid_rc.o OBJS-$(CONFIG_AMR) += amr.o -OBJS-$(CONFIG_AMR_NB) += amr_float/sp_dec.o \ - amr_float/sp_enc.o \ - amr_float/interf_dec.o \ - amr_float/interf_enc.o - ifeq ($(CONFIG_AMR_NB_FIXED),yes) EXTRAOBJS += amr/*.o EXTRADEPS=amrlibs endif -OBJS-$(CONFIG_AMR_WB) += amrwb_float/dec_acelp.o \ - amrwb_float/dec_dtx.o \ - amrwb_float/dec_gain.o \ - amrwb_float/dec_if.o \ - amrwb_float/dec_lpc.o \ - amrwb_float/dec_main.o \ - amrwb_float/dec_rom.o \ - amrwb_float/dec_util.o \ - amrwb_float/enc_acelp.o \ - amrwb_float/enc_dtx.o \ - amrwb_float/enc_gain.o \ - amrwb_float/enc_if.o \ - amrwb_float/enc_lpc.o \ - amrwb_float/enc_main.o \ - amrwb_float/enc_rom.o \ - amrwb_float/enc_util.o \ - amrwb_float/if_rom.o OBJS-$(CONFIG_AAC_PARSER) += parser.o OBJS-$(CONFIG_AC3_PARSER) += parser.o ac3.o @@ -433,10 +411,8 @@ ps2/*.o ps2/*~ \ sh4/*.o sh4/*~ \ sparc/*.o sparc/*~ \ - amr_float/*.o \ apiexample $(TESTS) -$(MAKE) -C amr clean - -$(MAKE) -C amrwb_float -f makefile.gcc clean apiexample: apiexample.o $(LIB)
--- a/amr.c Thu Apr 12 10:27:40 2007 +0000 +++ b/amr.c Thu Apr 12 10:59:52 2007 +0000 @@ -82,8 +82,8 @@ #include "amr/e_homing.h" #else -#include "amr_float/interf_dec.h" -#include "amr_float/interf_enc.h" +#include <amrnb/interf_dec.h> +#include <amrnb/interf_enc.h> #endif static const char *nb_bitrate_unsupported = @@ -532,8 +532,9 @@ #define typedef_h #endif -#include "amrwb_float/enc_if.h" -#include "amrwb_float/dec_if.h" +#include <amrwb/enc_if.h> +#include <amrwb/dec_if.h> +#include <amrwb/if_rom.h> /* Common code for fixed and float version*/ typedef struct AMRWB_bitrates @@ -652,8 +653,6 @@ return 0; } -extern const UWord8 block_size[]; - static int amr_wb_decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, int buf_size)