History

Move the qpel function table into the luma function itself

This unifies the luma MC interface to match the decoder side.

Martin Storsjö committed 11 years ago

Commit 1cf68ca1 parent a8262dd5 files · +51 −47Browse files

Showing the changes to test/encoder/EncUT_MotionCompensation.cpp (1 of 5 files). Show all

Unified · Split

test/encoder/EncUT_MotionCompensation.cpp+1−8
@@ -4,17 +4,10 @@ · 3 unmodified lines
4#include "cpu.h"4#include "cpu.h"
5using namespace WelsEnc;5using namespace WelsEnc;
6 6
7static 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 WelsInitMcFuncs7#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.pfChromaMc12#define CHROMA_FUNC sMcFunc.pfChromaMc
20 13

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t