Showing the changes to codec/encoder/core/src/mc.cpp (1 of 124 files). Show all
Unified · Split
| @@ -426,7 +426,7 @@ static inline void McHorVer22WidthEq8_sse2 (uint8_t* pSrc, int32_t iSrcStride, u · 425 unmodified lines | ||
| 426 | 426 | int32_t iHeight) { |
| 427 | 427 | ENFORCE_STACK_ALIGN_2D (int16_t, pTap, 21, 8, 16) |
| 428 | 428 | McHorVer22Width8HorFirst_sse2 (pSrc - 2, iSrcStride, (uint8_t*)pTap, 16, iHeight + 5); |
| 429 | − McHorVer22VerLastAlign_sse2 ((uint8_t*)pTap, 16, pDst, iDstStride, 8, iHeight); | |
| 429 | + McHorVer22Width8VerLastAlign_sse2 ((uint8_t*)pTap, 16, pDst, iDstStride, 8, iHeight); | |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | //2010.2.5 |
| @@ -441,13 +441,13 @@ static inline void McHorVer22WidthEq16_sse2 (uint8_t* pSrc, int32_t iSrcStride, · 8 unmodified lines | ||
| 441 | 441 | McHorVer22WidthEq8_sse2 (pSrc, iSrcStride, pDst, iDstStride, iHeight); |
| 442 | 442 | McHorVer22WidthEq8_sse2 (&pSrc[8], iSrcStride, &pDst[8], iDstStride, iHeight); |
| 443 | 443 | } |
| 444 | −void McHorVer22_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, int32_t iWidth, | |
| 444 | +void McHorVer22Width9Or17Height9Or17_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, int32_t iWidth, | |
| 445 | 445 | int32_t iHeight) { |
| 446 | 446 | ENFORCE_STACK_ALIGN_2D (int16_t, pTap, 22, 24, 16) |
| 447 | 447 | int32_t tmp1 = 2 * (iWidth - 8); |
| 448 | 448 | McHorVer22HorFirst_sse2 (pSrc - 2, iSrcStride, (uint8_t*)pTap, 48, iWidth, iHeight + 5); |
| 449 | − McHorVer22VerLastAlign_sse2 ((uint8_t*)pTap, 48, pDst, iDstStride, iWidth - 1, iHeight); | |
| 450 | − McHorVer22VerLastUnAlign_sse2 ((uint8_t*)pTap + tmp1, 48, pDst + iWidth - 8, iDstStride, 8, iHeight); | |
| 449 | + McHorVer22Width8VerLastAlign_sse2 ((uint8_t*)pTap, 48, pDst, iDstStride, iWidth - 1, iHeight); | |
| 450 | + McHorVer22Width8VerLastUnAlign_sse2 ((uint8_t*)pTap + tmp1, 48, pDst + iWidth - 8, iDstStride, 8, iHeight); | |
| 451 | 451 | } |
| 452 | 452 | |
| 453 | 453 | typedef void (*McChromaWidthEqx) (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| @@ -523,9 +523,9 @@ void WelsInitMcFuncs (SWelsFuncPtrList* pFuncList, uint32_t uiCpuFlag) { · 69 unmodified lines | ||
| 523 | 523 | pFuncList->sMcFuncs.pfLumaQuarpelMc = pWelsMcFuncWidthEq16; |
| 524 | 524 | #if defined (X86_ASM) |
| 525 | 525 | if (uiCpuFlag & WELS_CPU_SSE2) { |
| 526 | − pFuncList->sMcFuncs.pfLumaHalfpelHor = McHorVer20_sse2; | |
| 527 | − pFuncList->sMcFuncs.pfLumaHalfpelVer = McHorVer02_sse2; | |
| 528 | − pFuncList->sMcFuncs.pfLumaHalfpelCen = McHorVer22_sse2; | |
| 526 | + pFuncList->sMcFuncs.pfLumaHalfpelHor = McHorVer20Width9Or17_sse2; | |
| 527 | + pFuncList->sMcFuncs.pfLumaHalfpelVer = McHorVer02Height9Or17_sse2; | |
| 528 | + pFuncList->sMcFuncs.pfLumaHalfpelCen = McHorVer22Width9Or17Height9Or17_sse2; | |
| 529 | 529 | pFuncList->sMcFuncs.pfSampleAveraging[0] = PixelAvgWidthEq8_mmx; |
| 530 | 530 | pFuncList->sMcFuncs.pfSampleAveraging[1] = PixelAvgWidthEq16_sse2; |
| 531 | 531 | pFuncList->sMcFuncs.pfChromaMc = McChroma_sse2; |
| @@ -541,7 +541,6 @@ void WelsInitMcFuncs (SWelsFuncPtrList* pFuncList, uint32_t uiCpuFlag) { · 9 unmodified lines | ||
| 541 | 541 | |
| 542 | 542 | if (uiCpuFlag & WELS_CPU_SSSE3) { |
| 543 | 543 | pFuncList->sMcFuncs.pfChromaMc = McChroma_ssse3; |
| 544 | − pFuncList->sMcFuncs.pfSampleAveraging[1] = PixelAvgWidthEq16_ssse3; | |
| 545 | 544 | } |
| 546 | 545 | |
| 547 | 546 | #endif //(X86_ASM) |