History

enhance param checking with num-ref and related logging

Sijia Chen committed 11 years ago

Commit ea06cbe1 parent 04cb9f38 files · +133 −54Browse files

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

Unified · Split

test/api/encode_decode_api_test.cpp+2−1
@@ -97,6 +97,7 @@ class EncodeDecodeTestBase : public ::testing::TestWithParam<EncodeDecodeFilePar · 96 unmodified lines
97 param_.iRCMode = RC_OFF_MODE; //rc off97 param_.iRCMode = RC_OFF_MODE; //rc off
98 param_.iMultipleThreadIdc = 1; //single thread98 param_.iMultipleThreadIdc = 1; //single thread
99 param_.iSpatialLayerNum = iLayers;99 param_.iSpatialLayerNum = iLayers;
100 param_.iNumRefFrame = AUTO_REF_PIC_COUNT;
100 for (int i = 0; i < iLayers; i++) {101 for (int i = 0; i < iLayers; i++) {
101 param_.sSpatialLayers[i].iVideoWidth = width >> (iLayers - i - 1);102 param_.sSpatialLayers[i].iVideoWidth = width >> (iLayers - i - 1);
102 param_.sSpatialLayers[i].iVideoHeight = height >> (iLayers - i - 1);103 param_.sSpatialLayers[i].iVideoHeight = height >> (iLayers - i - 1);
@@ -230,7 +231,7 @@ void EncodeDecodeTestAPI::RandomParamExtCombination() { · 127 unmodified lines
230 param_.iSpatialLayerNum = rand() % SPATIAL_LAYER_NUM_RANGE;231 param_.iSpatialLayerNum = rand() % SPATIAL_LAYER_NUM_RANGE;
231 232
232 param_.uiIntraPeriod = rand() - 1;233 param_.uiIntraPeriod = rand() - 1;
233 param_.iNumRefFrame = rand();234 param_.iNumRefFrame = AUTO_REF_PIC_COUNT;
234 param_.iMultipleThreadIdc = rand();235 param_.iMultipleThreadIdc = rand();
235 236
236 param_.bEnableSpsPpsIdAddition = (rand() % 2 == 0) ? false : true;237 param_.bEnableSpsPpsIdAddition = (rand() % 2 == 0) ? false : true;

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