Showing the changes to codec/processing/src/downsample (3 of 3 files). Show all
Unified · Split
| @@ -66,8 +66,8 @@ void CDownsampling::InitDownsampleFuncs (SDownsampleFuncs& sDownsampleFunc, int · 65 unmodified lines | ||
| 66 | 66 | sDownsampleFunc.pfGeneralRatioLuma = GeneralBilinearFastDownsamplerWrap_sse2; |
| 67 | 67 | } |
| 68 | 68 | if (iCpuFlag & WELS_CPU_SSSE3) { |
| 69 | − sDownsampleFunc.pfHalfAverage[0] = DyadicBilinearDownsamplerWidthx32_ssse3; | |
| 70 | − sDownsampleFunc.pfHalfAverage[1] = DyadicBilinearDownsamplerWidthx16_ssse3; | |
| 69 | + sDownsampleFunc.pfHalfAverage[0] = DyadicBilinearDownsamplerWidthx32_ssse3; | |
| 70 | + sDownsampleFunc.pfHalfAverage[1] = DyadicBilinearDownsamplerWidthx16_ssse3; | |
| 71 | 71 | } |
| 72 | 72 | if (iCpuFlag & WELS_CPU_SSE41) { |
| 73 | 73 | sDownsampleFunc.pfHalfAverage[0] = DyadicBilinearDownsamplerWidthx32_sse4; |
| @@ -94,13 +94,9 @@ GeneralDownsampleFunc GeneralBilinearFastDownsamplerWrap_sse2; · 93 unmodified lines | ||
| 94 | 94 | GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_sse2; |
| 95 | 95 | |
| 96 | 96 | void GeneralBilinearFastDownsampler_sse2 (uint8_t* pDst, const int32_t kiDstStride, const int32_t kiDstWidth, |
| 97 | − const int32_t kiDstHeight, | |
| 98 | − uint8_t* pSrc, const int32_t kiSrcStride, const int32_t kiSrcWidth, const int32_t kiSrcHeight, | |
| 99 | − const uint32_t kuiScaleX, const uint32_t kuiScaleY); | |
| 97 | + const int32_t kiDstHeight, uint8_t* pSrc, const int32_t kiSrcStride, const uint32_t kuiScaleX, const uint32_t kuiScaleY); | |
| 100 | 98 | void GeneralBilinearAccurateDownsampler_sse2 (uint8_t* pDst, const int32_t kiDstStride, const int32_t kiDstWidth, |
| 101 | − const int32_t kiDstHeight, | |
| 102 | − uint8_t* pSrc, const int32_t kiSrcStride, const int32_t kiSrcWidth, const int32_t kiSrcHeight, | |
| 103 | − const uint32_t kuiScaleX, const uint32_t kuiScaleY); | |
| 99 | + const int32_t kiDstHeight, uint8_t* pSrc, const int32_t kiSrcStride, const uint32_t kuiScaleX, const uint32_t kuiScaleY); | |
| 104 | 100 | WELSVP_EXTERN_C_END |
| 105 | 101 | #endif |
| 106 | 102 | |
| @@ -212,7 +212,7 @@ void GeneralBilinearFastDownsamplerWrap_sse2 (uint8_t* pDst, const int32_t kiDst · 211 unmodified lines | ||
| 212 | 212 | uint32_t uiScaley = WELS_ROUND ((float)kiSrcHeight / (float)kiDstHeight * kuiScaleHeight); |
| 213 | 213 | |
| 214 | 214 | GeneralBilinearFastDownsampler_sse2 (pDst, kiDstStride, kiDstWidth, kiDstHeight, |
| 215 | − pSrc, kiSrcStride, kiSrcWidth, kiSrcHeight, uiScalex, uiScaley); | |
| 215 | + pSrc, kiSrcStride, uiScalex, uiScaley); | |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | void GeneralBilinearAccurateDownsamplerWrap_sse2 (uint8_t* pDst, const int32_t kiDstStride, const int32_t kiDstWidth, |
| @@ -225,7 +225,7 @@ void GeneralBilinearAccurateDownsamplerWrap_sse2 (uint8_t* pDst, const int32_t k · 6 unmodified lines | ||
| 225 | 225 | uint32_t uiScaley = WELS_ROUND ((float)kiSrcHeight / (float)kiDstHeight * kuiScale); |
| 226 | 226 | |
| 227 | 227 | GeneralBilinearAccurateDownsampler_sse2 (pDst, kiDstStride, kiDstWidth, kiDstHeight, |
| 228 | − pSrc, kiSrcStride, kiSrcWidth, kiSrcHeight, uiScalex, uiScaley); | |
| 228 | + pSrc, kiSrcStride, uiScalex, uiScaley); | |
| 229 | 229 | } |
| 230 | 230 | #endif //X86_ASM |
| 231 | 231 | |