Changeset 1489 in SHVCSoftware


Ignore:
Timestamp:
2 Dec 2015, 23:30:10 (9 years ago)
Author:
seregin
Message:

store VPS with a picture, VPS is a static pointer for now

Location:
branches/SHM-dev/source/Lib
Files:
4 edited

Legend:

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

    r1485 r1489  
    4747// ====================================================================================================================
    4848
     49#if SVC_EXTENSION
     50TComVPS* TComPicSym::m_vps = NULL;
     51#endif
     52
    4953TComPicSym::TComPicSym()
    5054:m_frameWidthInCtus(0)
     
    8387  m_sps = sps;
    8488  m_pps = pps;
    85   m_vps = &vps;
     89
     90  if( !m_vps )
     91  {
     92    m_vps = new TComVPS(vps);
     93  }
     94  else 
     95  {
     96    *m_vps = vps;
     97  }
    8698
    8799  const ChromaFormat chromaFormatIDC = vps.getChromaFormatIdc(&sps, layerId);
     
    210222  delete [] m_pParentARLBuffer;
    211223  m_pParentARLBuffer = NULL;
     224#endif
     225
     226#if SVC_EXTENSION
     227  if( m_vps )
     228  {
     229    delete m_vps;
     230    m_vps = NULL;
     231  }
    212232#endif
    213233}
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicSym.h

    r1296 r1489  
    121121 
    122122#if SVC_EXTENSION
    123   const TComVPS* m_vps;
     123  // SHM: temporal solution to keep VPS with a picture, ideally it should be picture specific, but currently sizeof(TComVPS) = 232897716
     124  static TComVPS* m_vps;
    124125#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
    125126  Int*           m_piTileSetIdxMap;     //the map of the tile set index relative to LCU raster scan address
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1487 r1489  
    260260  }
    261261
    262   m_iMaxRefPicNum += 1; // it should be updated if more than 1 resampling picture is used
     262  m_iMaxRefPicNum += 1; // SHM: it should be updated if more than 1 resampling picture is used
    263263#else
    264264  m_iMaxRefPicNum = sps.getMaxDecPicBuffering(temporalLayer);     // m_uiMaxDecPicBuffering has the space for the picture currently being decoded
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.h

    r1447 r1489  
    145145    Double dScale   = dFps / 1000 / (Double)m_uiNumPic;
    146146
     147#if SVC_EXTENSION
     148    // SHM: to avoid compiler warning of possible usage of uninitialized variable
     149    Double MSEBasedSNR[MAX_NUM_COMPONENT] = {0, };
     150#else
    147151    Double MSEBasedSNR[MAX_NUM_COMPONENT];
     152#endif
    148153    if (printMSEBasedSNR)
    149154    {
Note: See TracChangeset for help on using the changeset viewer.