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 | #define MB_SIZE (16) | 10 | #define MB_SIZE (16) |
| 11 | #define MAX_WIDTH (3840) | 11 | #define MAX_WIDTH (3840) |
| 12 | #define MAX_HEIGHT (2160) | 12 | #define MAX_HEIGHT (2160) |
| 13 | #define VALID_SIZE(iSize) (((iSize)>1)?(iSize):1) | 13 | #define VALID_SIZE(iSize) (((iSize)>16)?(iSize):16) |
| 14 | #define MEM_VARY_SIZE (512) | 14 | #define MEM_VARY_SIZE (512) |
| 15 | #define IMAGE_VARY_SIZE (512) | 15 | #define IMAGE_VARY_SIZE (512) |
| 16 | #define TEST_FRAMES (30) | 16 | #define TEST_FRAMES (30) |
| @@ -87,9 +87,10 @@ void EncoderInterfaceTest::PrepareOneSrcFrame() { · 70 unmodified lines | |||
| 87 | pSrcPic->uiTimeStamp = 0; | 87 | pSrcPic->uiTimeStamp = 0; |
| 88 | pSrcPic->iPicWidth = pParamExt->iPicWidth; | 88 | pSrcPic->iPicWidth = pParamExt->iPicWidth; |
| 89 | pSrcPic->iPicHeight = pParamExt->iPicHeight; | 89 | pSrcPic->iPicHeight = pParamExt->iPicHeight; |
| 90 | 90 | pSrcPic->iPicWidth = VALID_SIZE (pParamExt->iPicWidth); | |
| 91 | m_iWidth = pParamExt->iPicWidth; | 91 | pSrcPic->iPicHeight = VALID_SIZE (pParamExt->iPicHeight); |
| 92 | m_iHeight = pParamExt->iPicHeight; | 92 | m_iWidth = pSrcPic->iPicWidth; |
| 93 | m_iHeight = pSrcPic->iPicHeight; | ||
| 93 | m_iPicResSize = m_iWidth * m_iHeight * 3 >> 1; | 94 | m_iPicResSize = m_iWidth * m_iHeight * 3 >> 1; |
| 94 | 95 | ||
| 95 | pYUV[0] = rand() % 256; | 96 | pYUV[0] = rand() % 256; |