Changeset 873 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 21 Aug 2014, 03:10:10 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r872 r873 287 287 } 288 288 #endif 289 289 290 /** 290 291 - allocate table to contain substream sizes to be written to the slice header. … … 3540 3541 } 3541 3542 #endif 3543 3544 #if RESAMPLING_FIX 3545 #if R0209_GENERIC_PHASE 3546 Bool TComPPS::hasZeroResamplingPhase(Int refLayerIdc) 3547 { 3548 Int phaseHorLuma = this->getPhaseHorLuma(refLayerIdc); 3549 Int phaseVerLuma = this->getPhaseVerLuma(refLayerIdc); 3550 Int phaseHorChroma = this->getPhaseHorChroma(refLayerIdc); 3551 Int phaseVerChroma = this->getPhaseVerChroma(refLayerIdc); 3552 return ( phaseHorLuma == 0 && phaseHorChroma == 0 && phaseVerLuma == 0 && phaseVerChroma == 0); 3553 } 3554 #endif 3555 #endif 3556 3542 3557 #endif 3543 3558 -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r872 r873 443 443 Bool getVertPhasePositionEnableFlag() const { return m_vertPhasePositionEnableFlag; } 444 444 Void setVertPhasePositionEnableFlag(Bool val) { m_vertPhasePositionEnableFlag = val; } 445 #endif 446 #if REF_REGION_OFFSET && RESAMPLING_FIX 447 Bool hasEqualOffset(const Window& ref) const 448 { 449 return ( this->getWindowLeftOffset() == ref.getWindowLeftOffset() 450 && this->getWindowTopOffset() == ref.getWindowTopOffset() 451 && this->getWindowRightOffset() == ref.getWindowRightOffset() 452 && this->getWindowBottomOffset() == ref.getWindowBottomOffset() ); 453 } 445 454 #endif 446 455 … … 2040 2049 Bool getResamplePhaseSetPresentFlag(Int x) { return m_resamplePhaseSetPresentFlag[x]; } 2041 2050 Void setResamplePhaseSetPresentFlag(Int x, Bool b) { m_resamplePhaseSetPresentFlag[x] = b; } 2051 #if RESAMPLING_FIX 2052 Bool hasZeroResamplingPhase(Int layerId); 2053 #endif 2042 2054 #endif 2043 2055 #endif … … 2629 2641 #endif 2630 2642 2631 2632 2643 #endif //SVC_EXTENSION 2633 2644 protected: -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r872 r873 255 255 #define R0209_GENERIC_PHASE 1 ///< JCTVC-R0209: resampling with generic phase 256 256 #define R0220_REMOVE_EL_CLIP 1 ///< JCTVC-R0220: remove clip to scaled ref window in resampling process 257 #define RESAMPLING_FIX 1 ///< Resampling fix -- equal offset check and conformance check 257 258 #endif 258 259 #else
Note: See TracChangeset for help on using the changeset viewer.