Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -10,7 +10,7 @@ class EncoderInterfaceTest : public ::testing::Test { · 9 unmodified lines | ||
| 10 | 10 | #define MB_SIZE (16) |
| 11 | 11 | #define MAX_WIDTH (3840) |
| 12 | 12 | #define MAX_HEIGHT (2160) |
| 13 | −#define VALID_SIZE(iSize) (((iSize)>1)?(iSize):1) | |
| 13 | +#define VALID_SIZE(iSize) (((iSize)>16)?(iSize):16) | |
| 14 | 14 | #define MEM_VARY_SIZE (512) |
| 15 | 15 | #define IMAGE_VARY_SIZE (512) |
| 16 | 16 | #define TEST_FRAMES (30) |
| @@ -87,9 +87,10 @@ void EncoderInterfaceTest::PrepareOneSrcFrame() { · 70 unmodified lines | ||
| 87 | 87 | pSrcPic->uiTimeStamp = 0; |
| 88 | 88 | pSrcPic->iPicWidth = pParamExt->iPicWidth; |
| 89 | 89 | pSrcPic->iPicHeight = pParamExt->iPicHeight; |
| 90 | − | |
| 91 | − m_iWidth = pParamExt->iPicWidth; | |
| 92 | − m_iHeight = pParamExt->iPicHeight; | |
| 90 | + pSrcPic->iPicWidth = VALID_SIZE (pParamExt->iPicWidth); | |
| 91 | + pSrcPic->iPicHeight = VALID_SIZE (pParamExt->iPicHeight); | |
| 92 | + m_iWidth = pSrcPic->iPicWidth; | |
| 93 | + m_iHeight = pSrcPic->iPicHeight; | |
| 93 | 94 | m_iPicResSize = m_iWidth * m_iHeight * 3 >> 1; |
| 94 | 95 | |
| 95 | 96 | pYUV[0] = rand() % 256; |