[x265-commits] [x265] pixel: modified sse_sp8 with a comman macro SSE_SP8x1

Yuvaraj Venkatesh yuvaraj at multicorewareinc.com
Thu Oct 10 10:05:18 CEST 2013


details:   http://hg.videolan.org/x265/rev/fb043c201cce
branches:  
changeset: 4346:fb043c201cce
user:      Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
date:      Thu Oct 10 11:57:14 2013 +0530
description:
pixel: modified sse_sp8 with a comman macro SSE_SP8x1
Subject: [x265] pixel: replace sse_sp16 vector class with intrinsic

details:   http://hg.videolan.org/x265/rev/087267802b1c
branches:  
changeset: 4347:087267802b1c
user:      Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
date:      Thu Oct 10 12:05:25 2013 +0530
description:
pixel: replace sse_sp16 vector class with intrinsic
Subject: [x265] pixel: replace sse_sp24 vector class with intrinsic

details:   http://hg.videolan.org/x265/rev/cae449cb7965
branches:  
changeset: 4348:cae449cb7965
user:      Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
date:      Thu Oct 10 12:10:24 2013 +0530
description:
pixel: replace sse_sp24 vector class with intrinsic
Subject: [x265] pixel: replace sse_sp32 vector class with intrinsic

details:   http://hg.videolan.org/x265/rev/92b11584470c
branches:  
changeset: 4349:92b11584470c
user:      Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
date:      Thu Oct 10 12:21:58 2013 +0530
description:
pixel: replace sse_sp32 vector class with intrinsic
Subject: [x265] pixel: replace sse_sp48 vector class with intrinsic

details:   http://hg.videolan.org/x265/rev/1d872b8c6480
branches:  
changeset: 4350:1d872b8c6480
user:      Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
date:      Thu Oct 10 12:29:30 2013 +0530
description:
pixel: replace sse_sp48 vector class with intrinsic
Subject: [x265] pixel: replace sse_sp64 vector class with intrinsic

details:   http://hg.videolan.org/x265/rev/250b1b037e94
branches:  
changeset: 4351:250b1b037e94
user:      Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
date:      Thu Oct 10 12:34:55 2013 +0530
description:
pixel: replace sse_sp64 vector class with intrinsic
Subject: [x265] sse: move intrinsic functions to pixel-sse41.cpp

details:   http://hg.videolan.org/x265/rev/02fd071a875b
branches:  
changeset: 4352:02fd071a875b
user:      Steve Borho <steve at borho.org>
date:      Thu Oct 10 02:45:27 2013 -0500
description:
sse: move intrinsic functions to pixel-sse41.cpp
Subject: [x265] ipfilter-ssse3.cpp: Replace filterConvertShortToPel vector class function with intrinsic.

details:   http://hg.videolan.org/x265/rev/fc4bc74c095a
branches:  
changeset: 4353:fc4bc74c095a
user:      Dnyaneshwar Gorade <dnyaneshwar at multicorewareinc.com>
date:      Thu Oct 10 12:58:05 2013 +0530
description:
ipfilter-ssse3.cpp: Replace filterConvertShortToPel vector class function with intrinsic.
Subject: [x265] ipfilter-ssse3.cpp: Replace filterConvertPelToShort vector class function with intrinsic.

details:   http://hg.videolan.org/x265/rev/b7b00d3533b1
branches:  
changeset: 4354:b7b00d3533b1
user:      Dnyaneshwar Gorade <dnyaneshwar at multicorewareinc.com>
date:      Thu Oct 10 11:59:16 2013 +0530
description:
ipfilter-ssse3.cpp: Replace filterConvertPelToShort vector class function with intrinsic.
Subject: [x265] ipfilter: remove vector class headers from ipfilter-ssse3.cpp

details:   http://hg.videolan.org/x265/rev/29844e1eb697
branches:  
changeset: 4355:29844e1eb697
user:      Steve Borho <steve at borho.org>
date:      Thu Oct 10 02:53:45 2013 -0500
description:
ipfilter: remove vector class headers from ipfilter-ssse3.cpp
Subject: [x265] sse: move last SSE function into vector-class section of pixel-sse41.cpp

details:   http://hg.videolan.org/x265/rev/7b4685130793
branches:  
changeset: 4356:7b4685130793
user:      Steve Borho <steve at borho.org>
date:      Thu Oct 10 02:49:53 2013 -0500
description:
sse: move last SSE function into vector-class section of pixel-sse41.cpp
Subject: [x265] tcomslice: removed unused set methods in TComReferencePictureSet class

details:   http://hg.videolan.org/x265/rev/bb43823efa92
branches:  
changeset: 4357:bb43823efa92
user:      Gopu Govindaswamy <gopu at multicorewareinc.com>
date:      Thu Oct 10 10:51:43 2013 +0530
description:
tcomslice: removed unused set methods in TComReferencePictureSet class
Subject: [x265] tcomslice:remove unused set methods

details:   http://hg.videolan.org/x265/rev/c2fb3d12c812
branches:  
changeset: 4358:c2fb3d12c812
user:      Gopu Govindaswamy <gopu at multicorewareinc.com>
date:      Thu Oct 10 12:06:38 2013 +0530
description:
tcomslice:remove unused set methods
Subject: [x265] remove unused <algorithm> includes

details:   http://hg.videolan.org/x265/rev/dce6ced4b4a3
branches:  
changeset: 4359:dce6ced4b4a3
user:      Gopu Govindaswamy <gopu at multicorewareinc.com>
date:      Thu Oct 10 12:10:36 2013 +0530
description:
remove unused <algorithm> includes
Subject: [x265] tcomtrquant:remove unused methods

details:   http://hg.videolan.org/x265/rev/a79ecf3a7875
branches:  
changeset: 4360:a79ecf3a7875
user:      Gopu Govindaswamy <gopu at multicorewareinc.com>
date:      Thu Oct 10 12:29:41 2013 +0530
description:
tcomtrquant:remove unused methods

diffstat:

 source/Lib/TLibCommon/CommonDef.h     |    1 -
 source/Lib/TLibCommon/TComDataCU.h    |    1 -
 source/Lib/TLibCommon/TComSlice.cpp   |   20 -
 source/Lib/TLibCommon/TComSlice.h     |   26 -
 source/Lib/TLibCommon/TComTrQuant.cpp |   91 -----
 source/Lib/TLibCommon/TComTrQuant.h   |    5 -
 source/Lib/TLibEncoder/NALwrite.cpp   |    3 -
 source/Lib/TLibEncoder/TEncSbac.cpp   |    1 -
 source/common/dct.cpp                 |    1 -
 source/common/pixel.cpp               |    1 -
 source/common/vec/dct-sse3.cpp        |    1 -
 source/common/vec/dct-sse41.cpp       |    1 -
 source/common/vec/ipfilter-ssse3.cpp  |  218 ++++++++---
 source/common/vec/pixel-sse41.cpp     |  580 +++++++++++++++++++++++++++++++++-
 source/common/vec/sse.inc             |  572 ---------------------------------
 source/encoder/frameencoder.cpp       |    1 -
 source/x265.cpp                       |    1 -
 17 files changed, 729 insertions(+), 795 deletions(-)

diffs (truncated from 1815 to 300 lines):

diff -r 6a6f72ea32a3 -r a79ecf3a7875 source/Lib/TLibCommon/CommonDef.h
--- a/source/Lib/TLibCommon/CommonDef.h	Thu Oct 10 15:05:46 2013 +0800
+++ b/source/Lib/TLibCommon/CommonDef.h	Thu Oct 10 12:29:41 2013 +0530
@@ -38,7 +38,6 @@
 #ifndef X265_COMMONDEF_H
 #define X265_COMMONDEF_H
 
-#include <algorithm>
 #include <cstdlib>
 #include "TypeDef.h"
 
diff -r 6a6f72ea32a3 -r a79ecf3a7875 source/Lib/TLibCommon/TComDataCU.h
--- a/source/Lib/TLibCommon/TComDataCU.h	Thu Oct 10 15:05:46 2013 +0800
+++ b/source/Lib/TLibCommon/TComDataCU.h	Thu Oct 10 12:29:41 2013 +0530
@@ -46,7 +46,6 @@
 #include "TComPattern.h"
 
 #include <assert.h>
-#include <algorithm>
 
 namespace x265 {
 // private namespace
diff -r 6a6f72ea32a3 -r a79ecf3a7875 source/Lib/TLibCommon/TComSlice.cpp
--- a/source/Lib/TLibCommon/TComSlice.cpp	Thu Oct 10 15:05:46 2013 +0800
+++ b/source/Lib/TLibCommon/TComSlice.cpp	Thu Oct 10 12:29:41 2013 +0530
@@ -923,11 +923,6 @@ void TComReferencePictureSet::setDeltaPO
     m_deltaPOC[bufferNum] = deltaPOC;
 }
 
-void TComReferencePictureSet::setNumberOfPictures(int numberOfPictures)
-{
-    m_numberOfPictures = numberOfPictures;
-}
-
 int TComReferencePictureSet::getUsed(int bufferNum) const
 {
     return m_used[bufferNum];
@@ -963,16 +958,6 @@ void TComReferencePictureSet::setCheckLT
     m_bCheckLTMSB[bufferNum] = b;
 }
 
-/** set the reference idc value at uiBufferNum entry to the value of iRefIdc
- * \param uiBufferNum
- * \param iRefIdc
- * \returns void
- */
-void TComReferencePictureSet::setRefIdc(int bufferNum, int refIdc)
-{
-    m_refIdc[bufferNum] = refIdc;
-}
-
 /** get the reference idc value at uiBufferNum
  * \param uiBufferNum
  * \returns int
@@ -1074,11 +1059,6 @@ int TComRPSList::getNumberOfReferencePic
     return m_numberOfReferencePictureSets;
 }
 
-void TComRPSList::setNumberOfReferencePictureSets(int numberOfReferencePictureSets)
-{
-    m_numberOfReferencePictureSets = numberOfReferencePictureSets;
-}
-
 TComRefPicListModification::TComRefPicListModification()
     : m_bRefPicListModificationFlagL0(false)
     , m_bRefPicListModificationFlagL1(false)
diff -r 6a6f72ea32a3 -r a79ecf3a7875 source/Lib/TLibCommon/TComSlice.h
--- a/source/Lib/TLibCommon/TComSlice.h	Thu Oct 10 15:05:46 2013 +0800
+++ b/source/Lib/TLibCommon/TComSlice.h	Thu Oct 10 12:29:41 2013 +0530
@@ -45,7 +45,6 @@
 #include "piclist.h"
 
 #include <assert.h>
-#include <cstring>
 
 //! \ingroup TLibCommon
 //! \{
@@ -110,7 +109,6 @@ public:
     void setUsed(int bufferNum, bool used);
     void setDeltaPOC(int bufferNum, int deltaPOC);
     void setPOC(int bufferNum, int deltaPOC);
-    void setNumberOfPictures(int numberOfPictures);
     void setCheckLTMSBPresent(int bufferNum, bool b);
     bool getCheckLTMSBPresent(int bufferNum);
 
@@ -119,35 +117,20 @@ public:
     int  getPOC(int bufferNum) const;
     int  getNumberOfPictures() const;
 
-    void setNumberOfNegativePictures(int number)  { m_numberOfNegativePictures = number; }
-
     int  getNumberOfNegativePictures() const      { return m_numberOfNegativePictures; }
 
-    void setNumberOfPositivePictures(int number)  { m_numberOfPositivePictures = number; }
-
     int  getNumberOfPositivePictures() const      { return m_numberOfPositivePictures; }
 
-    void setNumberOfLongtermPictures(int number)  { m_numberOfLongtermPictures = number; }
-
     int  getNumberOfLongtermPictures() const      { return m_numberOfLongtermPictures; }
 
-    void setInterRPSPrediction(bool flag)         { m_interRPSPrediction = flag; }
-
     bool getInterRPSPrediction() const            { return m_interRPSPrediction; }
 
-    void setDeltaRIdxMinus1(int x)                { m_deltaRIdxMinus1 = x; }
-
     int  getDeltaRIdxMinus1() const               { return m_deltaRIdxMinus1; }
 
-    void setDeltaRPS(int x)                       { m_deltaRPS = x; }
-
     int  getDeltaRPS() const                      { return m_deltaRPS; }
 
-    void setNumRefIdc(int x)                      { m_numRefIdc = x; }
-
     int  getNumRefIdc() const                     { return m_numRefIdc; }
 
-    void setRefIdc(int bufferNum, int refIdc);
     int  getRefIdc(int bufferNum) const;
 
     void sortDeltaPOC();
@@ -172,7 +155,6 @@ public:
 
     TComReferencePictureSet* getReferencePictureSet(int referencePictureSetNum);
     int getNumberOfReferencePictureSets() const;
-    void setNumberOfReferencePictureSets(int numberOfReferencePictureSets);
 };
 
 /// SCALING_LIST class
@@ -238,8 +220,6 @@ public:
 
     int getProfileSpace() const { return m_profileSpace; }
 
-    void setProfileSpace(int x) { m_profileSpace = x; }
-
     bool getTierFlag() const    { return m_tierFlag; }
 
     void setTierFlag(bool x)    { m_tierFlag = x; }
@@ -289,8 +269,6 @@ public:
 
     bool getSubLayerLevelPresentFlag(int i) const { return m_subLayerLevelPresentFlag[i]; }
 
-    void setSubLayerLevelPresentFlag(int i, bool x) { m_subLayerLevelPresentFlag[i] = x; }
-
     ProfileTierLevel* getGeneralPTL() { return &m_generalPTL; }
 
     ProfileTierLevel* getSubLayerPTL(int i) { return &m_subLayerPTL[i]; }
@@ -443,10 +421,6 @@ public:
 
     bool getCbrFlag(int layer, int cpbcnt, int nalOrVcl) { return m_HRD[layer].cbrFlag[cpbcnt][nalOrVcl]; }
 
-    void setNumDU(UInt value) { m_numDU = value; }
-
-    UInt getNumDU()           { return m_numDU; }
-
     bool getCpbDpbDelaysPresentFlag() { return getNalHrdParametersPresentFlag() || getVclHrdParametersPresentFlag(); }
 };
 
diff -r 6a6f72ea32a3 -r a79ecf3a7875 source/Lib/TLibCommon/TComTrQuant.cpp
--- a/source/Lib/TLibCommon/TComTrQuant.cpp	Thu Oct 10 15:05:46 2013 +0800
+++ b/source/Lib/TLibCommon/TComTrQuant.cpp	Thu Oct 10 12:29:41 2013 +0530
@@ -328,63 +328,6 @@ UInt TComTrQuant::xQuant(TComDataCU* cu,
     return acSum;
 }
 
-void TComTrQuant::xDeQuant(const TCoeff* qCoef, int* coef, int width, int height, int scalingListType)
-{
-    if (width > (int)m_maxTrSize)
-    {
-        width  = m_maxTrSize;
-        height = m_maxTrSize;
-    }
-
-    int shift, add, coeffQ;
-    UInt log2TrSize = g_convertToBit[width] + 2;
-
-    int transformShift = MAX_TR_DYNAMIC_RANGE - X265_DEPTH - log2TrSize;
-
-    shift = QUANT_IQUANT_SHIFT - QUANT_SHIFT - transformShift;
-
-    TCoeff clipQCoef;
-
-    if (getUseScalingList())
-    {
-        shift += 4;
-        int *dequantCoef = getDequantCoeff(scalingListType, m_qpParam.m_rem, log2TrSize - 2);
-
-        if (shift > m_qpParam.m_per)
-        {
-            add = 1 << (shift - m_qpParam.m_per - 1);
-
-            for (int n = 0; n < width * height; n++)
-            {
-                clipQCoef = Clip3(-32768, 32767, qCoef[n]);
-                coeffQ = ((clipQCoef * dequantCoef[n]) + add) >> (shift -  m_qpParam.m_per);
-                coef[n] = Clip3(-32768, 32767, coeffQ);
-            }
-        }
-        else
-        {
-            for (int n = 0; n < width * height; n++)
-            {
-                clipQCoef = Clip3(-32768, 32767, qCoef[n]);
-                coeffQ   = Clip3(-32768, 32767, clipQCoef * dequantCoef[n]); // Clip to avoid possible overflow in following shift left operation
-                coef[n] = Clip3(-32768, 32767, coeffQ << (m_qpParam.m_per - shift));
-            }
-        }
-    }
-    else
-    {
-        add = 1 << (shift - 1);
-        int scale = g_invQuantScales[m_qpParam.m_rem] << m_qpParam.m_per;
-
-        for (int n = 0; n < width * height; n++)
-        {
-            clipQCoef = Clip3(-32768, 32767, qCoef[n]);
-            coeffQ = (clipQCoef * scale + add) >> shift;
-            coef[n] = Clip3(-32768, 32767, coeffQ);
-        }
-    }
-}
-
 void TComTrQuant::init(UInt maxTrSize, int useRDOQ, int useRDOQTS, int useTransformSkipFast)
 {
     m_maxTrSize            = maxTrSize;
@@ -499,20 +442,6 @@ void TComTrQuant::invtransformNxN( bool 
 // Logical transform
 // ------------------------------------------------------------------------------------------------
 
-/** Wrapper function between HM interface and core NxN inverse transform (2D)
- *  \param plCoef input data (transform coefficients)
- *  \param pResidual output data (residual)
- *  \param stride stride of input residual data
- *  \param size transform size (size x size)
- *  \param mode is Intra Prediction mode used in Mode-Dependent DCT/DST only
- */
-void TComTrQuant::xIT(UInt mode, int* coeff, short* residual, UInt stride, int width, int /*height*/)
-{
-    // TODO: this may need larger data types for X265_DEPTH > 8
-    const UInt log2BlockSize = g_convertToBit[width];
-    primitives.idct[IDCT_4x4 + log2BlockSize - ((width == 4) && (mode != REG_DCT))](coeff, residual, stride);
-}
-
 /** Wrapper function between HM interface and core 4x4 transform skipping
  *  \param resiBlock input data (residual)
  *  \param psCoeff output data (transform coefficients)
@@ -1439,26 +1368,6 @@ void TComTrQuant::setScalingList(TComSca
     }
 }
 
-/** set quantized matrix coefficient for decode
- * \param scalingList quantized matrix address
- */
-void TComTrQuant::setScalingListDec(TComScalingList *scalingList)
-{
-    UInt size, list;
-    UInt qp;
-
-    for (size = 0; size < SCALING_LIST_SIZE_NUM; size++)
-    {
-        for (list = 0; list < g_scalingListNum[size]; list++)
-        {
-            for (qp = 0; qp < SCALING_LIST_REM_NUM; qp++)
-            {
-                xSetScalingListDec(scalingList, list, size, qp);
-            }
-        }
-    }
-}
-
 /** set error scale coefficients
  * \param list List ID
  * \param uiSize Size
diff -r 6a6f72ea32a3 -r a79ecf3a7875 source/Lib/TLibCommon/TComTrQuant.h
--- a/source/Lib/TLibCommon/TComTrQuant.h	Thu Oct 10 15:05:46 2013 +0800
+++ b/source/Lib/TLibCommon/TComTrQuant.h	Thu Oct 10 12:29:41 2013 +0530
@@ -157,7 +157,6 @@ public:
     void xSetScalingListEnc(TComScalingList *scalingList, UInt list, UInt size, UInt qp);
     void xSetScalingListDec(TComScalingList *scalingList, UInt list, UInt size, UInt qp);
     void setScalingList(TComScalingList *scalingList);
-    void setScalingListDec(TComScalingList *scalingList);
     void processScalingListEnc(int *coeff, int *quantcoeff, int quantScales, UInt height, UInt width, UInt ratio, int sizuNum, UInt dc);
     void processScalingListDec(int *coeff, int *dequantcoeff, int invQuantScales, UInt height, UInt width, UInt ratio, int sizuNum, UInt dc);
 
@@ -218,10 +217,6 @@ private:
 
     inline double xGetIEPRate() const          { return 32768; }            ///< Get the cost of an equal probable bit
 
-    void xDeQuant(const TCoeff* src, int* dst, int width, int height, int scalingListType);
-
-    void xIT(UInt mode, int* coeff, short* residual, UInt stride, int width, int height);
-
     void xITransformSkip(int* coeff, short* residual, UInt stride, int width, int height);
 };
 }
diff -r 6a6f72ea32a3 -r a79ecf3a7875 source/Lib/TLibEncoder/NALwrite.cpp
--- a/source/Lib/TLibEncoder/NALwrite.cpp	Thu Oct 10 15:05:46 2013 +0800
+++ b/source/Lib/TLibEncoder/NALwrite.cpp	Thu Oct 10 12:29:41 2013 +0530
@@ -36,9 +36,6 @@
 #include "NALwrite.h"


More information about the x265-commits mailing list