Changeset 1103 in 3DVCSoftware for branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder
- Timestamp:
- 5 Nov 2014, 11:34:26 (10 years ago)
- Location:
- branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCavlc.cpp ¶
r1084 r1103 1887 1887 Bool interLayerPredLayerIdcPresentFlag = false; 1888 1888 Int layerId = pcSlice->getLayerId(); 1889 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 1890 #if H_3D 1891 if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumRefListLayers( layerId ) > 0 ) 1892 #else 1889 1893 if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 ) 1894 #endif 1895 #else 1896 if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 ) 1897 #endif 1890 1898 { 1891 1899 WRITE_FLAG( pcSlice->getInterLayerPredEnabledFlag( ) ? 1 : 0 , "inter_layer_pred_enabled_flag" ); 1900 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 1901 #if H_3D 1902 if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumRefListLayers( layerId ) > 1 ) 1903 #else 1892 1904 if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 ) 1905 #endif 1906 #else 1907 if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 ) 1908 #endif 1893 1909 { 1894 1910 if( !vps->getMaxOneActiveRefLayerFlag()) … … 1896 1912 WRITE_CODE( pcSlice->getNumInterLayerRefPicsMinus1( ), pcSlice->getNumInterLayerRefPicsMinus1Len( ), "num_inter_layer_ref_pics_minus1" ); 1897 1913 } 1914 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 1915 #if H_3D 1916 if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumRefListLayers( layerId ) ) 1917 #else 1898 1918 if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) ) 1919 #endif 1920 #else 1921 if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) ) 1922 #endif 1899 1923 { 1900 1924 interLayerPredLayerIdcPresentFlag = true; … … 2037 2061 } 2038 2062 #if H_3D_IC 2063 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 2064 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 ) 2065 #else 2039 2066 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 ) 2067 #endif 2040 2068 { 2041 2069 WRITE_FLAG( pcSlice->getApplyIC() ? 1 : 0, "slice_ic_enable_flag" ); -
TabularUnified branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncGOP.cpp ¶
r1100 r1103 880 880 881 881 TComVPS* vps = pcSlice->getVPS(); 882 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 883 #if H_3D 884 Int numDirectRefLayers = vps ->getNumRefListLayers( getLayerId() ); 885 #else 882 886 Int numDirectRefLayers = vps ->getNumDirectRefLayers( getLayerId() ); 887 #endif 888 #else 889 Int numDirectRefLayers = vps ->getNumDirectRefLayers( getLayerId() ); 890 #endif 883 891 GOPEntry gopEntry = m_pcCfg->getGOPEntry( (pcSlice->getRapPicFlag() && getLayerId() > 0) ? MAX_GOP : iGOPid ); 884 892 … … 893 901 pcSlice->setNumInterLayerRefPicsMinus1( gopEntry.m_numActiveRefLayerPics - 1 ); 894 902 } 903 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 904 #if H_3D 905 if ( gopEntry.m_numActiveRefLayerPics != vps->getNumRefListLayers( getLayerId() ) ) 906 #else 895 907 if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) ) 908 #endif 909 #else 910 if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) ) 911 #endif 896 912 { 897 913 interLayerPredLayerIdcPresentFlag = true; -
TabularUnified branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncTop.cpp ¶
r1084 r1103 896 896 #if H_MV 897 897 m_cPPS.setLayerId( getLayerId() ); 898 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 899 #if H_3D 900 // Check if this condition is still correct 901 if( getVPS()->getNumRefListLayers( getLayerId() ) > 0 ) 902 #else 898 903 if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 ) 904 #endif 905 #else 906 if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 ) 907 #endif 899 908 { 900 909 m_cPPS.setListsModificationPresentFlag( true );
Note: See TracChangeset for help on using the changeset viewer.