History

Explicitly request 2 threads when testing slice threading

Previously the default value of iMultipleThreadIdc was 0, which made sure threads were used for the test with multiple slices (if run on a multicore machine). Now the default is 1, so multiple threads has to be requested. Explicitly request 2 threads, to make sure the threading code is tested, even on machines with only one core.

Martin Storsjö committed 12 years ago

Commit 411df4c1 parent fb5700b1 file · +3 −0Browse files

Showing the changes to test/api/BaseEncoderTest.cpp (1 of 1 file). Show all

Unified · Split

test/api/BaseEncoderTest.cpp+3−0
@@ -31,6 +31,9 @@ static int InitWithParam(ISVCEncoder* encoder, int width, · 30 unmodified lines
3131 param.iLoopFilterDisableIdc = deblock;
3232 param.iSpatialLayerNum = layers;
3333
34+ if (sliceMode != SM_SINGLE_SLICE)
35+ param.iMultipleThreadIdc = 2;
36+
3437 for (int i = 0; i < param.iSpatialLayerNum; i++) {
3538 param.sSpatialLayers[i].iVideoWidth = width >> (param.iSpatialLayerNum - 1 - i);
3639 param.sSpatialLayers[i].iVideoHeight = height >> (param.iSpatialLayerNum - 1 - i);

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