Only in VTM-6.0: .git
Only in VTM-6.0: bin
Only in VTM-6.0: build
Only in VTM-6.0: lib
diff -ur VTM-6.0/source/Lib/CommonLib/InterPrediction.cpp VTM-6.0_BDOF/source/Lib/CommonLib/InterPrediction.cpp
--- VTM-6.0/source/Lib/CommonLib/InterPrediction.cpp	2019-08-19 12:00:36.357125300 +0900
+++ VTM-6.0_BDOF/source/Lib/CommonLib/InterPrediction.cpp	2019-09-18 13:22:14.000000000 +0900
@@ -534,7 +534,11 @@
       const bool biocheck1 = !(pps.getUseWP() && slice.getSliceType() == P_SLICE);
       if (biocheck0
         && biocheck1
+#if BDOF_EQDISTPOC
+        && PU::isBiPredFromDifferentDirEqDistPoc(pu)
+#else
         && PU::isBiPredFromDifferentDir(pu)
+#endif
 #if JVET_O0634_BDOF_SIZE_CONSTRAINT
         && (pu.Y().height >= 8)
         && (pu.Y().width >= 8)
@@ -1776,7 +1780,11 @@
         const bool biocheck1 = !(pps.getUseWP() && slice.getSliceType() == P_SLICE);
         if (biocheck0
           && biocheck1
+#if BDOF_EQDISTPOC
+          && PU::isBiPredFromDifferentDirEqDistPoc(pu)
+#else
           && PU::isBiPredFromDifferentDir(pu)
+#endif
 #if JVET_O0634_BDOF_SIZE_CONSTRAINT
           && (pu.Y().height >= 8)
           && (pu.Y().width >= 8)
diff -ur VTM-6.0/source/Lib/CommonLib/TypeDef.h VTM-6.0_BDOF/source/Lib/CommonLib/TypeDef.h
--- VTM-6.0/source/Lib/CommonLib/TypeDef.h	2019-08-19 12:00:36.466478200 +0900
+++ VTM-6.0_BDOF/source/Lib/CommonLib/TypeDef.h	2019-09-18 13:22:14.000000000 +0900
@@ -50,6 +50,8 @@
 #include <assert.h>
 #include <cassert>
 
+#define BDOF_EQDISTPOC 1
+
 
 #define JVET_O0119_BASE_PALETTE_444                       1 // JVET-O0119: Palette mode in HEVC and palette mode signaling in JVET-N0258. Only enabled for YUV444.
 
diff -ur VTM-6.0/source/Lib/CommonLib/UnitTools.cpp VTM-6.0_BDOF/source/Lib/CommonLib/UnitTools.cpp
--- VTM-6.0/source/Lib/CommonLib/UnitTools.cpp	2019-08-19 12:00:36.482097900 +0900
+++ VTM-6.0_BDOF/source/Lib/CommonLib/UnitTools.cpp	2019-09-18 13:22:14.000000000 +0900
@@ -4020,6 +4020,7 @@
   PU::spanMotionInfo( pu, mrgCtx );
 }
 
+#if !BDOF_EQDISTPOC
 bool PU::isBiPredFromDifferentDir( const PredictionUnit& pu )
 {
   if ( pu.refIdx[0] >= 0 && pu.refIdx[1] >= 0 )
@@ -4035,6 +4036,7 @@
 
   return false;
 }
+#endif
 bool PU::isBiPredFromDifferentDirEqDistPoc(const PredictionUnit& pu)
 {
   if (pu.refIdx[0] >= 0 && pu.refIdx[1] >= 0)
diff -ur VTM-6.0/source/Lib/CommonLib/UnitTools.h VTM-6.0_BDOF/source/Lib/CommonLib/UnitTools.h
--- VTM-6.0/source/Lib/CommonLib/UnitTools.h	2019-08-19 12:00:36.482097900 +0900
+++ VTM-6.0_BDOF/source/Lib/CommonLib/UnitTools.h	2019-09-18 13:22:14.000000000 +0900
@@ -203,7 +203,9 @@
     , int mmvdList
   );
   bool getInterMergeSubPuRecurCand(const PredictionUnit &pu, MergeCtx &mrgCtx, const int count);
+#if !BDOF_EQDISTPOC
   bool isBiPredFromDifferentDir       (const PredictionUnit &pu);
+#endif
   bool isBiPredFromDifferentDirEqDistPoc(const PredictionUnit &pu);
   void restrictBiPredMergeCands       (const PredictionUnit &pu, MergeCtx& mrgCtx);
   void restrictBiPredMergeCandsOne    (PredictionUnit &pu);
