Changeset 539 in SHVCSoftware for branches/SHM-4.1-dev/source


Ignore:
Timestamp:
8 Jan 2014, 01:26:03 (11 years ago)
Author:
seregin
Message:

add back LAMBDAREFINEMENT

Location:
branches/SHM-4.1-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r537 r539  
    778778  m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->getChromaFormatIdc(), sps->getMaxCUWidth(), sps->getMaxCUHeight(), sps->getMaxCUDepth() );
    779779#else
    780   m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->getChromaFormatIdc(), sps->getMaxCUWidth(), sps->getMaxCUHeight() );
     780  m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->getMaxCUWidth(), sps->getMaxCUHeight() );
    781781#endif
    782782#else
  • branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r532 r539  
    23322332
    23332333#if SAO_ENCODING_CHOICE
    2334               m_pcSAO->SAOProcess(&cSaoParam, pcPic->getSlice(0)->getLambdaLuma(), pcPic->getSlice(0)->getLambdaChroma(), pcPic->getSlice(0)->getDepth());
     2334              m_pcSAO->SAOProcess(&cSaoParam, pcPic->getSlice(0)->getLambdas()[TEXT_LUMA], pcPic->getSlice(0)->getLambdas()[TEXT_CHROMA], pcPic->getSlice(0)->getDepth());
    23352335#else
    23362336              m_pcSAO->SAOProcess(&cSaoParam, pcPic->getSlice(0)->getLambdaLuma(), pcPic->getSlice(0)->getLambdaChroma());
  • branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r532 r539  
    396396  m_pcRdCost->setCrDistortionWeight(weight[1]);
    397397
     398#if JCTVC_M0259_LAMBDAREFINEMENT
     399  if( rpcSlice->getLayerId() > 0 && m_ppcTEncTop[layerId]->getNumActiveRefLayers() && m_pcCfg->getGOPSize() >= 8 && rpcSlice->isIntra() == false && depth == 0 )
     400  {
     401    dLambda *= 1.1;
     402    weight[1] *= 1.15;
     403    weight[0] *= 1.15;
     404
     405    m_pcRdCost ->setLambda( dLambda );
     406    m_pcRdCost->setCbDistortionWeight(weight[0]);
     407    m_pcRdCost->setCrDistortionWeight(weight[1]);
     408  }
     409#endif
     410
    398411  const Double lambdaArray[3] = {dLambda, (dLambda / weight[0]), (dLambda / weight[1])};
    399412 
Note: See TracChangeset for help on using the changeset viewer.