Changeset 321 in SHVCSoftware for branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncCu.cpp
- Timestamp:
- 2 Aug 2013, 22:52:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncCu.cpp
r319 r321 763 763 } 764 764 } 765 #if INTRA_BL766 if(m_pcPicYuvRecBase)767 {768 xCheckRDCostIntraBL( rpcBestCU, rpcTempCU );769 rpcTempCU->initEstData( uiDepth, iQP );770 }771 #endif772 765 #if (ENCODER_FAST_MODE) 773 766 if(pcPic->getLayerId() > 0) … … 1215 1208 return; 1216 1209 } 1217 #if INTRA_BL1218 m_pcEntropyCoder->encodeIntraBLFlag( pcCU, uiAbsPartIdx );1219 if ( !pcCU->isIntraBL( uiAbsPartIdx ) )1220 {1221 #endif1222 1210 m_pcEntropyCoder->encodePredMode( pcCU, uiAbsPartIdx ); 1223 1211 … … 1238 1226 // prediction Info ( Intra : direction mode, Inter : Mv, reference idx ) 1239 1227 m_pcEntropyCoder->encodePredInfo( pcCU, uiAbsPartIdx ); 1240 #if INTRA_BL1241 }1242 #endif1243 1228 1244 1229 // Encode Coefficients … … 1568 1553 1569 1554 m_pcEntropyCoder->resetBits(); 1570 #if INTRA_BL 1571 m_pcEntropyCoder->encodeIntraBLFlag ( rpcTempCU, 0, true ); 1572 #endif 1555 1573 1556 if ( rpcTempCU->getSlice()->getPPS()->getTransquantBypassEnableFlag()) 1574 1557 { … … 1624 1607 1625 1608 m_pcEntropyCoder->resetBits(); 1626 #if INTRA_BL 1627 m_pcEntropyCoder->encodeIntraBLFlag ( rpcTempCU, 0, true ); 1628 #endif 1609 1629 1610 if ( rpcTempCU->getSlice()->getPPS()->getTransquantBypassEnableFlag()) 1630 1611 { … … 1879 1860 #endif 1880 1861 1881 #if INTRA_BL1882 Void TEncCu::xCheckRDCostIntraBL( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU )1883 {1884 UInt uiDepth = rpcTempCU->getDepth( 0 );1885 rpcTempCU->setSkipFlagSubParts( false, 0, uiDepth );1886 rpcTempCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth );1887 rpcTempCU->setPredModeSubParts( MODE_INTRA_BL, 0, uiDepth );1888 rpcTempCU->setCUTransquantBypassSubParts( m_pcEncCfg->getCUTransquantBypassFlagValue(), 0, uiDepth );1889 1890 m_pcPredSearch->setBaseRecPic( m_pcPicYuvRecBase );1891 m_pcPredSearch->estIntraBLPredQT( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth] );1892 1893 m_pcEntropyCoder->resetBits();1894 m_pcEntropyCoder->encodeIntraBLFlag ( rpcTempCU, 0, true );1895 m_pcEntropyCoder->encodeSkipFlag( rpcTempCU, 0, true );1896 if ( rpcTempCU->getSlice()->getPPS()->getTransquantBypassEnableFlag())1897 {1898 m_pcEntropyCoder->encodeCUTransquantBypassFlag( rpcTempCU, 0, true );1899 }1900 1901 // Encode Coefficients1902 Bool bCodeDQP = getdQPFlag();1903 m_pcEntropyCoder->encodeCoeff( rpcTempCU, 0, uiDepth, rpcTempCU->getWidth (0), rpcTempCU->getHeight(0), bCodeDQP );1904 setdQPFlag( bCodeDQP );1905 1906 if( m_bUseSBACRD ) m_pcRDGoOnSbacCoder->store(m_pppcRDSbacCoder[uiDepth][CI_TEMP_BEST]);1907 1908 rpcTempCU->getTotalBits() = m_pcEntropyCoder->getNumberOfWrittenBits();1909 if(m_pcEncCfg->getUseSBACRD())1910 {1911 rpcTempCU->getTotalBins() = ((TEncBinCABAC *)((TEncSbac*)m_pcEntropyCoder->m_pcEntropyCoderIf)->getEncBinIf())->getBinsCoded();1912 }1913 rpcTempCU->getTotalCost() = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() );1914 1915 xCheckDQP( rpcTempCU );1916 xCheckBestMode(rpcBestCU, rpcTempCU, uiDepth);1917 }1918 #endif1919 1862 #if (ENCODER_FAST_MODE) 1920 1863 Void TEncCu::xCheckRDCostILRUni(TComDataCU *&rpcBestCU, TComDataCU *&rpcTempCU, UInt refLayerId)
Note: See TracChangeset for help on using the changeset viewer.