Ignore:
Timestamp:
14 Jul 2015, 00:26:07 (9 years ago)
Author:
seregin
Message:

port rev 4240

File:
1 edited

Legend:

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

    r1235 r1246  
    133133
    134134    for (Int cuRow = 0; cuRow < numCuInHeight; cuRow++)
     135    {
    135136      for (Int cuCol = 0; cuCol < numCuInWidth; cuCol++)
     137      {
    136138        m_ctuOffsetInBuffer[chan][cuRow * numCuInWidth + cuCol] = stride * cuRow * ctuHeight + cuCol * ctuWidth;
     139      }
     140    }
    137141
    138142    m_subCuOffsetInBuffer[chan] = new Int[(size_t)1 << (2 * uiMaxCUDepth)];
     
    143147
    144148    for (Int buRow = 0; buRow < numSubBlockPartitions; buRow++)
     149    {
    145150      for (Int buCol = 0; buCol < numSubBlockPartitions; buCol++)
     151      {
    146152        m_subCuOffsetInBuffer[chan][(buRow << uiMaxCUDepth) + buCol] = stride  * buRow * minSubBlockHeight + buCol * minSubBlockWidth;
     153      }
     154    }
    147155  }
    148156  return;
     
    157165    m_piPicOrg[chan] = NULL;
    158166
    159     if( m_apiPicBuf[chan] ){ xFree( m_apiPicBuf[chan] );    m_apiPicBuf[chan] = NULL; }
     167    if( m_apiPicBuf[chan] )
     168    {
     169      xFree( m_apiPicBuf[chan] );
     170      m_apiPicBuf[chan] = NULL;
     171    }
    160172  }
    161173
    162174  for(UInt chan=0; chan<MAX_NUM_CHANNEL_TYPE; chan++)
    163175  {
    164     if (m_ctuOffsetInBuffer[chan]) delete[] m_ctuOffsetInBuffer[chan]; m_ctuOffsetInBuffer[chan] = NULL;
    165     if (m_subCuOffsetInBuffer[chan]) delete[] m_subCuOffsetInBuffer[chan]; m_subCuOffsetInBuffer[chan] = NULL;
     176    if (m_ctuOffsetInBuffer[chan])
     177    {
     178      delete[] m_ctuOffsetInBuffer[chan];
     179      m_ctuOffsetInBuffer[chan] = NULL;
     180    }
     181    if (m_subCuOffsetInBuffer[chan])
     182    {
     183      delete[] m_subCuOffsetInBuffer[chan];
     184      m_subCuOffsetInBuffer[chan] = NULL;
     185    }
    166186  }
    167187}
     
    186206Void TComPicYuv::extendPicBorder ()
    187207{
    188   if ( m_bIsBorderExtended ) return;
     208  if ( m_bIsBorderExtended )
     209  {
     210    return;
     211  }
    189212
    190213  for(Int chan=0; chan<getNumberValidComponents(); chan++)
Note: See TracChangeset for help on using the changeset viewer.