shithub: openh264

Download patch

ref: 0affe66f938f6fa3ee56e7b3e117552750638ef3
parent: 311272d341a8d3a510d10972c1535c2aba122d10
author: Martin Storsjö <martin@martin.st>
date: Tue Sep 30 04:52:55 EDT 2014

Remove unused variables

--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -161,8 +161,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
 
-  int frameSize = p.width * p.height * 3 / 2;
-
   int32_t iTraceLevel = WELS_LOG_QUIET;
   encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
   decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -199,7 +197,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
 
-  int frameSize = p.width * p.height * 3 / 2;
   int32_t iTraceLevel = WELS_LOG_QUIET;
   encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
   decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -239,7 +236,6 @@
 
   //init for encoder
   // I420: 1(Y) + 1/4(U) + 1/4(V)
-  int frameSize = p.width * p.height * 3 / 2;
   int32_t iTraceLevel = WELS_LOG_QUIET;
   encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
   decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -482,7 +478,6 @@
   encoder_->Uninitialize();
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
 
@@ -578,7 +573,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
 
@@ -644,7 +638,6 @@
   rv = decoder_->Initialize (&decParam);
   ASSERT_EQ (0, rv);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
   int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -701,7 +694,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
   int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -760,7 +752,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
   prepareEncDecParam(p);
   int32_t iTraceLevel = WELS_LOG_QUIET;
   encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -833,7 +824,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
   int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -896,7 +886,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
   int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -954,7 +943,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
   int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -1020,7 +1008,6 @@
   int rv = encoder_->InitializeExt (&param_);
   ASSERT_TRUE (rv == cmResultSuccess);
   m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
 
@@ -1094,7 +1081,6 @@
   EXPECT_EQ (uiGet, uiEcIdc);
 
   //Start for enc/dec
-  int frameSize = p.width * p.height * 3 / 2;
 
   prepareEncDecParam(p);
   int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -1180,7 +1166,6 @@
   EXPECT_EQ (uiGet, uiEcIdc);
 
   //Start for enc/dec
-  int frameSize = p.width * p.height * 3 / 2;
   int iIdx = 0;
   int len = 0;
   unsigned char* pData[3] = { NULL };
@@ -1316,7 +1301,6 @@
   decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
 
   //Start for enc/dec
-  int frameSize = p.width * p.height * 3 / 2;
   int iIdx = 0;
   int len = 0;
   unsigned char* pData[3] = { NULL };
@@ -1451,7 +1435,6 @@
   decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
 
   //Start for enc/dec
-  int frameSize = p.width * p.height * 3 / 2;
   int iIdx = 0;
   int len = 0;
   unsigned char* pData[3] = { NULL };