MCPcopy Create free account
hub / github.com/cisco/openh264 / TestVuiInSubsetSps

Method TestVuiInSubsetSps

test/decoder/DecUT_DecExt.cpp:640–659  ·  view source on GitHub ↗

DECODER_OPTION_GET_SAR_INFO, test Vui in subset sps

Source from the content-addressed store, hash-verified

638
639//DECODER_OPTION_GET_SAR_INFO, test Vui in subset sps
640void DecoderInterfaceTest::TestVuiInSubsetSps() {
641 int32_t iRet;
642 SVuiSarInfo sVuiSarInfo;
643
644 iRet = ValidInit();
645 ASSERT_EQ (iRet, ERR_NONE);
646
647 //GetOption before decoding
648 m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo);
649 EXPECT_EQ (0u, sVuiSarInfo.uiSarWidth);
650 EXPECT_EQ (0u, sVuiSarInfo.uiSarHeight);
651 EXPECT_EQ (sVuiSarInfo.bOverscanAppropriateFlag, false);
652
653 DecoderBs ("res/sps_subsetsps_bothVUI.264");
654 m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo);
655 EXPECT_EQ (1u, sVuiSarInfo.uiSarWidth); //DO NOT MODIFY the data value
656 EXPECT_EQ (1u, sVuiSarInfo.uiSarHeight); //DO NOT MODIFY the data value
657 EXPECT_EQ (sVuiSarInfo.bOverscanAppropriateFlag, false); //DO NOT MODIFY the data value
658 Uninit();
659}
660
661//TEST here for whole tests
662TEST_F (DecoderInterfaceTest, DecoderInterfaceAll) {

Callers

nothing calls this directly

Calls 2

UninitFunction · 0.85
GetOptionMethod · 0.45

Tested by

no test coverage detected