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
161 int rv = encoder_->InitializeExt (&param_);161 int rv = encoder_->InitializeExt (&param_);
162 ASSERT_TRUE (rv == cmResultSuccess);162 ASSERT_TRUE (rv == cmResultSuccess);
163 163
164 int frameSize = p.width * p.height * 3 / 2;
165
166 int32_t iTraceLevel = WELS_LOG_QUIET;164 int32_t iTraceLevel = WELS_LOG_QUIET;
167 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);165 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
168 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);166 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -199,7 +197,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionFramenum) { · 30 unmodified lines
199 int rv = encoder_->InitializeExt (&param_);197 int rv = encoder_->InitializeExt (&param_);
200 ASSERT_TRUE (rv == cmResultSuccess);198 ASSERT_TRUE (rv == cmResultSuccess);
201 199
202 int frameSize = p.width * p.height * 3 / 2;
203 int32_t iTraceLevel = WELS_LOG_QUIET;200 int32_t iTraceLevel = WELS_LOG_QUIET;
204 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);201 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
205 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);202 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -239,7 +236,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionIDR) { · 33 unmodified lines
239 236
240 //init for encoder237 //init for encoder
241 // I420: 1(Y) + 1/4(U) + 1/4(V)238 // I420: 1(Y) + 1/4(U) + 1/4(V)
242 int frameSize = p.width * p.height * 3 / 2;
243 int32_t iTraceLevel = WELS_LOG_QUIET;239 int32_t iTraceLevel = WELS_LOG_QUIET;
244 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);240 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
245 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);241 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -482,7 +478,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_ALLIDR) { · 236 unmodified lines
482 encoder_->Uninitialize();478 encoder_->Uninitialize();
483 int rv = encoder_->InitializeExt (&param_);479 int rv = encoder_->InitializeExt (&param_);
484 ASSERT_TRUE (rv == cmResultSuccess);480 ASSERT_TRUE (rv == cmResultSuccess);
485 int frameSize = p.width * p.height * 3 / 2;
486 481
487 prepareEncDecParam(p);482 prepareEncDecParam(p);
488 483
@@ -578,7 +573,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) { · 89 unmodified lines
578 int rv = encoder_->InitializeExt (&param_);573 int rv = encoder_->InitializeExt (&param_);
579 ASSERT_TRUE (rv == cmResultSuccess);574 ASSERT_TRUE (rv == cmResultSuccess);
580 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;575 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
581 int frameSize = p.width * p.height * 3 / 2;
582 576
583 prepareEncDecParam(p);577 prepareEncDecParam(p);
584 578
@@ -644,7 +638,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) { · 59 unmodified lines
644 rv = decoder_->Initialize (&decParam);638 rv = decoder_->Initialize (&decParam);
645 ASSERT_EQ (0, rv);639 ASSERT_EQ (0, rv);
646 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;640 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
647 int frameSize = p.width * p.height * 3 / 2;
648 641
649 prepareEncDecParam(p);642 prepareEncDecParam(p);
650 int32_t iTraceLevel = WELS_LOG_QUIET;643 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -701,7 +694,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) { · 50 unmodified lines
701 int rv = encoder_->InitializeExt (&param_);694 int rv = encoder_->InitializeExt (&param_);
702 ASSERT_TRUE (rv == cmResultSuccess);695 ASSERT_TRUE (rv == cmResultSuccess);
703 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;696 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
704 int frameSize = p.width * p.height * 3 / 2;
705 697
706 prepareEncDecParam(p);698 prepareEncDecParam(p);
707 int32_t iTraceLevel = WELS_LOG_QUIET;699 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -760,7 +752,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_AVC_NOPREFIX) { · 52 unmodified lines
760 int rv = encoder_->InitializeExt (&param_);752 int rv = encoder_->InitializeExt (&param_);
761 ASSERT_TRUE (rv == cmResultSuccess);753 ASSERT_TRUE (rv == cmResultSuccess);
762 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;754 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
763 int frameSize = p.width * p.height * 3 / 2;
764 prepareEncDecParam(p);755 prepareEncDecParam(p);
765 int32_t iTraceLevel = WELS_LOG_QUIET;756 int32_t iTraceLevel = WELS_LOG_QUIET;
766 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);757 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -833,7 +824,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_AVC_WITH_PREFIX_NOLOSS) { · 66 unmodified lines
833 int rv = encoder_->InitializeExt (&param_);824 int rv = encoder_->InitializeExt (&param_);
834 ASSERT_TRUE (rv == cmResultSuccess);825 ASSERT_TRUE (rv == cmResultSuccess);
835 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;826 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
836 int frameSize = p.width * p.height * 3 / 2;
837 827
838 prepareEncDecParam(p);828 prepareEncDecParam(p);
839 int32_t iTraceLevel = WELS_LOG_QUIET;829 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -896,7 +886,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_SVC_L1_NOLOSS) { · 56 unmodified lines
896 int rv = encoder_->InitializeExt (&param_);886 int rv = encoder_->InitializeExt (&param_);
897 ASSERT_TRUE (rv == cmResultSuccess);887 ASSERT_TRUE (rv == cmResultSuccess);
898 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;888 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
899 int frameSize = p.width * p.height * 3 / 2;
900 889
901 prepareEncDecParam(p);890 prepareEncDecParam(p);
902 int32_t iTraceLevel = WELS_LOG_QUIET;891 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -954,7 +943,6 @@ TEST_P (EncodeDecodeTestAPI, SetOption_Trace) { · 51 unmodified lines
954 int rv = encoder_->InitializeExt (&param_);943 int rv = encoder_->InitializeExt (&param_);
955 ASSERT_TRUE (rv == cmResultSuccess);944 ASSERT_TRUE (rv == cmResultSuccess);
956 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;945 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
957 int frameSize = p.width * p.height * 3 / 2;
958 946
959 prepareEncDecParam(p);947 prepareEncDecParam(p);
960 int32_t iTraceLevel = WELS_LOG_QUIET;948 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -1020,7 +1008,6 @@ TEST_P (EncodeDecodeTestAPI, SetOption_Trace_NULL) { · 59 unmodified lines
1020 int rv = encoder_->InitializeExt (&param_);1008 int rv = encoder_->InitializeExt (&param_);
1021 ASSERT_TRUE (rv == cmResultSuccess);1009 ASSERT_TRUE (rv == cmResultSuccess);
1022 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;1010 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
1023 int frameSize = p.width * p.height * 3 / 2;
1024 1011
1025 prepareEncDecParam(p);1012 prepareEncDecParam(p);
1026 1013
@@ -1094,7 +1081,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECIDC_GeneralSliceChange) { · 67 unmodified lines
1094 EXPECT_EQ (uiGet, uiEcIdc);1081 EXPECT_EQ (uiGet, uiEcIdc);
1095 1082
1096 //Start for enc/dec1083 //Start for enc/dec
1097 int frameSize = p.width * p.height * 3 / 2;
1098 1084
1099 prepareEncDecParam(p);1085 prepareEncDecParam(p);
1100 int32_t iTraceLevel = WELS_LOG_QUIET;1086 int32_t iTraceLevel = WELS_LOG_QUIET;
@@ -1180,7 +1166,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificFrameChange) { · 79 unmodified lines
1180 EXPECT_EQ (uiGet, uiEcIdc);1166 EXPECT_EQ (uiGet, uiEcIdc);
1181 1167
1182 //Start for enc/dec1168 //Start for enc/dec
1183 int frameSize = p.width * p.height * 3 / 2;
1184 int iIdx = 0;1169 int iIdx = 0;
1185 int len = 0;1170 int len = 0;
1186 unsigned char* pData[3] = { NULL };1171 unsigned char* pData[3] = { NULL };
@@ -1316,7 +1301,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) { · 129 unmodified lines
1316 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);1301 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
1317 1302
1318 //Start for enc/dec1303 //Start for enc/dec
1319 int frameSize = p.width * p.height * 3 / 2;
1320 int iIdx = 0;1304 int iIdx = 0;
1321 int len = 0;1305 int len = 0;
1322 unsigned char* pData[3] = { NULL };1306 unsigned char* pData[3] = { NULL };
@@ -1451,7 +1435,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRNoLoss) { · 128 unmodified lines
1451 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);1435 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
1452 1436
1453 //Start for enc/dec1437 //Start for enc/dec
1454 int frameSize = p.width * p.height * 3 / 2;
1455 int iIdx = 0;1438 int iIdx = 0;
1456 int len = 0;1439 int len = 0;
1457 unsigned char* pData[3] = { NULL };1440 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