Showing the changes to codec/processing/src/adaptivequantization (2 of 24 files). Show all
Unified · Split
| @@ -231,6 +231,11 @@ void CAdaptiveQuantization::WelsInitVarFunc (PVarFunc& pfVar, int32_t iCpuFlag) · 230 unmodified lines | |||
| 231 | pfVar = SampleVariance16x16_sse2; | 231 | pfVar = SampleVariance16x16_sse2; |
| 232 | } | 232 | } |
| 233 | #endif | 233 | #endif |
| 234 | #ifdef HAVE_NEON | ||
| 235 | if (iCpuFlag & WELS_CPU_NEON) { | ||
| 236 | pfVar = SampleVariance16x16_neon; | ||
| 237 | } | ||
| 238 | #endif | ||
| 234 | } | 239 | } |
| 235 | 240 | ||
| 236 | void SampleVariance16x16_c (uint8_t* pRefY, int32_t iRefStride, uint8_t* pSrcY, int32_t iSrcStride, | 241 | void SampleVariance16x16_c (uint8_t* pRefY, int32_t iRefStride, uint8_t* pSrcY, int32_t iSrcStride, |
| @@ -62,6 +62,11 @@ VarFunc SampleVariance16x16_sse2; · 61 unmodified lines | |||
| 62 | WELSVP_EXTERN_C_END | 62 | WELSVP_EXTERN_C_END |
| 63 | #endif | 63 | #endif |
| 64 | 64 | ||
| 65 | #ifdef HAVE_NEON | ||
| 66 | WELSVP_EXTERN_C_BEGIN | ||
| 67 | VarFunc SampleVariance16x16_neon; | ||
| 68 | WELSVP_EXTERN_C_END | ||
| 69 | #endif | ||
| 65 | 70 | ||
| 66 | class CAdaptiveQuantization : public IStrategy { | 71 | class CAdaptiveQuantization : public IStrategy { |
| 67 | public: | 72 | public: |