History

refactor --for BaseEncoderTest

huashi committed 12 years ago

Commit 54c24df1 parent c83ab3b5 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
231 param_.bEnableFrameCroppingFlag = (rand() % 2 == 0) ? false : true;231 param_.bEnableFrameCroppingFlag = (rand() % 2 == 0) ? false : true;
232 param_.bEnableSceneChangeDetect = (rand() % 2 == 0) ? false : true;232 param_.bEnableSceneChangeDetect = (rand() % 2 == 0) ? false : true;
233 233
234//for rc234 //for rc
235 param_.iRCMode = static_cast<RC_MODES> (rand() % RC_MODE_RANGE - 1);235 param_.iRCMode = static_cast<RC_MODES> (rand() % RC_MODE_RANGE - 1);
236 param_.iMaxBitrate = rand() % BIT_RATE_RANGE;236 param_.iMaxBitrate = rand() % BIT_RATE_RANGE;
237 param_.iTargetBitrate = rand() % BIT_RATE_RANGE;237 param_.iTargetBitrate = rand() % BIT_RATE_RANGE;
@@ -286,7 +286,7 @@ void EncodeDecodeTestAPI::ValidateParamExtCombination() { · 48 unmodified lines
286 param_.uiIntraPeriod = 0;286 param_.uiIntraPeriod = 0;
287 }287 }
288 288
289//RefNum289 //RefNum
290 int32_t iRefUpperBound = (param_.iUsageType == CAMERA_VIDEO_REAL_TIME) ?290 int32_t iRefUpperBound = (param_.iUsageType == CAMERA_VIDEO_REAL_TIME) ?
291 MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA : MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN;291 MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA : MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN;
292 param_.iNumRefFrame = WELS_CLIP3 (param_.iNumRefFrame, MIN_REF_PIC_COUNT, iRefUpperBound);292 param_.iNumRefFrame = WELS_CLIP3 (param_.iNumRefFrame, MIN_REF_PIC_COUNT, iRefUpperBound);
@@ -2003,7 +2003,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 1710 unmodified lines
2003 ASSERT_TRUE (rv == cmResultSuccess);2003 ASSERT_TRUE (rv == cmResultSuccess);
2004 2004
2005 for (int i = 0; i < iEncFrameNum; i++) {2005 for (int i = 0; i < iEncFrameNum; i++) {
2006 //for (int i = 0; i < 9; i++) {
2007 int iResult;2006 int iResult;
2008 int len = 0;2007 int len = 0;
2009 unsigned char* pData[3] = { NULL };2008 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