Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 11 files). Show all
Unified · Split
| @@ -413,7 +413,8 @@ void DecoderInterfaceTest::TestGetDecStatistics() { · 412 unmodified lines | ||
| 413 | 413 | //Decoder error bs |
| 414 | 414 | DecoderBs ("res/Error_I_P.264"); |
| 415 | 415 | m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic); |
| 416 | − EXPECT_EQ (57u, sDecStatic.uiAvgEcRatio); | |
| 416 | + EXPECT_EQ (65u, sDecStatic.uiAvgEcRatio); | |
| 417 | + EXPECT_EQ (7u, sDecStatic.uiAvgEcPropRatio); | |
| 417 | 418 | EXPECT_EQ (5u, sDecStatic.uiDecodedFrameCount); |
| 418 | 419 | EXPECT_EQ (288u, sDecStatic.uiHeight); |
| 419 | 420 | EXPECT_EQ (1u, sDecStatic.uiIDRCorrectNum); |
| @@ -430,7 +431,8 @@ void DecoderInterfaceTest::TestGetDecStatistics() { · 10 unmodified lines | ||
| 430 | 431 | m_pDec->SetOption (DECODER_OPTION_ERROR_CON_IDC, &iError); |
| 431 | 432 | DecoderBs ("res/BA_MW_D_IDR_LOST.264"); |
| 432 | 433 | m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic); |
| 433 | − EXPECT_EQ (0u, sDecStatic.uiAvgEcRatio); | |
| 434 | + EXPECT_EQ (88u, sDecStatic.uiAvgEcRatio); | |
| 435 | + EXPECT_EQ (88u, sDecStatic.uiAvgEcPropRatio); | |
| 434 | 436 | EXPECT_EQ (97u, sDecStatic.uiDecodedFrameCount); |
| 435 | 437 | EXPECT_EQ (144u, sDecStatic.uiHeight); |
| 436 | 438 | EXPECT_EQ (3u, sDecStatic.uiIDRCorrectNum); |
| @@ -449,7 +451,8 @@ void DecoderInterfaceTest::TestGetDecStatistics() { · 12 unmodified lines | ||
| 449 | 451 | DecoderBs ("res/BA_MW_D_P_LOST.264"); |
| 450 | 452 | |
| 451 | 453 | m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic); |
| 452 | − EXPECT_EQ (0u, sDecStatic.uiAvgEcRatio); | |
| 454 | + EXPECT_EQ (85u, sDecStatic.uiAvgEcRatio); | |
| 455 | + EXPECT_EQ (85u, sDecStatic.uiAvgEcPropRatio); | |
| 453 | 456 | EXPECT_EQ (99u, sDecStatic.uiDecodedFrameCount); |
| 454 | 457 | EXPECT_EQ (144u, sDecStatic.uiHeight); |
| 455 | 458 | EXPECT_EQ (4u, sDecStatic.uiIDRCorrectNum); |
| @@ -470,6 +473,7 @@ void DecoderInterfaceTest::TestGetDecStatistics() { · 14 unmodified lines | ||
| 470 | 473 | m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic); |
| 471 | 474 | |
| 472 | 475 | EXPECT_EQ (0u, sDecStatic.uiAvgEcRatio); |
| 476 | + EXPECT_EQ (0u, sDecStatic.uiAvgEcPropRatio); | |
| 473 | 477 | EXPECT_EQ (9u, sDecStatic.uiDecodedFrameCount); |
| 474 | 478 | EXPECT_EQ (192u, sDecStatic.uiHeight); |
| 475 | 479 | EXPECT_EQ (1u, sDecStatic.uiIDRCorrectNum); |