History

fix subsetsps parse and scalinglist bug fix

huili2 committed 9 years ago

Commit c5a09fa1 parent d0719d59 files · +157 −36Browse files

Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 9 files). Show all

Unified · Split

test/decoder/DecUT_DecExt.cpp+26−0
@@ -65,6 +65,8 @@ class DecoderInterfaceTest : public ::testing::Test { · 64 unmodified lines
6565 void TestGetDecStatistics();
6666 //DECODER_OPTION_GET_SAR_INFO
6767 void TestGetDecSarInfo();
68+ //Additional test on correctness of vui in subset sps
69+ void TestVuiInSubsetSps();
6870 //Do whole tests here
6971 void DecoderInterfaceAll();
7072
@@ -636,6 +638,28 @@ void DecoderInterfaceTest::TestGetDecSarInfo() { · 565 unmodified lines
636638 Uninit();
637639 }
638640
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+
639663 //TEST here for whole tests
640664 TEST_F (DecoderInterfaceTest, DecoderInterfaceAll) {
641665
@@ -667,6 +691,8 @@ TEST_F (DecoderInterfaceTest, DecoderInterfaceAll) { · 25 unmodified lines
667691 TestGetDecStatistics();
668692 //DECODER_OPTION_GET_SAR_INFO
669693 TestGetDecSarInfo();
694+ //DECODER_OPTION_GET_SAR_INFO with vui in subsetsps
695+ TestVuiInSubsetSps();
670696 }
671697
672698

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