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
9797 param_.iRCMode = RC_OFF_MODE; //rc off
9898 param_.iMultipleThreadIdc = 1; //single thread
9999 param_.iSpatialLayerNum = iLayers;
100+ param_.iNumRefFrame = AUTO_REF_PIC_COUNT;
100101 for (int i = 0; i < iLayers; i++) {
101102 param_.sSpatialLayers[i].iVideoWidth = width >> (iLayers - i - 1);
102103 param_.sSpatialLayers[i].iVideoHeight = height >> (iLayers - i - 1);
@@ -230,7 +231,7 @@ void EncodeDecodeTestAPI::RandomParamExtCombination() { · 127 unmodified lines
230231 param_.iSpatialLayerNum = rand() % SPATIAL_LAYER_NUM_RANGE;
231232
232233 param_.uiIntraPeriod = rand() - 1;
233− param_.iNumRefFrame = rand();
234+ param_.iNumRefFrame = AUTO_REF_PIC_COUNT;
234235 param_.iMultipleThreadIdc = rand();
235236
236237 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