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


Ignore:
Timestamp:
22 Mar 2016, 23:10:27 (10 years ago)
Author:
seregin
Message:

port rev 4692

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

Legend:

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

    r1512 r1540  
    7575TComPic::~TComPic()
    7676{
     77  destroy();
    7778}
    7879#if SVC_EXTENSION
    7980Void TComPic::create( const TComSPS &sps, const TComPPS &pps, const Bool bIsVirtual, const UInt layerId )
    8081{
     82  destroy();
     83
    8184  const ChromaFormat chromaFormatIDC = sps.getChromaFormatIdc();
    8285  const Int          iWidth          = sps.getPicWidthInLumaSamples();
     
    116119Void TComPic::create( const TComSPS &sps, const TComPPS &pps, const Bool bIsVirtual)
    117120{
     121  destroy();
     122
    118123  const ChromaFormat chromaFormatIDC = sps.getChromaFormatIdc();
    119124  const Int          iWidth          = sps.getPicWidthInLumaSamples();
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicSym.cpp

    r1503 r1540  
    7777{}
    7878
     79
     80TComPicSym::~TComPicSym()
     81{
     82  destroy();
     83}
     84
    7985#if SVC_EXTENSION
    8086Void TComPicSym::create  ( const TComSPS &sps, const TComPPS &pps, UInt uiMaxDepth, const UInt layerId )
     
    8490{
    8591#endif
    86   UInt i;
     92  destroy();
     93
    8794  m_sps = sps;
    8895  m_pps = pps;
     
    9198  const Int iPicWidth      = sps.getPicWidthInLumaSamples();
    9299  const Int iPicHeight     = sps.getPicHeightInLumaSamples();
    93 
    94100  const UInt uiMaxCuWidth  = sps.getMaxCUWidth();
    95101  const UInt uiMaxCuHeight = sps.getMaxCUHeight();
     
    124130#endif
    125131
    126   for ( i=0; i<m_numCtusInFrame ; i++ )
     132  for (UInt i=0; i<m_numCtusInFrame ; i++ )
    127133  {
    128134    m_pictureCtuArray[i] = new TComDataCU;
     
    144150#endif 
    145151
    146   for( i=0; i<m_numCtusInFrame; i++ )
     152  for(UInt i=0; i<m_numCtusInFrame; i++ )
    147153  {
    148154    m_ctuTsToRsAddrMap[i] = i;
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicSym.h

    r1520 r1540  
    140140
    141141  TComPicSym  ();
     142  ~TComPicSym();
     143
    142144  TComSlice*         getSlice(UInt i)                                      { return m_apSlices[i];             }
    143145  const TComSlice*   getSlice(UInt i) const                                { return m_apSlices[i];             }
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp

    r1460 r1540  
    7474TComPicYuv::~TComPicYuv()
    7575{
     76  destroy();
    7677}
    7778
     
    9091
    9192{
     93  destroy();
    9294
    9395#if SVC_EXTENSION
  • branches/SHM-dev/source/Lib/TLibCommon/TComYuv.cpp

    r1324 r1540  
    5959TComYuv::~TComYuv()
    6060{
     61  destroy();
    6162}
    6263
    6364Void TComYuv::create( UInt iWidth, UInt iHeight, ChromaFormat chromaFormatIDC )
    6465{
     66  destroy();
    6567  // set width and height
    6668  m_iWidth   = iWidth;
Note: See TracChangeset for help on using the changeset viewer.