[x265] [PATCH 2 of 2] cleanup: remove unused code
Min Chen
chenm003 at 163.com
Thu Aug 15 20:19:56 CEST 2013
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1376590770 -28800
# Node ID e13703d62ac22c9e4bc6f33896f59ba2cbbbd0b7
# Parent b079ba16208f86c8b9f915e420cb4f5ac6609a0e
cleanup: remove unused code
diff -r b079ba16208f -r e13703d62ac2 source/Lib/TLibEncoder/TEncGOP.cpp
--- a/source/Lib/TLibEncoder/TEncGOP.cpp Fri Aug 16 02:19:14 2013 +0800
+++ b/source/Lib/TLibEncoder/TEncGOP.cpp Fri Aug 16 02:19:30 2013 +0800
@@ -238,8 +238,6 @@
/* write various header sets. */
- entropyCoder->setEntropyCoder(cavlcCoder, slice);
-
if ((m_cfg->getPictureTimingSEIEnabled() || m_cfg->getDecodingUnitInfoSEIEnabled()) &&
(m_sps.getVuiParametersPresentFlag()) &&
((m_sps.getVuiParameters()->getHrdParameters()->getNalHrdParametersPresentFlag())
@@ -284,9 +282,6 @@
|| (m_sps.getVuiParameters()->getHrdParameters()->getVclHrdParametersPresentFlag())))
{
OutputNALUnit nalu(NAL_UNIT_PREFIX_SEI);
- entropyCoder->setEntropyCoder(cavlcCoder, slice);
- entropyCoder->setBitstream(&nalu.m_Bitstream);
-
SEIBufferingPeriod sei_buffering_period;
UInt initialCpbRemovalDelay = (90000 / 2); // 0.5 sec
@@ -336,8 +331,6 @@
{
// Gradual decoding refresh SEI
OutputNALUnit nalu(NAL_UNIT_PREFIX_SEI);
- entropyCoder->setEntropyCoder(cavlcCoder, slice);
- entropyCoder->setBitstream(&nalu.m_Bitstream);
SEIGradualDecodingRefreshInfo seiGradualDecodingRefreshInfo;
seiGradualDecodingRefreshInfo.m_gdrForegroundFlag = true; // Indicating all "foreground"
@@ -348,9 +341,6 @@
}
// Recovery point SEI
OutputNALUnit nalu(NAL_UNIT_PREFIX_SEI);
- entropyCoder->setEntropyCoder(cavlcCoder, slice);
- entropyCoder->setBitstream(&nalu.m_Bitstream);
-
SEIRecoveryPoint sei_recovery_point;
sei_recovery_point.m_recoveryPocCnt = 0;
sei_recovery_point.m_exactMatchingFlag = (slice->getPOC() == 0) ? (true) : (false);
@@ -522,8 +512,6 @@
}
pic->compressMotion();
- entropyCoder->setEntropyCoder(cavlcCoder, slice);
-
calculateHashAndPSNR(pic, pic->getPicYuvRec(), accessUnit);
if ((m_cfg->getPictureTimingSEIEnabled() || m_cfg->getDecodingUnitInfoSEIEnabled()) &&
More information about the x265-devel
mailing list