Changeset 1191 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 03:51:13 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1190 r1191 119 119 #if SVC_EXTENSION 120 120 , m_firstSliceInPic ( false ) 121 #if R0226_SLICE_TMVP122 121 , m_availableForTMVPRefFlag ( true ) 123 #endif124 122 , m_layerId ( 0 ) 125 123 #if REF_IDX_MFM -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1190 r1191 2001 2001 #if SVC_EXTENSION 2002 2002 Bool m_firstSliceInPic; 2003 #if R0226_SLICE_TMVP2004 2003 Bool m_availableForTMVPRefFlag; 2005 #endif2006 2004 UInt m_layerId; 2007 2005 TComPic* m_pcBaseColPic[MAX_LAYERS]; … … 2289 2287 2290 2288 #if SVC_EXTENSION 2291 Void setFirstSliceInPic ( Bool val ) { m_firstSliceInPic = val; } 2292 Bool getFirstSliceInPic () { return m_firstSliceInPic; } 2293 #if R0226_SLICE_TMVP 2294 Void setAvailableForTMVPRefFlag ( Bool b ) { m_availableForTMVPRefFlag = b; } 2295 Bool getAvailableForTMVPRefFlag () { return m_availableForTMVPRefFlag;} 2296 #endif 2289 Void setFirstSliceInPic ( Bool val ) { m_firstSliceInPic = val; } 2290 Bool getFirstSliceInPic () { return m_firstSliceInPic; } 2291 Void setAvailableForTMVPRefFlag ( Bool b ) { m_availableForTMVPRefFlag = b; } 2292 Bool getAvailableForTMVPRefFlag () { return m_availableForTMVPRefFlag;} 2297 2293 Bool setBaseColPic ( TComList<TComPic*>& rcListPic , UInt refLayerIdc ); 2298 Void setBaseColPic (UInt refLayerIdc, TComPic* p) { m_pcBaseColPic[refLayerIdc] = p;}2294 Void setBaseColPic (UInt refLayerIdc, TComPic* p) { m_pcBaseColPic[refLayerIdc] = p; } 2299 2295 TComPic* getBaseColPic (UInt refLayerIdc) { return m_pcBaseColPic[refLayerIdc]; } 2300 TComPic** getBaseColPic () { return &m_pcBaseColPic[0];}2296 TComPic** getBaseColPic () { return &m_pcBaseColPic[0]; } 2301 2297 #if MFM_ENCCONSTRAINT 2302 2298 TComPic* getBaseColPic( TComList<TComPic*>& rcListPic ); -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1190 r1191 52 52 #define BSP_INIT_ARRIVAL_SEI 1 ///< JCTVC-R0231: Make signalling of vcl_initial_arrival_delay independent of NalHrdBpPresentFlag 53 53 54 #define R0226_SLICE_TMVP 1 ///< JCTVC-R0226, Regarding slice_temporal_mvp_enabled_flag55 56 54 #define Q0108_TSA_STSA 1 ///< JCTVC-Q0108, Remove cross-layer alignment constraints of TSA and STSA pictures, enable to have different prediction structures in different layers 57 55 #define Q0177_EOS_CHECKS 1 ///< JCTVC-Q0177; Put checks on handling EOS -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1184 r1191 1221 1221 } 1222 1222 1223 #if SVC_EXTENSION 1223 1224 #if POC_RESET_IDC_DECODER 1224 1225 m_parseIdc = -1; 1225 1226 #endif 1226 1227 1227 1228 #if R0226_SLICE_TMVP 1229 if ( m_apcSlicePilot->getTLayer() == 0 && m_apcSlicePilot->getEnableTMVPFlag() == 0 ) 1228 if( m_apcSlicePilot->getTLayer() == 0 && m_apcSlicePilot->getEnableTMVPFlag() == 0 ) 1230 1229 { 1231 1230 //update all pics in the DPB such that they cannot be used for TMPV ref 1232 TComList<TComPic*>::iterator iterRefPic = m_cListPic.begin(); 1231 TComList<TComPic*>::iterator iterRefPic = m_cListPic.begin(); 1232 1233 1233 while( iterRefPic != m_cListPic.end() ) 1234 1234 { … … 1236 1236 if( ( refPic->getLayerId() == m_apcSlicePilot->getLayerId() ) && refPic->getReconMark() ) 1237 1237 { 1238 for( Int i = refPic->getNumAllocatedSlice()-1; i >= 0; i--)1238 for( Int i = refPic->getNumAllocatedSlice()-1; i >= 0; i-- ) 1239 1239 { 1240 1240 … … 1861 1861 1862 1862 assert( refPic ); 1863 #if R0226_SLICE_TMVP1864 1863 assert ( refPic->getPicSym()->getSlice(0)->getAvailableForTMVPRefFlag() == true ); 1865 #endif1866 1864 1867 1865 // It is a requirement of bitstream conformance when the collocated picture, used for temporal motion vector prediction, is an inter-layer reference picture, -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1190 r1191 1119 1119 if (pcSlice->getSPS()->getTMVPFlagsPresent()) 1120 1120 { 1121 #if R0226_SLICE_TMVP1122 1121 WRITE_FLAG( pcSlice->getEnableTMVPFlag() ? 1 : 0, "slice_temporal_mvp_enabled_flag" ); 1123 #else1124 WRITE_FLAG( pcSlice->getEnableTMVPFlag() ? 1 : 0, "slice_temporal_mvp_enable_flag" );1125 #endif1126 1122 } 1127 1123 }
Note: See TracChangeset for help on using the changeset viewer.