Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 9 files). Show all
Unified · Split
| @@ -65,6 +65,8 @@ class DecoderInterfaceTest : public ::testing::Test { · 64 unmodified lines | |||
| 65 | void TestGetDecStatistics(); | 65 | void TestGetDecStatistics(); |
| 66 | //DECODER_OPTION_GET_SAR_INFO | 66 | //DECODER_OPTION_GET_SAR_INFO |
| 67 | void TestGetDecSarInfo(); | 67 | void TestGetDecSarInfo(); |
| 68 | //Additional test on correctness of vui in subset sps | ||
| 69 | void TestVuiInSubsetSps(); | ||
| 68 | //Do whole tests here | 70 | //Do whole tests here |
| 69 | void DecoderInterfaceAll(); | 71 | void DecoderInterfaceAll(); |
| 70 | 72 | ||
| @@ -636,6 +638,28 @@ void DecoderInterfaceTest::TestGetDecSarInfo() { · 565 unmodified lines | |||
| 636 | Uninit(); | 638 | Uninit(); |
| 637 | } | 639 | } |
| 638 | 640 | ||
| 641 | //DECODER_OPTION_GET_SAR_INFO, test Vui in subset sps | ||
| 642 | void DecoderInterfaceTest::TestVuiInSubsetSps() { | ||
| 643 | int32_t iRet; | ||
| 644 | SVuiSarInfo sVuiSarInfo; | ||
| 645 | |||
| 646 | iRet = ValidInit(); | ||
| 647 | ASSERT_EQ (iRet, ERR_NONE); | ||
| 648 | |||
| 649 | //GetOption before decoding | ||
| 650 | m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo); | ||
| 651 | EXPECT_EQ (0u, sVuiSarInfo.uiSarWidth); | ||
| 652 | EXPECT_EQ (0u, sVuiSarInfo.uiSarHeight); | ||
| 653 | EXPECT_EQ (sVuiSarInfo.bOverscanAppropriateFlag, false); | ||
| 654 | |||
| 655 | DecoderBs ("res/sps_subsetsps_bothVUI.264"); | ||
| 656 | m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo); | ||
| 657 | EXPECT_EQ (1u, sVuiSarInfo.uiSarWidth); //DO NOT MODIFY the data value | ||
| 658 | EXPECT_EQ (1u, sVuiSarInfo.uiSarHeight); //DO NOT MODIFY the data value | ||
| 659 | EXPECT_EQ (sVuiSarInfo.bOverscanAppropriateFlag, false); //DO NOT MODIFY the data value | ||
| 660 | Uninit(); | ||
| 661 | } | ||
| 662 | |||
| 639 | //TEST here for whole tests | 663 | //TEST here for whole tests |
| 640 | TEST_F (DecoderInterfaceTest, DecoderInterfaceAll) { | 664 | TEST_F (DecoderInterfaceTest, DecoderInterfaceAll) { |
| 641 | 665 | ||
| @@ -667,6 +691,8 @@ TEST_F (DecoderInterfaceTest, DecoderInterfaceAll) { · 25 unmodified lines | |||
| 667 | TestGetDecStatistics(); | 691 | TestGetDecStatistics(); |
| 668 | //DECODER_OPTION_GET_SAR_INFO | 692 | //DECODER_OPTION_GET_SAR_INFO |
| 669 | TestGetDecSarInfo(); | 693 | TestGetDecSarInfo(); |
| 694 | //DECODER_OPTION_GET_SAR_INFO with vui in subsetsps | ||
| 695 | TestVuiInSubsetSps(); | ||
| 670 | } | 696 | } |
| 671 | 697 | ||
| 672 | 698 | ||