History

Bundle MC tests for all motion vectors in one single test

This speeds up the compile time from 21.3 to 2.6 seconds for the MC test files. This makes it slightly harder to see exactly which test failed on a quick glance, but it makes the overall structure of the unit test output more manageable and readable, by reducing the number of tests from 1300 to 430.

Martin Storsjö committed 11 years ago

Commit 10e2f901 parent ca97f783 files · +47 −138Browse files

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

Unified · Split

test/encoder/EncUT_MotionCompensation.cpp+10−15
@@ -18,24 +18,19 @@ static void McLumaFunc (SMcFunc* pFuncs, const uint8_t* pSrc, int32_t iSrcStride · 17 unmodified lines
1818
1919 #define CHROMA_FUNC sMcFunc.pfChromaMc
2020
21−#define PREFIX Enc
22−
23−#define DEF_MCCOPYTESTS(pfx) \
24−DEF_MCCOPYTEST (pfx, 16, 8, 0) \
25−DEF_MCCOPYTEST (pfx, 16, 16, 0)
21+#include "mc_test_common.h"
2622
27−#define DEF_LUMA_MCTEST(pfx,a,b) \
28−DEF_LUMA_MCTEST_SUBCASE(pfx,a,b,16,8) \
29−DEF_LUMA_MCTEST_SUBCASE(pfx,a,b,16,16)
23+DEF_MCCOPYTEST (Enc, 16, 8, 0)
24+DEF_MCCOPYTEST (Enc, 16, 16, 0)
3025
31−#define DEF_CHROMA_MCTEST(pfx,a,b) \
32−DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,4,2) \
33−DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,4,4) \
34−DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,4,8) \
35−DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,8,4) \
36−DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,8,8)
26+DEF_LUMA_MCTEST (Enc, 16, 8)
27+DEF_LUMA_MCTEST (Enc, 16, 16)
3728
38−#include "mc_test_common.h"
29+DEF_CHROMA_MCTEST (Enc, 4, 2)
30+DEF_CHROMA_MCTEST (Enc, 4, 4)
31+DEF_CHROMA_MCTEST (Enc, 4, 8)
32+DEF_CHROMA_MCTEST (Enc, 8, 4)
33+DEF_CHROMA_MCTEST (Enc, 8, 8)
3934
4035 TEST (EncMcAvg, PixelAvg) {
4136 SMcFunc sMcFunc;

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