Changeset 1226 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 9 Jul 2015, 00:20:09 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 7 edited
-
TComDataCU.cpp (modified) (4 diffs)
-
TComMotionInfo.h (modified) (1 diff)
-
TComPic.cpp (modified) (2 diffs)
-
TComPic.h (modified) (2 diffs)
-
TComSlice.cpp (modified) (3 diffs)
-
TComSlice.h (modified) (2 diffs)
-
TypeDef.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1203 r1226 3416 3416 Int iPelY = Clip3<Int>(0, m_pcPic->getPicYuvRec()->getHeight(COMPONENT_Y) - 1, pelY); 3417 3417 3418 #if REF_IDX_MFM3419 3418 // centre of the collocated 16x16 block for motion mapping 3420 3419 if( motionMapping ) … … 3423 3422 iPelY = pelY + 8; 3424 3423 } 3425 #endif3426 3424 3427 3425 #if !LAYER_CTB … … 3436 3434 Int iBY = (((iPelY - topStartL )*g_posScalingFactor[refLayerIdc][1] + (1<<15)) >> 16) + windowRL.getWindowTopOffset(); 3437 3435 3438 #if REF_IDX_MFM3439 3436 // offset for collocated block in the motion mapping 3440 3437 if( motionMapping ) … … 3453 3450 } 3454 3451 } 3455 #endif3456 3452 3457 3453 if ( iBX < 0 || iBX >= baseColPic->getPicYuvRec()->getWidth(COMPONENT_Y) || iBY < 0 || iBY >= baseColPic->getPicYuvRec()->getHeight(COMPONENT_Y) ) -
branches/SHM-dev/source/Lib/TLibCommon/TComMotionInfo.h
r1029 r1226 155 155 Void compress(Char* pePredMode, Int scale); 156 156 157 #if REF_IDX_MFM157 #if SVC_EXTENSION 158 158 Void setMvField( TComMvField const& mvField, Int iIdx ) 159 159 { -
branches/SHM-dev/source/Lib/TLibCommon/TComPic.cpp
r1208 r1226 277 277 } 278 278 279 #if REF_IDX_MFM280 279 Void TComPic::copyUpsampledMvField(UInt refLayerIdc, TComPic* pcPicBase) 281 280 { … … 351 350 return; 352 351 } 353 #endif354 352 355 353 Bool TComPic::checkSameRefInfo() -
branches/SHM-dev/source/Lib/TLibCommon/TComPic.h
r1212 r1226 92 92 Bool m_bSpatialEnhLayer[MAX_LAYERS]; // whether current layer is a spatial enhancement layer, 93 93 TComPicYuv* m_pcFullPelBaseRec[MAX_LAYERS]; // upsampled base layer recontruction for difference domain inter prediction 94 #if REF_IDX_MFM95 94 Bool m_equalPictureSizeAndOffsetFlag[MAX_LAYERS]; 96 #endif97 95 #if CGS_3D_ASYMLUT 98 96 Int m_nFrameBit; … … 203 201 Void setFullPelBaseRec (UInt refLayerIdc, TComPicYuv* p) { m_pcFullPelBaseRec[refLayerIdc] = p; } 204 202 TComPicYuv* getFullPelBaseRec (UInt refLayerIdc) { return m_pcFullPelBaseRec[refLayerIdc]; } 205 #if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM206 203 Bool isILR( UInt currLayerId ) { return ( m_bIsLongTerm && m_layerId < currLayerId ); } 207 #endif208 #if REF_IDX_MFM209 204 Bool equalPictureSizeAndOffsetFlag(UInt refLayerIdc) { return m_equalPictureSizeAndOffsetFlag[refLayerIdc]; } 210 205 Void setEqualPictureSizeAndOffsetFlag(UInt refLayerIdc, Bool b) { m_equalPictureSizeAndOffsetFlag[refLayerIdc] = b; } 211 206 Void copyUpsampledMvField ( UInt refLayerIdc, TComPic* pcPicBase ); 212 207 Void initUpsampledMvField (); 213 #endif214 208 Bool checkSameRefInfo(); 215 209 Void copyUpsampledPictureYuv(TComPicYuv* pcPicYuvIn, TComPicYuv* pcPicYuvOut); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1224 r1226 120 120 , m_firstSliceInPic ( false ) 121 121 , m_availableForTMVPRefFlag ( true ) 122 , m_layerId ( 0 ) 123 #if REF_IDX_MFM 122 , m_layerId ( 0 ) 124 123 , m_bMFMEnabledFlag ( false ) 125 #endif126 124 , m_bDiscardableFlag ( false ) 127 125 , m_bCrossLayerBLAFlag ( false ) … … 3729 3727 pcIlpPic[refLayerIdc]->getSlice(0)->setVPS( m_pcPic->getSlice(0)->getVPS() ); 3730 3728 3731 #if REF_IDX_MFM3732 3729 if( m_bMFMEnabledFlag && !(m_eNalUnitType >= NAL_UNIT_CODED_SLICE_BLA_W_LP && m_eNalUnitType <= NAL_UNIT_CODED_SLICE_CRA) ) 3733 3730 { … … 3776 3773 pcIlpPic[refLayerIdc]->initUpsampledMvField(); 3777 3774 } 3778 #endif3779 3775 3780 3776 Int maxTidIlRefPicsPlus1 = m_pcVPS->getMaxTidIlRefPicsPlus1( pcIlpPic[refLayerIdc]->getSlice(0)->getLayerIdx(), getLayerIdx() ); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1224 r1226 1971 1971 TComPicYuv* m_pcFullPelBaseRec[MAX_LAYERS]; 1972 1972 Int m_numMotionPredRefLayers; 1973 #if REF_IDX_MFM1974 1973 Bool m_bMFMEnabledFlag; 1975 1974 Int m_colRefLayerIdx; 1976 1975 Bool m_altColIndicationFlag; 1977 1976 TComPic* m_pcIlpPic; 1978 #endif1979 1977 1980 1978 Bool m_interLayerPredEnabledFlag; … … 2271 2269 Void setNumMotionPredRefLayers(int i) { m_numMotionPredRefLayers = i; } 2272 2270 Int getNumMotionPredRefLayers() { return m_numMotionPredRefLayers; } 2273 #if REF_IDX_MFM 2271 2274 2272 Void setMFMEnabledFlag(Bool flag) { m_bMFMEnabledFlag = flag; } 2275 2273 Bool getMFMEnabledFlag() { return m_bMFMEnabledFlag; } 2276 #endif2277 2274 2278 2275 TComPic* getRefPic(TComList<TComPic*>& rcListPic, Int poc) { return xGetRefPic( rcListPic, poc ); } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1225 r1226 61 61 #define ALIGNED_BUMPING 1 ///< JCTVC-P0192: Align bumping of pictures in an AU 62 62 63 #define REF_IDX_MFM 1 ///< JCTVC-L0336: motion vector mapping of inter-layer reference picture64 63 #define AUXILIARY_PICTURES 1 ///< JCTVC-O0041: auxiliary picture layers 65 64 #define NO_CLRAS_OUTPUT_FLAG 1
Note: See TracChangeset for help on using the changeset viewer.