refactor --for BaseEncoderTest
Showing the changes to test/api/encode_decode_api_test.cpp (1 of 5 files). Show all
Unified · Split
| @@ -231,7 +231,7 @@ void EncodeDecodeTestAPI::RandomParamExtCombination() { · 230 unmodified lines | ||
| 231 | 231 | param_.bEnableFrameCroppingFlag = (rand() % 2 == 0) ? false : true; |
| 232 | 232 | param_.bEnableSceneChangeDetect = (rand() % 2 == 0) ? false : true; |
| 233 | 233 | |
| 234 | −//for rc | |
| 234 | + //for rc | |
| 235 | 235 | param_.iRCMode = static_cast<RC_MODES> (rand() % RC_MODE_RANGE - 1); |
| 236 | 236 | param_.iMaxBitrate = rand() % BIT_RATE_RANGE; |
| 237 | 237 | param_.iTargetBitrate = rand() % BIT_RATE_RANGE; |
| @@ -283,7 +283,7 @@ void EncodeDecodeTestAPI::ValidateParamExtCombination() { · 45 unmodified lines | ||
| 283 | 283 | uiGOPSize = 1 << (param_.iTemporalLayerNum - 1); |
| 284 | 284 | param_.uiIntraPeriod -= param_.uiIntraPeriod % uiGOPSize; |
| 285 | 285 | |
| 286 | −//RefNum | |
| 286 | + //RefNum | |
| 287 | 287 | int32_t iRefUpperBound = (param_.iUsageType == CAMERA_VIDEO_REAL_TIME) ? |
| 288 | 288 | MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA : MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN; |
| 289 | 289 | param_.iNumRefFrame = WELS_CLIP3 (param_.iNumRefFrame, MIN_REF_PIC_COUNT, iRefUpperBound); |
| @@ -1999,7 +1999,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 1709 unmodified lines | ||
| 1999 | 1999 | int32_t iTraceLevel = WELS_LOG_QUIET; |
| 2000 | 2000 | encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel); |
| 2001 | 2001 | for (int i = 0; i < iEncFrameNum; i++) { |
| 2002 | − //for (int i = 0; i < 9; i++) { | |
| 2003 | 2002 | int iResult; |
| 2004 | 2003 | int len = 0; |
| 2005 | 2004 | unsigned char* pData[3] = { NULL }; |