ref: 8c60f84f7bf6a0c9a009116f593c4e7de38758be
parent: f76325edc75f031edba17266e744f6920ebadffc
parent: 0298b3f5807a132e837fc86f65a8f6839d647b00
author: sijchen <sijchen@cisco.com>
date: Wed Jun 3 12:59:20 EDT 2015
Merge pull request #1974 from mstorsjo/sample-test-valgrind Initialize enough samples in the new 4x8 tests
--- a/test/encoder/EncUT_Sample.cpp
+++ b/test/encoder/EncUT_Sample.cpp
@@ -207,9 +207,9 @@
}
TEST_F (SadSatdCFuncTest, WelsSampleSad4x8_c) {
- for (int i = 0; i < (m_iStrideA << 2); i++)
+ for (int i = 0; i < (m_iStrideA << 3); i++)
m_pPixSrcA[i] = rand() % 256;
- for (int i = 0; i < (m_iStrideB << 2); i++)
+ for (int i = 0; i < (m_iStrideB << 3); i++)
m_pPixSrcB[i] = rand() % 256;
uint8_t* pPixA = m_pPixSrcA;
uint8_t* pPixB = m_pPixSrcB;
@@ -504,9 +504,9 @@
}
TEST_F (SadSatdCFuncTest, WelsSampleSadFour4x8_c) {
- for (int i = 0; i < (m_iStrideA << 3); i++)
+ for (int i = 0; i < (m_iStrideA << 4); i++)
m_pPixSrcA[i] = rand() % 256;
- for (int i = 0; i < (m_iStrideB << 3); i++)
+ for (int i = 0; i < (m_iStrideB << 4); i++)
m_pPixSrcB[i] = rand() % 256;
uint8_t* pPixA = m_pPixSrcA;
uint8_t* pPixB = m_pPixSrcB + m_iStrideB;