Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -681,12 +681,12 @@ TEST_F (EncoderInterfaceTest, GetStatistics) { · 680 unmodified lines | |||
| 681 | SEncoderStatistics sEncoderStatistics; | 681 | SEncoderStatistics sEncoderStatistics; |
| 682 | iResult = pPtrEnc->GetOption (ENCODER_OPTION_GET_STATISTICS, &sEncoderStatistics); | 682 | iResult = pPtrEnc->GetOption (ENCODER_OPTION_GET_STATISTICS, &sEncoderStatistics); |
| 683 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); | 683 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); |
| 684 | EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, 2); | 684 | EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, static_cast<unsigned int> (2)); |
| 685 | EXPECT_EQ (sEncoderStatistics.uIDRSentNum, 1); | 685 | EXPECT_EQ (sEncoderStatistics.uIDRSentNum, static_cast<unsigned int> (1)); |
| 686 | EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, 0); | 686 | EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, static_cast<unsigned int> (0)); |
| 687 | 687 | ||
| 688 | EXPECT_EQ (sEncoderStatistics.uWidth, sEncParamBase.iPicWidth); | 688 | EXPECT_EQ (sEncoderStatistics.uWidth, static_cast<unsigned int> (sEncParamBase.iPicWidth)); |
| 689 | EXPECT_EQ (sEncoderStatistics.uHeight, sEncParamBase.iPicHeight); | 689 | EXPECT_EQ (sEncoderStatistics.uHeight, static_cast<unsigned int> (sEncParamBase.iPicHeight)); |
| 690 | 690 | ||
| 691 | // try param change | 691 | // try param change |
| 692 | // 1, get the existing | 692 | // 1, get the existing |
| @@ -711,12 +711,12 @@ TEST_F (EncoderInterfaceTest, GetStatistics) { · 18 unmodified lines | |||
| 711 | iResult = pPtrEnc->GetOption (ENCODER_OPTION_GET_STATISTICS, &sEncoderStatistics); | 711 | iResult = pPtrEnc->GetOption (ENCODER_OPTION_GET_STATISTICS, &sEncoderStatistics); |
| 712 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); | 712 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); |
| 713 | 713 | ||
| 714 | EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, 3); | 714 | EXPECT_EQ (sEncoderStatistics.uiInputFrameCount, static_cast<unsigned int> (3)); |
| 715 | EXPECT_EQ (sEncoderStatistics.uIDRSentNum, 2); | 715 | EXPECT_EQ (sEncoderStatistics.uIDRSentNum, static_cast<unsigned int> (2)); |
| 716 | EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, knownResolutionChangeTimes); | 716 | EXPECT_EQ (sEncoderStatistics.uiResolutionChangeTimes, static_cast<unsigned int> (knownResolutionChangeTimes)); |
| 717 | 717 | ||
| 718 | EXPECT_EQ (sEncoderStatistics.uWidth, sEncParamBase.iPicWidth); | 718 | EXPECT_EQ (sEncoderStatistics.uWidth, static_cast<unsigned int> (sEncParamBase.iPicWidth)); |
| 719 | EXPECT_EQ (sEncoderStatistics.uHeight, sEncParamBase.iPicHeight); | 719 | EXPECT_EQ (sEncoderStatistics.uHeight, static_cast<unsigned int> (sEncParamBase.iPicHeight)); |
| 720 | 720 | ||
| 721 | // 4, change log interval | 721 | // 4, change log interval |
| 722 | int32_t iInterval = 0; | 722 | int32_t iInterval = 0; |
| @@ -740,4 +740,4 @@ TEST_F (EncoderInterfaceTest, GetStatistics) { · 17 unmodified lines | |||
| 740 | 740 | ||
| 741 | // finish | 741 | // finish |
| 742 | pPtrEnc->Uninitialize(); | 742 | pPtrEnc->Uninitialize(); |
| 743 | } | 743 | } |