Showing the changes to codec/processing/src (1 of 14 files). Show all
Unified · Split
| @@ -243,13 +243,15 @@ void GeneralBilinearAccurateDownsamplerWrap_neon (uint8_t* pDst, const int32_t k · 242 unmodified lines | |||
| 243 | #endif | 243 | #endif |
| 244 | 244 | ||
| 245 | #ifdef HAVE_NEON_AARCH64 | 245 | #ifdef HAVE_NEON_AARCH64 |
| 246 | void GeneralBilinearAccurateDownsamplerWrap_AArch64_neon (uint8_t* pDst, const int32_t kiDstStride, const int32_t kiDstWidth, const int32_t kiDstHeight, | 246 | void GeneralBilinearAccurateDownsamplerWrap_AArch64_neon (uint8_t* pDst, const int32_t kiDstStride, |
| 247 | uint8_t* pSrc, const int32_t kiSrcStride, const int32_t kiSrcWidth, const int32_t kiSrcHeight) { | 247 | const int32_t kiDstWidth, const int32_t kiDstHeight, |
| 248 | uint8_t* pSrc, const int32_t kiSrcStride, const int32_t kiSrcWidth, const int32_t kiSrcHeight) { | ||
| 248 | const int32_t kiScaleBit = 15; | 249 | const int32_t kiScaleBit = 15; |
| 249 | const uint32_t kuiScale = (1 << kiScaleBit); | 250 | const uint32_t kuiScale = (1 << kiScaleBit); |
| 250 | uint32_t uiScalex = WELS_ROUND ((float)kiSrcWidth / (float)kiDstWidth * kuiScale); | 251 | uint32_t uiScalex = WELS_ROUND ((float)kiSrcWidth / (float)kiDstWidth * kuiScale); |
| 251 | uint32_t uiScaley = WELS_ROUND ((float)kiSrcHeight / (float)kiDstHeight * kuiScale); | 252 | uint32_t uiScaley = WELS_ROUND ((float)kiSrcHeight / (float)kiDstHeight * kuiScale); |
| 252 | GeneralBilinearAccurateDownsampler_AArch64_neon (pDst, kiDstStride, kiDstWidth, kiDstHeight, pSrc, kiSrcStride, uiScalex, uiScaley); | 253 | GeneralBilinearAccurateDownsampler_AArch64_neon (pDst, kiDstStride, kiDstWidth, kiDstHeight, pSrc, kiSrcStride, |
| 254 | uiScalex, uiScaley); | ||
| 253 | } | 255 | } |
| 254 | #endif | 256 | #endif |
| 255 | WELSVP_NAMESPACE_END | 257 | WELSVP_NAMESPACE_END |