History

Make sure the random test bitrate is high enough

This is the same fix as in 47df41 (for the ForceIntraFrame test) applied to the ForceIntraFrameWithTemporal test.

Martin Storsjö committed 11 years ago

Commit 887b4f41 parent ef5f1c41 file · +2 −0Browse files

Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all

Unified · Split

test/encoder/EncUT_EncoderExt.cpp+2−0
@@ -643,6 +643,8 @@ TEST_F (EncoderInterfaceTest, ForceIntraFrameWithTemporal) { · 642 unmodified lines
643643 sEncParamExt.iPicWidth = MB_SIZE + abs ((rand() * 2) % (MAX_WIDTH - MB_SIZE));
644644 sEncParamExt.iPicHeight = MB_SIZE + abs ((rand() * 2) % (MAX_HEIGHT - MB_SIZE));
645645 sEncParamExt.iTargetBitrate = rand() + 1; //!=0
646+ // Force a bitrate of at least w*h/50, otherwise we will only get skipped frames
647+ sEncParamExt.iTargetBitrate = WELS_CLIP3 (sEncParamExt.iTargetBitrate, sEncParamExt.iPicWidth * sEncParamExt.iPicHeight / 50, 100000000);
646648 int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_5_0 - 1].uiMaxBR * CpbBrNalFactor;
647649 if (sEncParamExt.iTargetBitrate > iLevelMaxBitrate)
648650 sEncParamExt.iTargetBitrate = iLevelMaxBitrate;

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