"Fossies" - the Fresh Open Source Software Archive  

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

fmtconvert_altivec.c  (libav-11.7):fmtconvert_altivec.c  (libav-11.8)
skipping to change at line 29 skipping to change at line 29
*/ */
#include "config.h" #include "config.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/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/fmtconvert.h" #include "libavcodec/fmtconvert.h"
#if HAVE_ALTIVEC #if HAVE_ALTIVEC && HAVE_BIGENDIAN
static void int32_to_float_fmul_scalar_altivec(float *dst, const int32_t *src, static void int32_to_float_fmul_scalar_altivec(float *dst, const int32_t *src,
float mul, int len) float mul, int len)
{ {
union { union {
vector float v; vector float v;
float s[4]; float s[4];
} mul_u; } mul_u;
int i; int i;
vector float src1, src2, dst1, dst2, mul_v, zero; vector float src1, src2, dst1, dst2, mul_v, zero;
skipping to change at line 166 skipping to change at line 166
float_to_int16_stride_altivec(dst + i, src[i], len, channels); float_to_int16_stride_altivec(dst + i, src[i], len, channels);
} }
} }
} }
#endif /* HAVE_ALTIVEC */ #endif /* HAVE_ALTIVEC */
av_cold void ff_fmt_convert_init_ppc(FmtConvertContext *c, av_cold void ff_fmt_convert_init_ppc(FmtConvertContext *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->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_altivec; c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_altivec;
if (!(avctx->flags & CODEC_FLAG_BITEXACT)) { if (!(avctx->flags & CODEC_FLAG_BITEXACT)) {
c->float_to_int16 = float_to_int16_altivec; c->float_to_int16 = float_to_int16_altivec;
c->float_to_int16_interleave = float_to_int16_interleave_altivec; c->float_to_int16_interleave = float_to_int16_interleave_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