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.
40 lines
988 B
C++
40 lines
988 B
C++
#include <gtest/gtest.h>
|
|
#include "codec_def.h"
|
|
#include "mc.h"
|
|
#include "cpu.h"
|
|
using namespace WelsDec;
|
|
|
|
#define LUMA_FUNC(funcs, src, srcstride, dst, dststride, mvx, mvy, width, height) \
|
|
sMcFunc.pMcLumaFunc (src, srcstride, dst, dststride, mvx, mvy, width, height)
|
|
|
|
#define CHROMA_FUNC sMcFunc.pMcChromaFunc
|
|
|
|
#include "mc_test_common.h"
|
|
|
|
DEF_MCCOPYTEST (, 2, 2, 1)
|
|
DEF_MCCOPYTEST (, 2, 4, 1)
|
|
DEF_MCCOPYTEST (, 4, 2, 0)
|
|
DEF_MCCOPYTEST (, 4, 4, 0)
|
|
DEF_MCCOPYTEST (, 4, 8, 0)
|
|
DEF_MCCOPYTEST (, 8, 4, 0)
|
|
DEF_MCCOPYTEST (, 8, 8, 0)
|
|
DEF_MCCOPYTEST (, 16, 8, 0)
|
|
DEF_MCCOPYTEST (, 8, 16, 0)
|
|
DEF_MCCOPYTEST (, 16, 16, 0)
|
|
|
|
DEF_LUMA_MCTEST (, 4, 4)
|
|
DEF_LUMA_MCTEST (, 4, 8)
|
|
DEF_LUMA_MCTEST (, 8, 4)
|
|
DEF_LUMA_MCTEST (, 8, 8)
|
|
DEF_LUMA_MCTEST (, 16, 8)
|
|
DEF_LUMA_MCTEST (, 8, 16)
|
|
DEF_LUMA_MCTEST (, 16, 16)
|
|
|
|
DEF_CHROMA_MCTEST (, 2, 2)
|
|
DEF_CHROMA_MCTEST (, 2, 4)
|
|
DEF_CHROMA_MCTEST (, 4, 2)
|
|
DEF_CHROMA_MCTEST (, 4, 4)
|
|
DEF_CHROMA_MCTEST (, 4, 8)
|
|
DEF_CHROMA_MCTEST (, 8, 4)
|
|
DEF_CHROMA_MCTEST (, 8, 8)
|