"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/ppc/mpegvideoencdsp.c" between
libav-11.7.tar.gz and libav-11.8.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

mpegvideoencdsp.c  (libav-11.7):mpegvideoencdsp.c  (libav-11.8)
skipping to change at line 32 skipping to change at line 32
#include <altivec.h> #include <altivec.h>
#endif #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/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 && HAVE_BIGENDIAN
static int pix_norm1_altivec(uint8_t *pix, int line_size) static int pix_norm1_altivec(uint8_t *pix, int line_size)
{ {
int i, s = 0; int i, s = 0;
const vector unsigned int zero = const vector unsigned int zero =
(const vector unsigned int) vec_splat_u32(0); (const vector unsigned int) vec_splat_u32(0);
vector unsigned char perm = vec_lvsl(0, pix); vector unsigned char perm = vec_lvsl(0, pix);
vector unsigned int sv = (vector unsigned int) vec_splat_u32(0); vector unsigned int sv = (vector unsigned int) vec_splat_u32(0);
vector signed int sum; vector signed int sum;
skipping to change at line 96 skipping to change at line 96
vec_ste(sumdiffs, 0, &s); vec_ste(sumdiffs, 0, &s);
return s; return s;
} }
#endif /* HAVE_ALTIVEC */ #endif /* HAVE_ALTIVEC */
av_cold void ff_mpegvideoencdsp_init_ppc(MpegvideoEncDSPContext *c, av_cold void ff_mpegvideoencdsp_init_ppc(MpegvideoEncDSPContext *c,
AVCodecContext *avctx) AVCodecContext *avctx)
{ {
#if HAVE_ALTIVEC #if HAVE_ALTIVEC && HAVE_BIGENDIAN
if (!PPC_ALTIVEC(av_get_cpu_flags())) if (!PPC_ALTIVEC(av_get_cpu_flags()))
return; return;
c->pix_norm1 = pix_norm1_altivec; c->pix_norm1 = pix_norm1_altivec;
c->pix_sum = pix_sum_altivec; c->pix_sum = pix_sum_altivec;
#endif /* HAVE_ALTIVEC */ #endif /* HAVE_ALTIVEC */
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS