Changeset 562 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 27 Jan 2014, 17:40:23 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r561 r562 579 579 } 580 580 WRITE_FLAG( pcSPS->getTMVPFlagsPresent() ? 1 : 0, "sps_temporal_mvp_enable_flag" ); 581 #if REF_IDX_MFM582 #if !M0457_COL_PICTURE_SIGNALING583 if( pcSPS->getLayerId() > 0 )584 {585 WRITE_FLAG( pcSPS->getMFMEnabledFlag() ? 1 : 0, "sps_enh_mfm_enable_flag" );586 }587 #endif588 #endif589 581 WRITE_FLAG( pcSPS->getUseStrongIntraSmoothing(), "sps_strong_intra_smoothing_enable_flag" ); 590 582 … … 1767 1759 if ( pcSlice->getEnableTMVPFlag() ) 1768 1760 { 1769 #if SVC_EXTENSION && M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING1770 if ( !pcSlice->getIdrPicFlag() && pcSlice->getLayerId() > 0 && pcSlice->getActiveNumILRRefIdx() > 0 && pcSlice->getNumMotionPredRefLayers() > 0 )1771 {1772 WRITE_FLAG( pcSlice->getAltColIndicationFlag() ? 1 : 0, "alt_collocated_indication_flag" );1773 if (pcSlice->getAltColIndicationFlag() && pcSlice->getNumMotionPredRefLayers() > 1)1774 {1775 WRITE_UVLC(0, "collocated_ref_layer_idx");1776 }1777 }1778 else1779 {1780 #endif1781 1761 if ( pcSlice->getSliceType() == B_SLICE ) 1782 1762 { … … 1790 1770 WRITE_UVLC( pcSlice->getColRefIdx(), "collocated_ref_idx" ); 1791 1771 } 1792 #if SVC_EXTENSION && M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING1793 }1794 #endif1795 1772 } 1796 1773 if ( (pcSlice->getPPS()->getUseWP() && pcSlice->getSliceType()==P_SLICE) || (pcSlice->getPPS()->getWPBiPred() && pcSlice->getSliceType()==B_SLICE) ) -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r559 r562 690 690 pcSlice->setActiveNumILRRefIdx(0); 691 691 pcSlice->setInterLayerPredEnabledFlag(false); 692 #if M0457_COL_PICTURE_SIGNALING693 692 pcSlice->setMFMEnabledFlag(false); 694 693 #if !REMOVE_COL_PICTURE_SIGNALING 695 694 pcSlice->setAltColIndicationFlag(false); 696 #endif697 695 #endif 698 696 } … … 1191 1189 1192 1190 #if SVC_EXTENSION 1193 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING1194 if ( pcSlice->getSliceType() == B_SLICE && !(pcSlice->getActiveNumILRRefIdx() > 0 && m_pcEncTop->getNumMotionPredRefLayers() > 0) )1195 #else1196 1191 if( pcSlice->getSliceType() == B_SLICE ) 1197 #endif1198 1192 { 1199 1193 pcSlice->setColFromL0Flag(1-uiColDir); … … 1210 1204 pcSlice->setILRPic( m_pcEncTop->getIlpList() ); 1211 1205 #if REF_IDX_MFM 1212 #if M0457_COL_PICTURE_SIGNALING1213 1206 if( pcSlice->getMFMEnabledFlag() ) 1214 #else1215 if( pcSlice->getSPS()->getMFMEnabledFlag() )1216 #endif1217 1207 { 1218 1208 pcSlice->setRefPOCListILP(m_pcEncTop->getIlpList(), pcSlice->getBaseColPic()); 1219 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING1220 pcSlice->setMotionPredIlp(getMotionPredIlp(pcSlice));1221 #endif1222 1209 } 1223 1210 #else … … 1229 1216 1230 1217 #if REF_IDX_MFM 1231 #if M0457_COL_PICTURE_SIGNALING1232 1218 #if REMOVE_COL_PICTURE_SIGNALING 1233 1219 if( pcSlice->getMFMEnabledFlag() ) 1234 1220 #else 1235 1221 if( pcSlice->getMFMEnabledFlag() && !(pcSlice->getActiveNumILRRefIdx() > 0 && m_pcEncTop->getNumMotionPredRefLayers() > 0) ) 1236 #endif1237 #else1238 if( pcSlice->getSPS()->getMFMEnabledFlag() )1239 1222 #endif 1240 1223 { … … 2050 2033 startCUAddrSliceSegmentIdx++; 2051 2034 } 2052 #if SVC_EXTENSION && M0457_COL_PICTURE_SIGNALING2035 #if SVC_EXTENSION 2053 2036 pcSlice->setNumMotionPredRefLayers(m_pcEncTop->getNumMotionPredRefLayers()); 2054 2037 #endif … … 3734 3717 free(rowSAD); 3735 3718 } 3736 3737 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING3738 TComPic* TEncGOP::getMotionPredIlp(TComSlice* pcSlice)3739 {3740 TComPic* ilpPic = NULL;3741 Int activeMotionPredReflayerIdx = 0;3742 3743 for( Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ )3744 {3745 UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(i);3746 if( m_pcEncTop->getMotionPredEnabledFlag( pcSlice->getVPS()->getRefLayerId( m_layerId, refLayerIdc ) ) )3747 {3748 if (activeMotionPredReflayerIdx == pcSlice->getColRefLayerIdx())3749 {3750 ilpPic = m_pcEncTop->getIlpList()[refLayerIdc];3751 break;3752 }3753 else3754 {3755 activeMotionPredReflayerIdx++;3756 }3757 }3758 }3759 3760 assert(ilpPic != NULL);3761 3762 return ilpPic;3763 }3764 #endif3765 3766 3719 //! \} -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.h
r442 r562 210 210 #endif 211 211 Void dblMetric( TComPic* pcPic, UInt uiNumSlices ); 212 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING213 TComPic* getMotionPredIlp(TComSlice* pcSlice);214 #endif215 212 };// END CLASS DEFINITION TEncGOP 216 213 -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r540 r562 536 536 rpcSlice->setNumILRRefIdx( rpcSlice->getVPS()->getNumDirectRefLayers( layerId ) ); 537 537 #endif 538 #if M0457_COL_PICTURE_SIGNALING539 538 rpcSlice->setMFMEnabledFlag(m_ppcTEncTop[layerId]->getMFMEnabledFlag()); 540 539 #if !REMOVE_COL_PICTURE_SIGNALING 541 540 rpcSlice->setAltColIndicationFlag(rpcSlice->getMFMEnabledFlag()); 542 #endif543 541 #endif 544 542 } -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r549 r562 934 934 #if SVC_EXTENSION 935 935 m_cSPS.setLayerId(m_layerId); 936 #if REF_IDX_MFM937 #if !M0457_COL_PICTURE_SIGNALING938 m_cSPS.setMFMEnabledFlag(m_bMFMEnabledFlag);939 #endif940 #endif941 936 m_cSPS.setNumScaledRefLayerOffsets(m_numScaledRefLayerOffsets); 942 937 for(Int i = 0; i < m_cSPS.getNumScaledRefLayerOffsets(); i++)
Note: See TracChangeset for help on using the changeset viewer.