shithub: openh264

Download patch

ref: 6190c10de8842ff813dfc7d2101b8e71479ce6df
parent: f8e5d3a7bf39224a916db79b496d2a6817034737
parent: 38cc9acdd3a763a6ac8ec28d48918338a1abdfcd
author: dongzha <[email protected]>
date: Mon Aug 11 06:47:44 EDT 2014

Merge pull request #1256 from mstorsjo/speedup-tests

Speed up test cases in EncoderInterfaceTest

--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -12,7 +12,7 @@
 #define VALID_SIZE(iSize) (((iSize)>1)?(iSize):1)
 #define MEM_VARY_SIZE (512)
 #define IMAGE_VARY_SIZE (512)
-#define TEST_FRAMES (200)
+#define TEST_FRAMES (30)
 
 #define NAL_HEADER_BYTES (4)
 #define NAL_TYPE (0x0F)
@@ -138,8 +138,10 @@
 
 TEST_F (EncoderInterfaceTest, TemporalLayerSettingTest) {
 
-  pParamExt->iPicWidth = m_iWidth;
-  pParamExt->iPicHeight = m_iHeight;
+  pParamExt->iPicWidth = 1280;
+  pParamExt->iPicHeight = 720;
+  m_iWidth = pParamExt->iPicWidth;
+  m_iHeight = pParamExt->iPicHeight;
   pParamExt->iTargetBitrate = 60000;
   pParamExt->sSpatialLayers[0].iVideoHeight = pParamExt->iPicHeight;
   pParamExt->sSpatialLayers[0].iVideoWidth = pParamExt->iPicWidth;