[x265] [PATCH] TComSlice : Removed Unused std::vector Variable

Steve Borho steve at borho.org
Wed Sep 4 18:24:56 CEST 2013


On Wed, Sep 4, 2013 at 6:36 AM, Gopu Govindaswamy <gopu at multicorewareinc.com
> wrote:

> # HG changeset patch
> # User Gopu Govindaswamy <gopu at multicorewareinc.com>
> # Date 1378294554 -19800
> # Node ID a42c1a758f1ffd183b4b7679d9ef0fb2049afc19
> # Parent  c35e5d8148f07bd13297cc7daa0c9b4f9e288f6a
> TComSlice : Removed Unused std::vector Variable
>

nice!  my favorite kind of patch, all deletes


>
> diff -r c35e5d8148f0 -r a42c1a758f1f source/Lib/TLibCommon/TComSlice.h
> --- a/source/Lib/TLibCommon/TComSlice.h Wed Sep 04 15:50:27 2013 +0530
> +++ b/source/Lib/TLibCommon/TComSlice.h Wed Sep 04 17:05:54 2013 +0530
> @@ -1425,7 +1425,6 @@
>
>      wpACDCParam     m_weightACDCParam[3];                 // [0:Y, 1:U,
> 2:V]
>
> -    std::vector<UInt> m_tileByteLocation;
>      UInt        m_tileOffstForMultES;
>
>      UInt*       m_substreamSizes;
> @@ -1674,20 +1673,6 @@
>      void  getWpAcDcParam(wpACDCParam *&wp);
>      void  initWpAcDcParam();
>
> -    void setTileLocationCount(UInt cnt)          { return
> m_tileByteLocation.resize(cnt); }
> -
> -    UInt getTileLocationCount()                  { return
> (UInt)m_tileByteLocation.size(); }
> -
> -    void setTileLocation(int idx, UInt location)
> -    {
> -        assert(idx < (int)m_tileByteLocation.size());
> -        m_tileByteLocation[idx] = location;
> -    }
> -
> -    void addTileLocation(UInt location)          {
> m_tileByteLocation.push_back(location); }
> -
> -    UInt getTileLocation(int idx)                { return
> m_tileByteLocation[idx]; }
> -
>      void setTileOffstForMultES(UInt offset)      { m_tileOffstForMultES =
> offset; }
>
>      UInt getTileOffstForMultES()                 { return
> m_tileOffstForMultES; }
> diff -r c35e5d8148f0 -r a42c1a758f1f source/encoder/frameencoder.cpp
> --- a/source/encoder/frameencoder.cpp   Wed Sep 04 15:50:27 2013 +0530
> +++ b/source/encoder/frameencoder.cpp   Wed Sep 04 17:05:54 2013 +0530
> @@ -608,7 +608,6 @@
>      m_sbacCoder.load(getSbacCoder(0));
>
>      slice->setTileOffstForMultES(0);
> -    slice->setTileLocationCount(0);
>      encodeSlice(pic, outStreams);
>
>      {
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>



-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.videolan.org/private/x265-devel/attachments/20130904/59bf9b2d/attachment-0001.html>


More information about the x265-devel mailing list