Showing the changes to test/api/encode_options_test.cpp (1 of 7 files). Show all
Unified · Split
| @@ -1443,11 +1443,12 @@ TEST_F (EncodeDecodeTestAPI, DiffSlicingInDlayerMixed) { · 1442 unmodified lines | |||
| 1443 | SEncParamExt sParam; | 1443 | SEncParamExt sParam; |
| 1444 | encoder_->GetDefaultParams (&sParam); | 1444 | encoder_->GetDefaultParams (&sParam); |
| 1445 | prepareParamDefault (iSpatialLayerNum, 1, iWidth, iHeight, fFrameRate, &sParam); | 1445 | prepareParamDefault (iSpatialLayerNum, 1, iWidth, iHeight, fFrameRate, &sParam); |
| 1446 | sParam.iMultipleThreadIdc = (rand() % 4) + 1; | 1446 | sParam.iMultipleThreadIdc = (rand() % 2) ? 4 : ((rand() % 4) + 1); |
| 1447 | sParam.bSimulcastAVC = 1; | 1447 | sParam.bSimulcastAVC = 1; |
| 1448 | sParam.sSpatialLayers[0].iVideoWidth = (iWidth >> 2); | 1448 | sParam.sSpatialLayers[0].iVideoWidth = (iWidth >> 2); |
| 1449 | sParam.sSpatialLayers[0].iVideoHeight = (iHeight >> 2); | 1449 | sParam.sSpatialLayers[0].iVideoHeight = (iHeight >> 2); |
| 1450 | sParam.sSpatialLayers[0].sSliceArgument.uiSliceMode = SM_RASTER_SLICE; | 1450 | sParam.sSpatialLayers[0].sSliceArgument.uiSliceMode = SM_SIZELIMITED_SLICE; |
| 1451 | sParam.sSpatialLayers[0].sSliceArgument.uiSliceSizeConstraint = 1500; | ||
| 1451 | 1452 | ||
| 1452 | sParam.sSpatialLayers[1].iVideoWidth = iWidth; | 1453 | sParam.sSpatialLayers[1].iVideoWidth = iWidth; |
| 1453 | sParam.sSpatialLayers[1].iVideoHeight = iHeight; | 1454 | sParam.sSpatialLayers[1].iVideoHeight = iHeight; |