ref: e4a278620bf4c80cdb8e1cef53e14b139363911a
parent: 4f237b51ef971873f292a967c7b29f39b3e22149
author: Martin Storsjö <martin@martin.st>
date: Mon Feb 2 07:20:40 EST 2015
Remove dependencies on the decoder internals in unit test for the common library
--- a/Makefile
+++ b/Makefile
@@ -125,7 +125,7 @@
ENCODER_UNITTEST_INCLUDES += $(CODEC_UNITTEST_INCLUDES) $(ENCODER_INCLUDES)
PROCESSING_UNITTEST_INCLUDES += $(CODEC_UNITTEST_INCLUDES) $(PROCESSING_INCLUDES)
API_TEST_INCLUDES += $(CODEC_UNITTEST_INCLUDES)
-COMMON_UNITTEST_INCLUDES += $(CODEC_UNITTEST_INCLUDES) $(DECODER_INCLUDES)
+COMMON_UNITTEST_INCLUDES += $(CODEC_UNITTEST_INCLUDES)
MODULE_INCLUDES += -I$(SRC_PATH)gmp-api
DECODER_UNITTEST_CFLAGS += $(CODEC_UNITTEST_CFLAGS)
--- a/test/common/ExpandPicture.cpp
+++ b/test/common/ExpandPicture.cpp
@@ -2,14 +2,16 @@
#include "codec_def.h"
#include "expand_pic.h"
#include "memory_align.h"
-#include "decoder_context.h"
#include "cpu.h"
#include "cpu_core.h"
+#include "macros.h"
+#include "wels_const_common.h"
+
#define EXPAND_PIC_TEST_NUM 10
#define H264_PADDING_LENGTH_LUMA (PADDING_LENGTH)
#define H264_PADDING_LENGTH_CHROMA (PADDING_LENGTH>>1)
-using namespace WelsDec;
+using namespace WelsCommon;
void H264ExpandPictureLumaAnchor_c (uint8_t* pDst, int32_t iStride, int32_t iPicWidth, int32_t iPicHeight) {
uint8_t* pTmp = pDst;