Add expand picture support for ARM64 NEON

Remove duplicate MACROS
This commit is contained in:
dongzhang
2014-04-22 10:49:20 +08:00
parent 3f2ea77908
commit 2444327a6c
8 changed files with 270 additions and 6 deletions

View File

@@ -129,6 +129,20 @@ void InitExpandPictureFunc (SExpandPicFunc* pExpandPicFunc, const uint32_t kuiCp
pExpandPicFunc->pExpandChromaPicture[1] = ExpandPictureChromaAlign_sse2;
}
#endif//X86_ASM
#if defined(HAVE_NEON)
if ((kuiCpuFlags & WELS_CPU_NEON) == WELS_CPU_NEON) {
pExpandPicFunc->pExpandLumaPicture = ExpandPictureLuma_neon;
pExpandPicFunc->pExpandChromaPicture[0] = ExpandPictureChroma_neon;
pExpandPicFunc->pExpandChromaPicture[1] = ExpandPictureChroma_neon;
}
#endif//HAVE_NEON
#if defined(HAVE_NEON_AARCH64)
if ((kuiCpuFlags & WELS_CPU_NEON) == WELS_CPU_NEON) {
pExpandPicFunc->pExpandLumaPicture = ExpandPictureLuma_AArch64_neon;
pExpandPicFunc->pExpandChromaPicture[0] = ExpandPictureChroma_AArch64_neon;
pExpandPicFunc->pExpandChromaPicture[1] = ExpandPictureChroma_AArch64_neon;
}
#endif//HAVE_NEON_AARCH64
}
void ExpandReferencingPicture (PPicture pPic, PExpandPictureFunc pExpLuma, PExpandPictureFunc pExpChroma[2]) {