Ignore:
Timestamp:
6 Nov 2014, 20:29:09 (10 years ago)
Author:
tech
Message:
  • HHI_TOOL_PARAMETERS_I2_J0107: Tool parameters moved to SPS and combined with dependency flags
  • Related update of cfg files.
Location:
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1103 r1106  
    638638}
    639639
     640#if HHI_TOOL_PARAMETERS_I2_J0107
     641Void TEncCavlc::codeSPS( TComSPS* pcSPS )
     642#else
    640643#if H_3D
    641644Void TEncCavlc::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    642645#else
    643646Void TEncCavlc::codeSPS( TComSPS* pcSPS )
     647#endif
    644648#endif
    645649{
     
    842846  if ( pcSPS->getSps3dExtensionFlag() )
    843847  {
     848#if HHI_TOOL_PARAMETERS_I2_J0107
     849    codeSPS3dExtension( pcSPS );
     850#else
    844851    codeSPSExtension2( pcSPS, viewIndex, depthFlag  );
     852#endif
    845853  }
    846854
     
    868876
    869877#if H_3D
     878#if HHI_TOOL_PARAMETERS_I2_J0107
     879Void TEncCavlc::codeSPS3dExtension( TComSPS* pcSPS )
     880{
     881  TComSps3dExtension* sps3dExt = pcSPS->getSps3dExtension();
     882  for( Int d = 0; d  <=  1; d++ )
     883  {
     884    WRITE_FLAG( sps3dExt->getIvMvPredFlag( d ) ? 1 : 0 , "iv_mv_pred_flag" );
     885    WRITE_FLAG( sps3dExt->getIvMvScalingFlag( d ) ? 1 : 0 , "iv_mv_scaling_flag" );
     886    if( d  ==  0 )
     887    {
     888      WRITE_UVLC( sps3dExt->getLog2SubPbSizeMinus3( d ), "log2_sub_pb_size_minus3" );
     889      WRITE_FLAG( sps3dExt->getIvResPredFlag( d ) ? 1 : 0 , "iv_res_pred_flag" );
     890      WRITE_FLAG( sps3dExt->getDepthRefinementFlag( d ) ? 1 : 0 , "depth_refinement_flag" );
     891      WRITE_FLAG( sps3dExt->getViewSynthesisPredFlag( d ) ? 1 : 0 , "view_synthesis_pred_flag" );
     892      WRITE_FLAG( sps3dExt->getDepthBasedBlkPartFlag( d ) ? 1 : 0 , "depth_based_blk_part_flag" );
     893    }
     894    else
     895    {
     896      WRITE_FLAG( sps3dExt->getMpiFlag( d ) ? 1 : 0 , "mpi_flag" );
     897      WRITE_UVLC( sps3dExt->getLog2MpiSubPbSizeMinus3( d ), "log2_mpi_sub_pb_size_minus3" );
     898      WRITE_FLAG( sps3dExt->getIntraContourFlag( d ) ? 1 : 0 , "intra_contour_flag" );
     899      WRITE_FLAG( sps3dExt->getIntraSdcWedgeFlag( d ) ? 1 : 0 , "intra_sdc_wedge_flag" );
     900      WRITE_FLAG( sps3dExt->getQtPredFlag( d ) ? 1 : 0 , "qt_pred_flag" );
     901      WRITE_FLAG( sps3dExt->getInterSdcFlag( d ) ? 1 : 0 , "inter_sdc_flag" );
     902      WRITE_FLAG( sps3dExt->getIntraSingleFlag( d ) ? 1 : 0 , "intra_single_flag" );
     903    }
     904  }
     905}
     906#else
    870907Void TEncCavlc::codeSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    871908{
    872909
    873910}
     911#endif
    874912#endif
    875913
     
    15771615Void TEncCavlc::codeVPSExtension2( TComVPS* pcVPS )
    15781616{
     1617#if !HHI_TOOL_PARAMETERS_I2_J0107
    15791618  for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ )
    15801619  {
     
    16221661    } 
    16231662  }
     1663#endif
    16241664  WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" );
    16251665  for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++)
     
    20882128    {
    20892129#if H_3D_IV_MERGE
     2130#if HHI_TOOL_PARAMETERS_I2_J0107
     2131      WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
     2132#else
    20902133      if(pcSlice->getIsDepth())
    20912134      {
     
    20992142        WRITE_UVLC( ( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
    21002143      }
     2144#endif
    21012145#else
    21022146      WRITE_UVLC(MRG_MAX_NUM_CANDS - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCavlc.h

    r1084 r1106  
    100100#if H_3D
    101101  Void  codeVPSExtension2       ( TComVPS* pcVPS );
     102#if HHI_TOOL_PARAMETERS_I2_J0107
     103  Void  codeSPS3dExtension      ( TComSPS* pcSPS );
     104  Void  codeSPS                 ( TComSPS* pcSPS );
     105#else
    102106  Void  codeSPSExtension2       ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag  );
    103107  Void  codeSPS                 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
     108#endif
    104109#else
    105110  Void  codeSPS                 ( TComSPS* pcSPS );
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCfg.h

    r1084 r1106  
    392392  Double    m_dDispCoeff;
    393393#endif
     394#if !HHI_TOOL_PARAMETERS_I2_J0107
    394395#if H_3D_ARP
    395396  UInt      m_uiUseAdvResPred;
     
    400401  Int      m_iSubPUMPILog2Size;
    401402#endif
     403#endif
    402404#if H_3D_IC
    403405  Bool      m_bUseIC;
    404406  Bool      m_bUseICLowLatencyEnc;
    405407#endif
     408#if !HHI_TOOL_PARAMETERS_I2_J0107
    406409#if H_3D_INTER_SDC
    407410  bool      m_bInterSDC;
     
    409412#if H_3D_DBBP
    410413  Bool      m_bUseDBBP;
     414#endif
    411415#endif
    412416  //====== Depth Intra Modes ======
    413417#if H_3D_DIM
    414418  Bool      m_useDMM;
     419#if !HHI_TOOL_PARAMETERS_I2_J0107
    415420  Bool      m_useIVP;
     421#endif
    416422  Bool      m_useSDC;
    417423  Bool      m_useDLT;
    418424#endif
     425#if !HHI_TOOL_PARAMETERS_I2_J0107
    419426#if H_3D_SINGLE_DEPTH
    420427  Bool      m_useSingleDepthMode;
    421428#endif
     429
    422430#if H_3D_IV_MERGE
    423431  Bool      m_useMPI;
     432#endif
    424433#endif
    425434#if H_3D_QTLPC
     
    497506  Void      setMaxTempLayer                 ( Int maxTempLayer )            { m_maxTempLayer = maxTempLayer;      }
    498507
     508#if !HHI_TOOL_PARAMETERS_I2_J0107
    499509#if H_3D_ARP
    500510  UInt       getUseAdvRP                    ( )              { return m_uiUseAdvResPred; }
     
    510520  Void       setSubPUMPILog2Size            (Int u)          { m_iSubPUMPILog2Size = u;   }     
    511521#endif
     522#endif
    512523#if H_3D_IC
    513524  Void       setUseIC                       ( Bool bVal )    { m_bUseIC = bVal; }
     
    516527  Bool       getUseICLowLatencyEnc          ()               { return m_bUseICLowLatencyEnc; }
    517528#endif
     529#if !HHI_TOOL_PARAMETERS_I2_J0107
    518530#if H_3D_INTER_SDC
    519531  Void       setInterSDCEnable              ( Bool bVal )    { m_bInterSDC = bVal; }
     
    523535  Void       setUseDBBP                     ( Bool  b )      { m_bUseDBBP   = b; }
    524536  Bool       getUseDBBP()                                    { return m_bUseDBBP;     }
     537#endif
    525538#endif
    526539  //======== Transform =============
     
    932945  Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; }
    933946#if H_3D
     947
     948  // Only flags that are not in the SPS3dExtension should go here.
    934949  /// 3D Tools
    935950
     
    976991  Bool      getUseDMM                       ()        { return m_useDMM; }
    977992  Void      setUseDMM                       ( Bool b) { m_useDMM = b;    }
     993#if !HHI_TOOL_PARAMETERS_I2_J0107
    978994  Bool      getUseIVP                       ()        { return m_useIVP; }
    979995  Void      setUseIVP                       ( Bool b) { m_useIVP = b;    }
     996#endif
    980997  Bool      getUseSDC                       ()        { return m_useSDC; }
    981998  Void      setUseSDC                       ( Bool b) { m_useSDC = b;    }
     999
    9821000  Bool      getUseDLT                       ()        { return m_useDLT; }
    9831001  Void      setUseDLT                       ( Bool b) { m_useDLT = b;    }
    9841002#endif
     1003#if !HHI_TOOL_PARAMETERS_I2_J0107
    9851004#if H_3D_SINGLE_DEPTH
    9861005  Void       setUseSingleDepthMode          ( Bool bVal )    { m_useSingleDepthMode = bVal; }
    9871006  Bool       getUseSingleDepthMode          ()               { return m_useSingleDepthMode; }
    9881007#endif
     1008#endif
    9891009#if H_3D_QTLPC
    9901010  Void      setUseQTL                       ( Bool b ) { m_bUseQTL = b;    }
    9911011  Bool      getUseQTL                       ()         { return m_bUseQTL; }
    9921012#endif
     1013#if !HHI_TOOL_PARAMETERS_I2_J0107
    9931014#if H_3D_IV_MERGE
    9941015  Void      setUseMPI                       ( Bool b ) { m_useMPI = b;    }
    9951016  Bool      getUseMPI                       ()         { return m_useMPI; }
    9961017#endif
     1018#endif
    9971019#endif // H_3D
    9981020};
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCu.cpp

    r1100 r1106  
    410410#if H_3D_QTLPC
    411411  TComVPS *vps            = pcPic->getSlice(0)->getVPS();
     412#if HHI_TOOL_PARAMETERS_I2_J0107
     413  Bool  bLimQtPredFalg    = pcPic->getSlice(0)->getQtPredFlag();
     414#else
    412415  Bool  bLimQtPredFalg    = vps->getLimQtPredFlag(pcPic->getSlice(0)->getLayerId());
     416#endif
    413417  TComPic *pcTexture      = rpcBestCU->getSlice()->getTexturePic();
    414418
     
    566570      {
    567571#if H_3D_ARP && H_3D_IV_MERGE
     572#if HHI_TOOL_PARAMETERS_I2_J0107
     573        if( rpcTempCU->getSlice()->getIvResPredFlag() || rpcTempCU->getSlice()->getIvMvPredFlag() )
     574#else
    568575        if( rpcTempCU->getSlice()->getVPS()->getUseAdvRP(rpcTempCU->getSlice()->getLayerId()) || rpcTempCU->getSlice()->getVPS()->getIvMvPredFlag(rpcTempCU->getSlice()->getLayerId()) )
     576#endif
    569577#else
    570578#if H_3D_ARP
     
    590598#endif
    591599#if H_3D_NBDV_REF
     600#if HHI_TOOL_PARAMETERS_I2_J0107
     601          if( rpcTempCU->getSlice()->getDepthRefinementFlag() )
     602#else
    592603          if(rpcTempCU->getSlice()->getVPS()->getDepthRefinementFlag( rpcTempCU->getSlice()->getLayerIdInVps()))
     604#endif
    593605            DvInfo.bDV = rpcTempCU->getDisMvpCandNBDV(&DvInfo, true);
    594606          else
     
    673685#if H_3D_DBBP
    674686#if SEC_DBBP_VIEW_REF_CHECK_J0037
     687#if HHI_TOOL_PARAMETERS_I2_J0107
     688          if( rpcTempCU->getSlice()->getDepthBasedBlkPartFlag() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
     689#else
    675690          if( m_pcEncCfg->getUseDBBP() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
     691#endif
    676692#else
    677693          if( m_pcEncCfg->getUseDBBP() )
     
    20322048          xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    20332049#if H_3D_INTER_SDC
     2050#if HHI_TOOL_PARAMETERS_I2_J0107
     2051          if( rpcTempCU->getSlice()->getInterSdcFlag() && !uiNoResidual )
     2052#else
    20342053          if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && !uiNoResidual )
     2054#endif
    20352055          {
    20362056            Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE};
     
    21042124      {
    21052125#if H_3D_INTER_SDC
     2126#if HHI_TOOL_PARAMETERS_I2_J0107
     2127        if( rpcTempCU->getSlice()->getInterSdcFlag() )
     2128#else
    21062129        if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) )
     2130#endif
    21072131        {
    21082132          bestIsSkip = !rpcBestCU->getSDCFlag( 0 ) && ( rpcBestCU->getQtRootCbf(0) == 0 );
     
    21912215  for( Int nARPW = 0; nARPW <= nARPWMax; nARPW++ )
    21922216  {
     2217#if HHI_TOOL_PARAMETERS_I2_J0107
     2218    if( !bFirstTime && rpcTempCU->getSlice()->getIvResPredFlag() )
     2219#else
    21932220    if( bFirstTime == false && rpcTempCU->getSlice()->getVPS()->getUseAdvRP( iLayerId ) )
     2221#endif
    21942222    {
    21952223      rpcTempCU->initEstData( rpcTempCU->getDepth(0), rpcTempCU->getQP(0),bTransquantBypassFlag );     
     
    22972325  xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    22982326#if H_3D_INTER_SDC
     2327#if HHI_TOOL_PARAMETERS_I2_J0107
     2328  if( rpcTempCU->getSlice()->getInterSdcFlag() && ePartSize == SIZE_2Nx2N)
     2329#else
    22992330  if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && ePartSize == SIZE_2Nx2N)
     2331#endif
    23002332  {
    23012333    Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE};
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncEntropy.cpp

    r1100 r1106  
    7878}
    7979
     80#if HHI_TOOL_PARAMETERS_I2_J0107
     81Void TEncEntropy::encodeSPS( TComSPS* pcSPS )
     82{
     83  m_pcEntropyCoderIf->codeSPS( pcSPS );
     84  return;
     85}
     86#else
    8087#if H_3D
    8188Void TEncEntropy::encodeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
     
    9097  return;
    9198}
     99#endif
    92100#endif
    93101
     
    269277#if H_3D_DBBP
    270278#if SEC_DBBP_VIEW_REF_CHECK_J0037
     279#if HHI_TOOL_PARAMETERS_I2_J0107
     280  if( pcCU->getSlice()->getDepthBasedBlkPartFlag() && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
     281#else
    271282  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() )
     283#endif
    272284#else
    273285  if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 )
     
    784796Void TEncEntropy::encodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD )
    785797{
     798#if HHI_TOOL_PARAMETERS_I2_J0107
     799  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getInterSdcFlag() ) ||
     800    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getIntraSdcWedgeFlag() ) )
     801#else
    786802  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) ||
    787803    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )
     804#endif
    788805  {
    789806    return;
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncEntropy.h

    r1084 r1106  
    6969
    7070  virtual Void  codeVPS                 ( TComVPS* pcVPS )                                      = 0;
     71#if HHI_TOOL_PARAMETERS_I2_J0107
     72  virtual Void  codeSPS                 ( TComSPS* pcSPS )                                      = 0;
     73#else
    7174#if !H_3D
    7275  virtual Void  codeSPS                 ( TComSPS* pcSPS )                                      = 0;
    7376#else
    7477  virtual Void  codeSPS                 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )       = 0;
     78#endif
    7579#endif
    7680  virtual Void  codePPS                 ( TComPPS* pcPPS )                                      = 0;
     
    165169  Void encodeVPS               ( TComVPS* pcVPS);
    166170  // SPS
     171#if HHI_TOOL_PARAMETERS_I2_J0107
     172  Void encodeSPS               ( TComSPS* pcSPS );
     173#else
    167174#if H_3D
    168175  Void encodeSPS               ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
    169176#else
    170177  Void encodeSPS               ( TComSPS* pcSPS );
     178#endif
    171179#endif
    172180  Void encodePPS               ( TComPPS* pcPPS );
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncGOP.cpp

    r1103 r1106  
    958958#endif
    959959#if H_3D_SINGLE_DEPTH
     960#if HHI_TOOL_PARAMETERS_I2_J0107
     961    pcSlice->setApplySingleDepthMode( pcSlice->getIntraSingleFlag() );
     962#else
    960963    TEncTop* pcEncTop = (TEncTop*) m_pcCfg;
    961964    bool enableSingleDepthMode=false;
     
    968971    }
    969972    pcSlice->setApplySingleDepthMode(enableSingleDepthMode);
     973#endif
    970974#endif   
    971975#if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
     
    14331437        pcSlice->getSPS()->getVuiParameters()->setHrdParametersPresentFlag( true );
    14341438      }
     1439#if HHI_TOOL_PARAMETERS_I2_J0107
     1440      m_pcEntropyCoder->encodeSPS(pcSlice->getSPS());
     1441#else
    14351442#if !H_3D
    14361443      m_pcEntropyCoder->encodeSPS(pcSlice->getSPS());
    14371444#else
    14381445      m_pcEntropyCoder->encodeSPS(pcSlice->getSPS(), pcSlice->getViewIndex(), pcSlice->getIsDepth() );
     1446#endif
    14391447#endif
    14401448      writeRBSPTrailingBits(nalu.m_Bitstream);
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSbac.cpp

    r1084 r1106  
    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
     258    if( m_pcSlice->getIntraSdcWedgeFlag() || m_pcSlice->getIntraContourFlag() )
     259#else
    257260    if( m_pcSlice->getVpsDepthModesFlag() || m_pcSlice->getIVPFlag() )
     261#endif
    258262    {
    259263      curCost += m_cDepthIntraModeSCModel.calcCost    ( curSliceType, qp, (UChar*)INIT_DEPTH_INTRA_MODE );
     
    346350}
    347351
     352#if HHI_TOOL_PARAMETERS_I2_J0107
     353Void TEncSbac::codeSPS( TComSPS* pcSPS )
     354#else
    348355#if H_3D
    349356Void TEncSbac::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    350357#else
    351358Void TEncSbac::codeSPS( TComSPS* pcSPS )
     359#endif
    352360#endif
    353361{
     
    626634#if H_3D_QTLPC
    627635  TComVPS *vps           = pcCU->getPic()->getSlice(0)->getVPS();
     636#if HHI_TOOL_PARAMETERS_I2_J0107
     637  Bool    bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag();
     638#else
    628639  Bool    bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());
     640#endif
    629641  TComPic *pcTexture     = pcCU->getSlice()->getTexturePic();
    630642  Bool bDepthMapDetect   = (pcTexture != NULL);
     
    9991011
    10001012  TComVPS *vps           = pcCU->getPic()->getSlice(0)->getVPS();
     1013#if HHI_TOOL_PARAMETERS_I2_J0107
     1014  Bool    bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag();
     1015#else
    10011016  Bool    bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());
     1017#endif
    10021018  TComPic *pcTexture     = pcCU->getSlice()->getTexturePic();
    10031019  Bool bDepthMapDetect   = (pcTexture != NULL);
     
    10601076    dir[j] = pcCU->getLumaIntraDir( absPartIdx+partOffset*j );
    10611077#if H_3D_DIM
     1078#if HHI_TOOL_PARAMETERS_I2_J0107
     1079    if( pcCU->getSlice()->getIntraSdcWedgeFlag() ||  pcCU->getSlice()->getIntraContourFlag() )
     1080#else
    10621081    if( pcCU->getSlice()->getVpsDepthModesFlag() ||  pcCU->getSlice()->getIVPFlag() )
     1082#endif
    10631083    {
    10641084      codeIntraDepth( pcCU, absPartIdx+partOffset*j );
     
    12061226    }
    12071227    //mode coding
     1228#if HHI_TOOL_PARAMETERS_I2_J0107
     1229    if( pcCU->getSlice()->getIntraSdcWedgeFlag() && pcCU->getSlice()->getIntraContourFlag())
     1230#else
    12081231    if( pcCU->getSlice()->getVpsDepthModesFlag() && pcCU->getSlice()->getIVPFlag())
     1232#endif
    12091233    {
    12101234      m_pcBinIf->encodeBin( uiCodeIdx == 0 ? 0 : 1, m_cDepthIntraModeSCModel.get( 0, 0, 0 ) );
     
    23052329  PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx );
    23062330  AOF( ePartSize == SIZE_2NxN || ePartSize == SIZE_Nx2N );
     2331#if HHI_TOOL_PARAMETERS_I2_J0107
     2332  AOF( pcCU->getSlice()->getDepthBasedBlkPartFlag() );
     2333#else
    23072334  AOF( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) );
     2335#endif
    23082336  AOF( !pcCU->getSlice()->getIsDepth() );
    23092337 
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSbac.h

    r1084 r1106  
    9494
    9595  Void  codeVPS                 ( TComVPS* pcVPS );
     96#if HHI_TOOL_PARAMETERS_I2_J0107
     97  Void  codeSPS                 ( TComSPS* pcSPS     );
     98#else
    9699#if !H_3D
    97100  Void  codeSPS                 ( TComSPS* pcSPS     );
    98101#else
    99102  Void  codeSPS                 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
     103#endif
    100104#endif
    101105  Void  codePPS                 ( TComPPS* pcPPS     );
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSearch.cpp

    r1094 r1106  
    31173117    }
    31183118#endif
    3119 
     3119   
    31203120#if H_3D_DIM
    31213121    //===== determine set of depth intra modes to be tested =====
    31223122    if( m_pcEncCfg->getIsDepth() && uiWidth >= DIM_MIN_SIZE && uiWidth <= DIM_MAX_SIZE && uiWidth == uiHeight )
    31233123    {
     3124#if HHI_TOOL_PARAMETERS_I2_J0107
     3125      if( bOnlyIVP && pcCU->getSlice()->getIntraContourFlag() )
     3126#else
    31243127      if( bOnlyIVP && m_pcEncCfg->getUseIVP() )
     3128#endif
    31253129      {
    31263130        TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight );
     
    31443148
    31453149#if H_3D_DIM_DMM
     3150#if HHI_TOOL_PARAMETERS_I2_J0107
     3151      if( ( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() )  || pcCU->getSlice()->getIntraContourFlag() )
     3152#else
    31463153      if( ( m_pcEncCfg->getUseDMM() || m_pcEncCfg->getUseIVP() )
     3154#endif
    31473155#if H_3D_FAST_DEPTH_INTRA
    31483156         && (uiRdModeList[0] != PLANAR_IDX || varCU >= varThreshold)
     
    31513159      {
    31523160        UInt uiStart, uiEnd;
     3161#if HHI_TOOL_PARAMETERS_I2_J0107
     3162        if( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) &&  pcCU->getSlice()->getIntraContourFlag() )
     3163#else
    31533164        if( m_pcEncCfg->getUseDMM() &&  m_pcEncCfg->getUseIVP() )
     3165#endif
    31543166        {
    31553167          uiStart = 0;
    31563168          uiEnd   = 2;
    31573169        }
     3170#if HHI_TOOL_PARAMETERS_I2_J0107
     3171        else if( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) )
     3172#else
    31583173        else if( m_pcEncCfg->getUseDMM() )
     3174#endif
    31593175        {
    31603176          uiStart = 0;
    31613177          uiEnd   = 1;
    31623178        }
     3179#if HHI_TOOL_PARAMETERS_I2_J0107
     3180        else if( pcCU->getSlice()->getIntraContourFlag() )
     3181#else
    31633182        else if( m_pcEncCfg->getUseIVP() )
     3183#endif
    31643184        {
    31653185          uiStart = 1;
     
    32993319#if H_3D_DIM_SDC
    33003320#if H_3D_FAST_INTRA_SDC
    3301       Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);
     3321      Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);
    33023322#else
    33033323      Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) );
     
    53195339#endif
    53205340#if H_3D_INTER_SDC
     5341#if HHI_TOOL_PARAMETERS_I2_J0107 
     5342   pcPatternKey->setSDCMRSADFlag( pcCU->getSlice()->getInterSdcFlag() );
     5343#else
    53215344  if ( pcCU->getSlice()->getIsDepth() && pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) )
    53225345  {
     
    53275350    pcPatternKey->setSDCMRSADFlag( false );
    53285351  }
     5352#endif
    53295353#endif
    53305354
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSlice.cpp

    r1100 r1106  
    215215  rpcSlice->setPicOutputFlag( true );
    216216  rpcSlice->setPOC( pocCurr );
     217#if HHI_TOOL_PARAMETERS_I2_J0107
     218#if H_3D
     219  rpcSlice->init3dToolParameters();
     220#endif
     221#endif
    217222#if H_3D_IC
    218223  rpcSlice->setApplyIC( false );
     
    608613  rpcSlice->setSliceSegmentArgument ( m_pcCfg->getSliceSegmentArgument() );
    609614#if H_3D_IV_MERGE
     615#if HHI_TOOL_PARAMETERS_I2_J0107
     616  rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( ( rpcSlice->getMpiFlag( ) || rpcSlice->getIvMvPredFlag( ) ) ? 1 : 0 ));
     617#else
    610618  if(rpcSlice->getIsDepth())
    611619  {
     
    616624    rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) );
    617625  }
     626#endif
    618627#else
    619628  rpcSlice->setMaxNumMergeCand        ( m_pcCfg->getMaxNumMergeCand()        );
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncTop.cpp

    r1103 r1106  
    534534Void TEncTop::encode(Bool flush, TComPicYuv* pcPicYuvOrg, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded, bool isTff, Int gopId )
    535535{
    536   assert( 0 ); // Field coding and multiview need to be furhter harmonized.
     536  assert( 0 ); // Field coding and multiview need to be further harmonized.
    537537}
    538538#else
  • branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncTop.h

    r1084 r1106  
    270270  Void                    setIvPicLists         ( TComPicLists* picLists) { m_ivPicLists = picLists; }
    271271#endif
     272#if HHI_TOOL_PARAMETERS_I2_J0107
     273#if H_3D
     274  Void                    setSps3dExtension     ( TComSps3dExtension sps3dExtension ) { m_cSPS.setSps3dExtension( sps3dExtension );  };
     275#endif
     276#endif
    272277#if H_3D_IC
    273278  Void                    setICEnableCandidate         ( Int* ICEnableCandidate) { m_aICEnableCandidate = ICEnableCandidate; }
Note: See TracChangeset for help on using the changeset viewer.