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
44 #include "cpu.h"
55 using namespace WelsEnc;
66
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−
147 #define InitMcFunc WelsInitMcFuncs
158
169 #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)
1811
1912 #define CHROMA_FUNC sMcFunc.pfChromaMc
2013

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