Changeset 1031 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 27 Feb 2015, 01:16:03 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
-
TComPicYuv.cpp (modified) (1 diff)
-
TypeDef.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
r1029 r1031 330 330 Void TComPicYuv::convertToMonochrome() 331 331 { 332 Int numPix = ((m_iPicWidth >> 1) + (m_iMarginX << 1)) * ((m_iPicHeight >> 1) + (m_iMarginY << 1));333 332 Pel grayVal = (1 << (g_bitDepth[CHANNEL_TYPE_CHROMA] - 1)); 334 333 335 for (UInt i = 0; i < numPix; i++) 336 { 337 m_apiPicBuf[COMPONENT_Cb][i] = grayVal; 338 m_apiPicBuf[COMPONENT_Cr][i] = grayVal; 334 for( UInt comp = 1; comp < getNumberValidComponents(); comp++ ) 335 { 336 const ComponentID ch=ComponentID(comp); 337 for( UInt i = 0; i < getStride(ch) * getTotalHeight(ch); i++ ) 338 { 339 m_apiPicBuf[ch][i] = grayVal; 340 } 339 341 } 340 342 } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1029 r1031 305 305 }; 306 306 307 enum AuxType 308 { 309 AUX_ALPHA = 1, 310 AUX_DEPTH = 2, 311 }; 312 307 313 /// normative encoder constraints -------- 308 314 #define MFM_ENCCONSTRAINT 1 ///< JCTVC-O0216: Encoder constraint for motion field mapping
Note: See TracChangeset for help on using the changeset viewer.