ref: cbb6e993cf2b2a746c31768ca0c4d3a897af9148
parent: bfee07dde45161af19b3b9c6f3aa5839d3013e7f
parent: deefdcee10876296872f752e9e239226189b4f97
author: dongzha <[email protected]>
date: Fri Nov 14 12:16:06 EST 2014
Merge pull request #1533 from mstorsjo/speedup-tests Speed up some slow tests in the unit test suite
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -2233,8 +2233,7 @@
} while (1); //while (iLoopRound<100);
fclose (f);
#else
- }
- while (uiLoopRound < 100);
+ } while (uiLoopRound < 10);
#endif
}
--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -90,7 +90,7 @@
if ((i % 256) == 0)
pYUV[i] = rand() % 256;
else
- pYUV[i] = WELS_CLIP3 (pYUV[i - 1] + (rand() % 3) - 1, 0, 255);
+ pYUV[i] = (pYUV[i - 1] + (rand() % 3) - 1) & 0xff;
}
pSrcPic->iStride[0] = m_iWidth;
pSrcPic->iStride[1] = pSrcPic->iStride[2] = pSrcPic->iStride[0] >> 1;