Changeset 675 in SHVCSoftware for branches/SHM-6-dev


Ignore:
Timestamp:
14 Apr 2014, 22:47:09 (11 years ago)
Author:
seregin
Message:

memory fix for LAYER_CTB

Location:
branches/SHM-6-dev/source/Lib
Files:
2 edited

Legend:

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

    r661 r675  
    172172    memset( m_pcTrCoeffCb, 0,uiWidth*uiHeight/4 * sizeof( TCoeff ) );
    173173    memset( m_pcTrCoeffCr, 0,uiWidth*uiHeight/4 * sizeof( TCoeff ) );
    174 #if ADAPTIVE_QP_SELECTION   
     174#if ADAPTIVE_QP_SELECTION
    175175    if( bGlobalRMARLBuffer )
    176176    {
    177177      if( m_pcGlbArlCoeffY == NULL )
    178178      {
     179#if LAYER_CTB
     180        m_pcGlbArlCoeffY   = (Int*)xMalloc(Int, MAX_CU_SIZE * MAX_CU_SIZE);
     181        m_pcGlbArlCoeffCb  = (Int*)xMalloc(Int, MAX_CU_SIZE * MAX_CU_SIZE/4);
     182        m_pcGlbArlCoeffCr  = (Int*)xMalloc(Int, MAX_CU_SIZE * MAX_CU_SIZE/4);
     183#else
    179184        m_pcGlbArlCoeffY   = (Int*)xMalloc(Int, uiWidth*uiHeight);
    180185        m_pcGlbArlCoeffCb  = (Int*)xMalloc(Int, uiWidth*uiHeight/4);
    181186        m_pcGlbArlCoeffCr  = (Int*)xMalloc(Int, uiWidth*uiHeight/4);
     187#endif
    182188      }
    183189      m_pcArlCoeffY        = m_pcGlbArlCoeffY;
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r673 r675  
    32853285         pcSlice->getTLayer(),
    32863286         c,
    3287          NaluToStr( pcSlice->getNalUnitType() ).data().
     3287         NaluToStr( pcSlice->getNalUnitType() ).data(),
    32883288         pcSlice->getSliceQp(),
    32893289         uibits );
Note: See TracChangeset for help on using the changeset viewer.