Changeset 1210 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
8 Jul 2015, 22:47:39 (10 years ago)
Author:
seregin
Message:

macro cleanup: POC_RESET_IDC_DECODER, POC_RESET_IDC

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

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1207 r1210  
    12851285      READ_CODE(sps->getBitsForPOC(), uiCode, "pic_order_cnt_lsb");
    12861286#if SVC_EXTENSION
    1287 #if POC_RESET_IDC_DECODER
    12881287      pcSlice->setPicOrderCntLsb( uiCode );
    1289 #endif
     1288
    12901289      iPOClsb = uiCode;
    12911290#else
     
    13201319#if SVC_EXTENSION
    13211320    }
    1322 #if POC_RESET_IDC_DECODER
    13231321    else
    13241322    {
    13251323      pcSlice->setPicOrderCntLsb( 0 );
    13261324    }
    1327 #endif
     1325
    13281326    if( !pcSlice->getIdrPicFlag() )
    13291327    {
     
    19881986    }
    19891987
    1990 #if !POC_RESET_IDC_DECODER
    1991     Int maxPocLsb  = 1 << pcSlice->getSPS()->getBitsForPOC();
    1992 #endif
    19931988    if( pcSlice->getPocMsbValPresentFlag() )
    19941989    {
    19951990      READ_UVLC( uiCode,    "poc_msb_cycle_val");             pcSlice->setPocMsbVal( uiCode );
    1996 
    1997 #if !POC_RESET_IDC_DECODER
    1998       // Update POC of the slice based on this MSB val
    1999       Int pocLsb     = pcSlice->getPOC() % maxPocLsb;
    2000       pcSlice->setPOC((pcSlice->getPocMsbVal() * maxPocLsb) + pocLsb);
    2001     }
    2002     else
    2003     {
    2004       pcSlice->setPocMsbVal( pcSlice->getPOC() / maxPocLsb );
    2005 #endif
    20061991    }
    20071992
  • TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1208 r1210  
    108108  m_firstPicInLayerDecodedFlag = false; 
    109109#endif
    110 #if POC_RESET_IDC_DECODER
    111110  m_parseIdc = -1;
    112111  m_lastPocPeriodId = -1;
    113112  m_prevPicOrderCnt = 0;
    114 #endif
    115113#if Q0048_CGS_3D_ASYMLUT
    116114  m_pColorMappedPic = NULL;
     
    863861  }
    864862
    865 #if POC_RESET_IDC_DECODER
     863#if SVC_POC
    866864  if( m_parseIdc != -1 ) // Second pass for a POC resetting picture
    867865  {
     
    956954
    957955#if ALIGNED_BUMPING
    958 #if POC_RESET_IDC_DECODER
    959956  UInt affectedLayerList[MAX_LAYERS];
    960957  Int  numAffectedLayers;
     
    11361133      }
    11371134    }
    1138 #else
    1139   if (bNewPOC || m_layerId!=m_uiPrevLayerId)
    1140   {
    1141 #endif
    11421135    m_apcSlicePilot->applyReferencePictureSet(m_cListPic, m_apcSlicePilot->getRPS());
    11431136  }
    1144 #endif
    1145 #if POC_RESET_IDC_DECODER
    1146   if (!m_apcSlicePilot->getDependentSliceSegmentFlag() && (bNewPOC || m_layerId!=m_uiPrevLayerId || m_parseIdc == 1) && !m_bFirstSliceInSequence )
     1137
     1138  if( !m_apcSlicePilot->getDependentSliceSegmentFlag() && (bNewPOC || m_layerId!=m_uiPrevLayerId || m_parseIdc == 1) && !m_bFirstSliceInSequence )
    11471139#else
    11481140  if (!m_apcSlicePilot->getDependentSliceSegmentFlag() && (bNewPOC || m_layerId!=m_uiPrevLayerId) && !m_bFirstSliceInSequence )
     
    11551147  }
    11561148
    1157 #if SVC_EXTENSION
    1158 #if POC_RESET_IDC_DECODER
    11591149  m_parseIdc = -1;
    1160 #endif
    11611150
    11621151  if( m_apcSlicePilot->getTLayer() == 0 && m_apcSlicePilot->getEnableTMVPFlag() == 0 )
     
    11811170  }
    11821171  m_apcSlicePilot->setAvailableForTMVPRefFlag( true );
    1183 #endif
    11841172
    11851173  // actual decoding starts here
    11861174  xActivateParameterSets();
    11871175
    1188 #if SVC_EXTENSION
    11891176  // Initialize ILRP if needed, only for the current layer 
    11901177  // ILRP intialization should go along with activation of parameters sets,
    11911178  // although activation of parameter sets itself need not be done for each and every slice!!!
    11921179  xInitILRP(m_apcSlicePilot);
    1193 #endif
    11941180
    11951181  if (!m_apcSlicePilot->getDependentSliceSegmentFlag())
     
    14141400    xGetNewPicBuffer (m_apcSlicePilot, m_pcPic);
    14151401
    1416 #if POC_RESET_IDC_DECODER
     1402#if SVC_POC
    14171403    m_pcPic->setCurrAuFlag( true );
    14181404
     
    24662452}
    24672453
    2468 #if POC_RESET_IDC_DECODER
    24692454Void TDecTop::markAllPicsAsNoCurrAu(TComVPS *vps)
    24702455{
     
    24812466  }
    24822467}
    2483 #endif
     2468
    24842469#if Q0048_CGS_3D_ASYMLUT
    24852470Void TDecTop::initAsymLut(TComSlice *pcSlice)
  • TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r1205 r1210  
    150150  Bool                    m_firstPicInLayerDecodedFlag;
    151151#endif
    152 #if POC_RESET_IDC_DECODER
    153152  Int                     m_parseIdc;
    154153  Int                     m_lastPocPeriodId;
    155154  Int                     m_prevPicOrderCnt;
    156 #endif
    157155#if CONFORMANCE_BITSTREAM_MODE
    158156  Bool m_confModeFlag;
     
    212210
    213211#if SVC_EXTENSION
    214 #if POC_RESET_IDC_DECODER
    215212  Int       getParseIdc                     ()                              { return m_parseIdc;               }
    216213  Void      setParseIdc                     (Int x)                         { m_parseIdc = x;                  }
     
    222219  Int       getPrevPicOrderCnt              ()                              { return m_prevPicOrderCnt;        }
    223220  Void      setPrevPicOrderCnt              (Int const x)                   { m_prevPicOrderCnt = x;           }
    224 #endif
     221
    225222  UInt      getLayerId                      ()                              { return m_layerId;                }
    226223  Void      setLayerId                      (UInt layer)                    { m_layerId = layer;               }
Note: See TracChangeset for help on using the changeset viewer.