changeset 3463:444bd402aebe libavcodec

rename AMR config variables to CONFIG_AMR*
author mru
date Wed, 12 Jul 2006 16:49:14 +0000
parents a26e6e169607
children 9cda085ab7cc
files Makefile allcodecs.c amr.c
diffstat 3 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Jul 12 15:19:51 2006 +0000
+++ b/Makefile	Wed Jul 12 16:49:14 2006 +0000
@@ -228,18 +228,18 @@
 # currently using libdts for dts decoding
 OBJS-$(CONFIG_DTS)                     += dtsdec.o
 
-OBJS-$(AMR)                            += amr.o
-OBJS-$(AMR_NB)                         += amr_float/sp_dec.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 ($(AMR_NB_FIXED),yes)
+ifeq ($(CONFIG_AMR_NB_FIXED),yes)
 EXTRAOBJS += amr/*.o
 EXTRADEPS=amrlibs
 endif
 
-OBJS-$(AMR_WB)                        +=  amrwb_float/dec_acelp.o \
+OBJS-$(CONFIG_AMR_WB)                 +=  amrwb_float/dec_acelp.o \
                                           amrwb_float/dec_dtx.o   \
                                           amrwb_float/dec_gain.o  \
                                           amrwb_float/dec_if.o    \
--- a/allcodecs.c	Wed Jul 12 15:19:51 2006 +0000
+++ b/allcodecs.c	Wed Jul 12 16:49:14 2006 +0000
@@ -540,7 +540,7 @@
 #endif //CONFIG_FLASHSV_DECODER
 #endif /* CONFIG_DECODERS */
 
-#if defined(AMR_NB) || defined(AMR_NB_FIXED)
+#if defined(CONFIG_AMR_NB) || defined(CONFIG_AMR_NB_FIXED)
 #ifdef CONFIG_AMR_NB_DECODER
     register_avcodec(&amr_nb_decoder);
 #endif //CONFIG_AMR_NB_DECODER
@@ -549,9 +549,9 @@
     register_avcodec(&amr_nb_encoder);
 #endif //CONFIG_AMR_NB_ENCODER
 #endif //CONFIG_ENCODERS
-#endif /* AMR_NB || AMR_NB_FIXED */
+#endif /* CONFIG_AMR_NB || CONFIG_AMR_NB_FIXED */
 
-#ifdef AMR_WB
+#ifdef CONFIG_AMR_WB
 #ifdef CONFIG_AMR_WB_DECODER
     register_avcodec(&amr_wb_decoder);
 #endif //CONFIG_AMR_WB_DECODER
@@ -560,7 +560,7 @@
     register_avcodec(&amr_wb_encoder);
 #endif //CONFIG_AMR_WB_ENCODER
 #endif //CONFIG_ENCODERS
-#endif /* AMR_WB */
+#endif /* CONFIG_AMR_WB */
 
 #ifdef CONFIG_BMP_DECODER
     register_avcodec(&bmp_decoder);
--- a/amr.c	Wed Jul 12 15:19:51 2006 +0000
+++ b/amr.c	Wed Jul 12 16:49:14 2006 +0000
@@ -55,7 +55,7 @@
 
 #include "avcodec.h"
 
-#ifdef AMR_NB_FIXED
+#ifdef CONFIG_AMR_NB_FIXED
 
 #define MMS_IO
 
@@ -107,7 +107,7 @@
     return(MR122);
 }
 
-#ifdef AMR_NB_FIXED
+#ifdef CONFIG_AMR_NB_FIXED
 /* fixed point version*/
 /* frame size in serial bitstream file (frame type + serial stream + flags) */
 #define SERIAL_FRAMESIZE (1+MAX_SERIAL_SIZE+5)
@@ -326,7 +326,7 @@
 }
 
 
-#elif defined(AMR_NB) /* Float point version*/
+#elif defined(CONFIG_AMR_NB) /* Float point version*/
 
 typedef struct AMRContext {
     int frameCount;
@@ -457,7 +457,7 @@
 
 #endif
 
-#if defined(AMR_NB) || defined(AMR_NB_FIXED)
+#if defined(CONFIG_AMR_NB) || defined(CONFIG_AMR_NB_FIXED)
 
 AVCodec amr_nb_decoder =
 {
@@ -486,7 +486,7 @@
 #endif
 
 /* -----------AMR wideband ------------*/
-#ifdef AMR_WB
+#ifdef CONFIG_AMR_WB
 
 #ifdef _TYPEDEF_H
 //To avoid duplicate typedefs from typdef in amr-nb
@@ -661,4 +661,4 @@
     NULL,
 };
 
-#endif //AMR_WB
+#endif //CONFIG_AMR_WB