Changeset 1031 in SHVCSoftware
- Timestamp:
- 27 Feb 2015, 01:16:03 (10 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1030 r1031 1415 1415 1416 1416 #if AUXILIARY_PICTURES 1417 if (m_scalabilityMask[ 3])1417 if (m_scalabilityMask[AUX_ID]) 1418 1418 { 1419 1419 UInt maxAuxId = 0; 1420 1420 UInt auxDimIdLen = 1; 1421 Int auxId = vps->getNumScalabilityTypes() - 1; 1421 1422 for(i = 1; i < vps->getMaxLayers(); i++) 1422 1423 { … … 1430 1431 auxDimIdLen++; 1431 1432 } 1432 vps->setDimensionIdLen( 1, auxDimIdLen);1433 vps->setDimensionIdLen(auxId, auxDimIdLen); 1433 1434 for(i = 1; i < vps->getMaxLayers(); i++) 1434 1435 { 1435 vps->setDimensionId(i, 1, m_acLayerCfg[i].getAuxId());1436 vps->setDimensionId(i, auxId, m_acLayerCfg[i].getAuxId()); 1436 1437 } 1437 1438 } … … 2139 2140 #if R0062_AUX_PSEUDO_MONOCHROME 2140 2141 if ( m_acLayerCfg[layer].getChromaFormatIDC() == CHROMA_400 || 2141 (m_apcTEncTop[0]->getVPS()->getScalabilityMask( 3) && (m_acLayerCfg[layer].getAuxId() == 1 || m_acLayerCfg[layer].getAuxId() == 2)) )2142 (m_apcTEncTop[0]->getVPS()->getScalabilityMask(AUX_ID) && (m_acLayerCfg[layer].getAuxId() == AUX_ALPHA || m_acLayerCfg[layer].getAuxId() == AUX_DEPTH)) ) 2142 2143 #else 2143 2144 if (m_acLayerCfg[layer].getChromaFormatIDC() == CHROMA_400) -
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.