Changeset 1466 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 26 Aug 2015, 19:24:11 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1464 r1466 1379 1379 if ( m_pcPicYuvColourRemapped == NULL ) 1380 1380 { 1381 const ChromaFormat chromaFormatIDC = activeSPS.getChromaFormatIdc();1382 const Int iWidth = activeSPS.getPicWidthInLumaSamples();1383 const Int iHeight = activeSPS.getPicHeightInLumaSamples();1381 const ChromaFormat chromaFormatIDC = pic.getChromaFormat(); 1382 const Int iWidth = pic.getWidth(COMPONENT_Y); 1383 const Int iHeight = pic.getHeight(COMPONENT_Y); 1384 1384 const UInt uiMaxCuWidth = activeSPS.getMaxCUWidth(); 1385 1385 const UInt uiMaxCuHeight = activeSPS.getMaxCUHeight(); … … 1416 1416 YUVOut[COMPONENT_Cr] = m_pcPicYuvColourRemapped->getAddr(COMPONENT_Cr); 1417 1417 1418 Int bitDepthY = activeSPS.getBitDepth(CHANNEL_TYPE_LUMA); 1419 assert(bitDepthY == activeSPS.getBitDepth(CHANNEL_TYPE_CHROMA)); // Different bitdepth is not implemented 1418 Int bitDepth = criSEI.m_colourRemapBitDepth; 1419 BitDepths bitDepthsCriFile; 1420 bitDepthsCriFile.recon[CHANNEL_TYPE_LUMA] = bitDepth; 1421 bitDepthsCriFile.recon[CHANNEL_TYPE_CHROMA] = bitDepth; // Different bitdepth is not implemented 1420 1422 1421 1423 const Int postOffsetShift = criSEI.m_log2MatrixDenom; … … 1447 1449 1448 1450 // rescaling output: include CRI/output frame difference 1449 const Int scaleShiftOut_neg = abs(bitDepth Y- maxBitDepth);1451 const Int scaleShiftOut_neg = abs(bitDepth - maxBitDepth); 1450 1452 const Int scaleOut_round = 1 << (scaleShiftOut_neg-1); 1451 1453 … … 1493 1495 } 1494 1496 //Write remapped picture in display order 1495 m_pcPicYuvColourRemapped->dump( m_colourRemapSEIFileName, activeSPS.getBitDepths(), !firstPicture );1497 m_pcPicYuvColourRemapped->dump( m_colourRemapSEIFileName, bitDepthsCriFile, !firstPicture ); 1496 1498 } 1497 1499 }
Note: See TracChangeset for help on using the changeset viewer.