Originally committed as revision 11331 to svn://svn.ffmpeg.org/ffmpeg/trunktags/v0.5
| @@ -23,6 +23,8 @@ | |||||
| #ifndef FFMPEG_DSPUTIL_ALTIVEC_H | #ifndef FFMPEG_DSPUTIL_ALTIVEC_H | ||||
| #define FFMPEG_DSPUTIL_ALTIVEC_H | #define FFMPEG_DSPUTIL_ALTIVEC_H | ||||
| #include <stdint.h> | |||||
| #include "dsputil_ppc.h" | #include "dsputil_ppc.h" | ||||
| extern int has_altivec(void); | extern int has_altivec(void); | ||||
| @@ -23,6 +23,8 @@ | |||||
| #ifndef FFMPEG_GCC_FIXES_H | #ifndef FFMPEG_GCC_FIXES_H | ||||
| #define FFMPEG_GCC_FIXES_H | #define FFMPEG_GCC_FIXES_H | ||||
| #include "config.h" | |||||
| #ifdef HAVE_ALTIVEC_H | #ifdef HAVE_ALTIVEC_H | ||||
| #include <altivec.h> | #include <altivec.h> | ||||
| #endif | #endif | ||||
| @@ -19,6 +19,8 @@ | |||||
| #ifndef FFMPEG_IMGRESAMPLE_ALTIVEC_H | #ifndef FFMPEG_IMGRESAMPLE_ALTIVEC_H | ||||
| #define FFMPEG_IMGRESAMPLE_ALTIVEC_H | #define FFMPEG_IMGRESAMPLE_ALTIVEC_H | ||||
| #include <stdint.h> | |||||
| void v_resample16_altivec(uint8_t *dst, int dst_width, const uint8_t *src, | void v_resample16_altivec(uint8_t *dst, int dst_width, const uint8_t *src, | ||||
| int wrap, int16_t *filter); | int wrap, int16_t *filter); | ||||
| #endif /* FFMPEG_IMGRESAMPLE_ALTIVEC_H */ | #endif /* FFMPEG_IMGRESAMPLE_ALTIVEC_H */ | ||||
| @@ -24,6 +24,14 @@ | |||||
| #ifndef FFMPEG_UTIL_ALTIVEC_H | #ifndef FFMPEG_UTIL_ALTIVEC_H | ||||
| #define FFMPEG_UTIL_ALTIVEC_H | #define FFMPEG_UTIL_ALTIVEC_H | ||||
| #include <stdint.h> | |||||
| #include "config.h" | |||||
| #ifdef HAVE_ALTIVEC_H | |||||
| #include <altivec.h> | |||||
| #endif | |||||
| // used to build registers permutation vectors (vcprm) | // used to build registers permutation vectors (vcprm) | ||||
| // the 's' are for words in the _s_econd vector | // the 's' are for words in the _s_econd vector | ||||
| #define WORD_0 0x00,0x01,0x02,0x03 | #define WORD_0 0x00,0x01,0x02,0x03 | ||||