Changeset 1246 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
- Timestamp:
- 14 Jul 2015, 00:26:07 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
r1235 r1246 133 133 134 134 for (Int cuRow = 0; cuRow < numCuInHeight; cuRow++) 135 { 135 136 for (Int cuCol = 0; cuCol < numCuInWidth; cuCol++) 137 { 136 138 m_ctuOffsetInBuffer[chan][cuRow * numCuInWidth + cuCol] = stride * cuRow * ctuHeight + cuCol * ctuWidth; 139 } 140 } 137 141 138 142 m_subCuOffsetInBuffer[chan] = new Int[(size_t)1 << (2 * uiMaxCUDepth)]; … … 143 147 144 148 for (Int buRow = 0; buRow < numSubBlockPartitions; buRow++) 149 { 145 150 for (Int buCol = 0; buCol < numSubBlockPartitions; buCol++) 151 { 146 152 m_subCuOffsetInBuffer[chan][(buRow << uiMaxCUDepth) + buCol] = stride * buRow * minSubBlockHeight + buCol * minSubBlockWidth; 153 } 154 } 147 155 } 148 156 return; … … 157 165 m_piPicOrg[chan] = NULL; 158 166 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 } 160 172 } 161 173 162 174 for(UInt chan=0; chan<MAX_NUM_CHANNEL_TYPE; chan++) 163 175 { 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 } 166 186 } 167 187 } … … 186 206 Void TComPicYuv::extendPicBorder () 187 207 { 188 if ( m_bIsBorderExtended ) return; 208 if ( m_bIsBorderExtended ) 209 { 210 return; 211 } 189 212 190 213 for(Int chan=0; chan<getNumberValidComponents(); chan++)
Note: See TracChangeset for help on using the changeset viewer.