Even if there actually is no SIMD optimized version of the width==2 cases, luma function for SIMD still needs to handle it by calling McCopyWidthEq2_c for these cases. This simplifies the UT code a little, and makes sure that those codepaths are tested properly.
Showing the changes to test/encoder/EncUT_MotionCompensation.cpp (1 of 3 files). Show all
Unified · Split
| @@ -20,8 +20,8 @@ static void McLumaFunc (SMcFunc* pFuncs, const uint8_t* pSrc, int32_t iSrcStride · 19 unmodified lines | ||
| 20 | 20 | |
| 21 | 21 | #include "mc_test_common.h" |
| 22 | 22 | |
| 23 | −DEF_MCCOPYTEST (Enc, 16, 8, 0) | |
| 24 | −DEF_MCCOPYTEST (Enc, 16, 16, 0) | |
| 23 | +DEF_MCCOPYTEST (Enc, 16, 8) | |
| 24 | +DEF_MCCOPYTEST (Enc, 16, 16) | |
| 25 | 25 | |
| 26 | 26 | DEF_LUMA_MCTEST (Enc, 16, 8) |
| 27 | 27 | DEF_LUMA_MCTEST (Enc, 16, 16) |