Commit 172b0e2e authored by Clément Bœsch's avatar Clément Bœsch

Merge commit 'ea7ee4b4'

* commit 'ea7ee4b4':
  ppc: Centralize compiler-specific altivec.h #include handling in one place
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 3a033bc5 ea7ee4b4
...@@ -24,15 +24,12 @@ ...@@ -24,15 +24,12 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/audiodsp.h" #include "libavcodec/audiodsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -21,16 +21,15 @@ ...@@ -21,16 +21,15 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include <string.h> #include <string.h>
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/blockdsp.h" #include "libavcodec/blockdsp.h"
/* ***** WARNING ***** WARNING ***** WARNING ***** */ /* ***** WARNING ***** WARNING ***** WARNING ***** */
......
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/fdctdsp.h" #include "libavcodec/fdctdsp.h"
#include "fdct.h" #include "fdct.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "config.h" #include "config.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/fft.h" #include "libavcodec/fft.h"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "config.h" #include "config.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/fft.h" #include "libavcodec/fft.h"
#include "libavcodec/fft-internal.h" #include "libavcodec/fft-internal.h"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "config.h" #include "config.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/fft.h" #include "libavcodec/fft.h"
#include "libavcodec/fft-internal.h" #include "libavcodec/fft-internal.h"
......
...@@ -19,12 +19,13 @@ ...@@ -19,12 +19,13 @@
*/ */
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/h264chroma.h" #include "libavcodec/h264chroma.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
*/ */
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
/* this code assume that stride % 16 == 0 */ /* this code assume that stride % 16 == 0 */
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/h264dec.h" #include "libavcodec/h264dec.h"
......
...@@ -19,13 +19,15 @@ ...@@ -19,13 +19,15 @@
*/ */
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/h264qpel.h" #include "libavcodec/h264qpel.h"
#include "hpeldsp_altivec.h" #include "hpeldsp_altivec.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#define ASSERT_ALIGNED(ptr) av_assert2(!((uintptr_t)ptr&0x0000000F)); #define ASSERT_ALIGNED(ptr) av_assert2(!((uintptr_t)ptr&0x0000000F));
......
...@@ -20,13 +20,10 @@ ...@@ -20,13 +20,10 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/hevcdsp.h" #include "libavcodec/hevcdsp.h"
......
...@@ -22,16 +22,13 @@ ...@@ -22,16 +22,13 @@
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/hpeldsp.h" #include "libavcodec/hpeldsp.h"
#include "hpeldsp_altivec.h" #include "hpeldsp_altivec.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -30,17 +30,16 @@ ...@@ -30,17 +30,16 @@
* IDCT function itself was to factor out the partial transposition, and to * IDCT function itself was to factor out the partial transposition, and to
* perform a full transpose at the end of the function. */ * perform a full transpose at the end of the function. */
#include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/idctdsp.h" #include "libavcodec/idctdsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -19,14 +19,12 @@ ...@@ -19,14 +19,12 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/lossless_audiodsp.h" #include "libavcodec/lossless_audiodsp.h"
#if HAVE_BIGENDIAN #if HAVE_BIGENDIAN
......
...@@ -21,15 +21,12 @@ ...@@ -21,15 +21,12 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/lossless_videodsp.h" #include "libavcodec/lossless_videodsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -21,15 +21,12 @@ ...@@ -21,15 +21,12 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
#include "libavcodec/mpegvideo.h" #include "libavcodec/mpegvideo.h"
#include "libavcodec/me_cmp.h" #include "libavcodec/me_cmp.h"
......
...@@ -25,11 +25,12 @@ ...@@ -25,11 +25,12 @@
#include <stdio.h> #include <stdio.h>
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/mpegvideo.h" #include "libavcodec/mpegvideo.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/mpegvideodsp.h" #include "libavcodec/mpegvideodsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -17,16 +17,14 @@ ...@@ -17,16 +17,14 @@
*/ */
#include "config.h" #include "config.h"
#include <stdint.h> #include <stdint.h>
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/mpegvideoencdsp.h" #include "libavcodec/mpegvideoencdsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -21,15 +21,12 @@ ...@@ -21,15 +21,12 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
#include "libavcodec/pixblockdsp.h" #include "libavcodec/pixblockdsp.h"
......
...@@ -18,18 +18,15 @@ ...@@ -18,18 +18,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdint.h>
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h> #include <stdint.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/svq1enc.h" #include "libavcodec/svq1enc.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -20,11 +20,12 @@ ...@@ -20,11 +20,12 @@
*/ */
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/vc1dsp.h" #include "libavcodec/vc1dsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/vorbisdsp.h" #include "libavcodec/vorbisdsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -21,11 +21,12 @@ ...@@ -21,11 +21,12 @@
#include <string.h> #include <string.h>
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/vp3dsp.h" #include "libavcodec/vp3dsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -21,12 +21,14 @@ ...@@ -21,12 +21,14 @@
*/ */
#include "config.h" #include "config.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/vp8dsp.h" #include "libavcodec/vp8dsp.h"
#include "hpeldsp_altivec.h" #include "hpeldsp_altivec.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC
......
...@@ -89,6 +89,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks ...@@ -89,6 +89,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
#include "postprocess.h" #include "postprocess.h"
#include "postprocess_internal.h" #include "postprocess_internal.h"
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavutil/ffversion.h" #include "libavutil/ffversion.h"
const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION; const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
...@@ -110,10 +111,6 @@ const char *postproc_license(void) ...@@ -110,10 +111,6 @@ const char *postproc_license(void)
return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
} }
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#define GET_MODE_BUFFER_SIZE 500 #define GET_MODE_BUFFER_SIZE 500
#define OPTIONS_ARRAY_SIZE 10 #define OPTIONS_ARRAY_SIZE 10
#define BLOCK_SIZE 8 #define BLOCK_SIZE 8
......
...@@ -22,11 +22,6 @@ ...@@ -22,11 +22,6 @@
#define SWSCALE_SWSCALE_INTERNAL_H #define SWSCALE_SWSCALE_INTERNAL_H
#include "config.h" #include "config.h"
#if HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#include "version.h" #include "version.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
...@@ -36,6 +31,7 @@ ...@@ -36,6 +31,7 @@
#include "libavutil/log.h" #include "libavutil/log.h"
#include "libavutil/pixfmt.h" #include "libavutil/pixfmt.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavutil/ppc/util_altivec.h"
#define STR(s) AV_TOSTRING(s) // AV_STRINGIFY is too long #define STR(s) AV_TOSTRING(s) // AV_STRINGIFY is too long
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment