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