[x265] [PATCH] NAL: Remove unused NALUnitEBSP functions

Gopu Govindaswamy gopu at multicorewareinc.com
Wed Sep 25 08:04:00 CEST 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1380089030 -19800
# Node ID 4d0ced5c64fed290302b730ef8ac7d8613420a0d
# Parent  bb88bbe34c95b3f398a6af63c05e06a3fe7bc7d3
NAL: Remove unused NALUnitEBSP functions

Removed the unused NALUnitEBSP(OutputNALUnit& nalu) and copyNaluData() methods from NAL

diff -r bb88bbe34c95 -r 4d0ced5c64fe source/Lib/TLibCommon/NAL.h
--- a/source/Lib/TLibCommon/NAL.h	Wed Sep 25 11:28:06 2013 +0530
+++ b/source/Lib/TLibCommon/NAL.h	Wed Sep 25 11:33:50 2013 +0530
@@ -113,7 +113,6 @@
      * the NALUnit header, then the rbsp_bytes including any
      * emulation_prevention_three_byte symbols.
      */
-    NALUnitEBSP(OutputNALUnit& nalu);
     void init(OutputNALUnit& nalu);
 };
 }
diff -r bb88bbe34c95 -r 4d0ced5c64fe source/Lib/TLibEncoder/NALwrite.cpp
--- a/source/Lib/TLibEncoder/NALwrite.cpp	Wed Sep 25 11:28:06 2013 +0530
+++ b/source/Lib/TLibEncoder/NALwrite.cpp	Wed Sep 25 11:33:50 2013 +0530
@@ -143,15 +143,5 @@
     bs.writeAlignZero();
 }
 
-/**
- * Copy NALU from naluSrc to naluDest
- */
-void copyNaluData(OutputNALUnit& naluDest, const OutputNALUnit& naluSrc)
-{
-    naluDest.m_nalUnitType = naluSrc.m_nalUnitType;
-    naluDest.m_reservedZero6Bits  = naluSrc.m_reservedZero6Bits;
-    naluDest.m_temporalId  = naluSrc.m_temporalId;
-    naluDest.m_Bitstream   = naluSrc.m_Bitstream;
-}
 }
 //! \}
diff -r bb88bbe34c95 -r 4d0ced5c64fe source/Lib/TLibEncoder/NALwrite.h
--- a/source/Lib/TLibEncoder/NALwrite.h	Wed Sep 25 11:28:06 2013 +0530
+++ b/source/Lib/TLibEncoder/NALwrite.h	Wed Sep 25 11:33:50 2013 +0530
@@ -77,12 +77,6 @@
 void write(uint8_t*& out, OutputNALUnit& nalu, UInt& packetSize);
 void writeRBSPTrailingBits(TComOutputBitstream& bs);
 
-inline NALUnitEBSP::NALUnitEBSP(OutputNALUnit& nalu)
-    : NALUnit(nalu)
-{
-    write(m_nalUnitData, nalu, m_packetSize);
-}
-
 void inline NALUnitEBSP::init(OutputNALUnit& nalu)
 {
     m_nalUnitType = nalu.m_nalUnitType;
@@ -91,7 +85,6 @@
     write(m_nalUnitData, nalu, m_packetSize);
 }
 
-void copyNaluData(OutputNALUnit& naluDest, const OutputNALUnit& naluSrc);
 }
 
 //! \}


More information about the x265-devel mailing list