"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/ppc/idctdsp.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.

idctdsp.c  (libav-11.7):idctdsp.c  (libav-11.8)
skipping to change at line 46 skipping to change at line 46
#if HAVE_ALTIVEC_H #if HAVE_ALTIVEC_H
#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 "libavcodec/idctdsp.h" #include "libavcodec/idctdsp.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC && HAVE_BIGENDIAN
#define IDCT_HALF \ #define IDCT_HALF \
/* 1st stage */ \ /* 1st stage */ \
t1 = vec_mradds(a1, vx7, vx1); \ t1 = vec_mradds(a1, vx7, vx1); \
t8 = vec_mradds(a1, vx1, vec_subs(zero, vx7)); \ t8 = vec_mradds(a1, vx1, vec_subs(zero, vx7)); \
t7 = vec_mradds(a2, vx5, vx3); \ t7 = vec_mradds(a2, vx5, vx3); \
t3 = vec_mradds(ma2, vx3, vx5); \ t3 = vec_mradds(ma2, vx3, vx5); \
\ \
/* 2nd stage */ \ /* 2nd stage */ \
t5 = vec_adds(vx0, vx4); \ t5 = vec_adds(vx0, vx4); \
skipping to change at line 233 skipping to change at line 233
ADD(dest, vx6, perm0); ADD(dest, vx6, perm0);
dest += stride; dest += stride;
ADD(dest, vx7, perm1); ADD(dest, vx7, perm1);
} }
#endif /* HAVE_ALTIVEC */ #endif /* HAVE_ALTIVEC */
av_cold void ff_idctdsp_init_ppc(IDCTDSPContext *c, AVCodecContext *avctx, av_cold void ff_idctdsp_init_ppc(IDCTDSPContext *c, AVCodecContext *avctx,
unsigned high_bit_depth) unsigned high_bit_depth)
{ {
#if HAVE_ALTIVEC #if HAVE_ALTIVEC && HAVE_BIGENDIAN
if (!PPC_ALTIVEC(av_get_cpu_flags())) if (!PPC_ALTIVEC(av_get_cpu_flags()))
return; return;
if (!high_bit_depth) { if (!high_bit_depth) {
if ((avctx->idct_algo == FF_IDCT_AUTO) || if ((avctx->idct_algo == FF_IDCT_AUTO) ||
(avctx->idct_algo == FF_IDCT_ALTIVEC)) { (avctx->idct_algo == FF_IDCT_ALTIVEC)) {
c->idct_add = idct_add_altivec; c->idct_add = idct_add_altivec;
c->idct_put = idct_put_altivec; c->idct_put = idct_put_altivec;
c->perm_type = FF_IDCT_PERM_TRANSPOSE; c->perm_type = FF_IDCT_PERM_TRANSPOSE;
} }
 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