Changeset 1225 in 3DVCSoftware for branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder
- Timestamp:
- 22 May 2015, 05:38:04 (10 years ago)
- Location:
- branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncCavlc.cpp
r1200 r1225 2182 2182 xCodePredWeightTable( pcSlice ); 2183 2183 } 2184 #if H_3D_IC2184 #if NH_3D_IC 2185 2185 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) 2186 2186 && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 … … 2191 2191 if( pcSlice->getApplyIC() ) 2192 2192 { 2193 WRITE_FLAG( pcSlice->getIcSkipParseFlag() ? 1 : 0, " ic_skip_mergeidx0" );2193 WRITE_FLAG( pcSlice->getIcSkipParseFlag() ? 1 : 0, "slice_ic_disabled_merge_zero_idx_flag" ); 2194 2194 } 2195 2195 } … … 2585 2585 #endif 2586 2586 2587 #if H_3D_IC2587 #if NH_3D_IC 2588 2588 Void TEncCavlc::codeICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2589 2589 { -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncCavlc.h
r1200 r1225 129 129 Void codeARPW ( TComDataCU* pcCU, UInt uiAbsPartIdx ); 130 130 #endif 131 #if H_3D_IC131 #if NH_3D_IC 132 132 Void codeICFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx ); 133 133 #endif -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncCfg.h
r1200 r1225 572 572 Void setMaxTotalCUDepth ( UInt u ) { m_maxTotalCUDepth = u; } 573 573 Void setLog2DiffMaxMinCodingBlockSize( UInt u ) { m_log2DiffMaxMinCodingBlockSize = u; } 574 #if H_3D_IC574 #if NH_3D_IC 575 575 Void setUseIC ( Bool bVal ) { m_bUseIC = bVal; } 576 576 Bool getUseIC () { return m_bUseIC; } -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncCu.cpp
r1200 r1225 505 505 } 506 506 507 #if H_3D_IC507 #if NH_3D_IC 508 508 Bool bICEnabled = rpcTempCU->getSlice()->getViewIndex() && ( rpcTempCU->getSlice()->getSliceType() == P_SLICE || rpcTempCU->getSlice()->getSliceType() == B_SLICE ) && !rpcTempCU->getSlice()->getIsDepth(); 509 509 bICEnabled = bICEnabled && rpcTempCU->getSlice()->getApplyIC(); … … 642 642 if( rpcBestCU->getSlice()->getSliceType() != I_SLICE ) 643 643 { 644 #if H_3D_IC644 #if NH_3D_IC 645 645 for( UInt uiICId = 0; uiICId < ( bICEnabled ? 2 : 1 ); uiICId++ ) 646 646 { … … 650 650 if(m_pcEncCfg->getUseEarlySkipDetection()) 651 651 { 652 #if H_3D_IC652 #if NH_3D_IC 653 653 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth); 654 654 #endif … … 664 664 } 665 665 // SKIP 666 #if H_3D_IC666 #if NH_3D_IC 667 667 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth); 668 668 #endif … … 680 680 { 681 681 // 2Nx2N, NxN 682 #if H_3D_IC682 #if NH_3D_IC 683 683 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth); 684 684 #endif … … 709 709 } 710 710 } 711 #if H_3D_IC711 #if NH_3D_IC 712 712 } 713 713 #endif … … 1577 1577 m_pcEntropyCoder->encodeARPW( pcCU , uiAbsPartIdx ); 1578 1578 #endif 1579 #if H_3D_IC1579 #if NH_3D_IC 1580 1580 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx ); 1581 1581 #endif … … 1620 1620 m_pcEntropyCoder->encodeARPW( pcCU , uiAbsPartIdx ); 1621 1621 #endif 1622 #if H_3D_IC1622 #if NH_3D_IC 1623 1623 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx ); 1624 1624 #endif … … 1777 1777 } 1778 1778 UChar uhDepth = rpcTempCU->getDepth( 0 ); 1779 #if H_3D_IC1779 #if NH_3D_IC 1780 1780 Bool bICFlag = rpcTempCU->getICFlag( 0 ); 1781 1781 #endif … … 1862 1862 rpcTempCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uhDepth ); // interprets depth relative to LCU level 1863 1863 rpcTempCU->setARPWSubParts( (UChar)nARPW , 0 , uhDepth ); 1864 #if H_3D_IC1864 #if NH_3D_IC 1865 1865 rpcTempCU->setICFlagSubParts( bICFlag, 0, 0, uhDepth ); 1866 1866 #endif … … 1905 1905 for( UInt uiMergeCand = 0; uiMergeCand < numValidMergeCand; ++uiMergeCand ) 1906 1906 { 1907 #if H_3D_IC1907 #if NH_3D_IC 1908 1908 if( rpcTempCU->getSlice()->getApplyIC() && rpcTempCU->getSlice()->getIcSkipParseFlag() ) 1909 1909 { … … 1922 1922 // set MC parameters 1923 1923 rpcTempCU->setPredModeSubParts( MODE_INTER, 0, uhDepth ); // interprets depth relative to CTU level 1924 #if H_3D_IC1924 #if NH_3D_IC 1925 1925 rpcTempCU->setICFlagSubParts( bICFlag, 0, 0, uhDepth ); 1926 1926 #endif -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncEntropy.cpp
r1200 r1225 148 148 } 149 149 150 #if H_3D_IC150 #if NH_3D_IC 151 151 Void TEncEntropy::encodeICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 152 152 { 153 #if H_3D_ARP 153 154 if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() || pcCU->getARPW( uiAbsPartIdx ) > 0 ) 155 #else 156 if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() ) 157 #endif 154 158 { 155 159 return; -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncEntropy.h
r1200 r1225 87 87 virtual Void codeARPW ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0; 88 88 #endif 89 #if H_3D_IC89 #if NH_3D_IC 90 90 virtual Void codeICFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0; 91 91 #endif … … 176 176 Void encodeARPW ( TComDataCU* pcCU, UInt uiAbspartIdx ); 177 177 #endif 178 #if H_3D_IC178 #if NH_3D_IC 179 179 Void encodeICFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false ); 180 180 #endif -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncGOP.cpp
r1213 r1225 155 155 #endif 156 156 #endif 157 #if H_3D_IC157 #if NH_3D_IC 158 158 m_aICEnableCandidate = pcTEncTop->getICEnableCandidate(); 159 159 m_aICEnableNum = pcTEncTop->getICEnableNum(); … … 1490 1490 } 1491 1491 #endif 1492 #if H_3D_IC1492 #if NH_3D_IC 1493 1493 pcSlice->setICEnableCandidate( m_aICEnableCandidate ); 1494 1494 pcSlice->setICEnableNum( m_aICEnableNum ); -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncGOP.h
r1200 r1225 132 132 #endif 133 133 #endif 134 #if H_3D_IC134 #if NH_3D_IC 135 135 Int* m_aICEnableCandidate; 136 136 Int* m_aICEnableNum; -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncSbac.cpp
r1200 r1225 71 71 , m_cCUPUARPWSCModel ( 1, 1, NUM_ARPW_CTX , m_contextModels + m_numContextModels, m_numContextModels) 72 72 #endif 73 #if H_3D_IC73 #if NH_3D_IC 74 74 , m_cCUICFlagSCModel ( 1, 1, NUM_IC_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 75 75 #endif … … 151 151 m_cCUPUARPWSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_ARPW ); 152 152 #endif 153 #if H_3D_IC153 #if NH_3D_IC 154 154 m_cCUICFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_IC_FLAG ); 155 155 #endif … … 238 238 curCost += m_cCUPUARPWSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_ARPW ); 239 239 #endif 240 #if H_3D_IC240 #if NH_3D_IC 241 241 curCost += m_cCUICFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_IC_FLAG ); 242 242 #endif … … 305 305 m_cCUPUARPWSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_ARPW ); 306 306 #endif 307 #if H_3D_IC308 m_cCUICFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_IC_FLAG );309 #endif310 307 #if H_3D_DIM 311 308 m_cDepthIntraModeSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_DEPTH_INTRA_MODE ); … … 994 991 #endif 995 992 996 #if H_3D_IC993 #if NH_3D_IC 997 994 /** code Illumination Compensation flag 998 995 * \param pcCU -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncSbac.h
r1200 r1225 143 143 Void codeARPW ( TComDataCU* pcCU, UInt uiAbsPartIdx ); 144 144 #endif 145 #if H_3D_IC145 #if NH_3D_IC 146 146 Void codeICFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx ); 147 147 #endif … … 215 215 ContextModel3DBuffer m_cCUPUARPWSCModel; 216 216 #endif 217 #if H_3D_IC217 #if NH_3D_IC 218 218 ContextModel3DBuffer m_cCUICFlagSCModel; 219 219 #endif -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncSearch.cpp
r1200 r1225 340 340 341 341 piRefSrch = rcStruct.piRefY + iSearchY * rcStruct.iYStride + iSearchX; 342 #if H_3D_IC342 #if NH_3D_IC 343 343 m_cDistParam.bUseIC = pcPatternKey->getICFlag(); 344 344 #endif … … 851 851 852 852 setDistParamComp(COMPONENT_Y); 853 #if H_3D_IC853 #if NH_3D_IC 854 854 m_cDistParam.bUseIC = pcPatternKey->getICFlag(); 855 855 #endif … … 3857 3857 iWidth, iHeight, m_pcEncCfg->getUseHADME() && (pcCU->getCUTransquantBypass(iPartIdx) == 0) ); 3858 3858 3859 #if H_3D_IC3859 #if NH_3D_IC 3860 3860 cDistParam.bUseIC = false; 3861 3861 #endif … … 5000 5000 pcCU->clipMv( cMvCand ); 5001 5001 5002 #if H_3D_IC5002 #if NH_3D_IC 5003 5003 Bool bICFlag = pcCU->getICFlag( uiPartAddr ) && ( pcCU->getSlice()->getViewIndex() != pcCU->getSlice()->getRefPic( eRefPicList, iRefIdx )->getViewIndex() ); 5004 5004 #endif … … 5015 5015 , false 5016 5016 #endif 5017 #if H_3D_IC5017 #if NH_3D_IC 5018 5018 , bICFlag 5019 5019 #endif … … 5060 5060 pcCU->getPartIndexAndSize( iPartIdx, uiPartAddr, iRoiWidth, iRoiHeight ); 5061 5061 5062 #if H_3D_IC5062 #if NH_3D_IC 5063 5063 Bool bICFlag = pcCU->getICFlag( uiPartAddr ) && ( pcCU->getSlice()->getViewIndex() != pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->getViewIndex() ); 5064 5064 pcPatternKey->setICFlag( bICFlag ); … … 5250 5250 m_cDistParam.bitDepth = pcPatternKey->getBitDepthY(); 5251 5251 5252 #if H_3D_IC5252 #if NH_3D_IC 5253 5253 m_cDistParam.bUseIC = pcPatternKey->getICFlag(); 5254 5254 #endif … … 5784 5784 m_pcEntropyCoder->encodeARPW( pcCU, 0 ); 5785 5785 #endif 5786 #if H_3D_IC5786 #if NH_3D_IC 5787 5787 m_pcEntropyCoder->encodeICFlag( pcCU, 0, true ); 5788 5788 #endif … … 7100 7100 m_pcEntropyCoder->encodeARPW( pcCU, 0 ); 7101 7101 #endif 7102 #if H_3D_IC7102 #if NH_3D_IC 7103 7103 m_pcEntropyCoder->encodeICFlag( pcCU, 0, true ); 7104 7104 #endif … … 7127 7127 m_pcEntropyCoder->encodeARPW( pcCU , 0 ); 7128 7128 #endif 7129 #if H_3D_IC7129 #if NH_3D_IC 7130 7130 m_pcEntropyCoder->encodeICFlag( pcCU, 0, true ); 7131 7131 #endif -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncSlice.cpp
r1200 r1225 226 226 rpcSlice->setPicOutputFlag( true ); 227 227 rpcSlice->setPOC( pocCurr ); 228 #if H_3D_IC228 #if NH_3D_IC 229 229 rpcSlice->setApplyIC( false ); 230 230 #endif … … 823 823 #endif 824 824 825 #if H_3D_IC826 if ( pcEncTop->getViewIndex() && pcEncTop->getUseIC() &&825 #if NH_3D_IC 826 if ( m_pcCfg->getViewIndex() && m_pcCfg->getUseIC() && 827 827 !( ( pcSlice->getSliceType() == P_SLICE && pcSlice->getPPS()->getUseWP() ) || ( pcSlice->getSliceType() == B_SLICE && pcSlice->getPPS()->getWPBiPred() ) ) 828 828 ) 829 829 { 830 pcSlice ->xSetApplyIC( pcEncTop->getUseICLowLatencyEnc());830 pcSlice ->xSetApplyIC(m_pcCfg->getUseICLowLatencyEnc()); 831 831 if ( pcSlice->getApplyIC() ) 832 832 { -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncTop.cpp
r1200 r1225 79 79 m_ivPicLists = NULL; 80 80 #endif 81 #if H_3D_IC81 #if NH_3D_IC 82 82 m_aICEnableCandidate = NULL; 83 83 m_aICEnableNum = NULL; … … 227 227 228 228 xInitPPSforTiles(); 229 #if H_3D_IC229 #if NH_3D_IC 230 230 m_aICEnableCandidate = new Int[ 10 ]; 231 231 m_aICEnableNum = new Int[ 10 ]; -
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncTop.h
r1200 r1225 81 81 TComPicLists* m_ivPicLists; ///< access to picture lists of other layers 82 82 #endif 83 #if H_3D_IC83 #if NH_3D_IC 84 84 Int *m_aICEnableCandidate; 85 85 Int *m_aICEnableNum; … … 158 158 TComPicLists* getIvPicLists() { return m_ivPicLists; } 159 159 #endif 160 #if H_3D_IC160 #if NH_3D_IC 161 161 Int* getICEnableCandidate() { return m_aICEnableCandidate; } 162 162 Int* getICEnableNum() { return m_aICEnableNum; } … … 208 208 Void setSps3dExtension ( TComSps3dExtension sps3dExtension ) { m_cSPS.setSps3dExtension( sps3dExtension ); }; 209 209 #endif 210 #if H_3D_IC210 #if NH_3D_IC 211 211 Void setICEnableCandidate ( Int* ICEnableCandidate) { m_aICEnableCandidate = ICEnableCandidate; } 212 212 Void setICEnableNum ( Int* ICEnableNum) { m_aICEnableNum = ICEnableNum; }
Note: See TracChangeset for help on using the changeset viewer.