History

Increase the minimum frame size in a test with multiple spatial layers

Make sure the input frame size is large enough that the downsampled layers also have a nonzero resolution.

Martin Storsjö committed 11 years ago

Commit f4b37241 parent 59fefbe1 file · +3 −3Browse files

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

Unified · Split

test/api/encode_decode_api_test.cpp+3−3
@@ -2057,11 +2057,11 @@ TEST_F (EncodeDecodeTestAPI, Engine_SVC_Switch_P) { · 2056 unmodified lines
20572057 }
20582058
20592059 TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) {
2060− int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 2, MAX_WIDTH);
2061− int iHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 2, MAX_HEIGHT);
2060+ int iSpatialLayerNum = 4;
2061+ int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_WIDTH);
2062+ int iHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_HEIGHT);
20622063 float fFrameRate = rand() + 0.5f;
20632064 int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);
2064− int iSpatialLayerNum = 4;
20652065 int iSliceNum = 1;
20662066 encoder_->GetDefaultParams (&param_);
20672067 prepareParam (iSpatialLayerNum, iSliceNum, iWidth, iHeight, fFrameRate);

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