Changeset 926 in SHVCSoftware
- Timestamp:
- 10 Dec 2014, 02:35:15 (10 years ago)
- Location:
- branches/SHM-upgrade/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibCommon/TComDataCU.cpp
r916 r926 326 326 TComSlice * pcSlice = pcPic->getSlice(pcPic->getCurrSliceIdx()); 327 327 328 #if REPN_FORMAT_IN_VPS 329 const UInt picWidth = pcSlice->getPicWidthInLumaSamples(); 330 const UInt picHeight = pcSlice->getPicHeightInLumaSamples(); 331 #else 328 332 const UInt picWidth = pcSlice->getSPS()->getPicWidthInLumaSamples(); 329 333 const UInt picHeight = pcSlice->getSPS()->getPicHeightInLumaSamples(); 334 #endif 330 335 const UInt granularityWidth = g_uiMaxCUWidth; 331 336 -
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp
r918 r926 2430 2430 #endif 2431 2431 2432 #if REPN_FORMAT_IN_VPS 2433 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 2434 #else 2432 2435 Int qpBdOffsetY = pcCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA); 2436 #endif 2433 2437 qp = (((Int) pcCU->getRefQP( uiAbsPartIdx ) + iDQp + 52 + 2*qpBdOffsetY )%(52+ qpBdOffsetY)) - qpBdOffsetY; 2434 2438 -
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCu.cpp
r916 r926 223 223 TComSlice * pcSlice = pcCU->getPic()->getSlice(pcCU->getPic()->getCurrSliceIdx()); 224 224 #if REPN_FORMAT_IN_VPS 225 if( ( uiRPelX < pcSlice->get SPS()->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) )225 if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) ) 226 226 #else 227 227 if( ( uiRPelX < pcSlice->getSPS()->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getSPS()->getPicHeightInLumaSamples() ) ) -
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCu.cpp
r916 r926 410 410 { 411 411 Int idQP = m_pcEncCfg->getMaxDeltaQP(); 412 #if REPN_FORMAT_IN_VPS 413 iMinQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP ); 414 iMaxQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP ); 415 #else 412 416 iMinQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA), MAX_QP, iBaseQP-idQP ); 413 417 iMaxQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA), MAX_QP, iBaseQP+idQP ); 418 #endif 414 419 } 415 420 else … … 467 472 { 468 473 #endif 469 #if (ENCODER_FAST_MODE)474 #if ENCODER_FAST_MODE 470 475 Bool testInter = true; 471 if (rpcBestCU->getLayerId() > 0)476 if( rpcBestCU->getLayerId() > 0 ) 472 477 { 473 478 if(pcSlice->getSliceType() == P_SLICE && pcSlice->getNumRefIdx(REF_PIC_LIST_0) == pcSlice->getActiveNumILRRefIdx()) … … 505 510 506 511 // do inter modes, SKIP and 2Nx2N 507 #if (ENCODER_FAST_MODE == 1)512 #if ENCODER_FAST_MODE == 1 508 513 if( rpcBestCU->getSlice()->getSliceType() != I_SLICE && testInter ) 509 514 #else … … 521 526 rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode ); 522 527 523 #if (ENCODER_FAST_MODE == 2)528 #if ENCODER_FAST_MODE == 2 524 529 if (testInter) 525 530 { … … 535 540 } 536 541 } 537 #if (ENCODER_FAST_MODE == 2)542 #if ENCODER_FAST_MODE == 2 538 543 } 539 544 #endif … … 560 565 561 566 // do inter modes, NxN, 2NxN, and Nx2N 562 #if (ENCODER_FAST_MODE)567 #if ENCODER_FAST_MODE 563 568 if( rpcBestCU->getSlice()->getSliceType() != I_SLICE && testInter ) 564 569 #else … … 714 719 if((rpcBestCU->getSlice()->getSliceType() == I_SLICE) || 715 720 #if ENCODER_FAST_MODE 716 ( rpcBestCU->getPredictionMode(0) != MODE_INTRA && rpcBestCU->getPredictionMode(0) != MODE_INTER )|| // if there is no valid inter prediction717 !testInter 721 rpcBestCU->getPredictionMode(0) == NUMBER_OF_PREDICTION_MODES || // if there is no valid inter prediction 722 !testInter || 718 723 #endif 719 724 (rpcBestCU->getCbf( 0, COMPONENT_Y ) != 0) || -
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncGOP.cpp
r916 r926 2955 2955 const Int minCuWidth = pcPic->getMinCUWidth(); 2956 2956 const Int minCuHeight = pcPic->getMinCUHeight(); 2957 #if REPN_FORMAT_IN_VPS 2958 const Int paddedWidth = ((pcSlice->getPicWidthInLumaSamples() + minCuWidth - 1) / minCuWidth) * minCuWidth; 2959 const Int paddedHeight= ((pcSlice->getPicHeightInLumaSamples() + minCuHeight - 1) / minCuHeight) * minCuHeight; 2960 #else 2957 2961 const Int paddedWidth = ((pcSlice->getSPS()->getPicWidthInLumaSamples() + minCuWidth - 1) / minCuWidth) * minCuWidth; 2958 2962 const Int paddedHeight= ((pcSlice->getSPS()->getPicHeightInLumaSamples() + minCuHeight - 1) / minCuHeight) * minCuHeight; 2963 #endif 2959 2964 const Int rawBits = paddedWidth * paddedHeight * 2960 2965 (g_bitDepth[CHANNEL_TYPE_LUMA] + 2*(g_bitDepth[CHANNEL_TYPE_CHROMA]>>log2subWidthCxsubHeightC)); -
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncSlice.h
r916 r926 99 99 TEncSbac m_entropyCodingSyncContextState; ///< context storate for state of contexts at the wavefront/WPP/entropy-coding-sync second CTU of tile-row 100 100 101 #if SVC_EXTENSION 101 #if SVC_EXTENSION && JCTVC_M0259_LAMBDAREFINEMENT 102 102 Void setUpLambda(TComSlice* slice, Double dLambda, Int iQP, Int dpeth = -1); 103 103 #else -
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncTop.cpp
r916 r926 956 956 for ( i = 0; i < min(m_cSPS.getMaxTLayers(),(UInt) MAX_TLAYER); i++ ) 957 957 { 958 #if SVC_EXTENSION 959 assert(i < MAX_TLAYER); 960 #endif 958 961 m_cSPS.setMaxDecPicBuffering(m_maxDecPicBuffering[i], i); 959 962 m_cSPS.setNumReorderPics(m_numReorderPics[i], i);
Note: See TracChangeset for help on using the changeset viewer.