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
18 18
19#define CHROMA_FUNC sMcFunc.pfChromaMc19#define CHROMA_FUNC sMcFunc.pfChromaMc
20 20
21#define PREFIX Enc21#include "mc_test_common.h"
22
23#define DEF_MCCOPYTESTS(pfx) \
24DEF_MCCOPYTEST (pfx, 16, 8, 0) \
25DEF_MCCOPYTEST (pfx, 16, 16, 0)
26 22
27#define DEF_LUMA_MCTEST(pfx,a,b) \23DEF_MCCOPYTEST (Enc, 16, 8, 0)
28DEF_LUMA_MCTEST_SUBCASE(pfx,a,b,16,8) \24DEF_MCCOPYTEST (Enc, 16, 16, 0)
29DEF_LUMA_MCTEST_SUBCASE(pfx,a,b,16,16)
30 25
31#define DEF_CHROMA_MCTEST(pfx,a,b) \26DEF_LUMA_MCTEST (Enc, 16, 8)
32DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,4,2) \27DEF_LUMA_MCTEST (Enc, 16, 16)
33DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,4,4) \
34DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,4,8) \
35DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,8,4) \
36DEF_CHROMA_MCTEST_SUBCASE(pfx,a,b,8,8)
37 28
38#include "mc_test_common.h"29DEF_CHROMA_MCTEST (Enc, 4, 2)
30DEF_CHROMA_MCTEST (Enc, 4, 4)
31DEF_CHROMA_MCTEST (Enc, 4, 8)
32DEF_CHROMA_MCTEST (Enc, 8, 4)
33DEF_CHROMA_MCTEST (Enc, 8, 8)
39 34
40TEST (EncMcAvg, PixelAvg) {35TEST (EncMcAvg, PixelAvg) {
41 SMcFunc sMcFunc;36 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