Changeset 475 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibCommon/TComPicYuv.cpp
- Timestamp:
- 15 Nov 2013, 14:55:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComPicYuv.cpp
r467 r475 67 67 { 68 68 } 69 #if AUXILIARY_PICTURES 70 #if SVC_UPSAMPLING 71 Void TComPicYuv::create( Int iPicWidth, Int iPicHeight, ChromaFormat chromaFormatIDC, UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxCUDepth, TComSPS* pcSps ) 72 #else 73 Void TComPicYuv::create( Int iPicWidth, Int iPicHeight, ChromaFormat chromaFormatIDC, UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxCUDepth ) 74 #endif 75 #else 69 76 #if SVC_UPSAMPLING 70 77 Void TComPicYuv::create( Int iPicWidth, Int iPicHeight, UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxCUDepth, TComSPS* pcSps ) 71 78 #else 72 79 Void TComPicYuv::create( Int iPicWidth, Int iPicHeight, UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxCUDepth ) 80 #endif 73 81 #endif 74 82 { … … 86 94 m_iCuWidth = uiMaxCUWidth; 87 95 m_iCuHeight = uiMaxCUHeight; 96 #if AUXILIARY_PICTURES 97 m_chromaFormatIDC = chromaFormatIDC; 98 #endif 88 99 89 100 Int numCuInWidth = m_iPicWidth / m_iCuWidth + (m_iPicWidth % m_iCuWidth != 0); … … 239 250 } 240 251 252 #if AUXILIARY_PICTURES 253 Void TComPicYuv::convertToMonochrome() 254 { 255 Int numPix = ((m_iPicWidth >> 1) + (m_iChromaMarginX << 1)) * ((m_iPicHeight >> 1) + (m_iChromaMarginY << 1)); 256 Pel grayVal = (1 << (g_bitDepthC - 1)); 257 258 for (UInt i = 0; i < numPix; i++) 259 { 260 m_apiPicBufU[i] = grayVal; 261 m_apiPicBufV[i] = grayVal; 262 } 263 } 264 #endif 265 241 266 Void TComPicYuv::extendPicBorder () 242 267 {
Note: See TracChangeset for help on using the changeset viewer.