diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-04 19:46:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-04 19:46:06 +0200 |
commit | 5a20f1885d3b521afc8c63734cff724da0a87815 (patch) | |
tree | 0821c4d69bded8920fb886d2937023d758fd59ac /libavcodec | |
parent | 91a8b933fb6d9bf41f5885793bfcc0cb24de6100 (diff) | |
parent | f20518568a77a6138fc74021ce56013ab72907ba (diff) | |
download | ffmpeg-5a20f1885d3b521afc8c63734cff724da0a87815.tar.gz |
Merge commit 'f20518568a77a6138fc74021ce56013ab72907ba'
* commit 'f20518568a77a6138fc74021ce56013ab72907ba':
build: Split WMA frequencies into a separate object file
Conflicts:
configure
libavcodec/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/Makefile | 5 | ||||
-rw-r--r-- | libavcodec/binkaudio.c | 2 | ||||
-rw-r--r-- | libavcodec/wma.c | 1 | ||||
-rw-r--r-- | libavcodec/wma.h | 1 | ||||
-rw-r--r-- | libavcodec/wma_freqs.c | 28 | ||||
-rw-r--r-- | libavcodec/wma_freqs.h | 26 | ||||
-rw-r--r-- | libavcodec/wmadata.h | 7 |
7 files changed, 59 insertions, 11 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 8a56bd0c8a..fd96a1e1b9 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -94,6 +94,7 @@ OBJS-$(CONFIG_STARTCODE) += startcode.o OBJS-$(CONFIG_TPELDSP) += tpeldsp.o OBJS-$(CONFIG_VIDEODSP) += videodsp.o OBJS-$(CONFIG_VP3DSP) += vp3dsp.o +OBJS-$(CONFIG_WMA_FREQS) += wma_freqs.o # decoders/encoders OBJS-$(CONFIG_ZERO12V_DECODER) += 012v.o @@ -157,8 +158,8 @@ OBJS-$(CONFIG_AYUV_ENCODER) += v408enc.o OBJS-$(CONFIG_BETHSOFTVID_DECODER) += bethsoftvideo.o OBJS-$(CONFIG_BFI_DECODER) += bfi.o OBJS-$(CONFIG_BINK_DECODER) += bink.o binkdsp.o -OBJS-$(CONFIG_BINKAUDIO_DCT_DECODER) += binkaudio.o wma.o wma_common.o -OBJS-$(CONFIG_BINKAUDIO_RDFT_DECODER) += binkaudio.o wma.o wma_common.o +OBJS-$(CONFIG_BINKAUDIO_DCT_DECODER) += binkaudio.o +OBJS-$(CONFIG_BINKAUDIO_RDFT_DECODER) += binkaudio.o OBJS-$(CONFIG_BINTEXT_DECODER) += bintext.o cga_data.o OBJS-$(CONFIG_BMP_DECODER) += bmp.o msrledec.o OBJS-$(CONFIG_BMP_ENCODER) += bmpenc.o diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c index ffa32d12aa..064ee7e2c1 100644 --- a/libavcodec/binkaudio.c +++ b/libavcodec/binkaudio.c @@ -36,7 +36,7 @@ #include "rdft.h" #include "fmtconvert.h" #include "internal.h" -#include "wma.h" +#include "wma_freqs.h" #include "libavutil/intfloat.h" static float quant_table[96]; diff --git a/libavcodec/wma.c b/libavcodec/wma.c index 70ca5b9190..ecc7e41a51 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -25,6 +25,7 @@ #include "sinewin.h" #include "wma.h" #include "wma_common.h" +#include "wma_freqs.h" #include "wmadata.h" #undef NDEBUG diff --git a/libavcodec/wma.h b/libavcodec/wma.h index 66770829ab..6e5198a360 100644 --- a/libavcodec/wma.h +++ b/libavcodec/wma.h @@ -139,7 +139,6 @@ typedef struct WMACodecContext { #endif /* TRACE */ } WMACodecContext; -extern const uint16_t ff_wma_critical_freqs[25]; extern const uint16_t ff_wma_hgain_huffcodes[37]; extern const uint8_t ff_wma_hgain_huffbits[37]; extern const float ff_wma_lsp_codebook[NB_LSP_COEFS][16]; diff --git a/libavcodec/wma_freqs.c b/libavcodec/wma_freqs.c new file mode 100644 index 0000000000..03a283fca5 --- /dev/null +++ b/libavcodec/wma_freqs.c @@ -0,0 +1,28 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <stdint.h> + +#include "wma_freqs.h" + +const uint16_t ff_wma_critical_freqs[25] = { + 100, 200, 300, 400, 510, 630, 770, 920, + 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150, + 3700, 4400, 5300, 6400, 7700, 9500, 12000, 15500, + 24500, +}; diff --git a/libavcodec/wma_freqs.h b/libavcodec/wma_freqs.h new file mode 100644 index 0000000000..85c5f697b7 --- /dev/null +++ b/libavcodec/wma_freqs.h @@ -0,0 +1,26 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVCODEC_WMA_FREQS_H +#define AVCODEC_WMA_FREQS_H + +#include <stdint.h> + +extern const uint16_t ff_wma_critical_freqs[25]; + +#endif /* AVCODEC_WMA_FREQS */ diff --git a/libavcodec/wmadata.h b/libavcodec/wmadata.h index 5318cdc929..641cb1813c 100644 --- a/libavcodec/wmadata.h +++ b/libavcodec/wmadata.h @@ -31,13 +31,6 @@ #include "wma.h" -const uint16_t ff_wma_critical_freqs[25] = { - 100, 200, 300, 400, 510, 630, 770, 920, - 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150, - 3700, 4400, 5300, 6400, 7700, 9500, 12000, 15500, - 24500, -}; - /* first value is number of bands */ static const uint8_t exponent_band_22050[3][25] = { { 10, 4, 8, 4, 8, 8, 12, 20, 24, 24, 16, }, |