Changeset 670 in SHVCSoftware for branches/SHM-6-dev
- Timestamp:
- 11 Apr 2014, 20:17:11 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r665 r670 1469 1469 { 1470 1470 // Read rep_format_structures 1471 parseRepFormat( vps->getVpsRepFormat(i) );1471 parseRepFormat( vps->getVpsRepFormat(i), i > 0 ? vps->getVpsRepFormat(i-1) : 0 ); 1472 1472 } 1473 1473 … … 1537 1537 { 1538 1538 // Read rep_format_structures 1539 parseRepFormat( vps->getVpsRepFormat(i) );1539 parseRepFormat( vps->getVpsRepFormat(i), i > 0 ? vps->getVpsRepFormat(i-1) : 0 ); 1540 1540 } 1541 1541 … … 1705 1705 #endif 1706 1706 #if REPN_FORMAT_IN_VPS 1707 Void TDecCavlc::parseRepFormat( RepFormat *repFormat )1707 Void TDecCavlc::parseRepFormat( RepFormat *repFormat, RepFormat *repFormatPrev ) 1708 1708 { 1709 1709 UInt uiCode; … … 1713 1713 READ_FLAG( uiCode, "chroma_and_bit_depth_vps_present_flag" ); repFormat->setChromaAndBitDepthVpsPresentFlag( uiCode ? true : false ); 1714 1714 1715 if( !repFormatPrev ) 1716 { 1717 // The value of chroma_and_bit_depth_vps_present_flag of the first rep_format( ) syntax structure in the VPS shall be equal to 1 1718 assert( repFormat->getChromaAndBitDepthVpsPresentFlag() ); 1719 } 1720 1715 1721 if( repFormat->getChromaAndBitDepthVpsPresentFlag() ) 1716 1722 { … … 1729 1735 READ_CODE( 4, uiCode, "bit_depth_vps_luma_minus8" ); repFormat->setBitDepthVpsLuma ( uiCode + 8 ); 1730 1736 READ_CODE( 4, uiCode, "bit_depth_vps_chroma_minus8" ); repFormat->setBitDepthVpsChroma( uiCode + 8 ); 1737 } 1738 else if( repFormatPrev ) 1739 { 1740 // chroma_and_bit_depth_vps_present_flag equal to 0 specifies that the syntax elements, chroma_format_vps_idc, separate_colour_plane_vps_flag, bit_depth_vps_luma_minus8, and 1741 // bit_depth_vps_chroma_minus8 are not present and inferred from the previous rep_format( ) syntax structure in the VPS. 1742 1743 repFormat->setChromaFormatVpsIdc ( repFormatPrev->getChromaFormatVpsIdc() ); 1744 repFormat->setSeparateColourPlaneVpsFlag( repFormatPrev->getSeparateColourPlaneVpsFlag() ); 1745 repFormat->setBitDepthVpsLuma ( repFormatPrev->getBitDepthVpsLuma() ); 1746 repFormat->setBitDepthVpsChroma ( repFormatPrev->getBitDepthVpsChroma() ); 1731 1747 } 1732 1748 #else -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.h
r644 r670 81 81 #endif 82 82 #if REPN_FORMAT_IN_VPS 83 Void parseRepFormat ( RepFormat *repFormat );83 Void parseRepFormat ( RepFormat *repFormat, RepFormat *repFormatPrev ); 84 84 #endif 85 85 #if VPS_DPB_SIZE_TABLE
Note: See TracChangeset for help on using the changeset viewer.