[Ffmpeg-cvslog] r5725 - in trunk: configure libavcodec/Makefile libavcodec/allcodecs.c libavcodec/amr.c

mru subversion
Wed Jul 12 18:49:15 CEST 2006


Author: mru
Date: Wed Jul 12 18:49:14 2006
New Revision: 5725

Modified:
   trunk/configure
   trunk/libavcodec/Makefile
   trunk/libavcodec/allcodecs.c
   trunk/libavcodec/amr.c

Log:
rename AMR config variables to CONFIG_AMR*


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Wed Jul 12 18:49:14 2006
@@ -2066,13 +2066,13 @@
 echo "BUILD_ROOT=$PWD" >> config.mak
 
 if test "$amr" = "yes" ; then
-  echo "#define AMR 1" >> $TMPH
-  echo "AMR=yes" >> config.mak
+  echo "#define CONFIG_AMR 1" >> $TMPH
+  echo "CONFIG_AMR=yes" >> config.mak
 fi
 
 if test "$amr_wb" = "yes" ; then
-  echo "#define AMR_WB 1" >> $TMPH
-  echo "AMR_WB=yes" >> config.mak
+  echo "#define CONFIG_AMR_WB 1" >> $TMPH
+  echo "CONFIG_AMR_WB=yes" >> config.mak
   echo
   echo "AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204"
   echo "V5.1.0 from "
@@ -2081,8 +2081,8 @@
 fi
 
 if test "$amr_nb" = "yes" ; then
-  echo "#define AMR_NB 1" >> $TMPH
-  echo "AMR_NB=yes" >> config.mak
+  echo "#define CONFIG_AMR_NB 1" >> $TMPH
+  echo "CONFIG_AMR_NB=yes" >> config.mak
   echo
   echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104"
   echo "REL-5 V5.1.0 from "
@@ -2092,8 +2092,8 @@
 fi
 
 if test "$amr_nb_fixed" = "yes" ; then
-  echo "#define AMR_NB_FIXED 1" >> $TMPH
-  echo "AMR_NB_FIXED=yes" >> config.mak
+  echo "#define CONFIG_AMR_NB_FIXED 1" >> $TMPH
+  echo "CONFIG_AMR_NB_FIXED=yes" >> config.mak
   echo
   echo "AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073 "
   echo "REL-5 version 5.1.0 from "

Modified: trunk/libavcodec/Makefile
==============================================================================
--- trunk/libavcodec/Makefile	(original)
+++ trunk/libavcodec/Makefile	Wed Jul 12 18:49:14 2006
@@ -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    \

Modified: trunk/libavcodec/allcodecs.c
==============================================================================
--- trunk/libavcodec/allcodecs.c	(original)
+++ trunk/libavcodec/allcodecs.c	Wed Jul 12 18:49:14 2006
@@ -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);

Modified: trunk/libavcodec/amr.c
==============================================================================
--- trunk/libavcodec/amr.c	(original)
+++ trunk/libavcodec/amr.c	Wed Jul 12 18:49:14 2006
@@ -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




More information about the ffmpeg-cvslog mailing list