Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/CommonDef.h
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/CommonDef.h	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/CommonDef.h	(revision 1305)
@@ -391,5 +391,5 @@
 #define STD_CAM_PARAMETERS_PRECISION 5        ///< quarter luma sample accuarcy for derived disparities (as default)
 
-#endif // end of H_3D
+#endif // end of NH_3D
 //! \}
 
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComDataCU.cpp
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComDataCU.cpp	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComDataCU.cpp	(revision 1305)
@@ -3647,5 +3647,5 @@
       !bARPFlag &&
 #endif
-#if H_3D
+#if H_3D || NH_3D_FIX_VSP
       (nPSW + nPSH > 12) &&
 #endif
@@ -5627,5 +5627,5 @@
     if(!m_pcSlice->getIsDepth())
     {
-#if H_3D_DBBP
+#if H_3D_DBBP || NH_3D_ALIGN_SPIVMP_DBBP
       if (!getDBBPFlag(0))
 #else
@@ -5803,5 +5803,5 @@
       iCurrPosY  += ( iHeight >> 1 );
     }
-#if H_3D_DBBP
+#if H_3D_DBBP || NH_3D_ALIGN_SPIVMP_DBBP
     for(Int iLoopCan = ( (m_pcSlice->getIsDepth() || getDBBPFlag(0)) ? 0 : 1 ); iLoopCan < ( 2 - m_pcSlice->getIsDepth() ); iLoopCan ++) 
 #else
@@ -5878,5 +5878,5 @@
     }
 #if NH_3D_SPIVMP
-#if H_3D_DBBP
+#if H_3D_DBBP || NH_3D_ALIGN_SPIVMP_DBBP
     for(Int iLoopCan = ( (m_pcSlice->getIsDepth() || getDBBPFlag(0)) ? 0 : 1 ); iLoopCan < ( 2 - m_pcSlice->getIsDepth() ); iLoopCan ++)
 #else
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComDataCU.h
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComDataCU.h	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComDataCU.h	(revision 1305)
@@ -50,9 +50,4 @@
 #include "TComPattern.h"
 
-#if H_3D
-#include <algorithm>
-#include <vector>
-#endif
-
 //! \ingroup TLibCommon
 //! \{
@@ -504,8 +499,4 @@
 #endif
 
-#if H_3D
-  Void          getDispforDepth  ( UInt uiPartIdx, UInt uiPartAddr, DisInfo* cDisp);
-  Bool          getDispMvPredCan(UInt uiPartIdx, RefPicList eRefPicList, Int iRefIdx, Int* paiPdmRefIdx, TComMv* pacPdmMv, DisInfo* pDis, Int* iPdm );
-#endif
 #if NH_3D_NBDV_REF
   Pel           getMcpFromDM(TComPicYuv* pcBaseViewDepthPicYuv, TComMv* mv, Int iBlkX, Int iBlkY, Int iWidth, Int iHeight, Int* aiShiftLUT );
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPic.cpp
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPic.cpp	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPic.cpp	(revision 1305)
@@ -62,5 +62,5 @@
 , m_layerId                               (0)
 , m_viewId                                (0)
-#if H_3D
+#if NH_3D
 , m_viewIndex                             (0)
 , m_isDepth                               (false)
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPicYuv.cpp
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPicYuv.cpp	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPicYuv.cpp	(revision 1305)
@@ -324,10 +324,4 @@
 #endif
 
-#if H_3D
-Void TComPicYuv::setLumaTo( Pel pVal )
-{
-  xSetPels( getLumaAddr(), getStride(), getWidth(), getHeight(), pVal );
-}
-#endif
 #if NH_3D_VSO
 Void TComPicYuv::setChromaTo( Pel pVal )
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPrediction.cpp
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPrediction.cpp	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComPrediction.cpp	(revision 1305)
@@ -584,5 +584,5 @@
     pcCU->getSPAbsPartIdx(uiPartAddr, iSPWidth, iSPHeight, i, iNumSPInOneLine, uiSPAddr[i]);
   }
-#if H_3D_ARP // check this!
+#if H_3D_ARP || NH_3D_ALIGN_SPIVMP_RP // check this!
   if( pcCU->getARPW( uiPartAddr ) != 0 )
   {
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComRom.cpp
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComRom.cpp	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComRom.cpp	(revision 1305)
@@ -551,5 +551,5 @@
 Bool g_decTraceMvFromMerge   = false; 
 Bool g_decTracePicOutput     = false; 
-Bool g_stopAtPos             = false; 
+Bool g_stopAtPos             = true; 
 Bool g_outputPos             = false;   
 Bool g_traceCameraParameters = false; 
@@ -686,10 +686,10 @@
   }
   Bool stopFlag = false; 
-  if ( g_stopAtPos && poc == 16 && layerId == 5 )
+  if ( g_stopAtPos && poc == 0 && layerId == 2 )
   {
     Bool stopAtCU = true; 
     if ( stopAtCU )        // Stop at CU with specific size
     {    
-      stopFlag = ( cuPelX  == 224 ) && ( cuPelY  == 128 ) && ( cuWidth == 16 ) && ( cuHeight == 16 ); 
+      stopFlag = ( cuPelX  == 416 ) && ( cuPelY  == 632 ) && ( cuWidth == 8 ) && ( cuHeight == 8 ); 
     }
     else
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.cpp
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.cpp	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.cpp	(revision 1305)
@@ -2234,5 +2234,5 @@
   }
 }
-#endif // H_3D
+#endif // NH_3D
 
 
@@ -2503,5 +2503,5 @@
     auxId         .push_back( getAuxId       ( i ) );      
     viewId        .push_back( getViewId      ( getLayerIdInNuh( i ) ) );
-#if H_3D  
+#if NH_3D  
     depthId.push_back( getDepthId( i ) );
 #endif
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.h
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.h	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.h	(revision 1305)
@@ -3094,12 +3094,4 @@
   Bool                        inferPocMsbValPresentFlag();
 #endif
-#if H_3D
-  Int                         getDefaultRefViewIdx()                                 { return m_iDefaultRefViewIdx;                                  }
-  Void                        setDefaultRefViewIdx(Int iViewIdx)                     { m_iDefaultRefViewIdx = iViewIdx;                              }
-
-  Bool                        getDefaultRefViewIdxAvailableFlag()                    { return m_bDefaultRefViewIdxAvailableFlag;                     }
-  Void                        setDefaultRefViewIdxAvailableFlag(Bool bViewIdx)       { m_bDefaultRefViewIdxAvailableFlag = bViewIdx;                 }
-  Void                        setDefaultRefView( );
-#endif
 protected:
   TComPic*                    xGetRefPic        (TComList<TComPic*>& rcListPic, Int poc);
Index: branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TypeDef.h
===================================================================
--- branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TypeDef.h	(revision 1304)
+++ branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TypeDef.h	(revision 1305)
@@ -66,4 +66,10 @@
 /////////////////////////////////////////////////////////////////////////////////////////
 #if NH_MV
+#define NH_3D_DLT_FIX                     1 // Fixes numbers of parsed DLTs 
+#define H_MV_VER141_DEC_COMP_FLAG         1 // Makes decoding of this version compatible to HTM-14.1 by re-introducing HTM-14.1 bugs.
+#define NH_3D_ALIGN_SPIVMP_DBBP           1 // Further alignment of DBBP and SBP motion
+#define NH_3D_ALIGN_SPIVMP_RP             1 // Alignment of DBBP and RP
+#define NH_3D_FIX_VSP                     1 
+
 #define H_MV_ENC_DEC_TRAC                 1  //< CU/PU level tracking
 #define H_MV_ENC_DEC_TRAC_FIX             1  // by SHARP
@@ -1149,6 +1155,3 @@
 };
 //! \}
-#if H_3D
-#define !!! REMOVE THIS !!! Log2( n ) ( log((double)n) / log(2.0) ) // Ed.(GT): This is very very bad and should be fixed to used integer arithmetics ( see gCeilLog2 ) moreover it should not be defined in the tool macro section! 
-#endif
-#endif
+#endif
