Changeset 563 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib
- Timestamp:
- 27 Jan 2014, 17:44:28 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h
r562 r563 2160 2160 Void setMFMEnabledFlag(Bool flag) { m_bMFMEnabledFlag = flag; } 2161 2161 Bool getMFMEnabledFlag() { return m_bMFMEnabledFlag; } 2162 #if !REMOVE_COL_PICTURE_SIGNALING2163 Void setColRefLayerIdx(Int i) { m_colRefLayerIdx = i; }2164 Int getColRefLayerIdx() { return m_colRefLayerIdx; }2165 Void setAltColIndicationFlag(Bool i) { m_altColIndicationFlag = i; }2166 Bool getAltColIndicationFlag() { return m_altColIndicationFlag; }2167 Void setMotionPredIlp(TComPic *ilpPic) { m_pcIlpPic = ilpPic; }2168 TComPic* getMotionPredIlp() { return m_pcIlpPic; }2169 #endif2170 2162 #endif 2171 2163 -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h
r562 r563 166 166 #endif 167 167 #if REF_IDX_MFM 168 #define REMOVE_COL_PICTURE_SIGNALING 1 ///< JCTVC-N0107: remove alternative collocated picture signalling169 168 #define N0139_POSITION_ROUNDING_OFFSET 1 ///< JCTVC-N0139: offset for collocated block in motion mapping 170 169 #endif -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r562 r563 2339 2339 if ( rpcSlice->getEnableTMVPFlag() ) 2340 2340 { 2341 #if REMOVE_COL_PICTURE_SIGNALING 2341 #if SVC_EXTENSION && REF_IDX_MFM 2342 // set motion mapping flag 2342 2343 rpcSlice->setMFMEnabledFlag( ( rpcSlice->getNumMotionPredRefLayers() > 0 && rpcSlice->getActiveNumILRRefIdx() ) ? true : false ); 2343 #else 2344 rpcSlice->setMFMEnabledFlag( false ); 2345 rpcSlice->setColRefLayerIdx( 0 ); 2346 rpcSlice->setAltColIndicationFlag( false ); 2347 if ( sps->getLayerId() > 0 && rpcSlice->getActiveNumILRRefIdx() > 0 && rpcSlice->getNumMotionPredRefLayers() > 0 ) 2348 { 2349 READ_FLAG( uiCode, "alt_collocated_indication_flag" ); 2350 rpcSlice->setAltColIndicationFlag( uiCode == 1 ? true : false ); 2351 rpcSlice->setMFMEnabledFlag( uiCode == 1 ? true : false ); 2352 if ( rpcSlice->getNumMotionPredRefLayers() > 1 ) 2353 { 2354 READ_UVLC( uiCode, "collocated_ref_layer_idx" ); 2355 rpcSlice->setColRefLayerIdx( uiCode ); 2356 } 2357 } 2358 else 2359 { 2360 #endif //REMOVE_COL_PICTURE_SIGNALING 2344 #endif 2361 2345 if ( rpcSlice->getSliceType() == B_SLICE ) 2362 2346 { -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r562 r563 691 691 pcSlice->setInterLayerPredEnabledFlag(false); 692 692 pcSlice->setMFMEnabledFlag(false); 693 #if !REMOVE_COL_PICTURE_SIGNALING694 pcSlice->setAltColIndicationFlag(false);695 #endif696 693 } 697 694 #endif … … 1216 1213 1217 1214 #if REF_IDX_MFM 1218 #if REMOVE_COL_PICTURE_SIGNALING1219 1215 if( pcSlice->getMFMEnabledFlag() ) 1220 #else1221 if( pcSlice->getMFMEnabledFlag() && !(pcSlice->getActiveNumILRRefIdx() > 0 && m_pcEncTop->getNumMotionPredRefLayers() > 0) )1222 #endif1223 1216 { 1224 1217 Bool found = false; -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r562 r563 537 537 #endif 538 538 rpcSlice->setMFMEnabledFlag(m_ppcTEncTop[layerId]->getMFMEnabledFlag()); 539 #if !REMOVE_COL_PICTURE_SIGNALING540 rpcSlice->setAltColIndicationFlag(rpcSlice->getMFMEnabledFlag());541 #endif542 539 } 543 540
Note: See TracChangeset for help on using the changeset viewer.