[x265] [PATCH] tcomBitstream: Removed Unused std::vector class code

Gopu Govindaswamy gopu at multicorewareinc.com
Tue Sep 24 13:57:15 CEST 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1380023106 -19800
# Node ID 1752b4fce57e6e78a626642c07a1fd498c650256
# Parent  70ba2b3b7bc972ed04f5fd135d940e4759315fa8
tcomBitstream: Removed Unused std::vector class code

diff -r 70ba2b3b7bc9 -r 1752b4fce57e source/Lib/TLibCommon/TComBitStream.cpp
--- a/source/Lib/TLibCommon/TComBitStream.cpp	Tue Sep 24 16:15:10 2013 +0530
+++ b/source/Lib/TLibCommon/TComBitStream.cpp	Tue Sep 24 17:15:06 2013 +0530
@@ -208,27 +208,4 @@
     return cnt;
 }
 
-/**
- * insert the contents of the bytealigned (and flushed) bitstream src
- * into this at byte position pos.
- */
-void TComOutputBitstream::insertAt(const TComOutputBitstream& src, UInt pos)
-{
-    assert(0 == src.getNumberOfWrittenBits() % 8);
-
-    vector<uint8_t>::iterator at = this->m_fifo->begin() + pos;
-    this->m_fifo->insert(at, src.m_fifo->begin(), src.m_fifo->end());
-}
-
-TComOutputBitstream& TComOutputBitstream::operator =(const TComOutputBitstream& src)
-{
-    vector<uint8_t>::iterator at = this->m_fifo->begin();
-    this->m_fifo->insert(at, src.m_fifo->begin(), src.m_fifo->end());
-
-    this->m_num_held_bits             = src.m_num_held_bits;
-    this->m_held_bits                 = src.m_held_bits;
-
-    return *this;
-}
-
 //! \}
diff -r 70ba2b3b7bc9 -r 1752b4fce57e source/Lib/TLibCommon/TComBitStream.h
--- a/source/Lib/TLibCommon/TComBitStream.h	Tue Sep 24 16:15:10 2013 +0530
+++ b/source/Lib/TLibCommon/TComBitStream.h	Tue Sep 24 17:15:06 2013 +0530
@@ -142,16 +142,13 @@
      */
     UInt getNumberOfWrittenBits() const { return UInt(m_fifo->size()) * 8 + m_num_held_bits; }
 
-    void insertAt(const TComOutputBitstream& src, UInt pos);
-
-    /**
+       /**
      * Return a reference to the internal fifo
      */
     std::vector<uint8_t>& getFIFO() { return *m_fifo; }
 
     UChar getHeldBits()          { return m_held_bits; }
 
-    TComOutputBitstream& operator =(const TComOutputBitstream& src);
     /** Return a reference to the internal fifo */
     std::vector<uint8_t>& getFIFO() const { return *m_fifo; }
 


More information about the x265-devel mailing list