|
|
|
@@ -26,6 +26,8 @@ |
|
|
|
#endif |
|
|
|
|
|
|
|
#include "libavutil/attributes.h" |
|
|
|
#include "libavutil/cpu.h" |
|
|
|
#include "libavutil/ppc/cpu.h" |
|
|
|
#include "libavutil/ppc/types_altivec.h" |
|
|
|
#include "libavutil/ppc/util_altivec.h" |
|
|
|
#include "libavcodec/svq1enc.h" |
|
|
|
@@ -75,6 +77,9 @@ static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2, |
|
|
|
av_cold void ff_svq1enc_init_ppc(SVQ1EncContext *c) |
|
|
|
{ |
|
|
|
#if HAVE_ALTIVEC |
|
|
|
if (!PPC_ALTIVEC(av_get_cpu_flags())) |
|
|
|
return; |
|
|
|
|
|
|
|
c->ssd_int8_vs_int16 = ssd_int8_vs_int16_altivec; |
|
|
|
#endif /* HAVE_ALTIVEC */ |
|
|
|
} |