Changeset 1417 in 3DVCSoftware for branches/HTM-16.3-fixes


Ignore:
Timestamp:
14 Dec 2018, 12:34:18 (6 years ago)
Author:
tech
Message:

Fix NH_MV_FIX_CONF_WINDOW.

Location:
branches/HTM-16.3-fixes/source/Lib/TLibCommon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-16.3-fixes/source/Lib/TLibCommon/TComSlice.cpp

    r1413 r1417  
    31783178      assert( getQpBDOffset            ( CHANNEL_TYPE_CHROMA ) == (Int) (6* ( getBitDepth( CHANNEL_TYPE_CHROMA ) -8 ) ) );
    31793179
     3180#if NH_MV_FIX_CONF_WINDOW
     3181      assert( spsConf.getScaledFlag() );
    31803182     
    3181       assert( spsConf.getWindowLeftOffset  () == repFormat->getConfWinVpsLeftOffset()    );
    3182       assert( spsConf.getWindowRightOffset () == repFormat->getConfWinVpsRightOffset()   );
    3183       assert( spsConf.getWindowTopOffset   () == repFormat->getConfWinVpsTopOffset()     );
    3184       assert( spsConf.getWindowBottomOffset() == repFormat->getConfWinVpsBottomOffset()  );           
     3183      Int scal = TComSPS::getWinUnitX( getChromaFormatIdc() ) ;
     3184      assert(  spsConf.getWindowLeftOffset  () == repFormat->getConfWinVpsLeftOffset()   * scal );
     3185      assert(  spsConf.getWindowRightOffset () == repFormat->getConfWinVpsRightOffset()  * scal );
     3186      assert(  spsConf.getWindowTopOffset   () == repFormat->getConfWinVpsTopOffset()    * scal );
     3187      assert(  spsConf.getWindowBottomOffset() == repFormat->getConfWinVpsBottomOffset() * scal );           
     3188#endif
    31853189
    31863190    }
     
    32063210      spsConf.setWindowTopOffset   ( repFormat->getConfWinVpsTopOffset()     );
    32073211      spsConf.setWindowBottomOffset( repFormat->getConfWinVpsBottomOffset()  );           
     3212#if NH_MV_FIX_CONF_WINDOW
     3213      // Set conformance window
     3214      Int scal = TComSPS::getWinUnitX( getChromaFormatIdc() ) ;
     3215      getConformanceWindow().scaleOffsets( scal );     
     3216      getVuiParameters()->getDefaultDisplayWindow().scaleOffsets( scal );
     3217#endif
    32083218    }
    32093219  }
    32103220 
    32113221
     3222#if !NH_MV_FIX_CONF_WINDOW
    32123223  // Set conformance window
    32133224  Int scal = TComSPS::getWinUnitX( getChromaFormatIdc() ) ;
    32143225  getConformanceWindow().scaleOffsets( scal );
    32153226  getVuiParameters()->getDefaultDisplayWindow().scaleOffsets( scal );
     3227#endif
    32163228}
    32173229
  • branches/HTM-16.3-fixes/source/Lib/TLibCommon/TypeDef.h

    r1413 r1417  
    6868/////////////////////////////////////////////////////////////////////////////////////////
    6969#if NH_MV
     70#define NH_MV_FIX_CONF_WINDOW                     1
    7071// Things that needs to be fixed also in the Specification ... CHECK if this has been done
    7172#define NH_MV_FIX_NO_REF_PICS_CHECK               1 // !!SPEC!!
Note: See TracChangeset for help on using the changeset viewer.