NEON implementation of some Sharp-YUV420 functions

Change-Id: I449ef9c76b06f971f6e2ad7f9db96bf906d8fe1f
new-file: dsp/yuv_neon.c
This commit is contained in:
Pascal Massimino
2017-04-18 18:22:30 +02:00
parent 690efd82f8
commit 52245424b0
7 changed files with 148 additions and 0 deletions

View File

@ -309,6 +309,7 @@ static volatile VP8CPUInfo rgba_to_yuv_last_cpuinfo_used =
extern void WebPInitConvertARGBToYUVSSE2(void);
extern void WebPInitSharpYUVSSE2(void);
extern void WebPInitSharpYUVNEON(void);
WEBP_TSAN_IGNORE_FUNCTION void WebPInitConvertARGBToYUV(void) {
if (rgba_to_yuv_last_cpuinfo_used == VP8GetCPUInfo) return;
@ -332,6 +333,12 @@ WEBP_TSAN_IGNORE_FUNCTION void WebPInitConvertARGBToYUV(void) {
WebPInitSharpYUVSSE2();
}
#endif // WEBP_USE_SSE2
#if defined(WEBP_USE_NEON)
if (VP8GetCPUInfo(kNEON)) {
WebPInitSharpYUVNEON();
}
#endif // WEBP_USE_NEON
}
rgba_to_yuv_last_cpuinfo_used = VP8GetCPUInfo;
}