"Fossies" - the Fresh Open Source Software Archive  

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

fdctdsp.c  (libav-11.7):fdctdsp.c  (libav-11.8)
skipping to change at line 32 skipping to change at line 32
#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 "libavcodec/fdctdsp.h" #include "libavcodec/fdctdsp.h"
#include "fdct.h" #include "fdct.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC && HAVE_BIGENDIAN
#define vs16(v) ((vector signed short) (v)) #define vs16(v) ((vector signed short) (v))
#define vs32(v) ((vector signed int) (v)) #define vs32(v) ((vector signed int) (v))
#define vu8(v) ((vector unsigned char) (v)) #define vu8(v) ((vector unsigned char) (v))
#define vu16(v) ((vector unsigned short) (v)) #define vu16(v) ((vector unsigned short) (v))
#define vu32(v) ((vector unsigned int) (v)) #define vu32(v) ((vector unsigned int) (v))
#define C1 0.98078525066375732421875000 /* cos(1 * PI / 16) */ #define C1 0.98078525066375732421875000 /* cos(1 * PI / 16) */
#define C2 0.92387950420379638671875000 /* cos(2 * PI / 16) */ #define C2 0.92387950420379638671875000 /* cos(2 * PI / 16) */
#define C3 0.83146959543228149414062500 /* cos(3 * PI / 16) */ #define C3 0.83146959543228149414062500 /* cos(3 * PI / 16) */
skipping to change at line 468 skipping to change at line 468
#undef CTS #undef CTS
/* }}} */ /* }}} */
} }
#endif /* HAVE_ALTIVEC */ #endif /* HAVE_ALTIVEC */
av_cold void ff_fdctdsp_init_ppc(FDCTDSPContext *c, AVCodecContext *avctx, av_cold void ff_fdctdsp_init_ppc(FDCTDSPContext *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->dct_algo == FF_DCT_AUTO || if (avctx->dct_algo == FF_DCT_AUTO ||
avctx->dct_algo == FF_DCT_ALTIVEC) { avctx->dct_algo == FF_DCT_ALTIVEC) {
c->fdct = ff_fdct_altivec; c->fdct = ff_fdct_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