History

Make sure the width/height is large enough in SetOptionEncParamExt

When using 4 downsampled layers, make sure the random width/height is large enough that the downsampled layers don't have a zero size. Since the value never will be too small now, there's no need to use WELS_CLIP3 any longer.

Martin Storsjö committed 12 years ago

Commit ec0d1511 parent 3b5448c1 file · +2 −2Browse 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+2−2
@@ -1985,8 +1985,8 @@ TEST_F (EncodeDecodeTestAPI, Engine_SVC_Switch_P) { · 1984 unmodified lines
19851985
19861986
19871987 TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) {
1988− int iWidth = WELS_CLIP3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 2, MAX_WIDTH);
1989− int iHeight = WELS_CLIP3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 2, MAX_HEIGHT);
1988+ int iWidth = (((rand() % MAX_WIDTH) >> 1) + 16) << 1;
1989+ int iHeight = (((rand() % MAX_HEIGHT) >> 1) + 16) << 1;
19901990 float fFrameRate = rand() + 0.5f;
19911991 int iEncFrameNum = WELS_CLIP3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);
19921992 int iSpatialLayerNum = 4;

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