Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 28 files). Show all
Unified · Split
| @@ -1944,6 +1944,13 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 1943 unmodified lines | ||
| 1944 | 1944 | else if (uiCpuFeatureFlags & WELS_CPU_CACHELINE_16) |
| 1945 | 1945 | iCacheLineSize = 16; |
| 1946 | 1946 | OutputCpuFeaturesLog (uiCpuFeatureFlags, uiCpuCores, iCacheLineSize); |
| 1947 | +#elif defined(HAVE_NEON) | |
| 1948 | +#if defined(ANDROID_NDK) | |
| 1949 | + uiCpuFeatureFlags = WelsCPUFeatureDetectAndroid(); | |
| 1950 | +#endif | |
| 1951 | +#if defined(APPLE_IOS) | |
| 1952 | + uiCpuFeatureFlags = WelsCPUFeatureDetectIOS(); | |
| 1953 | +#endif | |
| 1947 | 1954 | #else |
| 1948 | 1955 | iCacheLineSize = 16; // 16 bytes aligned in default |
| 1949 | 1956 | #endif//X86_ASM |