ref: da75e15b4abb985b11ac2fb86d76ba49f11781e2
parent: e0ba5cd9f3fe49cb9e3ed0cc5ccf91e4eeabb977
author: Haibo Zhu <[email protected]>
date: Thu Jul 3 14:40:12 EDT 2014
Modify the unit test for WelsDequantIHadamard2x2Dc
--- a/test/encoder/EncUT_DecodeMbAux.cpp
+++ b/test/encoder/EncUT_DecodeMbAux.cpp
@@ -156,10 +156,10 @@
const int16_t iDelU = pDct[0] - pDct[2];
const int16_t iSumD = pDct[1] + pDct[3];
const int16_t iDelD = pDct[1] - pDct[3];
- pDct[0] = (iSumU + iSumD) * iMF;
- pDct[1] = (iSumU - iSumD) * iMF;
- pDct[2] = (iDelU + iDelD) * iMF;
- pDct[3] = (iDelU - iDelD) * iMF;
+ pDct[0] = ((iSumU + iSumD) * iMF)>>1;
+ pDct[1] = ((iSumU - iSumD) * iMF)>>1;
+ pDct[2] = ((iDelU + iDelD) * iMF)>>1;
+ pDct[3] = ((iDelU - iDelD) * iMF)>>1;
}
TEST (DecodeMbAuxTest, WelsDequantIHadamard2x2Dc) {
int16_t iDct[4], iRefDct[4];