void InitializeNE10() { #if defined(__aarch64__) ne10_init_dsp(1); #else /* Need to initialize things if we have Ne10 available */ extern int omxSP_HasArmNeon(); extern ne10_result_t ne10_init_dsp (ne10_int32_t is_NEON_available); ne10_init_dsp(omxSP_HasArmNeon()); #endif }
static void SetFFTRoutines() { /* * Choose the correct (NEON or non-NEON) routines for both the * forward and inverse FFTs */ if (omxSP_HasArmNeon()) { __android_log_print(ANDROID_LOG_INFO, "OpenMAX DL FFT", "Using NEON FFT"); omxSP_FFTFwd_RToCCS_F32 = omxSP_FFTFwd_RToCCS_F32_Sfs; omxSP_FFTInv_CCSToR_F32 = omxSP_FFTInv_CCSToR_F32_Sfs; } else { __android_log_print(ANDROID_LOG_INFO, "OpenMAX DL FFT", "Using non-NEON FFT"); omxSP_FFTFwd_RToCCS_F32 = omxSP_FFTFwd_RToCCS_F32_Sfs_vfp; omxSP_FFTInv_CCSToR_F32 = omxSP_FFTInv_CCSToR_F32_Sfs_vfp; } }