History

Set a specific frame size in TemporalLayerSettingTest

Previously, this test used whatever size was set in m_iWidth and m_iHeight before, which depended on the order that the tests were executed. When this test was the first one executed in the EncoderInterfaceTest, the width and height were set to the max. Instead of having the test behaviour depend on the test order, set a specific size, just as InitializeParamExt and MemoryCheckTest do. This reduces the runtime of TemporalLayerSettingTest from 86 seconds to 26 seconds, when run in valgrind.

Martin Storsjö committed 12 years ago

Commit 38cc9ac1 parent c3702d91 file · +4 −2Browse files

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

Unified · Split

test/encoder/EncUT_EncoderExt.cpp+4−2
@@ -138,8 +138,10 @@ void EncoderInterfaceTest::InitializeParamExt() { · 137 unmodified lines
138138
139139 TEST_F (EncoderInterfaceTest, TemporalLayerSettingTest) {
140140
141− pParamExt->iPicWidth = m_iWidth;
142− pParamExt->iPicHeight = m_iHeight;
141+ pParamExt->iPicWidth = 1280;
142+ pParamExt->iPicHeight = 720;
143+ m_iWidth = pParamExt->iPicWidth;
144+ m_iHeight = pParamExt->iPicHeight;
143145 pParamExt->iTargetBitrate = 60000;
144146 pParamExt->sSpatialLayers[0].iVideoHeight = pParamExt->iPicHeight;
145147 pParamExt->sSpatialLayers[0].iVideoWidth = pParamExt->iPicWidth;

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