NEON decode support in WebP

Change-Id: I0d6fa456ca68468353adcd64669f1737d1446f65
This commit is contained in:
Somnath Banerjee
2011-09-12 13:03:01 +00:00
committed by James Zern
parent 0ee683b593
commit d4e9f5598d
7 changed files with 185 additions and 3 deletions

View File

@ -54,6 +54,13 @@ static int x86CPUInfo(CPUFeature feature) {
return 0;
}
VP8CPUInfo VP8GetCPUInfo = x86CPUInfo;
#elif defined(__ARM_NEON__)
// define a dummy function to enable turning off NEON at runtime by setting
// VP8DecGetCPUInfo = NULL
static int armCPUInfo(CPUFeature feature) {
return 1;
}
VP8CPUInfo VP8GetCPUInfo = armCPUInfo;
#else
VP8CPUInfo VP8GetCPUInfo = NULL;
#endif