History

change profile and level setting and add ut cases

Karina committed 9 years ago

Commit f09c85f1 parent a683dae14 files · +6051 −5856Browse files

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

Unified · Split

test/encoder/EncUT_EncoderExt.cpp+2−2
@@ -481,7 +481,7 @@ void GetValidEncParamBase (SEncParamBase* pEncParamBase) { · 480 unmodified lines
481481 // Force a bitrate of at least w*h/50, otherwise we will only get skipped frames
482482 pEncParamBase->iTargetBitrate = WELS_CLIP3 (pEncParamBase->iTargetBitrate,
483483 pEncParamBase->iPicWidth * pEncParamBase->iPicHeight / 50, 100000000);
484− int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_5_0 - 1].uiMaxBR * CpbBrNalFactor;
484+ int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_NUMBER - 1].uiMaxBR * CpbBrNalFactor;
485485 if (pEncParamBase->iTargetBitrate > iLevelMaxBitrate)
486486 pEncParamBase->iTargetBitrate = iLevelMaxBitrate;
487487 pEncParamBase->iRCMode = RC_BITRATE_MODE; //-1, 0, 1, 2
@@ -734,7 +734,7 @@ TEST_F (EncoderInterfaceTest, ForceIntraFrameWithTemporal) { · 246 unmodified lines
734734 // Force a bitrate of at least w*h/50, otherwise we will only get skipped frames
735735 sEncParamExt.iTargetBitrate = WELS_CLIP3 (sEncParamExt.iTargetBitrate,
736736 sEncParamExt.iPicWidth * sEncParamExt.iPicHeight / 50, 100000000);
737− int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_5_0 - 1].uiMaxBR * CpbBrNalFactor;
737+ int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_NUMBER - 1].uiMaxBR * CpbBrNalFactor;
738738 if (sEncParamExt.iTargetBitrate > iLevelMaxBitrate)
739739 sEncParamExt.iTargetBitrate = iLevelMaxBitrate;
740740 sEncParamExt.iRCMode = RC_BITRATE_MODE; //-1, 0, 1, 2

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