Changeset 873 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
21 Aug 2014, 03:10:10 (11 years ago)
Author:
sharp
Message:

Resampling bugfix -- (1) fix resampling bypass flag, (2) conformance check on resampling params
(Macro: RESAMPLING_FIX)

From: Tomoyuki Yamamoto <yamamoto.tomoyuki@…>

Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r872 r873  
    287287}
    288288#endif
     289
    289290/**
    290291 - allocate table to contain substream sizes to be written to the slice header.
     
    35403541}
    35413542#endif
     3543
     3544#if RESAMPLING_FIX
     3545#if R0209_GENERIC_PHASE
     3546Bool 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
    35423557#endif
    35433558
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r872 r873  
    443443  Bool          getVertPhasePositionEnableFlag() const     { return m_vertPhasePositionEnableFlag;  }
    444444  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  }
    445454#endif
    446455
     
    20402049  Bool getResamplePhaseSetPresentFlag(Int x) { return m_resamplePhaseSetPresentFlag[x]; }
    20412050  Void setResamplePhaseSetPresentFlag(Int x, Bool b) { m_resamplePhaseSetPresentFlag[x] = b; }
     2051#if RESAMPLING_FIX
     2052  Bool hasZeroResamplingPhase(Int layerId);
     2053#endif
    20422054#endif
    20432055#endif
     
    26292641#endif
    26302642
    2631 
    26322643#endif //SVC_EXTENSION
    26332644protected:
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r872 r873  
    255255#define R0209_GENERIC_PHASE              1      ///< JCTVC-R0209: resampling with generic phase
    256256#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
    257258#endif
    258259#else
Note: See TracChangeset for help on using the changeset viewer.