History

Merge pull request #1469 from shihuade/APIUTV1.5.2

refactor --for BaseEncoderTest

sijchen committed 12 years ago

Commit c7b50512 parents 07bf80b 54c24df5 files · +113 −63Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 5 files). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+2−3
@@ -231,7 +231,7 @@ void EncodeDecodeTestAPI::RandomParamExtCombination() { · 230 unmodified lines
231231 param_.bEnableFrameCroppingFlag = (rand() % 2 == 0) ? false : true;
232232 param_.bEnableSceneChangeDetect = (rand() % 2 == 0) ? false : true;
233233
234−//for rc
234+ //for rc
235235 param_.iRCMode = static_cast<RC_MODES> (rand() % RC_MODE_RANGE - 1);
236236 param_.iMaxBitrate = rand() % BIT_RATE_RANGE;
237237 param_.iTargetBitrate = rand() % BIT_RATE_RANGE;
@@ -283,7 +283,7 @@ void EncodeDecodeTestAPI::ValidateParamExtCombination() { · 45 unmodified lines
283283 uiGOPSize = 1 << (param_.iTemporalLayerNum - 1);
284284 param_.uiIntraPeriod -= param_.uiIntraPeriod % uiGOPSize;
285285
286−//RefNum
286+ //RefNum
287287 int32_t iRefUpperBound = (param_.iUsageType == CAMERA_VIDEO_REAL_TIME) ?
288288 MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA : MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN;
289289 param_.iNumRefFrame = WELS_CLIP3 (param_.iNumRefFrame, MIN_REF_PIC_COUNT, iRefUpperBound);
@@ -1999,7 +1999,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 1709 unmodified lines
19991999 int32_t iTraceLevel = WELS_LOG_QUIET;
20002000 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
20012001 for (int i = 0; i < iEncFrameNum; i++) {
2002− //for (int i = 0; i < 9; i++) {
20032002 int iResult;
20042003 int len = 0;
20052004 unsigned char* pData[3] = { NULL };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t