History

Remove unused variables

Martin Storsjö committed 12 years ago

Commit 0affe661 parent 311272d1 file · +0 −17Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+0−17
@@ -161,8 +161,6 @@ TEST_P (EncodeDecodeTestAPI, DecoderVclNal) { · 160 unmodified lines
161161 int rv = encoder_->InitializeExt (&param_);
162162 ASSERT_TRUE (rv == cmResultSuccess);
163163
164− int frameSize = p.width * p.height * 3 / 2;
165−
166164 int32_t iTraceLevel = WELS_LOG_QUIET;
167165 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
168166 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -199,7 +197,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionFramenum) { · 30 unmodified lines
199197 int rv = encoder_->InitializeExt (&param_);
200198 ASSERT_TRUE (rv == cmResultSuccess);
201199
202− int frameSize = p.width * p.height * 3 / 2;
203200 int32_t iTraceLevel = WELS_LOG_QUIET;
204201 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
205202 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -239,7 +236,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionIDR) { · 33 unmodified lines
239236
240237 //init for encoder
241238 // I420: 1(Y) + 1/4(U) + 1/4(V)
242− int frameSize = p.width * p.height * 3 / 2;
243239 int32_t iTraceLevel = WELS_LOG_QUIET;
244240 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
245241 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -482,7 +478,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_ALLIDR) { · 236 unmodified lines
482478 encoder_->Uninitialize();
483479 int rv = encoder_->InitializeExt (&param_);
484480 ASSERT_TRUE (rv == cmResultSuccess);
485− int frameSize = p.width * p.height * 3 / 2;
486481
487482 prepareEncDecParam(p);
488483
@@ -578,7 +573,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) { · 89 unmodified lines
578573 int rv = encoder_->InitializeExt (&param_);
579574 ASSERT_TRUE (rv == cmResultSuccess);
580575 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
581− int frameSize = p.width * p.height * 3 / 2;
582576
583577 prepareEncDecParam(p);
584578
@@ -644,7 +638,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) { · 59 unmodified lines
644638 rv = decoder_->Initialize (&decParam);
645639 ASSERT_EQ (0, rv);
646640 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
647− int frameSize = p.width * p.height * 3 / 2;
648641
649642 prepareEncDecParam(p);
650643 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -701,7 +694,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) { · 50 unmodified lines
701694 int rv = encoder_->InitializeExt (&param_);
702695 ASSERT_TRUE (rv == cmResultSuccess);
703696 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
704− int frameSize = p.width * p.height * 3 / 2;
705697
706698 prepareEncDecParam(p);
707699 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -760,7 +752,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_AVC_NOPREFIX) { · 52 unmodified lines
760752 int rv = encoder_->InitializeExt (&param_);
761753 ASSERT_TRUE (rv == cmResultSuccess);
762754 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
763− int frameSize = p.width * p.height * 3 / 2;
764755 prepareEncDecParam(p);
765756 int32_t iTraceLevel = WELS_LOG_QUIET;
766757 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -833,7 +824,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_AVC_WITH_PREFIX_NOLOSS) { · 66 unmodified lines
833824 int rv = encoder_->InitializeExt (&param_);
834825 ASSERT_TRUE (rv == cmResultSuccess);
835826 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
836− int frameSize = p.width * p.height * 3 / 2;
837827
838828 prepareEncDecParam(p);
839829 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -896,7 +886,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_SVC_L1_NOLOSS) { · 56 unmodified lines
896886 int rv = encoder_->InitializeExt (&param_);
897887 ASSERT_TRUE (rv == cmResultSuccess);
898888 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
899− int frameSize = p.width * p.height * 3 / 2;
900889
901890 prepareEncDecParam(p);
902891 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -954,7 +943,6 @@ TEST_P (EncodeDecodeTestAPI, SetOption_Trace) { · 51 unmodified lines
954943 int rv = encoder_->InitializeExt (&param_);
955944 ASSERT_TRUE (rv == cmResultSuccess);
956945 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
957− int frameSize = p.width * p.height * 3 / 2;
958946
959947 prepareEncDecParam(p);
960948 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -1020,7 +1008,6 @@ TEST_P (EncodeDecodeTestAPI, SetOption_Trace_NULL) { · 59 unmodified lines
10201008 int rv = encoder_->InitializeExt (&param_);
10211009 ASSERT_TRUE (rv == cmResultSuccess);
10221010 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
1023− int frameSize = p.width * p.height * 3 / 2;
10241011
10251012 prepareEncDecParam(p);
10261013
@@ -1094,7 +1081,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECIDC_GeneralSliceChange) { · 67 unmodified lines
10941081 EXPECT_EQ (uiGet, uiEcIdc);
10951082
10961083 //Start for enc/dec
1097− int frameSize = p.width * p.height * 3 / 2;
10981084
10991085 prepareEncDecParam(p);
11001086 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -1180,7 +1166,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificFrameChange) { · 79 unmodified lines
11801166 EXPECT_EQ (uiGet, uiEcIdc);
11811167
11821168 //Start for enc/dec
1183− int frameSize = p.width * p.height * 3 / 2;
11841169 int iIdx = 0;
11851170 int len = 0;
11861171 unsigned char* pData[3] = { NULL };
@@ -1316,7 +1301,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) { · 129 unmodified lines
13161301 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
13171302
13181303 //Start for enc/dec
1319− int frameSize = p.width * p.height * 3 / 2;
13201304 int iIdx = 0;
13211305 int len = 0;
13221306 unsigned char* pData[3] = { NULL };
@@ -1451,7 +1435,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRNoLoss) { · 128 unmodified lines
14511435 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
14521436
14531437 //Start for enc/dec
1454− int frameSize = p.width * p.height * 3 / 2;
14551438 int iIdx = 0;
14561439 int len = 0;
14571440 unsigned char* pData[3] = { NULL };

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