This unifies the luma MC interface to match the decoder side.
Showing the changes to test/encoder/EncUT_MotionCompensation.cpp (1 of 5 files). Show all
Unified · Split
| @@ -4,17 +4,10 @@ · 3 unmodified lines | |||
| 4 | #include "cpu.h" | 4 | #include "cpu.h" |
| 5 | using namespace WelsEnc; | 5 | using namespace WelsEnc; |
| 6 | 6 | ||
| 7 | static void McLumaFunc (SMcFunc* pFuncs, const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, | ||
| 8 | int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) { | ||
| 9 | uint8_t uiMvpIdx = ((iMvY & 0x03) << 2) + (iMvX & 0x03); | ||
| 10 | ASSERT_EQ (iWidth, 16); | ||
| 11 | pFuncs->pfLumaQuarpelMc[uiMvpIdx] (pSrc, iSrcStride, pDst, iDstStride, iHeight); | ||
| 12 | } | ||
| 13 | |||
| 14 | #define InitMcFunc WelsInitMcFuncs | 7 | #define InitMcFunc WelsInitMcFuncs |
| 15 | 8 | ||
| 16 | #define LUMA_FUNC(funcs, src, srcstride, dst, dststride, mvx, mvy, width, height) \ | 9 | #define LUMA_FUNC(funcs, src, srcstride, dst, dststride, mvx, mvy, width, height) \ |
| 17 | McLumaFunc (funcs, src, srcstride, dst, dststride, mvx, mvy, width, height) | 10 | sMcFunc.pfLumaMc (src, srcstride, dst, dststride, mvx, mvy, width, height) |
| 18 | 11 | ||
| 19 | #define CHROMA_FUNC sMcFunc.pfChromaMc | 12 | #define CHROMA_FUNC sMcFunc.pfChromaMc |
| 20 | 13 | ||