Changeset 539 in SHVCSoftware for branches/SHM-4.1-dev/source
- Timestamp:
- 8 Jan 2014, 01:26:03 (11 years ago)
- 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 778 778 m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->getChromaFormatIdc(), sps->getMaxCUWidth(), sps->getMaxCUHeight(), sps->getMaxCUDepth() ); 779 779 #else 780 m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->get ChromaFormatIdc(), sps->getMaxCUWidth(), sps->getMaxCUHeight() );780 m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->getMaxCUWidth(), sps->getMaxCUHeight() ); 781 781 #endif 782 782 #else -
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r532 r539 2332 2332 2333 2333 #if SAO_ENCODING_CHOICE 2334 m_pcSAO->SAOProcess(&cSaoParam, pcPic->getSlice(0)->getLambda Luma(), 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()); 2335 2335 #else 2336 2336 m_pcSAO->SAOProcess(&cSaoParam, pcPic->getSlice(0)->getLambdaLuma(), pcPic->getSlice(0)->getLambdaChroma()); -
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r532 r539 396 396 m_pcRdCost->setCrDistortionWeight(weight[1]); 397 397 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 398 411 const Double lambdaArray[3] = {dLambda, (dLambda / weight[0]), (dLambda / weight[1])}; 399 412
Note: See TracChangeset for help on using the changeset viewer.