Changeset 595 in SHVCSoftware for trunk/source/Lib/TLibCommon/TComPicSym.cpp


Ignore:
Timestamp:
2 Feb 2014, 06:01:53 (11 years ago)
Author:
seregin
Message:

merge with SHM-5.0-dev branch

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/source

  • trunk/source/Lib/TLibCommon/TComPicSym.cpp

    r540 r595  
    44 * granted under this license. 
    55 *
    6  * Copyright (c) 2010-2013, ITU/ISO/IEC
     6 * Copyright (c) 2010-2014, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    6767,m_puiTileIdxMap(NULL)
    6868,m_puiInverseCUOrderMap(NULL)
    69 #if HM_CLEANUP_SAO
    7069,m_saoBlkParams(NULL)
    71 #endif
    7270{};
    7371
     
    131129  }
    132130
    133 #if HM_CLEANUP_SAO
    134131  m_saoBlkParams = new SAOBlkParam[m_uiNumCUsInFrame];
    135 #else
    136   m_saoParam = NULL;
    137 #endif
    138132}
    139133
     
    191185  m_puiInverseCUOrderMap = NULL;
    192186 
    193 #if HM_CLEANUP_SAO
    194187  if(m_saoBlkParams)
    195188  {
    196189    delete[] m_saoBlkParams; m_saoBlkParams = NULL;
    197190  }
    198 #else
    199   if (m_saoParam)
    200   {
    201     TComSampleAdaptiveOffset::freeSaoParam(m_saoParam);
    202     delete m_saoParam;
    203     m_saoParam = NULL;
    204   }
    205 #endif
    206191}
    207192
     
    347332}
    348333
    349 
    350 #if HM_CLEANUP_SAO
    351334Void TComPicSym::deriveLoopFilterBoundaryAvailibility(Int ctu,
    352335                                                      Bool& isLeftAvail,
     
    419402      if(ctuAboveRigtht != NULL)
    420403      {
    421         Int curSliceStartTS  = getCUOrderMap(ctuCurr->getSlice()->getSliceCurStartCUAddr()/m_uiNumPartitions);
    422         Int aboveRigthtSliceStartTS = getCUOrderMap(ctuAboveRigtht->getSlice()->getSliceCurStartCUAddr()/m_uiNumPartitions);
    423 
    424         isAboveRightAvail = (curSliceStartTS == aboveRigthtSliceStartTS)?(true):
     404        Int curSliceStartEncOrder  = ctuCurr->getSlice()->getSliceCurStartCUAddr();
     405        Int aboveRigthtSliceStartEncOrder = ctuAboveRigtht->getSlice()->getSliceCurStartCUAddr();
     406
     407        isAboveRightAvail = (curSliceStartEncOrder == aboveRigthtSliceStartEncOrder)?(true):
    425408          (
    426           (curSliceStartTS > aboveRigthtSliceStartTS)?(ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag())
     409          (curSliceStartEncOrder > aboveRigthtSliceStartEncOrder)?(ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag())
    427410          :(ctuAboveRigtht->getSlice()->getLFCrossSliceBoundaryFlag())
    428411          );         
     
    431414      if(ctuBelowLeft != NULL)
    432415      {
    433         Int curSliceStartTS       = getCUOrderMap(ctuCurr->getSlice()->getSliceCurStartCUAddr()/m_uiNumPartitions);
    434         Int belowLeftSliceStartTS = getCUOrderMap(ctuBelowLeft->getSlice()->getSliceCurStartCUAddr()/m_uiNumPartitions);
    435 
    436         isBelowLeftAvail = (curSliceStartTS == belowLeftSliceStartTS)?(true):
     416        Int curSliceStartEncOrder  = ctuCurr->getSlice()->getSliceCurStartCUAddr();
     417        Int belowLeftSliceStartEncOrder = ctuBelowLeft->getSlice()->getSliceCurStartCUAddr();
     418
     419        isBelowLeftAvail = (curSliceStartEncOrder == belowLeftSliceStartEncOrder)?(true):
    437420          (
    438           (curSliceStartTS > belowLeftSliceStartTS)?(ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag())
     421          (curSliceStartEncOrder > belowLeftSliceStartEncOrder)?(ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag())
    439422          :(ctuBelowLeft->getSlice()->getLFCrossSliceBoundaryFlag())
    440423          );
     
    456439
    457440}
    458 #else
    459 Void TComPicSym::allocSaoParam(TComSampleAdaptiveOffset *sao)
    460 {
    461   m_saoParam = new SAOParam;
    462   sao->allocSaoParam(m_saoParam);
    463 }
    464 #endif
    465441
    466442TComTile::TComTile()
Note: See TracChangeset for help on using the changeset viewer.