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


Ignore:
Timestamp:
12 May 2013, 18:11:47 (12 years ago)
Author:
seregin
Message:

enable zero number of direct references, fix for AVC base YUV input

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

Legend:

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

    r181 r187  
    461461
    462462#if REF_IDX_FRAMEWORK
     463#if ZERO_NUM_DIRECT_LAYERS
     464  if( m_layerId == 0 || ( m_layerId > 0 && ( m_activeNumILRRefIdx == 0 || !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) ) ) )
     465#else
    463466  if ((getLayerId() == 0) ||
    464467      ((getSPS()->getLayerId()) &&  !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&
    465468       (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) )
    466469     )
     470#endif
    467471  {
    468472#endif
     
    516520  //inter-layer reference picture
    517521#if REF_IDX_MFM
     522#if ZERO_NUM_DIRECT_LAYERS
     523  if( m_layerId > 0 && m_activeNumILRRefIdx > 0 )
     524#else
    518525  if (getLayerId())
     526#endif
    519527  {
    520528    if(!(getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA) && getSPS()->getMFMEnabledFlag())
  • branches/SHM-2.0-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r175 r187  
    437437#if SCALED_REF_LAYER_OFFSETS
    438438      // Only increase the x position of reference upsample picture when within the window
    439       // "-2" to ensure that pointer doesn't go beyond the boundeary rightEndL-1
     439      // "-2" to ensure that pointer doesn't go beyond the boundary rightEndL-1
    440440      if( (i >= leftStartL) && (i <= rightEndL-2) )
    441441      {
     
    605605#if SCALED_REF_LAYER_OFFSETS
    606606      // Only increase the x position of reference upsample picture when within the window
    607       // "-2" to ensure that pointer doesn't go beyond the boundeary rightEndC-1
     607      // "-2" to ensure that pointer doesn't go beyond the boundary rightEndC-1
    608608      if( (i >= leftStartC) && (i <= rightEndC-2) )
    609609      {
  • branches/SHM-2.0-dev/source/Lib/TLibCommon/TypeDef.h

    r175 r187  
    9090#define REF_IDX_MFM                      1      ///< L0336: motion vector mapping of inter-layer reference picture
    9191#define JCTVC_M0458_INTERLAYER_RPS_SIG   1      ///< implementation of JCTVC-L0178 (currently only one reference layer is supported )
     92#if JCTVC_M0458_INTERLAYER_RPS_SIG
     93#define ZERO_NUM_DIRECT_LAYERS           1      ///< support of zero direct reference layers
     94#endif
    9295#else
    9396#define INTRA_BL                         1      ///< inter-layer texture prediction
Note: See TracChangeset for help on using the changeset viewer.