Changeset 610 in SHVCSoftware for branches/SHM-5.1-dev/source/Lib/TLibDecoder
- Timestamp:
- 7 Feb 2014, 23:30:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r605 r610 850 850 READ_CODE( 6, uiCode, "vps_reserved_zero_6bits" ); assert(uiCode == 0); 851 851 #endif 852 READ_CODE( 3, uiCode, "vps_max_sub_layers_minus1" ); pcVPS->setMaxTLayers( uiCode + 1 ); 852 READ_CODE( 3, uiCode, "vps_max_sub_layers_minus1" ); pcVPS->setMaxTLayers( uiCode + 1 ); assert(uiCode <= 6); 853 853 READ_FLAG( uiCode, "vps_temporal_id_nesting_flag" ); pcVPS->setTemporalNestingFlag( uiCode ? true:false ); 854 854 assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag()); … … 1673 1673 #endif 1674 1674 READ_UVLC( uiCode, "max_vps_latency_increase_plus1[i][j]" ); vps->setMaxVpsLatencyIncreasePlus1( i, j, uiCode); 1675 } 1676 } 1677 for(Int j = vps->getMaxTLayers(); j < MAX_TLAYER; j++) 1678 { 1679 vps->setSubLayerDpbInfoPresentFlag( i, j, false ); 1680 } 1681 } 1682 1683 // Infer values when not signalled 1684 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1685 { 1686 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 1687 for(Int j = 0; j < MAX_TLAYER; j++) 1688 { 1689 if( !vps->getSubLayerDpbInfoPresentFlag(i, j) ) // If sub-layer DPB information is NOT present 1690 { 1691 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 1692 { 1693 vps->setMaxVpsDecPicBufferingMinus1( i, k, j, vps->getMaxVpsDecPicBufferingMinus1( i, k, j - 1 ) ); 1694 } 1695 vps->setMaxVpsNumReorderPics( i, j, vps->getMaxVpsNumReorderPics( i, j - 1) ); 1696 for(Int k = 0; k < vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet ); k++) 1697 { 1698 vps->setMaxVpsLayerDecPicBuffMinus1( i, k, j, vps->getMaxVpsLayerDecPicBuffMinus1( i, k, j - 1)); 1699 } 1700 vps->setMaxVpsLatencyIncreasePlus1( i, j, vps->getMaxVpsLatencyIncreasePlus1( i, j - 1 ) ); 1675 1701 } 1676 1702 }
Note: See TracChangeset for help on using the changeset viewer.