Changeset 1133 in 3DVCSoftware for trunk/source/Lib/TLibEncoder


Ignore:
Timestamp:
21 Feb 2015, 22:47:16 (10 years ago)
Author:
tech
Message:

Merged 13.0-dev0@1132

  • Cleanup
  • TICKET083_IVPFLAG_FIX
Location:
trunk/source/Lib/TLibEncoder
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1124 r1133  
    638638}
    639639
    640 #if HHI_TOOL_PARAMETERS_I2_J0107
    641640Void TEncCavlc::codeSPS( TComSPS* pcSPS )
    642 #else
    643 #if H_3D
    644 Void TEncCavlc::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    645 #else
    646 Void TEncCavlc::codeSPS( TComSPS* pcSPS )
    647 #endif
    648 #endif
    649641{
    650642#if ENC_DEC_TRACE 
     
    846838  if ( pcSPS->getSps3dExtensionFlag() )
    847839  {
    848 #if HHI_TOOL_PARAMETERS_I2_J0107
    849840    codeSPS3dExtension( pcSPS );
    850 #else
    851     codeSPSExtension2( pcSPS, viewIndex, depthFlag  );
    852 #endif
    853841  }
    854842
     
    871859  WRITE_CODE( pcPPS->getPpsScalingListRefLayerId( ), 6, "pps_scaling_list_ref_layer_id" );
    872860  WRITE_UVLC( 0, "num_ref_loc_offsets" );
    873 #if H_MV_HLS_FIX
    874861  WRITE_FLAG( 0 , "colour_mapping_enabled_flag" );
    875 #endif
    876862
    877863}
     
    880866
    881867#if H_3D
    882 #if HHI_TOOL_PARAMETERS_I2_J0107
    883868Void TEncCavlc::codeSPS3dExtension( TComSPS* pcSPS )
    884869{
     
    908893  }
    909894}
    910 #else
    911 Void TEncCavlc::codeSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    912 {
    913 
    914 }
    915 #endif
    916895#endif
    917896
     
    1012991#if H_3D
    1013992  WRITE_FLAG( 1,                     "vps_extension2_flag" ); 
    1014 #if HHI_VPS_3D_EXTENSION_I3_J0107
    1015993  WRITE_FLAG( 1,                     "vps_3d_extension_flag" );
    1016994  m_pcBitIf->writeAlignOne();     
    1017995  codeVPS3dExtension( pcVPS );
    1018 #else
    1019   m_pcBitIf->writeAlignOne();     
    1020   codeVPSExtension2( pcVPS );
    1021 #endif
    1022996  WRITE_FLAG( 0,                     "vps_extension3_flag" );
    1023997#else
     
    11891163  for( Int i = 1; i < pcVPS->getNumOutputLayerSets( ); i++ )
    11901164  {
    1191 #if H_MV_HLS_FIX
    11921165    if( pcVPS->getNumLayerSets() > 2 && i >= pcVPS->getNumLayerSets( ) )   
    1193 #else
    1194     if( i >= pcVPS->getNumLayerSets( ) )   
    1195 #endif
    11961166    {     
    11971167      WRITE_CODE( pcVPS->getLayerSetIdxForOlsMinus1( i ), pcVPS->getLayerSetIdxForOlsMinus1Len( i ) ,      "layer_set_idx_for_ols_minus1[i]" );
     
    12631233
    12641234  WRITE_FLAG( pcVPS->getMaxOneActiveRefLayerFlag( ) ? 1 : 0, "max_one_active_ref_layer_flag" );
    1265 #if H_MV_HLS7_GEN || H_MV_HLS_FIX
    12661235  WRITE_FLAG( pcVPS->getVpsPocLsbAlignedFlag( ) ? 1 : 0 , "vps_poc_lsb_aligned_flag" );
    1267 #endif
    12681236  for( Int i = 1; i  <=  pcVPS->getMaxLayersMinus1(); i++ )
    12691237  {
     
    13131281    codeVPSVUI( pcVPS );
    13141282  }     
    1315 #if H_MV_HLS_FIX
    13161283  else
    1317 #endif
    13181284  {
    13191285    TComVPSVUI* pcVPSVUI = pcVPS->getVPSVUI( );
     
    16301596
    16311597#if H_3D
    1632 #if HHI_VPS_3D_EXTENSION_I3_J0107
    16331598Void TEncCavlc::codeVPS3dExtension( TComVPS* pcVPS )
    1634 #else
    1635 Void TEncCavlc::codeVPSExtension2( TComVPS* pcVPS )
    1636 #endif
    16371599{
    1638 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1639   for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ )
    1640   {
    1641     {
    1642       WRITE_FLAG( pcVPS->getIvMvPredFlag         ( i ) ? 1 : 0 , "iv_mv_pred_flag[i]");
    1643       WRITE_FLAG( pcVPS->getIvMvScalingFlag( i ) ? 1 : 0 ,       "iv_mv_scaling_flag[i]" );
    1644 
    1645       if ( !( pcVPS->getDepthId( i ) == 1 ) )
    1646       {
    1647 #if H_3D_IV_MERGE
    1648 #if H_3D_SPIVMP
    1649         WRITE_UVLC( pcVPS->getSubPULog2Size(i)-3, "log2_sub_PU_size_minus3[i]");
    1650 #endif
    1651 #endif
    1652 #if H_3D_ARP
    1653         WRITE_FLAG( pcVPS->getUseAdvRP             ( i ) ? 1 : 0,  "iv_res_pred_flag[i]"  );
    1654 #endif
    1655 #if H_3D_NBDV_REF
    1656         WRITE_FLAG( pcVPS->getDepthRefinementFlag  ( i ) ? 1 : 0 , "depth_refinement_flag[i]");
    1657 #endif
    1658 #if H_3D_VSP
    1659         WRITE_FLAG( pcVPS->getViewSynthesisPredFlag( i ) ? 1 : 0 , "view_synthesis_pred_flag[i]");
    1660 #endif
    1661 #if H_3D_DBBP
    1662         WRITE_FLAG( pcVPS->getUseDBBP( i ) ? 1 : 0, "use_dbbp_flag[i]" );
    1663 #endif
    1664       }         
    1665       else
    1666       {
    1667 #if H_3D_IV_MERGE
    1668         WRITE_FLAG( pcVPS->getMPIFlag( i ) ? 1 : 0 ,          "mpi_flag[i]" );
    1669 #endif
    1670         WRITE_UVLC( pcVPS->getSubPUMPILog2Size(i)-3, "log2_mpi_sub_PU_size_minus3[i]");
    1671 
    1672         WRITE_FLAG( pcVPS->getVpsDepthModesFlag( i ) ? 1 : 0 ,          "vps_depth_modes_flag[i]" );
    1673 #if H_3D
    1674         WRITE_FLAG( pcVPS->getIVPFlag( i ) ? 1 : 0 ,               "IVP_flag[i]" );
    1675 #endif
    1676         WRITE_FLAG( pcVPS->getLimQtPredFlag    ( i ) ? 1 : 0 ,          "lim_qt_pred_flag[i]"     );
    1677 
    1678 #if H_3D_INTER_SDC
    1679         WRITE_FLAG( pcVPS->getInterSDCFlag( i ) ? 1 : 0, "depth_inter_SDC_flag" );
    1680 #endif
    1681 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    1682         WRITE_FLAG( pcVPS->getSingleDepthModeFlag( i ) ? 1 : 0, "single_depth_mode_flag" );
    1683 #endif
    1684       }
    1685     } 
    1686   }
    1687 #endif
    16881600  WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" );
    16891601  for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++)
     
    17891701    }
    17901702    pcSlice->checkCrossLayerBlaFlag( );
    1791 #if !H_MV_HLS7_GEN && !H_MV_HLS_FIX
    1792     if ( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > esb )
    1793     {
    1794       esb++;
    1795       WRITE_FLAG( pcSlice->getPocResetFlag( ) ? 1 : 0 , "poc_reset_flag" );
    1796     }
    1797 #endif
    17981703
    17991704
     
    19511856    Bool interLayerPredLayerIdcPresentFlag = false;
    19521857    Int layerId = pcSlice->getLayerId();
    1953 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    19541858#if H_3D
    19551859    if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumRefListLayers( layerId ) > 0 )
     
    19571861    if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
    19581862#endif
    1959 #else
    1960     if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
    1961 #endif
    19621863    {   
    19631864      WRITE_FLAG( pcSlice->getInterLayerPredEnabledFlag( ) ? 1 : 0 , "inter_layer_pred_enabled_flag" );
    1964 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    19651865#if H_3D
    19661866      if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumRefListLayers( layerId ) > 1 )
     
    19681868      if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
    19691869#endif
    1970 #else
    1971       if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
    1972 #endif
    19731870      {           
    19741871        if( !vps->getMaxOneActiveRefLayerFlag()) 
     
    19761873          WRITE_CODE( pcSlice->getNumInterLayerRefPicsMinus1( ), pcSlice->getNumInterLayerRefPicsMinus1Len( ), "num_inter_layer_ref_pics_minus1" );
    19771874        }
    1978 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    19791875#if H_3D
    19801876        if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumRefListLayers( layerId ) )
    1981 #else
    1982         if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
    1983 #endif
    19841877#else
    19851878        if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
     
    21252018    }
    21262019#if H_3D_IC
    2127 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    21282020    else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 )
    2129 #else
    2130     else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 )
    2131 #endif
    21322021    {
    21332022      WRITE_FLAG( pcSlice->getApplyIC() ? 1 : 0, "slice_ic_enable_flag" );
     
    21372026      }
    21382027    }
    2139 #endif
    2140 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2141 #if H_3D_SINGLE_DEPTH
    2142     if(pcSlice->getIsDepth())
    2143     {
    2144       WRITE_FLAG( pcSlice->getApplySingleDepthMode() ? 1 : 0, "slice_enable_single_depth_mode" );
    2145     }
    2146 #endif
    21472028#endif
    21482029#if H_3D_IV_MERGE
     
    21542035    {
    21552036#if H_3D_IV_MERGE
    2156 #if HHI_TOOL_PARAMETERS_I2_J0107     
    2157 #if ALGIN_J0107_J0059
    21582037      WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) || pcSlice->getViewSynthesisPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
    2159 #else
    2160       WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
    2161 #endif
    2162 #else
    2163       if(pcSlice->getIsDepth())
    2164       {
    2165         Bool bMPIFlag = pcSlice->getVPS()->getMPIFlag( pcSlice->getLayerIdInVps() ) ;
    2166         Bool ivMvPredFlag = pcSlice->getVPS()->getIvMvPredFlag( pcSlice->getLayerIdInVps() ) ;
    2167         WRITE_UVLC( ( ( bMPIFlag || ivMvPredFlag ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
    2168       }
    2169       else
    2170       {
    2171         Bool ivMvPredFlag = pcSlice->getVPS()->getIvMvPredFlag( pcSlice->getLayerIdInVps() ) ;
    2172 #if MTK_MRG_LIST_SIZE_CLEANUP_J0059
    2173         Bool vspFlag = pcSlice->getVPS()->getViewSynthesisPredFlag( pcSlice->getLayerIdInVps() ) ;
    2174         WRITE_UVLC( ( ivMvPredFlag || vspFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
    2175 #else
    2176         WRITE_UVLC( ( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
    2177 #endif
    2178       }
    2179 #endif
    21802038#else
    21812039      WRITE_UVLC(MRG_MAX_NUM_CANDS - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
     
    22432101  {
    22442102    // Derive the value of PocMsbValRequiredFlag
    2245 #if !H_MV_HLS_FIX
    2246     pcSlice->setPocMsbValRequiredFlag( pcSlice->getCraPicFlag() || pcSlice->getBlaPicFlag()
    2247                                           /* || related to vps_poc_lsb_aligned_flag */
    2248                                           );
    2249 #endif
    22502103
    22512104    // Determine value of SH extension length.
     
    22652118
    22662119
    2267 #if H_MV_HLS_FIX
    22682120    if( !pcSlice->getPocMsbValRequiredFlag() &&  pcSlice->getVPS()->getVpsPocLsbAlignedFlag() )
    2269 #else
    2270     if( !pcSlice->getPocMsbValRequiredFlag() /* TODO &&  pcSlice->getVPS()->getVpsPocLsbAlignedFlag() */ )
    2271 #endif
    22722121    {
    22732122      shExtnLengthInBit++;    // For poc_msb_val_present_flag
     
    23322181    pcSlice->checkPocLsbVal();
    23332182
    2334 #if H_MV_HLS_FIX
    23352183    if( !pcSlice->getPocMsbValRequiredFlag() &&  pcSlice->getVPS()->getVpsPocLsbAlignedFlag()  )
    2336 #else
    2337     if( !pcSlice->getPocMsbValRequiredFlag() /* TODO &&  pcSlice->getVPS()->getVpsPocLsbAlignedFlag() */ )
    2338 #endif
    23392184    {
    23402185      WRITE_FLAG( pcSlice->getPocMsbValPresentFlag( ) ? 1 : 0 , "poc_msb_val_present_flag" );
  • trunk/source/Lib/TLibEncoder/TEncCavlc.h

    r1124 r1133  
    9999#endif
    100100#if H_3D
    101 #if HHI_VPS_3D_EXTENSION_I3_J0107
    102101  Void  codeVPS3dExtension       ( TComVPS* pcVPS );
    103 #else
    104   Void  codeVPSExtension2       ( TComVPS* pcVPS );
    105 #endif
    106 #if HHI_TOOL_PARAMETERS_I2_J0107
    107102  Void  codeSPS3dExtension      ( TComSPS* pcSPS );
    108103  Void  codeSPS                 ( TComSPS* pcSPS );
    109 #else
    110   Void  codeSPSExtension2       ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag  );
    111   Void  codeSPS                 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
    112 #endif
    113104#else
    114105  Void  codeSPS                 ( TComSPS* pcSPS );
  • trunk/source/Lib/TLibEncoder/TEncCfg.h

    r1124 r1133  
    392392  Double    m_dDispCoeff;
    393393#endif
    394 #if !HHI_TOOL_PARAMETERS_I2_J0107
    395 #if H_3D_ARP
    396   UInt      m_uiUseAdvResPred;
    397   UInt      m_uiARPStepNum;
    398 #endif
    399 #if H_3D_SPIVMP
    400   Int      m_iSubPULog2Size;
    401   Int      m_iSubPUMPILog2Size;
    402 #endif
    403 #endif
    404394#if H_3D_IC
    405395  Bool      m_bUseIC;
    406396  Bool      m_bUseICLowLatencyEnc;
    407397#endif
    408 #if !HHI_TOOL_PARAMETERS_I2_J0107
    409 #if H_3D_INTER_SDC
    410   bool      m_bInterSDC;
    411 #endif
    412 #if H_3D_DBBP
    413   Bool      m_bUseDBBP;
    414 #endif
    415 #endif
    416398  //====== Depth Intra Modes ======
    417399#if H_3D_DIM
    418400  Bool      m_useDMM;
    419 #if !HHI_TOOL_PARAMETERS_I2_J0107
    420   Bool      m_useIVP;
    421 #endif
    422401  Bool      m_useSDC;
    423402  Bool      m_useDLT;
    424 #endif
    425 #if !HHI_TOOL_PARAMETERS_I2_J0107
    426 #if H_3D_SINGLE_DEPTH
    427   Bool      m_useSingleDepthMode;
    428 #endif
    429 
    430 #if H_3D_IV_MERGE
    431   Bool      m_useMPI;
    432 #endif
    433403#endif
    434404#if H_3D_QTLPC
     
    506476  Void      setMaxTempLayer                 ( Int maxTempLayer )            { m_maxTempLayer = maxTempLayer;      }
    507477
    508 #if !HHI_TOOL_PARAMETERS_I2_J0107
    509 #if H_3D_ARP
    510   UInt       getUseAdvRP                    ( )              { return m_uiUseAdvResPred; }
    511   Void       setUseAdvRP                    ( UInt  u )      { m_uiUseAdvResPred = u;    }
    512 
    513   UInt       getARPStepNum                  ()               { return m_uiARPStepNum;    }
    514   Void       setARPStepNum                  ( UInt  u )      { m_uiARPStepNum = u;       }
    515 #endif
    516 #if H_3D_SPIVMP
    517   Int        getSubPULog2Size                   ()                   { return m_iSubPULog2Size;}
    518   Void       setSubPULog2Size                   (Int u)              { m_iSubPULog2Size = u; }     
    519   Int        getSubPUMPILog2Size            ()               { return m_iSubPUMPILog2Size;}
    520   Void       setSubPUMPILog2Size            (Int u)          { m_iSubPUMPILog2Size = u;   }     
    521 #endif
    522 #endif
    523478#if H_3D_IC
    524479  Void       setUseIC                       ( Bool bVal )    { m_bUseIC = bVal; }
     
    526481  Void       setUseICLowLatencyEnc          ( Bool bVal )    { m_bUseICLowLatencyEnc = bVal; }
    527482  Bool       getUseICLowLatencyEnc          ()               { return m_bUseICLowLatencyEnc; }
    528 #endif
    529 #if !HHI_TOOL_PARAMETERS_I2_J0107
    530 #if H_3D_INTER_SDC
    531   Void       setInterSDCEnable              ( Bool bVal )    { m_bInterSDC = bVal; }
    532   Bool       getInterSDCEnable              ()               { return m_bInterSDC; }
    533 #endif
    534 #if H_3D_DBBP
    535   Void       setUseDBBP                     ( Bool  b )      { m_bUseDBBP   = b; }
    536   Bool       getUseDBBP()                                    { return m_bUseDBBP;     }
    537 #endif
    538483#endif
    539484  //======== Transform =============
     
    991936  Bool      getUseDMM                       ()        { return m_useDMM; }
    992937  Void      setUseDMM                       ( Bool b) { m_useDMM = b;    }
    993 #if !HHI_TOOL_PARAMETERS_I2_J0107
    994   Bool      getUseIVP                       ()        { return m_useIVP; }
    995   Void      setUseIVP                       ( Bool b) { m_useIVP = b;    }
    996 #endif
    997938  Bool      getUseSDC                       ()        { return m_useSDC; }
    998939  Void      setUseSDC                       ( Bool b) { m_useSDC = b;    }
     
    1000941  Bool      getUseDLT                       ()        { return m_useDLT; }
    1001942  Void      setUseDLT                       ( Bool b) { m_useDLT = b;    }
    1002 #endif
    1003 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1004 #if H_3D_SINGLE_DEPTH
    1005   Void       setUseSingleDepthMode          ( Bool bVal )    { m_useSingleDepthMode = bVal; }
    1006   Bool       getUseSingleDepthMode          ()               { return m_useSingleDepthMode; }
    1007 #endif
    1008943#endif
    1009944#if H_3D_QTLPC
     
    1011946  Bool      getUseQTL                       ()         { return m_bUseQTL; }
    1012947#endif
    1013 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1014 #if H_3D_IV_MERGE
    1015   Void      setUseMPI                       ( Bool b ) { m_useMPI = b;    }
    1016   Bool      getUseMPI                       ()         { return m_useMPI; }
    1017 #endif
    1018 #endif
    1019948#endif // H_3D
    1020949};
  • trunk/source/Lib/TLibEncoder/TEncCu.cpp

    r1124 r1133  
    409409
    410410#if H_3D_QTLPC
    411 #if HHI_TOOL_PARAMETERS_I2_J0107
    412411  Bool  bLimQtPredFalg    = pcPic->getSlice(0)->getQtPredFlag();
    413 #else
    414     TComVPS *vps            = pcPic->getSlice(0)->getVPS();
    415   Bool  bLimQtPredFalg    = vps->getLimQtPredFlag(pcPic->getSlice(0)->getLayerId());
    416 #endif
    417412  TComPic *pcTexture      = rpcBestCU->getSlice()->getTexturePic();
    418413
     
    570565      {
    571566#if H_3D_ARP && H_3D_IV_MERGE
    572 #if HHI_TOOL_PARAMETERS_I2_J0107
    573567        if( rpcTempCU->getSlice()->getIvResPredFlag() || rpcTempCU->getSlice()->getIvMvPredFlag() )
    574 #else
    575         if( rpcTempCU->getSlice()->getVPS()->getUseAdvRP(rpcTempCU->getSlice()->getLayerId()) || rpcTempCU->getSlice()->getVPS()->getIvMvPredFlag(rpcTempCU->getSlice()->getLayerId()) )
    576 #endif
    577568#else
    578569#if H_3D_ARP
     
    598589#endif
    599590#if H_3D_NBDV_REF
    600 #if HHI_TOOL_PARAMETERS_I2_J0107
    601591          if( rpcTempCU->getSlice()->getDepthRefinementFlag() )
    602 #else
    603           if(rpcTempCU->getSlice()->getVPS()->getDepthRefinementFlag( rpcTempCU->getSlice()->getLayerIdInVps()))
    604 #endif
    605592            DvInfo.bDV = rpcTempCU->getDisMvpCandNBDV(&DvInfo, true);
    606593          else
     
    617604      }
    618605#if  H_3D_FAST_TEXTURE_ENCODING
    619 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
    620606      if(rpcTempCU->getSlice()->getViewIndex() && !rpcTempCU->getSlice()->getIsDepth() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
    621 #else
    622       if(rpcTempCU->getSlice()->getViewIndex() && !rpcTempCU->getSlice()->getIsDepth())
    623 #endif
    624607      {
    625608        PartSize ePartTemp = rpcTempCU->getPartitionSize(0);
     
    684667         
    685668#if H_3D_DBBP
    686 #if SEC_DBBP_VIEW_REF_CHECK_J0037
    687 #if HHI_TOOL_PARAMETERS_I2_J0107
    688669          if( rpcTempCU->getSlice()->getDepthBasedBlkPartFlag() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
    689 #else
    690           if( m_pcEncCfg->getUseDBBP() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
    691 #endif
    692 #else
    693           if( m_pcEncCfg->getUseDBBP() )
    694 #endif
    695670          {
    696671            xCheckRDCostInterDBBP( rpcBestCU, rpcTempCU, false );
     
    739714#if H_3D_SINGLE_DEPTH
    740715    rpcTempCU->initEstData( uiDepth, iMinQP, isAddLowestQP  );
    741 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    742 #if ALIGN_J0060_J0107
    743716    if( rpcBestCU->getSlice()->getIntraSingleFlag() )
    744 #else
    745     if(rpcBestCU->getSlice()->getVPS()->getSingleDepthModeFlag(rpcBestCU->getSlice()->getLayerIdInVps()))
    746 #endif
    747 #else
    748     if(rpcBestCU->getSlice()->getApplySingleDepthMode())
    749 #endif
    750717    {
    751718      xCheckRDCostSingleDepth( rpcBestCU, rpcTempCU, SIZE_2Nx2N );
     
    10741041#if H_3D_DIM
    10751042            Bool bOnlyIVP = false;
     1043#if TICKET083_IVPFLAG_FIX
     1044            Bool bUseIVP = true;
     1045#endif
    10761046            if( rpcBestCU->getSlice()->getIsDepth() && !(rpcBestCU->getSlice()->isIRAP()) &&
    10771047                rpcBestCU->getSlice()->getSliceType() != I_SLICE &&
     
    10821052            {
    10831053              bOnlyIVP = true;
     1054#if TICKET083_IVPFLAG_FIX
     1055              bUseIVP = rpcBestCU->getSlice()->getIntraContourFlag();
     1056#endif
    10841057            }
     1058#if TICKET083_IVPFLAG_FIX
     1059            if( bUseIVP )
     1060            {
     1061#endif
    10851062            xCheckRDCostIntra( rpcBestCU, rpcTempCU, SIZE_2Nx2N, bOnlyIVP );
    10861063#else
     
    11161093#endif
    11171094            }
     1095#if TICKET083_IVPFLAG_FIX
     1096          }
     1097#endif
    11181098          }
    11191099        // test PCM
     
    19011881
    19021882#endif
    1903 #if !LGE_DDD_REMOVAL_J0042_J0030
    1904 #if H_3D_DDD
    1905     Int iDDDCand = rpcTempCU->getUseDDDCandIdx();
    1906     UChar ucDDDepth = rpcTempCU->getDDTmpDepth();
    1907     rpcTempCU->setUseDDD( false, 0, uhDepth );
    1908 #endif
    1909 #endif
    19101883
    19111884  for( UInt uiNoResidual = 0; uiNoResidual < iteration; ++uiNoResidual )
     
    19401913#if H_3D_VSP
    19411914          rpcTempCU->setVSPFlagSubParts( vspFlag[uiMergeCand], 0, 0, uhDepth );
    1942 #endif
    1943 #if !LGE_DDD_REMOVAL_J0042_J0030
    1944 #if H_3D_DDD
    1945           if( rpcTempCU->getSlice()->getIsDepth() && rpcTempCU->getSlice()->getViewIndex() != 0 && iDDDCand == uiMergeCand )
    1946           {
    1947               rpcTempCU->setUseDDD( true, 0, 0, uhDepth );
    1948               rpcTempCU->setDDDepthSubParts( ucDDDepth, 0, 0, uhDepth );
    1949           }
    1950           else
    1951           {
    1952               rpcTempCU->setUseDDD( false, 0, 0, uhDepth );
    1953           }
    1954 #endif
    19551915#endif
    19561916#if H_3D_SPIVMP
     
    20562016          xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    20572017#if H_3D_INTER_SDC
    2058 #if HHI_TOOL_PARAMETERS_I2_J0107
    20592018          if( rpcTempCU->getSlice()->getInterSdcFlag() && !uiNoResidual )
    2060 #else
    2061           if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && !uiNoResidual )
    2062 #endif
    20632019          {
    20642020            Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE};
     
    21322088      {
    21332089#if H_3D_INTER_SDC
    2134 #if HHI_TOOL_PARAMETERS_I2_J0107
    21352090        if( rpcTempCU->getSlice()->getInterSdcFlag() )
    2136 #else
    2137         if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) )
    2138 #endif
    21392091        {
    21402092          bestIsSkip = !rpcBestCU->getSDCFlag( 0 ) && ( rpcBestCU->getQtRootCbf(0) == 0 );
     
    22122164  UChar uhDepth = rpcTempCU->getDepth( 0 );
    22132165#if H_3D_ARP
    2214 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2215   Int iLayerId    = rpcTempCU->getSlice()->getLayerId();
    2216 #endif
    22172166  Bool bFirstTime = true;
    22182167  Int nARPWMax    = rpcTempCU->getSlice()->getARPStepNum() - 1;
     
    22252174  for( Int nARPW = 0; nARPW <= nARPWMax; nARPW++ )
    22262175  {
    2227 #if HHI_TOOL_PARAMETERS_I2_J0107
    22282176    if( !bFirstTime && rpcTempCU->getSlice()->getIvResPredFlag() )
    2229 #else
    2230     if( bFirstTime == false && rpcTempCU->getSlice()->getVPS()->getUseAdvRP( iLayerId ) )
    2231 #endif
    22322177    {
    22332178      rpcTempCU->initEstData( rpcTempCU->getDepth(0), rpcTempCU->getQP(0),bTransquantBypassFlag );     
     
    22532198  rpcTempCU->setPartSizeSubParts  ( ePartSize,  0, uhDepth );
    22542199  rpcTempCU->setPredModeSubParts  ( MODE_INTER, 0, uhDepth );
    2255 #if !LGE_DDD_REMOVAL_J0042_J0030
    2256 #if H_3D_DDD
    2257   rpcTempCU->setUseDDD( false, 0, uhDepth );
    2258 #endif
    2259 #endif
    22602200
    22612201#if H_3D_ARP
     
    23352275  xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    23362276#if H_3D_INTER_SDC
    2337 #if HHI_TOOL_PARAMETERS_I2_J0107
    23382277  if( rpcTempCU->getSlice()->getInterSdcFlag() && ePartSize == SIZE_2Nx2N)
    2339 #else
    2340   if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && ePartSize == SIZE_2Nx2N)
    2341 #endif
    23422278  {
    23432279    Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE};
  • trunk/source/Lib/TLibEncoder/TEncEntropy.cpp

    r1124 r1133  
    7878}
    7979
    80 #if HHI_TOOL_PARAMETERS_I2_J0107
    8180Void TEncEntropy::encodeSPS( TComSPS* pcSPS )
    8281{
     
    8483  return;
    8584}
    86 #else
    87 #if H_3D
    88 Void TEncEntropy::encodeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    89 {
    90   m_pcEntropyCoderIf->codeSPS( pcSPS, viewIndex, depthFlag );
    91   return;
    92 }
    93 #else
    94 Void TEncEntropy::encodeSPS( TComSPS* pcSPS )
    95 {
    96   m_pcEntropyCoderIf->codeSPS( pcSPS );
    97   return;
    98 }
    99 #endif
    100 #endif
    10185
    10286Void TEncEntropy::encodeCUTransquantBypassFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD )
     
    130114Void TEncEntropy::encodeSingleDepthMode( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD )
    131115{
    132 #if ALIGN_J0060_J0107
    133116  if(!pcCU->getSlice()->getIntraSingleFlag() )
    134117  {
    135118    return;
    136119  }
    137 #else
    138   if ( !pcCU->getSlice()->getIsDepth() )
    139   {
    140     return;
    141   }
    142 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    143   if(!pcCU->getSlice()->getVPS()->getSingleDepthModeFlag(pcCU->getSlice()->getLayerIdInVps()))
    144   {
    145      return;
    146   }
    147 #else
    148   if(!pcCU->getSlice()->getApplySingleDepthMode())
    149   {
    150      return;
    151   }
    152 #endif
    153 #endif
    154120  if( bRD )
    155121  {
     
    289255 
    290256#if H_3D_DBBP
    291 #if SEC_DBBP_VIEW_REF_CHECK_J0037
    292 #if HHI_TOOL_PARAMETERS_I2_J0107
    293257  if( pcCU->getSlice()->getDepthBasedBlkPartFlag() && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
    294 #else
    295   if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
    296 #endif
    297 #else
    298   if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 )
    299 #endif
    300258  {
    301259    encodeDBBPFlag(pcCU, uiAbsPartIdx, bRD);
     
    809767Void TEncEntropy::encodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD )
    810768{
    811 #if HHI_TOOL_PARAMETERS_I2_J0107
    812769  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getInterSdcFlag() ) ||
    813770    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getIntraSdcWedgeFlag() ) )
    814 #else
    815   if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) ||
    816     ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )
    817 #endif
    818771  {
    819772    return;
  • trunk/source/Lib/TLibEncoder/TEncEntropy.h

    r1124 r1133  
    6969
    7070  virtual Void  codeVPS                 ( TComVPS* pcVPS )                                      = 0;
    71 #if HHI_TOOL_PARAMETERS_I2_J0107
    7271  virtual Void  codeSPS                 ( TComSPS* pcSPS )                                      = 0;
    73 #else
    74 #if !H_3D
    75   virtual Void  codeSPS                 ( TComSPS* pcSPS )                                      = 0;
    76 #else
    77   virtual Void  codeSPS                 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )       = 0;
    78 #endif
    79 #endif
    8072  virtual Void  codePPS                 ( TComPPS* pcPPS )                                      = 0;
    8173  virtual Void  codeSliceHeader         ( TComSlice* pcSlice )                                  = 0;
     
    169161  Void encodeVPS               ( TComVPS* pcVPS);
    170162  // SPS
    171 #if HHI_TOOL_PARAMETERS_I2_J0107
    172163  Void encodeSPS               ( TComSPS* pcSPS );
    173 #else
    174 #if H_3D
    175   Void encodeSPS               ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
    176 #else
    177   Void encodeSPS               ( TComSPS* pcSPS );
    178 #endif
    179 #endif
    180164  Void encodePPS               ( TComPPS* pcPPS );
    181165  Void encodeSplitFlag         ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false );
  • trunk/source/Lib/TLibEncoder/TEncGOP.cpp

    r1124 r1133  
    880880
    881881    TComVPS*           vps = pcSlice->getVPS();     
    882 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    883882#if H_3D
    884883    Int numDirectRefLayers = vps    ->getNumRefListLayers( getLayerId() );
    885 #else
    886     Int numDirectRefLayers = vps    ->getNumDirectRefLayers( getLayerId() );
    887 #endif
    888884#else
    889885    Int numDirectRefLayers = vps    ->getNumDirectRefLayers( getLayerId() );
     
    901897          pcSlice->setNumInterLayerRefPicsMinus1( gopEntry.m_numActiveRefLayerPics - 1 );
    902898        }
    903 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    904899#if H_3D
    905900        if ( gopEntry.m_numActiveRefLayerPics != vps->getNumRefListLayers( getLayerId() ) )
    906 #else
    907         if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) )
    908 #endif
    909901#else
    910902        if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) )
     
    957949    pcSlice->setRefPicList ( rcListPic );
    958950#endif
    959 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    960 #if H_3D_SINGLE_DEPTH
    961 #if HHI_TOOL_PARAMETERS_I2_J0107
    962     pcSlice->setApplySingleDepthMode( pcSlice->getIntraSingleFlag() );
    963 #else
    964     TEncTop* pcEncTop = (TEncTop*) m_pcCfg;
    965     bool enableSingleDepthMode=false;
    966     if(pcEncTop->getUseSingleDepthMode())
    967     {
    968       if(pcSlice->getIsDepth())
    969       {
    970         enableSingleDepthMode=true;
    971       }
    972     }
    973     pcSlice->setApplySingleDepthMode(enableSingleDepthMode);
    974 #endif
    975 #endif   
    976 #endif
    977 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
     951#if H_3D
    978952    pcSlice->setDefaultRefView();
    979953#endif
     
    14391413        pcSlice->getSPS()->getVuiParameters()->setHrdParametersPresentFlag( true );
    14401414      }
    1441 #if HHI_TOOL_PARAMETERS_I2_J0107
    14421415      m_pcEntropyCoder->encodeSPS(pcSlice->getSPS());
    1443 #else
    1444 #if !H_3D
    1445       m_pcEntropyCoder->encodeSPS(pcSlice->getSPS());
    1446 #else
    1447       m_pcEntropyCoder->encodeSPS(pcSlice->getSPS(), pcSlice->getViewIndex(), pcSlice->getIsDepth() );
    1448 #endif
    1449 #endif
    14501416      writeRBSPTrailingBits(nalu.m_Bitstream);
    14511417      accessUnit.push_back(new NALUnitEBSP(nalu));
  • trunk/source/Lib/TLibEncoder/TEncSbac.cpp

    r1124 r1133  
    255255      curCost += m_CUTransquantBypassFlagSCModel.calcCost( curSliceType, qp, (UChar*)INIT_CU_TRANSQUANT_BYPASS_FLAG );
    256256#if H_3D_DIM
    257 #if HHI_TOOL_PARAMETERS_I2_J0107
    258257    if( m_pcSlice->getIntraSdcWedgeFlag() || m_pcSlice->getIntraContourFlag() )
    259 #else
    260     if( m_pcSlice->getVpsDepthModesFlag() || m_pcSlice->getIVPFlag() )
    261 #endif
    262258    {
    263259      curCost += m_cDepthIntraModeSCModel.calcCost    ( curSliceType, qp, (UChar*)INIT_DEPTH_INTRA_MODE );
     
    350346}
    351347
    352 #if HHI_TOOL_PARAMETERS_I2_J0107
    353348Void TEncSbac::codeSPS( TComSPS* pcSPS )
    354 #else
    355 #if H_3D
    356 Void TEncSbac::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    357 #else
    358 Void TEncSbac::codeSPS( TComSPS* pcSPS )
    359 #endif
    360 #endif
    361349{
    362350  assert (0);
     
    633621  PartSize eSize         = pcCU->getPartitionSize( uiAbsPartIdx );
    634622#if H_3D_QTLPC
    635 #if HHI_TOOL_PARAMETERS_I2_J0107
    636623  Bool    bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag();
    637 #else
    638   TComVPS *vps           = pcCU->getPic()->getSlice(0)->getVPS();
    639   Bool    bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());
    640 #endif
    641624  TComPic *pcTexture     = pcCU->getSlice()->getTexturePic();
    642625  Bool bDepthMapDetect   = (pcTexture != NULL);
     
    1011994
    1012995 
    1013 #if HHI_TOOL_PARAMETERS_I2_J0107
    1014996  Bool    bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag();
    1015 #else
    1016   TComVPS *vps           = pcCU->getPic()->getSlice(0)->getVPS();
    1017   Bool    bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());
    1018 #endif
    1019997  TComPic *pcTexture     = pcCU->getSlice()->getTexturePic();
    1020998  Bool bDepthMapDetect   = (pcTexture != NULL);
     
    10771055    dir[j] = pcCU->getLumaIntraDir( absPartIdx+partOffset*j );
    10781056#if H_3D_DIM
    1079 #if HHI_TOOL_PARAMETERS_I2_J0107
    10801057    if( pcCU->getSlice()->getIntraSdcWedgeFlag() ||  pcCU->getSlice()->getIntraContourFlag() )
    1081 #else
    1082     if( pcCU->getSlice()->getVpsDepthModesFlag() ||  pcCU->getSlice()->getIVPFlag() )
    1083 #endif
    10841058    {
    10851059      codeIntraDepth( pcCU, absPartIdx+partOffset*j );
     
    12271201    }
    12281202    //mode coding
    1229 #if HHI_TOOL_PARAMETERS_I2_J0107
    12301203    if( pcCU->getSlice()->getIntraSdcWedgeFlag() && pcCU->getSlice()->getIntraContourFlag())
    1231 #else
    1232     if( pcCU->getSlice()->getVpsDepthModesFlag() && pcCU->getSlice()->getIVPFlag())
    1233 #endif
    12341204    {
    12351205      m_pcBinIf->encodeBin( uiCodeIdx == 0 ? 0 : 1, m_cDepthIntraModeSCModel.get( 0, 0, 0 ) );
     
    23302300  PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx );
    23312301  AOF( ePartSize == SIZE_2NxN || ePartSize == SIZE_Nx2N );
    2332 #if HHI_TOOL_PARAMETERS_I2_J0107
    23332302  AOF( pcCU->getSlice()->getDepthBasedBlkPartFlag() );
    2334 #else
    2335   AOF( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) );
    2336 #endif
    23372303  AOF( !pcCU->getSlice()->getIsDepth() );
    23382304 
  • trunk/source/Lib/TLibEncoder/TEncSbac.h

    r1124 r1133  
    9494
    9595  Void  codeVPS                 ( TComVPS* pcVPS );
    96 #if HHI_TOOL_PARAMETERS_I2_J0107
    9796  Void  codeSPS                 ( TComSPS* pcSPS     );
    98 #else
    99 #if !H_3D
    100   Void  codeSPS                 ( TComSPS* pcSPS     );
    101 #else
    102   Void  codeSPS                 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
    103 #endif
    104 #endif
    10597  Void  codePPS                 ( TComPPS* pcPPS     );
    10698  Void  codeSliceHeader         ( TComSlice* pcSlice );
  • trunk/source/Lib/TLibEncoder/TEncSearch.cpp

    r1124 r1133  
    28812881  Int index=0;
    28822882  Pel testDepth;
    2883 #if SINGLE_DEPTH_SIMP_J0115
    28842883  Pel DepthNeighbours[2];
    2885 #else
    2886   Pel DepthNeighbours[5];
    2887 #endif
    28882884  //construction of depth candidates
    2889 #if SINGLE_DEPTH_SIMP_J0115
    28902885  for( Int i = 0; (i < 2)  && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )
    2891 #else
    2892   for( Int i = 0; (i < 5)  && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )
    2893 #endif
    28942886  {
    28952887    if(!pcCU->getNeighDepth (0, 0, &testDepth, i))
     
    28992891    DepthNeighbours[index]=testDepth;
    29002892    index++;
    2901 #if !SINGLE_DEPTH_SIMP_J0115
    2902     for(Int j=0;j<index-1;j++)
    2903     {
    2904       if( (DepthNeighbours[index-1]==DepthNeighbours[j]))
    2905       {
    2906         index--;
    2907         break;
    2908       }
    2909     }
    2910 #endif
    29112893  }
    29122894
     
    31323114    if( m_pcEncCfg->getIsDepth() && uiWidth >= DIM_MIN_SIZE && uiWidth <= DIM_MAX_SIZE && uiWidth == uiHeight )
    31333115    {
    3134 #if HHI_TOOL_PARAMETERS_I2_J0107
     3116#if TICKET083_IVPFLAG_FIX
     3117      if( bOnlyIVP )
     3118#else
    31353119      if( bOnlyIVP && pcCU->getSlice()->getIntraContourFlag() )
    3136 #else
    3137       if( bOnlyIVP && m_pcEncCfg->getUseIVP() )
    31383120#endif
    31393121      {
     
    31583140
    31593141#if H_3D_DIM_DMM
    3160 #if HHI_TOOL_PARAMETERS_I2_J0107
    31613142      if( ( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() )  || pcCU->getSlice()->getIntraContourFlag() )
    3162 #else
    3163       if( ( m_pcEncCfg->getUseDMM() || m_pcEncCfg->getUseIVP() )
    3164 #endif
    31653143#if H_3D_FAST_DEPTH_INTRA
    31663144         && (uiRdModeList[0] != PLANAR_IDX || varCU >= varThreshold)
     
    31693147      {
    31703148        UInt uiStart, uiEnd;
    3171 #if HHI_TOOL_PARAMETERS_I2_J0107
    31723149        if( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) &&  pcCU->getSlice()->getIntraContourFlag() )
    3173 #else
    3174         if( m_pcEncCfg->getUseDMM() &&  m_pcEncCfg->getUseIVP() )
    3175 #endif
    31763150        {
    31773151          uiStart = 0;
    31783152          uiEnd   = 2;
    31793153        }
    3180 #if HHI_TOOL_PARAMETERS_I2_J0107
    31813154        else if( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) )
    3182 #else
    3183         else if( m_pcEncCfg->getUseDMM() )
    3184 #endif
    31853155        {
    31863156          uiStart = 0;
    31873157          uiEnd   = 1;
    31883158        }
    3189 #if HHI_TOOL_PARAMETERS_I2_J0107
    31903159        else if( pcCU->getSlice()->getIntraContourFlag() )
    3191 #else
    3192         else if( m_pcEncCfg->getUseIVP() )
    3193 #endif
    31943160        {
    31953161          uiStart = 1;
     
    33293295#if H_3D_DIM_SDC
    33303296#if H_3D_FAST_INTRA_SDC
    3331 #if HHI_TOOL_PARAMETERS_I2_J0107
    33323297      Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);
    3333 #else
    3334       Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);
    3335 #endif
    33363298#else
    33373299      Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) );
     
    41774139      }
    41784140#endif
    4179 #if !LGE_DDD_REMOVAL_J0042_J0030
    4180 #if H_3D_DDD
    4181       if( uiMergeCand == pcCU->getUseDDDCandIdx() )
    4182       {
    4183         pcCU->setUseDDD( true, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );
    4184         pcCU->setDDDepthSubParts( pcCU->getDDTmpDepth(), uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );
    4185       }
    4186       else
    4187       {
    4188         pcCU->setUseDDD( false, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );
    4189       }
    4190 #endif
    4191 #endif
    41924141
    41934142      xGetInterPredictionError( pcCU, pcYuvOrg, iPUIdx, uiCostCand, m_pcEncCfg->getUseHADME() );
     
    48754824#if H_3D_VSP
    48764825        pcCU->setVSPFlagSubParts( vspFlag[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    4877 #endif
    4878 #if !LGE_DDD_REMOVAL_J0042_J0030
    4879 #if H_3D_DDD
    4880         if( uiMRGIndex == pcCU->getUseDDDCandIdx() )
    4881         {
    4882             assert( vspFlag[uiMRGIndex]     == 0 );
    4883             assert( bSPIVMPFlag[uiMRGIndex] == 0 );
    4884             pcCU->setUseDDD( true, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    4885             pcCU->setDDDepthSubParts( pcCU->getDDTmpDepth(), uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    4886         }
    4887         else
    4888         {
    4889             pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    4890         }
    4891 #endif
    48924826#endif
    48934827#if H_3D_SPIVMP
     
    49674901        pcCU->setSPIVMPFlagSubParts(0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    49684902#endif
    4969 #if !LGE_DDD_REMOVAL_J0042_J0030
    4970 #if H_3D_DDD
    4971         pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    4972 #endif
    4973 #endif
    49744903        // set ME result
    49754904        pcCU->setMergeFlagSubParts( false,        uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
     
    53535282#endif
    53545283#if H_3D_INTER_SDC
    5355 #if HHI_TOOL_PARAMETERS_I2_J0107 
    53565284   pcPatternKey->setSDCMRSADFlag( pcCU->getSlice()->getInterSdcFlag() );
    5357 #else
    5358   if ( pcCU->getSlice()->getIsDepth() && pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) )
    5359   {
    5360     pcPatternKey->setSDCMRSADFlag( true );
    5361   }
    5362   else
    5363   {
    5364     pcPatternKey->setSDCMRSADFlag( false );
    5365   }
    5366 #endif
    53675285#endif
    53685286
  • trunk/source/Lib/TLibEncoder/TEncSlice.cpp

    r1124 r1133  
    215215  rpcSlice->setPicOutputFlag( true );
    216216  rpcSlice->setPOC( pocCurr );
    217 #if HHI_TOOL_PARAMETERS_I2_J0107
    218217#if H_3D
    219218  rpcSlice->init3dToolParameters();
    220 #endif
    221219#endif
    222220#if H_3D_IC
     
    613611  rpcSlice->setSliceSegmentArgument ( m_pcCfg->getSliceSegmentArgument() );
    614612#if H_3D_IV_MERGE
    615 #if HHI_TOOL_PARAMETERS_I2_J0107
    616 #if ALGIN_J0107_J0059
    617613  rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( ( rpcSlice->getMpiFlag( ) || rpcSlice->getIvMvPredFlag( ) || rpcSlice->getViewSynthesisPredFlag( )   ) ? 1 : 0 ));
    618 #else
    619   rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( ( rpcSlice->getMpiFlag( ) || rpcSlice->getIvMvPredFlag( ) ) ? 1 : 0 ));
    620 #endif
    621 #else
    622   if(rpcSlice->getIsDepth())
    623   {
    624     rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( ( rpcSlice->getVPS()->getMPIFlag( rpcSlice->getLayerIdInVps() ) || rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ) ? 1 : 0 ) );
    625   }
    626   else
    627   {
    628 #if MTK_MRG_LIST_SIZE_CLEANUP_J0059
    629     rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() )  || rpcSlice->getVPS()->getViewSynthesisPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) );
    630 #else
    631     rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) );
    632 #endif
    633   }
    634 #endif
    635614#else
    636615  rpcSlice->setMaxNumMergeCand        ( m_pcCfg->getMaxNumMergeCand()        );
     
    10281007    }
    10291008  }
    1030 #if LGE_DEFAULT_DV_J0046 && !SEC_ARP_VIEW_REF_CHECK_J0037 && !SEC_DBBP_VIEW_REF_CHECK_J0037
    1031   pcSlice->setDefaultRefViewIdx( -1 );
    1032   pcSlice->setDefaultRefViewIdxAvailableFlag( false );
    1033 
    1034   Int valid = 0;
    1035   Int viewIndex = 0;
    1036   for( UInt uiBId = 0; uiBId < pcSlice->getViewIndex() && valid==0; uiBId++ )
    1037   {
    1038       UInt        uiBaseId    = uiBId;
    1039       TComPic*    pcBasePic   = pcSlice->getIvPic( false, uiBaseId );
    1040       for( Int iRefListId = 0; ( iRefListId < (pcSlice->isInterB()? 2:1) ) && !pcSlice->isIntra() && valid==0; iRefListId++ )
    1041       {
    1042           RefPicList  eRefPicListTest = RefPicList( iRefListId );
    1043           Int         iNumRefPics = pcSlice->getNumRefIdx( eRefPicListTest ) ;
    1044           for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )
    1045           {
    1046               if(pcBasePic->getPOC() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getPOC()
    1047                   && pcBasePic->getViewIndex() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())
    1048               {
    1049                   valid=1;
    1050                   viewIndex = uiBaseId;
    1051                   break;
    1052               }
    1053           }
    1054       }
    1055   }
    1056   if( valid )
    1057   {
    1058       pcSlice->setDefaultRefViewIdx( viewIndex );
    1059       pcSlice->setDefaultRefViewIdxAvailableFlag( true );   
    1060   }
    1061 #endif
    10621009
    10631010  // for every CU in slice
  • trunk/source/Lib/TLibEncoder/TEncSlice.h

    r1124 r1133  
    107107  UInt                    m_uiSliceIdx;
    108108  std::vector<TEncSbac*> CTXMem;
    109 #if !LGE_DDD_REMOVAL_J0042_J0030
    110 #if H_3D_DDD
    111   Int          m_iDDDScale;
    112   Int          m_iDDDOffset;
    113   UInt         m_uiDDDPrecision;
    114 #endif
    115 #endif
    116109public:
    117110  TEncSlice();
     
    147140  Void      initCtxMem( UInt i );
    148141  Void      setCtxMem( TEncSbac* sb, Int b )   { CTXMem[b] = sb; }
    149 #if !LGE_DDD_REMOVAL_J0042_J0030
    150 #if H_3D_DDD
    151   Void setDDDPar( Int iScale, Int iOffset, UInt uiPrecision ){ m_iDDDScale = iScale; m_iDDDOffset = iOffset; m_uiDDDPrecision = uiPrecision; }
    152 #endif
    153 #endif
    154142
    155143private:
  • trunk/source/Lib/TLibEncoder/TEncTop.cpp

    r1124 r1133  
    896896#if H_MV
    897897  m_cPPS.setLayerId( getLayerId() );
    898 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    899898#if H_3D
    900899  // Check if this condition is still correct
    901900  if( getVPS()->getNumRefListLayers( getLayerId() ) > 0 )
    902 #else
    903   if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 )
    904 #endif
    905901#else
    906902  if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 )
  • trunk/source/Lib/TLibEncoder/TEncTop.h

    r1124 r1133  
    270270  Void                    setIvPicLists         ( TComPicLists* picLists) { m_ivPicLists = picLists; }
    271271#endif
    272 #if HHI_TOOL_PARAMETERS_I2_J0107
    273272#if H_3D
    274273  Void                    setSps3dExtension     ( TComSps3dExtension sps3dExtension ) { m_cSPS.setSps3dExtension( sps3dExtension );  };
    275 #endif
    276274#endif
    277275#if H_3D_IC
Note: See TracChangeset for help on using the changeset viewer.