diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-09 14:33:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-09 14:33:57 +0100 |
commit | 6b2e65078c02cb1e09b555603a1eb10ddb3bd244 (patch) | |
tree | 380272a56318a4153fce51926e1104de55fd262f /libavcodec | |
parent | 276c9c0577e99c870d4d281bc8f0df82b402efc4 (diff) | |
parent | 218aefce4472dc02ee3f12830a9a894bf7916da9 (diff) | |
download | ffmpeg-6b2e65078c02cb1e09b555603a1eb10ddb3bd244.tar.gz |
Merge commit '218aefce4472dc02ee3f12830a9a894bf7916da9'
* commit '218aefce4472dc02ee3f12830a9a894bf7916da9':
dsputil: Move LOCAL_ALIGNED macros to libavutil
Conflicts:
libavcodec/dvdec.c
libavcodec/imc.c
libavcodec/mpegvideo_motion.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aacps.c | 2 | ||||
-rw-r--r-- | libavcodec/aacsbr.c | 1 | ||||
-rw-r--r-- | libavcodec/ac3enc.c | 2 | ||||
-rw-r--r-- | libavcodec/ac3enc_template.c | 1 | ||||
-rw-r--r-- | libavcodec/bink.c | 1 | ||||
-rw-r--r-- | libavcodec/dcadec.c | 2 | ||||
-rw-r--r-- | libavcodec/dnxhdenc.c | 1 | ||||
-rw-r--r-- | libavcodec/dsputil.c | 1 | ||||
-rw-r--r-- | libavcodec/dsputil.h | 26 | ||||
-rw-r--r-- | libavcodec/dv.c | 1 | ||||
-rw-r--r-- | libavcodec/dvdec.c | 2 | ||||
-rw-r--r-- | libavcodec/h264_loopfilter.c | 2 | ||||
-rw-r--r-- | libavcodec/imc.c | 1 | ||||
-rw-r--r-- | libavcodec/ituh263dec.c | 1 | ||||
-rw-r--r-- | libavcodec/mpc7.c | 1 | ||||
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 1 | ||||
-rw-r--r-- | libavcodec/mpegvideo_motion.c | 2 | ||||
-rw-r--r-- | libavcodec/ppc/mpegaudiodec_altivec.c | 2 | ||||
-rw-r--r-- | libavcodec/ra288.c | 1 | ||||
-rw-r--r-- | libavcodec/rv34.c | 1 | ||||
-rw-r--r-- | libavcodec/simple_idct.c | 1 | ||||
-rw-r--r-- | libavcodec/takdec.c | 1 | ||||
-rw-r--r-- | libavcodec/x86/mpegaudiodec.c | 2 |
23 files changed, 21 insertions, 35 deletions
diff --git a/libavcodec/aacps.c b/libavcodec/aacps.c index 25ed1d0292..b82001e967 100644 --- a/libavcodec/aacps.c +++ b/libavcodec/aacps.c @@ -21,13 +21,13 @@ #include <stdint.h> #include "libavutil/common.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "avcodec.h" #include "get_bits.h" #include "aacps.h" #include "aacps_tablegen.h" #include "aacpsdata.c" -#include "dsputil.h" #define PS_BASELINE 0 ///< Operate in Baseline PS mode ///< Baseline implies 10 or 20 stereo bands, diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c index 4b6d34f89f..d746b6ea49 100644 --- a/libavcodec/aacsbr.c +++ b/libavcodec/aacsbr.c @@ -33,6 +33,7 @@ #include "fft.h" #include "aacps.h" #include "sbrdsp.h" +#include "libavutil/internal.h" #include "libavutil/libm.h" #include "libavutil/avassert.h" diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index de8defceb8..16f0cdc4de 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -34,10 +34,10 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/crc.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "avcodec.h" #include "put_bits.h" -#include "dsputil.h" #include "ac3dsp.h" #include "ac3.h" #include "fft.h" diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c index b1174dc219..18a849da8a 100644 --- a/libavcodec/ac3enc_template.c +++ b/libavcodec/ac3enc_template.c @@ -28,6 +28,7 @@ #include <stdint.h> +#include "libavutil/internal.h" /* prototypes for static functions in ac3enc_fixed.c and ac3enc_float.c */ diff --git a/libavcodec/bink.c b/libavcodec/bink.c index a48b8465d7..5d000a86b4 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -21,6 +21,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "avcodec.h" #include "dsputil.h" #include "binkdata.h" diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index e7ae6e2d20..ff6375dd79 100644 --- a/libavcodec/dcadec.c +++ b/libavcodec/dcadec.c @@ -29,12 +29,12 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/float_dsp.h" +#include "libavutil/internal.h" #include "libavutil/intmath.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" #include "libavutil/samplefmt.h" #include "avcodec.h" -#include "dsputil.h" #include "fft.h" #include "get_bits.h" #include "put_bits.h" diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 51f2af062a..4b6ce2f60b 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -26,6 +26,7 @@ //#define DEBUG #define RC_VARIANCE 1 // use variance or ssd for fast rc +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "avcodec.h" #include "dsputil.h" diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 518abae319..aff950ac4e 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -28,6 +28,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "avcodec.h" #include "copy_block.h" #include "dsputil.h" diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 4c806d17e3..b1adeccc25 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -436,30 +436,4 @@ void ff_dsputil_init_dwt(DSPContext *c); # define STRIDE_ALIGN 8 #endif -// Some broken preprocessors need a second expansion -// to be forced to tokenize __VA_ARGS__ -#define E(x) x - -#define LOCAL_ALIGNED_A(a, t, v, s, o, ...) \ - uint8_t la_##v[sizeof(t s o) + (a)]; \ - t (*v) o = (void *)FFALIGN((uintptr_t)la_##v, a) - -#define LOCAL_ALIGNED_D(a, t, v, s, o, ...) \ - DECLARE_ALIGNED(a, t, la_##v) s o; \ - t (*v) o = la_##v - -#define LOCAL_ALIGNED(a, t, v, ...) E(LOCAL_ALIGNED_A(a, t, v, __VA_ARGS__,,)) - -#if HAVE_LOCAL_ALIGNED_8 -# define LOCAL_ALIGNED_8(t, v, ...) E(LOCAL_ALIGNED_D(8, t, v, __VA_ARGS__,,)) -#else -# define LOCAL_ALIGNED_8(t, v, ...) LOCAL_ALIGNED(8, t, v, __VA_ARGS__) -#endif - -#if HAVE_LOCAL_ALIGNED_16 -# define LOCAL_ALIGNED_16(t, v, ...) E(LOCAL_ALIGNED_D(16, t, v, __VA_ARGS__,,)) -#else -# define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__) -#endif - #endif /* AVCODEC_DSPUTIL_H */ diff --git a/libavcodec/dv.c b/libavcodec/dv.c index e2a00a6c14..2a7fbe6672 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -38,6 +38,7 @@ * DV codec. */ +#include "libavutil/internal.h" #include "libavutil/pixdesc.h" #include "avcodec.h" #include "dsputil.h" diff --git a/libavcodec/dvdec.c b/libavcodec/dvdec.c index bb60fc0b13..64d2259a7b 100644 --- a/libavcodec/dvdec.c +++ b/libavcodec/dvdec.c @@ -36,9 +36,9 @@ */ #include "libavutil/avassert.h" +#include "libavutil/internal.h" #include "libavutil/pixdesc.h" #include "avcodec.h" -#include "dsputil.h" #include "internal.h" #include "get_bits.h" #include "put_bits.h" diff --git a/libavcodec/h264_loopfilter.c b/libavcodec/h264_loopfilter.c index 7cd9f69189..0ffc1aa63e 100644 --- a/libavcodec/h264_loopfilter.c +++ b/libavcodec/h264_loopfilter.c @@ -25,9 +25,9 @@ * @author Michael Niedermayer <michaelni@gmx.at> */ +#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "internal.h" -#include "dsputil.h" #include "avcodec.h" #include "mpegvideo.h" #include "h264.h" diff --git a/libavcodec/imc.c b/libavcodec/imc.c index a09e3c5d9f..c127b2559e 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -37,6 +37,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" +#include "libavutil/internal.h" #include "libavutil/libm.h" #include "avcodec.h" #include "get_bits.h" diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c index 1c7e34f317..4672e085bc 100644 --- a/libavcodec/ituh263dec.c +++ b/libavcodec/ituh263dec.c @@ -32,6 +32,7 @@ //#define DEBUG #include <limits.h> +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "dsputil.h" #include "avcodec.h" diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c index 2326a9bd8b..8d5955af34 100644 --- a/libavcodec/mpc7.c +++ b/libavcodec/mpc7.c @@ -26,6 +26,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/internal.h" #include "libavutil/lfg.h" #include "avcodec.h" #include "get_bits.h" diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 87531d7cd9..66781f9e24 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -27,6 +27,7 @@ * The simplest mpeg encoder (well, it was the simplest!). */ +#include "libavutil/internal.h" #include "libavutil/intmath.h" #include "libavutil/mathematics.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c index 22381dea27..565f6cb286 100644 --- a/libavcodec/mpegvideo_motion.c +++ b/libavcodec/mpegvideo_motion.c @@ -22,7 +22,9 @@ */ #include <string.h> + #include "libavutil/avassert.h" +#include "libavutil/internal.h" #include "avcodec.h" #include "dsputil.h" #include "mpegvideo.h" diff --git a/libavcodec/ppc/mpegaudiodec_altivec.c b/libavcodec/ppc/mpegaudiodec_altivec.c index bf6e1c33a4..1152fd77ac 100644 --- a/libavcodec/ppc/mpegaudiodec_altivec.c +++ b/libavcodec/ppc/mpegaudiodec_altivec.c @@ -21,8 +21,8 @@ #include "dsputil_altivec.h" #include "libavutil/attributes.h" +#include "libavutil/internal.h" #include "libavutil/ppc/util_altivec.h" -#include "libavcodec/dsputil.h" #include "libavcodec/mpegaudiodsp.h" #define MACS(rt, ra, rb) rt+=(ra)*(rb) diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index 8bafc010e1..e0e876dbd9 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -21,6 +21,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/float_dsp.h" +#include "libavutil/internal.h" #include "avcodec.h" #include "internal.h" #define BITSTREAM_READER_LE diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index eb431ee1e2..a2f074eb12 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -28,7 +28,6 @@ #include "libavutil/internal.h" #include "avcodec.h" -#include "dsputil.h" #include "mpegvideo.h" #include "golomb.h" #include "internal.h" diff --git a/libavcodec/simple_idct.c b/libavcodec/simple_idct.c index 2cbe568c20..d204565ea4 100644 --- a/libavcodec/simple_idct.c +++ b/libavcodec/simple_idct.c @@ -27,7 +27,6 @@ #include "libavutil/intreadwrite.h" #include "avcodec.h" -#include "dsputil.h" #include "mathops.h" #include "simple_idct.h" diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index af6454304c..f6cacb02c8 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -25,6 +25,7 @@ * @author Paul B Mahol */ +#include "libavutil/internal.h" #include "libavutil/samplefmt.h" #include "tak.h" #include "avcodec.h" diff --git a/libavcodec/x86/mpegaudiodec.c b/libavcodec/x86/mpegaudiodec.c index ee93a84956..287d8ff126 100644 --- a/libavcodec/x86/mpegaudiodec.c +++ b/libavcodec/x86/mpegaudiodec.c @@ -21,9 +21,9 @@ #include "libavutil/attributes.h" #include "libavutil/cpu.h" +#include "libavutil/internal.h" #include "libavutil/x86/asm.h" #include "libavutil/x86/cpu.h" -#include "libavcodec/dsputil.h" #include "libavcodec/mpegaudiodsp.h" #define DECL(CPU)\ |