Ignore:
Timestamp:
26 Aug 2015, 19:24:11 (9 years ago)
Author:
seregin
Message:

initialization for CRI. Patch-by: Hiron Franck <franck.hiron@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r1464 r1466  
    13791379  if ( m_pcPicYuvColourRemapped == NULL )
    13801380  {
    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);
    13841384    const UInt         uiMaxCuWidth    = activeSPS.getMaxCUWidth();
    13851385    const UInt         uiMaxCuHeight   = activeSPS.getMaxCUHeight();
     
    14161416    YUVOut[COMPONENT_Cr] = m_pcPicYuvColourRemapped->getAddr(COMPONENT_Cr);
    14171417
    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
    14201422
    14211423    const Int postOffsetShift = criSEI.m_log2MatrixDenom;
     
    14471449
    14481450    // rescaling output: include CRI/output frame difference
    1449     const Int scaleShiftOut_neg = abs(bitDepthY - maxBitDepth);
     1451    const Int scaleShiftOut_neg = abs(bitDepth - maxBitDepth);
    14501452    const Int scaleOut_round = 1 << (scaleShiftOut_neg-1);
    14511453
     
    14931495    }
    14941496    //Write remapped picture in display order
    1495     m_pcPicYuvColourRemapped->dump( m_colourRemapSEIFileName, activeSPS.getBitDepths(), !firstPicture );
     1497    m_pcPicYuvColourRemapped->dump( m_colourRemapSEIFileName, bitDepthsCriFile, !firstPicture );
    14961498  }
    14971499}
Note: See TracChangeset for help on using the changeset viewer.