[x265] [PATCH 1 of 4] cleanup: remove unused code

Min Chen chenm003 at 163.com
Thu Aug 15 19:35:49 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1376587988 -28800
# Node ID 8a995e2f6b776b4a07bab3b74ec75757b3714346
# Parent  32b7db776b914d3ee509b097f07a464f4cd2506f
cleanup: remove unused code

diff -r 32b7db776b91 -r 8a995e2f6b77 source/Lib/TLibEncoder/TEncGOP.cpp
--- a/source/Lib/TLibEncoder/TEncGOP.cpp	Thu Aug 15 02:15:45 2013 -0500
+++ b/source/Lib/TLibEncoder/TEncGOP.cpp	Fri Aug 16 01:33:08 2013 +0800
@@ -546,8 +546,6 @@
 
     /* write various header sets. */
 
-    entropyCoder->setEntropyCoder(cavlcCoder, slice);
-
     if ((m_cfg->getPictureTimingSEIEnabled() || m_cfg->getDecodingUnitInfoSEIEnabled()) &&
         (m_sps.getVuiParametersPresentFlag()) &&
         ((m_sps.getVuiParameters()->getHrdParameters()->getNalHrdParametersPresentFlag())
@@ -592,8 +590,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;
 
@@ -644,8 +640,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"
@@ -656,8 +650,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;
@@ -856,7 +848,6 @@
         OutputNALUnit onalu(NAL_UNIT_SUFFIX_SEI, 0);
 
         /* write the SEI messages */
-        entropyCoder->setEntropyCoder(cavlcCoder, slice);
         m_seiWriter.writeSEImessage(onalu.m_Bitstream, sei_recon_picture_digest, slice->getSPS());
         writeRBSPTrailingBits(onalu.m_Bitstream);
 
@@ -957,7 +948,6 @@
         if (m_cfg->getPictureTimingSEIEnabled())
         {
             OutputNALUnit onalu(NAL_UNIT_PREFIX_SEI, 0);
-            entropyCoder->setEntropyCoder(cavlcCoder, slice);
             m_seiWriter.writeSEImessage(onalu.m_Bitstream, pictureTimingSEI, slice->getSPS());
             writeRBSPTrailingBits(onalu.m_Bitstream);
             UInt seiPositionInAu = xGetFirstSeiLocation(accessUnit);
@@ -974,7 +964,6 @@
         }
         if (m_cfg->getDecodingUnitInfoSEIEnabled() && hrd->getSubPicCpbParamsPresentFlag())
         {
-            entropyCoder->setEntropyCoder(cavlcCoder, slice);
             for (Int i = 0; i < (pictureTimingSEI.m_numDecodingUnitsMinus1 + 1); i++)
             {
                 OutputNALUnit onalu(NAL_UNIT_PREFIX_SEI, 0);



More information about the x265-devel mailing list