I've built ffmpeg for different cpus for using on android and i would like to know to detect them on runtime (in java) in order to select which binary i'm going to use
On android documentation i found:
#include <cpu-features.h>
...
...
if (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM &&
(android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0)
{
// use NEON-optimized routines
...
}
else
{
// use non-NEON fallback routines instead
...
}
this what i need, but i would like to do that on java side... i didnt want to add one more jni layer just to get this information
does anyone know how to get it through java api?