Changeset 1130 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 7 Jul 2015, 03:13:38 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
-
TDecCAVLC.cpp (modified) (2 diffs)
-
TDecTop.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1128 r1130 3463 3463 vps->setCrossLayerIrapAlignFlag( false ); 3464 3464 3465 #if M0040_ADAPTIVE_RESOLUTION_CHANGE3466 3465 // When single_layer_for_non_irap_flag is not present, it is inferred to be equal to 0. 3467 3466 vps->setSingleLayerForNonIrapFlag( false ); 3468 #endif3469 3467 3470 3468 // When higher_layer_irap_skip_flag is not present it is inferred to be equal to 0 … … 3834 3832 #endif 3835 3833 3836 #if M0040_ADAPTIVE_RESOLUTION_CHANGE3837 3834 READ_FLAG(uiCode, "single_layer_for_non_irap_flag" ); vps->setSingleLayerForNonIrapFlag(uiCode == 1 ? true : false); 3838 #endif 3835 3839 3836 READ_FLAG(uiCode, "higher_layer_irap_skip_flag" ); vps->setHigherLayerIrapSkipFlag(uiCode == 1 ? true : false); 3840 3837 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1123 r1130 1711 1711 // Create upsampling reference layer pictures for all possible dependent layers and do it only once for the first slice. 1712 1712 // Other slices might choose which reference pictures to be used for inter-layer prediction 1713 if( m_layerId > 0 && m_uiSliceIdx == 0 ) 1714 { 1715 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 1716 if( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || ( pcSlice->getVPS()->getSingleLayerForNonIrapFlag() && pcSlice->isIRAP() ) ) 1717 #endif 1713 if( m_layerId > 0 && m_uiSliceIdx == 0 && ( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || pcSlice->isIRAP() ) ) 1714 { 1718 1715 for( Int i = 0; i < pcSlice->getNumILRRefIdx(); i++ ) 1719 1716 { … … 1865 1862 pcSlice->setRefPicList( m_cListPic, false, m_cIlpPic); 1866 1863 } 1867 #if M0040_ADAPTIVE_RESOLUTION_CHANGE1868 1864 else if ( m_layerId > 0 ) 1869 1865 { 1870 1866 pcSlice->setRefPicList( m_cListPic, false, NULL); 1871 1867 } 1872 #endif1873 1868 #if MFM_ENCCONSTRAINT 1874 1869 if( pcSlice->getMFMEnabledFlag() ) … … 1889 1884 #endif 1890 1885 1891 if( m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag() ) 1892 { 1893 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 1894 if( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || ( pcSlice->getVPS()->getSingleLayerForNonIrapFlag() && pcSlice->isIRAP() ) ) 1895 #endif 1886 if( m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag() && ( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || pcSlice->isIRAP() ) ) 1887 { 1896 1888 for(Int dependentLayerIdx = 0; dependentLayerIdx < pcSlice->getVPS()->getNumDirectRefLayers(m_layerId); dependentLayerIdx++) 1897 1889 {
Note: See TracChangeset for help on using the changeset viewer.