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