History

Add tasks and thread pool call for SM_SIZELIMITED_SLICE mode

sijchen committed 10 years ago

Commit 76ca5641 parent 76b428a7 files · +165 −21Browse files

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

Unified · Split

test/api/encode_options_test.cpp+3−2
@@ -1443,11 +1443,12 @@ TEST_F (EncodeDecodeTestAPI, DiffSlicingInDlayerMixed) { · 1442 unmodified lines
14431443 SEncParamExt sParam;
14441444 encoder_->GetDefaultParams (&sParam);
14451445 prepareParamDefault (iSpatialLayerNum, 1, iWidth, iHeight, fFrameRate, &sParam);
1446− sParam.iMultipleThreadIdc = (rand() % 4) + 1;
1446+ sParam.iMultipleThreadIdc = (rand() % 2) ? 4 : ((rand() % 4) + 1);
14471447 sParam.bSimulcastAVC = 1;
14481448 sParam.sSpatialLayers[0].iVideoWidth = (iWidth >> 2);
14491449 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;
14511452
14521453 sParam.sSpatialLayers[1].iVideoWidth = iWidth;
14531454 sParam.sSpatialLayers[1].iVideoHeight = iHeight;

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