Ignore:
Timestamp:
19 Feb 2013, 20:33:52 (12 years ago)
Author:
tech
Message:

Removed HM-6.1 related guard macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev0/source/Lib/TLibDecoder/TDecTop.cpp

    r280 r294  
    525525  xUpdateGopSize(pcSlice);
    526526 
    527 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    528527  m_iMaxRefPicNum = pcSlice->getSPS()->getMaxDecPicBuffering(pcSlice->getTLayer())+pcSlice->getSPS()->getNumReorderPics(pcSlice->getTLayer()) + 1; // +1 to have space for the picture currently being decoded
    529 #else
    530   m_iMaxRefPicNum = pcSlice->getSPS()->getMaxNumberOfReferencePictures()+pcSlice->getSPS()->getNumReorderFrames() + 1; // +1 to have space for the picture currently being decoded
    531 #endif
    532528
    533529#if DEPTH_MAP_GENERATION
     
    716712  }
    717713
    718 #if !LCU_SYNTAX_ALF
    719   // create ALF temporary buffer
    720   m_cAdaptiveLoopFilter.create( sps->getPicWidthInLumaSamples(), sps->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth );
    721 #endif
    722714  m_cSAO.create( sps->getPicWidthInLumaSamples(), sps->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth );
    723715  m_cLoopFilter.        create( g_uiMaxCUDepth );
    724716}
    725717
    726 #if SKIPFRAME_BUGFIX
    727718Bool TDecTop::xDecodeSlice(InputNALUnit &nalu, Int &iSkipFrame, Int iPOCLastDisplay )
    728 #else
    729 Bool TDecTop::xDecodeSlice(InputNALUnit &nalu, Int iSkipFrame, Int iPOCLastDisplay )
    730 #endif
    731719{
    732720  TComPic*&   pcPic         = m_pcPic;
     
    785773  }
    786774
    787 #if NAL_REF_FLAG
    788775  m_apcSlicePilot->setReferenced(nalu.m_nalRefFlag);
    789 #else
    790   m_apcSlicePilot->setReferenced(nalu.m_nalRefIDC != NAL_REF_IDC_PRIORITY_LOWEST);
    791 #endif
    792776  m_apcSlicePilot->setTLayerInfo(nalu.m_temporalId);
    793777
    794778  // ALF CU parameters should be part of the slice header -> needs to be fixed
    795 #if LCU_SYNTAX_ALF
    796779#if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137
    797780  m_cEntropyDecoder.decodeSliceHeader (m_apcSlicePilot, &m_parameterSetManagerDecoder, m_cGopDecoder.getAlfCuCtrlParam(), m_cGopDecoder.getAlfParamSet(),m_apcSlicePilot->getVPS()->getDepthFlag(nalu.m_layerId));
     
    799782  m_cEntropyDecoder.decodeSliceHeader (m_apcSlicePilot, &m_parameterSetManagerDecoder, m_cGopDecoder.getAlfCuCtrlParam(), m_cGopDecoder.getAlfParamSet());
    800783#endif
    801 #else
    802   m_cEntropyDecoder.decodeSliceHeader (m_apcSlicePilot, &m_parameterSetManagerDecoder, m_cGopDecoder.getAlfCuCtrlParam() );
    803 #endif
    804784  // byte align
    805785  {
     
    816796  if (m_apcSlicePilot->isNextSlice() && m_apcSlicePilot->getPOC()!=m_prevPOC && !m_bFirstSliceInSequence)
    817797  {
    818 #if START_DECODING_AT_CRA
    819798    if (m_prevPOC >= m_pocRandomAccess)
    820799    {
     
    823802    }
    824803    m_prevPOC = m_apcSlicePilot->getPOC();
    825 #else
    826     m_prevPOC = m_apcSlicePilot->getPOC();
    827     return true;
    828 #endif
    829804  }
    830805  // actual decoding starts here
     
    846821  }
    847822  //detect lost reference picture and insert copy of earlier frame.
    848 #if START_DECODING_AT_CRA
    849823  while(m_apcSlicePilot->checkThatAllRefPicsAreAvailable(m_cListPic, m_apcSlicePilot->getRPS(), true, m_pocRandomAccess) > 0)
    850 #else
    851   while(m_apcSlicePilot->checkThatAllRefPicsAreAvailable(m_cListPic, m_apcSlicePilot->getRPS(), true) > 0)
    852 #endif
    853824  {
    854825    xCreateLostPicture(m_apcSlicePilot->checkThatAllRefPicsAreAvailable(m_cListPic, m_apcSlicePilot->getRPS(), false)-1);
     
    897868  UInt i, j, p;
    898869
    899 #if !REMOVE_TILE_DEPENDENCE
    900   //set the TileBoundaryIndependenceIdr
    901   if(pcSlice->getPPS()->getTileBehaviorControlPresentFlag() == 1)
    902   {
    903     pcPic->getPicSym()->setTileBoundaryIndependenceIdr( pcSlice->getPPS()->getTileBoundaryIndependenceIdr() );
    904   }
    905   else
    906   {
    907     pcPic->getPicSym()->setTileBoundaryIndependenceIdr( pcSlice->getPPS()->getSPS()->getTileBoundaryIndependenceIdr() );
    908   }
    909 #endif
    910870
    911871  if( pcSlice->getPPS()->getColumnRowInfoPresent() == 1 )
     
    12651225{
    12661226  TComSPS* sps = new TComSPS();
    1267 #if RPS_IN_SPS
    12681227  TComRPSList* rps = new TComRPSList();
    12691228  sps->setRPSList(rps);
    1270 #endif
    12711229#if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068
    12721230  m_cEntropyDecoder.decodeSPS( sps, m_isDepth );
     
    12751233#endif
    12761234  m_parameterSetManagerDecoder.storePrefetchedSPS(sps);
    1277 #if LCU_SYNTAX_ALF
    12781235  m_cAdaptiveLoopFilter.create( sps->getPicWidthInLumaSamples(), sps->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth );
    1279 #endif
    12801236}
    12811237
    12821238Void TDecTop::xDecodePPS()
    12831239{
    1284 #if !RPS_IN_SPS
    1285   TComRPSList* rps = new TComRPSList();
    1286 #endif
    12871240  TComPPS* pps = new TComPPS();
    1288 #if !RPS_IN_SPS
    1289   pps->setRPSList(rps);
    1290 #endif
    1291 #if TILES_OR_ENTROPY_SYNC_IDC
    12921241  m_cEntropyDecoder.decodePPS( pps, &m_parameterSetManagerDecoder );
    1293 #else
    1294   m_cEntropyDecoder.decodePPS( pps );
    1295 #endif
    12961242  m_parameterSetManagerDecoder.storePrefetchedPPS( pps );
    12971243
     
    13461292    case NAL_UNIT_CODED_SLICE:
    13471293    case NAL_UNIT_CODED_SLICE_IDR:
    1348 #if H0566_TLA
    13491294#if !QC_REM_IDV_B0046
    13501295    case NAL_UNIT_CODED_SLICE_IDV:
     
    13521297    case NAL_UNIT_CODED_SLICE_CRA:
    13531298    case NAL_UNIT_CODED_SLICE_TLA:
    1354 #else
    1355     case NAL_UNIT_CODED_SLICE_CDR:
    1356 #endif
    13571299      return xDecodeSlice(nalu, iSkipFrame, iPOCLastDisplay);
    13581300      break;
     
    13751317  sps = pSPSV0;
    13761318  m_parameterSetManagerDecoder.storePrefetchedSPS(sps);
    1377 #if LCU_SYNTAX_ALF
    13781319  m_cAdaptiveLoopFilter.create( sps->getPicWidthInLumaSamples(), sps->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth );
    1379 #endif
    13801320}
    13811321
     
    14121352  else if (m_pocRandomAccess == MAX_INT) // start of random access point, m_pocRandomAccess has not been set yet.
    14131353  {
    1414 #if H0566_TLA
    14151354    if( m_apcSlicePilot->getNalUnitTypeBaseViewMvc() == NAL_UNIT_CODED_SLICE_CRA )
    1416 #else
    1417     if( m_apcSlicePilot->getNalUnitTypeBaseViewMvc() == NAL_UNIT_CODED_SLICE_CDR )
    1418 #endif
    14191355    {
    14201356      m_pocRandomAccess = m_apcSlicePilot->getPOC(); // set the POC random access since we need to skip the reordered pictures in CRA.
     
    14261362    else
    14271363    {
    1428 #if START_DECODING_AT_CRA
    14291364      static bool warningMessage = false;
    14301365      if(!warningMessage)
     
    14341369      }
    14351370      return true;
    1436 #else
    1437       printf("\nUnsafe random access point. Decoder may crash.");
    1438       m_pocRandomAccess = 0;
    1439 #endif
    14401371    }
    14411372  }
     
    14581389  m_cSAO.allocSaoParam(pAPS->getSaoParam());
    14591390  pAPS->createAlfParam();
    1460 #if !LCU_SYNTAX_ALF
    1461   m_cAdaptiveLoopFilter.allocALFParam(pAPS->getAlfParam());
    1462 #endif
    14631391}
    14641392
Note: See TracChangeset for help on using the changeset viewer.