From 504003d454da0e8a0023d3d6d3127536f30c111a Mon Sep 17 00:00:00 2001 From: Frank Bossen <fbossen@gmail.com> Date: Sun, 1 Sep 2019 17:52:34 -0400 Subject: [PATCH] Disable unused fields and function --- source/Lib/CommonLib/InterPrediction.cpp | 2 ++ source/Lib/CommonLib/InterPrediction.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/source/Lib/CommonLib/InterPrediction.cpp b/source/Lib/CommonLib/InterPrediction.cpp index a1645c625..9e8e83282 100644 --- a/source/Lib/CommonLib/InterPrediction.cpp +++ b/source/Lib/CommonLib/InterPrediction.cpp @@ -1452,6 +1452,7 @@ void InterPrediction::applyBiOptFlow(const PredictionUnit &pu, const CPelUnitBuf } +#if !JVET_O0055_INT_DMVR_DIS_BDOF bool InterPrediction::xCalcBiPredSubBlkDist(const PredictionUnit &pu, const Pel* pYuvSrc0, const int src0Stride, const Pel* pYuvSrc1, const int src1Stride, const BitDepths &clipBitDepths) { const int width = pu.lwidth(); @@ -1485,6 +1486,7 @@ bool InterPrediction::xCalcBiPredSubBlkDist(const PredictionUnit &pu, const Pel* return (dist >= m_bioDistThres); } +#endif void InterPrediction::xAddBIOAvg4(const Pel* src0, int src0Stride, const Pel* src1, int src1Stride, Pel *dst, int dstStride, const Pel *gradX0, const Pel *gradX1, const Pel *gradY0, const Pel*gradY1, int gradStride, int width, int height, int tmpx, int tmpy, int shift, int offset, const ClpRng& clpRng) { diff --git a/source/Lib/CommonLib/InterPrediction.h b/source/Lib/CommonLib/InterPrediction.h index 21cb2cab9..d21963ffd 100644 --- a/source/Lib/CommonLib/InterPrediction.h +++ b/source/Lib/CommonLib/InterPrediction.h @@ -65,9 +65,11 @@ class InterPrediction : public WeightPrediction private: int m_shareState; +#if !JVET_O0055_INT_DMVR_DIS_BDOF Distortion m_bioDistThres; Distortion m_bioSubBlkDistThres; Distortion m_bioPredSubBlkDist[MAX_NUM_PARTS_IN_CTU]; +#endif #if !JVET_O0304_SIMPLIFIED_BDOF int m_dotProduct1[BIO_TEMP_BUFFER_SIZE]; @@ -132,7 +134,9 @@ protected: #endif int rightShiftMSB(int numer, int denom); void applyBiOptFlow(const PredictionUnit &pu, const CPelUnitBuf &yuvSrc0, const CPelUnitBuf &yuvSrc1, const int &refIdx0, const int &refIdx1, PelUnitBuf &yuvDst, const BitDepths &clipBitDepths); +#if !JVET_O0055_INT_DMVR_DIS_BDOF bool xCalcBiPredSubBlkDist(const PredictionUnit &pu, const Pel* yuvSrc0, const int src0Stride, const Pel* yuvSrc1, const int src1Stride, const BitDepths &clipBitDepths); +#endif void xPredInterUni ( const PredictionUnit& pu, const RefPicList& eRefPicList, PelUnitBuf& pcYuvPred, const bool& bi , const bool& bioApplied , const bool luma, const bool chroma -- GitLab