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 | param_.iRCMode = RC_OFF_MODE; //rc off | 97 | param_.iRCMode = RC_OFF_MODE; //rc off |
| 98 | param_.iMultipleThreadIdc = 1; //single thread | 98 | 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; |