Changeset 1131 in 3DVCSoftware


Ignore:
Timestamp:
18 Feb 2015, 17:39:40 (9 years ago)
Author:
tech
Message:

Cleanup.

Location:
branches/HTM-13.0-dev0/source
Files:
37 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-13.0-dev0/source/App/TAppEncoder/TAppEncCfg.cpp

    r1124 r1131  
    377377  ("DepthFlag",             m_depthFlag          , std::vector<Int>(1,0), "Depth Flag")
    378378#if H_3D_DIM
    379 #if !HHI_TOOL_PARAMETERS_I2_J0107
    380   ("DMM",                   m_useDMM,           true,  "Depth intra model modes")
    381   ("IVP",                   m_useIVP,           true,  "intra-view prediction")
    382   ("SDC",                   m_useSDC,           true,  "Simplified depth coding")
    383 #endif
    384379  ("DLT",                   m_useDLT,           true,  "Depth lookup table")
    385380#endif
    386381#if H_3D
    387 #if !HHI_TOOL_PARAMETERS_I2_J0107
    388   ("SingleDepthMode",    m_useSingleDepthMode, true, "Single depth mode")                         
    389 #endif
    390382#endif
    391383#endif
     
    408400  ("ProfileTierLevelIdx_%d",  m_profileTierLevelIdx, std::vector<Int>(0), MAX_NUM_LAYERS, "Indices to profile level tier for ols")
    409401  // Layer dependencies
    410 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    411402  ("DirectRefLayers_%d",    m_directRefLayers    , std::vector<Int>(0,0), MAX_NUM_LAYERS, "LayerIdx in VPS of direct reference layers")
    412 #else
    413   ("DirectRefLayers_%d",    m_directRefLayers    , std::vector<Int>(0,0), MAX_NUM_LAYERS, "LayerIds of direct reference layers")
    414 #endif
    415403  ("DependencyTypes_%d",    m_dependencyTypes    , std::vector<Int>(0,0), MAX_NUM_LAYERS, "Dependency types of direct reference layers, 0: Sample 1: Motion 2: Sample+Motion")
    416404#endif
     
    538526  ("DeblockingFilterMetric",         m_DeblockingFilterMetric,         false )
    539527
    540 #if !HHI_TOOL_PARAMETERS_I2_J0107
    541 #if H_3D_ARP
    542   ("AdvMultiviewResPred",      m_uiUseAdvResPred,           (UInt)1, "Usage of Advanced Residual Prediction" )
    543 #endif
    544 #if H_3D_SPIVMP
    545   ("SubPULog2Size", m_iSubPULog2Size, (Int)3, "Sub-PU size index: 2^n")
    546   ("SubPUMPILog2Size", m_iSubPUMPILog2Size, (Int)3, "Sub-PU MPI size index: 2^n")
    547 #endif
    548 #endif
    549528#if H_3D_IC
    550529  ("IlluCompEnable",           m_abUseIC, true, "Enable illumination compensation")
    551530  ("IlluCompLowLatencyEnc",    m_bUseLowLatencyICEnc, false, "Enable low-latency illumination compensation encoding")
    552 #endif
    553 #if !HHI_TOOL_PARAMETERS_I2_J0107
    554 #if H_3D_INTER_SDC
    555   ("InterSDC",                 m_bDepthInterSDCFlag,        true, "Enable depth inter SDC")
    556 #endif
    557 #if H_3D_DBBP
    558   ("DBBP",                     m_bUseDBBP,   true, "Enable depth-based block partitioning" )
    559 #endif
    560 #if H_3D_IV_MERGE
    561   ("MPI",                      m_bMPIFlag,        true, "Enable MPI")
    562 #endif
    563531#endif
    564532  // Coding tools
     
    801769
    802770#endif //HHI_VSO
    803 #if HHI_TOOL_PARAMETERS_I2_J0107
    804771  ("QTL",                             m_bUseQTL                 , true          , "Use depth quad tree limitation (encoder only)" )
    805 #else
    806 #if H_3D_QTLPC
    807   ("LimQtPredFlag",                   m_bLimQtPredFlag          , true          , "Use Predictive Coding with QTL" )
    808   ("QTL",                             m_bUseQTL                 , true          , "Use depth Quadtree Limitation" )
    809 #endif
    810 #if H_3D_IV_MERGE
    811   ("IvMvPred",                        m_ivMvPredFlag            , std::vector<Bool>(2, true)            , "inter view motion prediction " )
    812 #endif
    813 #if H_3D_NBDV_REF
    814   ("DepthRefinement",                 m_depthRefinementFlag,    true           , "depth refinement by DoNBDV" ) 
    815 #endif
    816 #if H_3D_VSP
    817   ("ViewSynthesisPred",               m_viewSynthesisPredFlag,  true           , "view synthesis prediction " ) 
    818 #endif
    819 #if H_3D
    820   ("IvMvScaling",                     m_ivMvScalingFlag      ,  true            , "inter view motion vector scaling" )   
    821 #endif
    822 #endif
    823 
    824 #if HHI_TOOL_PARAMETERS_I2_J0107
     772
    825773  ("IvMvPredFlag"          , m_ivMvPredFlag          , std::vector< Bool >(2,true)                    , "Inter-view motion prediction"              )
    826774  ("IvMvScalingFlag"       , m_ivMvScalingFlag       , std::vector< Bool >(2,true)                    , "Inter-view motion vector scaling"          )
     
    838786  ("InterSdcFlag"          , m_interSdcFlag          , true                                           , "Inter depth DCs"                           )
    839787  ("IntraSingleFlag"       , m_intraSingleFlag       , true                                           , "Intra single mode"                         )
    840 #endif
    841788#endif //H_3D
    842789  ;
     
    16801627
    16811628#if H_3D_ARP
    1682 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1683   xConfirmPara( ( 0 != m_uiUseAdvResPred ) &&  ( 1 != m_uiUseAdvResPred ), "UseAdvResPred must be 0 or 1." );
    1684 #endif
    16851629#endif
    16861630#if H_3D_SPIVMP
    1687 #if HHI_TOOL_PARAMETERS_I2_J0107
    16881631  xConfirmPara( m_log2SubPbSizeMinus3 < 0,                                        "Log2SubPbSizeMinus3 must be equal to 0 or greater.");
    16891632  xConfirmPara( m_log2SubPbSizeMinus3 > 3,                                        "Log2SubPbSizeMinus3 must be equal to 3 or smaller.");
     
    16931636  xConfirmPara( m_log2MpiSubPbSizeMinus3 > 3,                                        "Log2MpiSubPbSizeMinus3 must be equal to 3 or smaller.");
    16941637  xConfirmPara( (1<< (m_log2MpiSubPbSizeMinus3 + 3)) > m_uiMaxCUWidth,               "Log2MpiSubPbSizeMinus3 must be equal to log2(maxCUSize)-3 or smaller.");
    1695 #else
    1696   xConfirmPara( m_iSubPULog2Size < 3,                                        "SubPULog2Size must be 3 or greater.");
    1697   xConfirmPara( m_iSubPULog2Size > 6,                                        "SubPULog2Size must be 6 or smaller.");
    1698   xConfirmPara( (1<<m_iSubPULog2Size) > m_uiMaxCUWidth,                      "SubPULog2Size must be log2(maxCUSize) or smaller.");
    1699  
    1700   xConfirmPara( m_iSubPUMPILog2Size < 3,                                        "SubPUMPILog2Size must be 3 or greater.");
    1701   xConfirmPara( m_iSubPUMPILog2Size > 6,                                        "SubPUMPILog2Size must be 6 or smaller.");
    1702   xConfirmPara( ( 1 << m_iSubPUMPILog2Size ) > m_uiMaxCUWidth,                  "SubPUMPILog2Size must be log2(maxCUSize) or smaller.");
    1703 #endif
    17041638#endif
    17051639#if ADAPTIVE_QP_SELECTION
     
    26482582  printf("WVSO:%d ", m_bUseWVSO ); 
    26492583#endif
    2650 
    2651 #if HHI_TOOL_PARAMETERS_I2_J0107
     2584#if H_3D
    26522585  printf( "QTL:%d "                  , m_bUseQTL);
    26532586  printf( "IlluCompEnable:%d "       , m_abUseIC);
     
    26722605  printf( "InterSdc:%d "               , m_interSdcFlag           ? 1 : 0 );
    26732606  printf( "IntraSingle:%d "            , m_intraSingleFlag        ? 1 : 0 );
    2674 
    2675 #else
    2676 #if H_3D_QTLPC
    2677   printf("LimQtPredFlag:%d ", m_bLimQtPredFlag ? 1 : 0);
    2678   printf("QTL:%d ", m_bUseQTL);
    2679 #endif
    2680 #if H_3D_IV_MERGE 
    2681   printf("IvMvPred:%d %d", m_ivMvPredFlag[0] ? 1 : 0, m_ivMvPredFlag[1] ? 1 : 0);
    2682 #if H_3D_SPIVMP
    2683   printf(" SubPULog2Size:%d  " , m_iSubPULog2Size  );
    2684   printf(" SubPUMPILog2Size:%d  " , m_iSubPUMPILog2Size  );
    2685 #endif
    2686 #endif
    2687 #if H_3D_ARP
    2688   printf(" ARP:%d  ", m_uiUseAdvResPred  );
    2689 #endif
    2690 #if H_3D_IC
    2691   printf( "IlluCompEnable:%d ", m_abUseIC);
    2692   printf ("IlluCompLowLatencyEnc:%d ",  m_bUseLowLatencyICEnc);
    2693 #endif
    2694 #if H_3D_NBDV_REF
    2695   printf("DepthRefinement:%d ", m_depthRefinementFlag ); 
    2696 #endif
    2697 #if H_3D_VSP
    2698   printf("ViewSynthesisPred:%d ", m_viewSynthesisPredFlag );
    2699 #endif
    2700 #if H_3D
    2701   printf("IvMvScaling:%d ", m_ivMvScalingFlag ? 1 : 0  );
    2702 #endif
    2703 #if H_3D_DIM
    2704   printf("DMM:%d ", m_useDMM );
    2705   printf("IVP:%d ", m_useIVP );
    2706   printf("SDC:%d ", m_useSDC );
    2707   printf("DLT:%d ", m_useDLT );
    2708 #endif
    2709 #if H_3D
    2710   printf("SingleDepthMode:%d ",    m_useSingleDepthMode);
    2711 #endif
    2712 #if H_3D_INTER_SDC
    2713   printf( "interSDC:%d ", m_bDepthInterSDCFlag ? 1 : 0 );
    2714 #endif
    2715 #if H_3D_DBBP
    2716   printf("DBBP:%d ", m_bUseDBBP ? 1 : 0);
    2717 #endif
    2718 #if H_3D_IV_MERGE
    2719   printf( "MPI:%d ", m_bMPIFlag ? 1 : 0 );
    2720 #endif
    27212607#endif
    27222608
  • branches/HTM-13.0-dev0/source/App/TAppEncoder/TAppEncCfg.h

    r1124 r1131  
    132132  Bool m_higherLayerIrapSkipFlag;
    133133
    134 #if !HHI_TOOL_PARAMETERS_I2_J0107
    135 #if H_3D_IV_MERGE
    136   vector<Bool>           m_ivMvPredFlag;                      ///< Interview motion vector prediction
    137 
    138 #if H_3D_SPIVMP
    139   Int                    m_iSubPULog2Size;                   
    140   Int                    m_iSubPUMPILog2Size;                   
    141 #endif
    142 #endif
    143 #if H_3D_QTLPC
    144   Bool                   m_bLimQtPredFlag;
    145 #endif
    146 #if H_3D_ARP                                                  /// < flag and number of weighting factors in ARP
    147   UInt                   m_uiUseAdvResPred;
    148   UInt                   m_uiARPStepNum;
    149 #endif
    150 #endif
    151134
    152135#if H_3D_IC
     
    155138#endif
    156139
    157 #if !HHI_TOOL_PARAMETERS_I2_J0107
    158 #if H_3D_NBDV_REF
    159   Bool m_depthRefinementFlag; 
    160 #endif
    161 #if H_3D_VSP
    162   Bool m_viewSynthesisPredFlag;
    163 #endif
    164 #if H_3D
    165   Bool m_ivMvScalingFlag;
    166 #endif
    167 #endif
    168140#endif
    169141  Double    m_adLambdaModifier[ MAX_TLAYER ];                 ///< Lambda modifier array for each temporal layer
     
    492464#endif
    493465#if H_3D_DIM
    494 #if !HHI_TOOL_PARAMETERS_I2_J0107
    495   Bool      m_useDMM;                                        ///< flag for using DMM
    496   Bool      m_useIVP;
    497   Bool      m_useSDC;                                        ///< flag for using SDC
    498 #endif
    499466  Bool      m_useDLT;                                        ///< flag for using DLT
    500 #endif
    501 #if !HHI_TOOL_PARAMETERS_I2_J0107
    502 #if H_3D_SINGLE_DEPTH
    503   Bool     m_useSingleDepthMode;                          ///< flag for using single depth mode
    504 #endif
    505467#endif
    506468#if H_3D_QTLPC
    507469  Bool      m_bUseQTL;                                        ///< flag for using depth QuadTree Limitation
    508470#endif
    509 #if !HHI_TOOL_PARAMETERS_I2_J0107
    510 #if H_3D_INTER_SDC
    511   Bool m_bDepthInterSDCFlag;                                ///< flag for inter SDC of depth map coding
    512 #endif
    513 #if H_3D_DBBP
    514   Bool      m_bUseDBBP;                                     ///< flag for depth-based block partitioning
    515 #endif
    516 #if H_3D_IV_MERGE
    517   Bool m_bMPIFlag;                                           ///< flag for MPI of depth map coding
    518 #endif
    519 #endif
    520 
    521 #if HHI_TOOL_PARAMETERS_I2_J0107
     471
    522472  std::vector< Bool >    m_ivMvPredFlag;
    523473  std::vector< Bool >    m_ivMvScalingFlag;
     
    535485  Bool                   m_interSdcFlag;
    536486  Bool                   m_intraSingleFlag;
    537 #endif
    538487
    539488#endif
  • branches/HTM-13.0-dev0/source/App/TAppEncoder/TAppEncTop.cpp

    r1124 r1131  
    140140  xSetVPSVUI               ( vps );
    141141#if H_3D
    142 #if !HHI_TOOL_PARAMETERS_I2_J0107
    143   xSetVPSExtension2        ( vps );
    144 #endif
    145142  m_ivPicLists.setVPS      ( &vps );
    146143  xDeriveDltArray          ( vps, dlt );
     
    176173  }
    177174
    178 #if HHI_TOOL_PARAMETERS_I2_J0107
    179175#if H_3D
    180176  // Set 3d tool parameters
     
    203199    }
    204200  }
    205 #endif
    206201#endif
    207202
     
    248243    m_cTEncTop.setDWeight                      ( isDepth ? m_iDWeight             : 0     );
    249244#endif // H_3D_VSO
    250 #if !HHI_TOOL_PARAMETERS_I2_J0107
    251 #if H_3D_SPIVMP
    252     m_cTEncTop.setSubPULog2Size                 (( isDepth || 0==layerIdInVps ) ? 0 : m_iSubPULog2Size   );
    253     m_cTEncTop.setSubPUMPILog2Size              ( !isDepth ? 0 : m_iSubPUMPILog2Size   );
    254 #endif
    255 #endif
    256245#if H_3D_IC
    257246    m_cTEncTop.setUseIC                        ( vps.getViewIndex( layerId ) == 0 || isDepth ? false : m_abUseIC );
     
    260249
    261250   
    262 #if HHI_TOOL_PARAMETERS_I2_J0107
    263251    m_cTEncTop.setUseDMM                       ( isDepth ? m_intraWedgeFlag   : false );
    264252    m_cTEncTop.setUseSDC                       ( isDepth ? m_intraSdcFlag     : false );
    265253    m_cTEncTop.setUseDLT                       ( isDepth ? m_useDLT   : false );
    266254    m_cTEncTop.setUseQTL                       ( isDepth ? m_bUseQTL  : false );
    267 #else
    268 //========== Depth intra modes ==========
    269 #if H_3D_DIM
    270     m_cTEncTop.setUseDMM                       ( isDepth ? m_useDMM               : false );
    271 #if !HHI_TOOL_PARAMETERS_I2_J0107
    272 #if H_3D_FCO
    273     m_cTEncTop.setUseIVP                       ( vps.getViewIndex( layerId ) == 0 && isDepth ? m_useIVP               : false );
    274 #else
    275     m_cTEncTop.setUseIVP                       ( isDepth ? m_useIVP               : false );
    276 #endif
    277 #endif
    278     m_cTEncTop.setUseSDC                       ( isDepth ? m_useSDC               : false );
    279     m_cTEncTop.setUseDLT                       ( isDepth ? m_useDLT               : false );
    280 #endif
    281 
    282 
    283 #if H_3D_SINGLE_DEPTH
    284     m_cTEncTop.setUseSingleDepthMode           ( isDepth ? m_useSingleDepthMode   : false );
    285 #endif
    286 #if H_3D_QTLPC
    287     m_cTEncTop.setUseQTL                       ( isDepth ? m_bUseQTL               : false );
    288 #endif
    289     //====== Depth Inter SDC =========
    290 #if H_3D_INTER_SDC
    291     m_cTEncTop.setInterSDCEnable               ( isDepth ? m_bDepthInterSDCFlag    : false );
    292 #endif
    293 #if H_3D_DBBP
    294     m_cTEncTop.setUseDBBP                      ( vps.getViewIndex( layerId ) == 0 || isDepth ? false : m_bUseDBBP );
    295 #endif
    296 #if H_3D_IV_MERGE
    297 #if H_3D_FCO
    298     m_cTEncTop.setUseMPI                       ( vps.getViewIndex( layerId ) == 0 && isDepth ? m_bMPIFlag    : false );
    299 #else
    300     m_cTEncTop.setUseMPI                       ( isDepth ? m_bMPIFlag    : false );
    301 #endif
    302 #endif
    303 #endif
    304 
    305 
    306 #if HHI_TOOL_PARAMETERS_I2_J0107
     255
     256
    307257  m_cTEncTop.setSps3dExtension                 ( m_sps3dExtension );
    308 #endif
    309258#endif // H_3D
    310259
     
    937886#endif
    938887
    939 #if !LGE_DDD_REMOVAL_J0042_J0030
    940 #if H_3D_DDD
    941           m_acTEncTopList[ layer ]->getSliceEncoder()->setDDDPar( m_cCameraData.getCodedScale()[0][ m_acTEncTopList[layer]->getViewIndex() ],
    942               m_cCameraData.getCodedOffset()[0][ m_acTEncTopList[layer]->getViewIndex() ],
    943               m_cCameraData.getCamParsCodedPrecision() );
    944 #endif
    945 #endif
    946888        Int   iNumEncoded = 0;
    947889
     
    13741316  }
    13751317
    1376 #if H_MV_FIX_NUM_VIEWS
    13771318  vps.initNumViews();
    1378 #endif
    13791319  Int maxViewId = xGetMax( m_viewId );
    13801320
     
    14331373  vps.setDefaultDirectDependencyType( defaultDirectDependencyFlag ? defaultDirectDependencyType : -1 );       
    14341374
    1435 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    14361375  vps.setRefLayers();
    1437 #endif
    14381376
    14391377  // Max sub layers, + presence flag
     
    14541392  vps.setVpsSubLayersMaxMinus1PresentFlag( subLayersMaxMinus1PresentFlag );
    14551393
    1456 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    14571394  // Max temporal id for inter layer reference pictures
    14581395  for ( Int refLayerIdInVps = 0; refLayerIdInVps < m_numberOfLayers; refLayerIdInVps++)
     
    14621399    {
    14631400      Int curLayerIdInNuh = vps.getLayerIdInNuh( curLayerIdInVps );     
     1401      Int maxTid = -1;
    14641402#if H_3D
    1465       Int maxTid = -1;
    14661403      if ( vps.getDirectDependencyFlag( curLayerIdInVps, refLayerIdInVps ) )
    14671404      {
     
    14911428        else
    14921429        {       
    1493 #if HHI_TOOL_PARAMETERS_I2_J0107
    14941430          if( m_depthFlag[ curLayerIdInVps ] && ( m_mpiFlag|| m_qtPredFlag || m_intraContourFlag ) )
    1495 #else
    1496           if( m_depthFlag[ curLayerIdInVps ] && ( m_bMPIFlag || m_bLimQtPredFlag || m_useIVP  ) )
    1497 #endif
    14981431          {         
    14991432            Int nuhLayerIdTex = vps.getLayerIdInNuh( vps.getViewIndex( curLayerIdInNuh ), false );
     
    15031436            }
    15041437          }
    1505 #if HHI_TOOL_PARAMETERS_I2_J0107
    15061438          if( !m_depthFlag[ curLayerIdInVps ] && vps.getNumRefListLayers( curLayerIdInNuh) > 0  && ( m_depthRefinementFlag || m_viewSynthesisPredFlag || m_depthBasedBlkPartFlag ) )
    1507 #else
    1508           if( !m_depthFlag[ curLayerIdInVps ] && vps.getNumRefListLayers( curLayerIdInNuh) > 0  && ( m_depthRefinementFlag || m_viewSynthesisPredFlag || m_bUseDBBP) )
    1509 #endif
    15101439          { 
    15111440            Int maxPresentTid =-1;
     
    15461475  }
    15471476  vps.setMaxTidRefPresentFlag( maxTidRefPresentFlag );
    1548 #else
    1549   // Max temporal id for inter layer reference pictures + presence flag
    1550   Bool maxTidRefPresentFlag = false;
    1551   for ( Int refLayerIdInVps = 0; refLayerIdInVps < m_numberOfLayers; refLayerIdInVps++)
    1552   {
    1553     for ( Int curLayerIdInVps = 1; curLayerIdInVps < m_numberOfLayers; curLayerIdInVps++)
    1554     {
    1555         Int maxTid = -1;
    1556         for( Int i = 0; i < ( getGOPSize() + 1); i++ )
    1557         {       
    1558           GOPEntry geCur =  m_GOPListMvc[curLayerIdInVps][( i < getGOPSize()  ? i : MAX_GOP )];
    1559           GOPEntry geRef =  m_GOPListMvc[refLayerIdInVps][( i < getGOPSize()  ? i : MAX_GOP )];
    1560           for (Int j = 0; j < geCur.m_numActiveRefLayerPics; j++)
    1561           {
    1562             if ( m_directRefLayers[ curLayerIdInVps ][ geCur.m_interLayerPredLayerIdc[ j ]] == refLayerIdInVps )
    1563             {
    1564               Bool refAlwaysIntra = ( i == getGOPSize() ) && ( m_iIntraPeriod[ curLayerIdInVps ] % m_iIntraPeriod[ refLayerIdInVps ] == 0 );
    1565               Bool refLayerZero   = ( i == getGOPSize() ) && ( refLayerIdInVps == 0 );
    1566               maxTid = std::max( maxTid, ( refAlwaysIntra || refLayerZero ) ? 0 : geRef.m_temporalId );
    1567             }
    1568           }
    1569         }
    1570         vps.setMaxTidIlRefPicsPlus1( refLayerIdInVps, curLayerIdInVps, maxTid + 1 );
    1571         maxTidRefPresentFlag = maxTidRefPresentFlag || ( maxTid != 6 );   
    1572     }
    1573   }
    1574 
    1575   vps.setMaxTidRefPresentFlag( maxTidRefPresentFlag );
    1576 #endif 
    15771477
    15781478
     
    16031503  for ( Int layerIdInVps = 1; layerIdInVps < m_numberOfLayers && allRefLayersActiveFlag; layerIdInVps++)
    16041504  {   
    1605 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    16061505    Int layerIdInNuh = vps.getLayerIdInNuh( layerIdInVps );
    1607 #endif
    16081506    for( Int i = 0; i < ( getGOPSize() + 1) && allRefLayersActiveFlag; i++ )
    16091507    {       
     
    16121510     
    16131511      // check if all reference layers when allRefLayerActiveFlag is equal to 1 are reference layer pictures specified in the gop entry
    1614 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    16151512#if H_3D
    16161513      for (Int k = 0; k < vps.getNumRefListLayers( layerIdInNuh ) && allRefLayersActiveFlag; k++ )
     
    16221519        Int refLayerIdInVps = vps.getLayerIdInVps( vps.getIdDirectRefLayer( layerIdInNuh , k ) );
    16231520#endif
    1624 #else
    1625       for (Int k = 0; k < m_directRefLayers[ layerIdInVps].size() && allRefLayersActiveFlag; k++ )
    1626       {
    1627         Int refLayerIdInVps = vps.getLayerIdInVps( m_directRefLayers[ layerIdInVps ][ k ] );
    1628 #endif
    1629 #if H_MV_FIX_REF_LAYER_PIC_FLAG
    16301521        if ( vps.getSubLayersVpsMaxMinus1(refLayerIdInVps) >= tId  && ( tId == 0 || vps.getMaxTidIlRefPicsPlus1(refLayerIdInVps,layerIdInVps) > tId )  )
    1631 #else
    1632         if ( vps.getMaxTidIlRefPicsPlus1(refLayerIdInVps,layerIdInVps) > tId  && vps.getSubLayersVpsMaxMinus1(refLayerIdInVps) >= tId )
    1633 #endif
    16341522        {
    16351523          Bool gopEntryFoundFlag = false;
     
    16481536      {   
    16491537        Bool referenceLayerFoundFlag = false;
    1650 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    16511538#if H_3D
    16521539        for (Int k = 0; k < vps.getNumRefListLayers( layerIdInNuh ); k++ )
     
    16581545          Int refLayerIdInVps = vps.getLayerIdInVps( vps.getIdDirectRefLayer( layerIdInNuh, k) );
    16591546#endif
    1660 #else
    1661         for (Int k = 0; k < m_directRefLayers[ layerIdInVps].size(); k++ )
    1662         {
    1663           Int refLayerIdInVps = vps.getLayerIdInVps( m_directRefLayers[ layerIdInVps ][ k ] );
    1664 #endif
    1665 #if H_MV_FIX_REF_LAYER_PIC_FLAG
    16661547          if ( vps.getSubLayersVpsMaxMinus1(refLayerIdInVps) >= tId  && ( tId == 0 || vps.getMaxTidIlRefPicsPlus1(refLayerIdInVps,layerIdInVps) > tId )  )
    1667 #else
    1668           if ( vps.getMaxTidIlRefPicsPlus1(refLayerIdInVps,layerIdInVps) > tId  && vps.getSubLayersVpsMaxMinus1(refLayerIdInVps) >= tId )
    1669 #endif
    16701548          {         
    16711549            referenceLayerFoundFlag = referenceLayerFoundFlag || ( ge.m_interLayerPredLayerIdc[l] == k );
     
    16791557
    16801558  vps.setAllRefLayersActiveFlag( allRefLayersActiveFlag );
    1681 #if !HHI_DEPENDENCY_SIGNALLING_I1_J0107
    1682   vps.setRefLayers();
    1683 #endif
    16841559};
    16851560
     
    22102085
    22112086#if H_3D
    2212 #if HHI_TOOL_PARAMETERS_I2_J0107
    2213 #else
    2214 Void TAppEncTop::xSetVPSExtension2( TComVPS& vps )
    2215 {
    2216   for ( Int layer = 0; layer <= vps.getMaxLayersMinus1(); layer++ )
    2217   {
    2218     Bool isDepth      = ( vps.getDepthId( layer ) == 1 ) ;
    2219     Bool isLayerZero  = ( layer == 0 );
    2220 #if H_3D_FCO
    2221     Bool isDepthFirst = (layer > 1 ? true : false);
    2222 #endif
    2223 
    2224 #if H_3D_ARP
    2225     vps.setUseAdvRP        ( layer, ( isDepth || isLayerZero || !vps.getNumDirectRefLayers(layer) ) ? 0 : m_uiUseAdvResPred );
    2226     vps.setARPStepNum      ( layer, ( isDepth || isLayerZero || !vps.getNumDirectRefLayers(layer) ) ? 1 : H_3D_ARP_WFNR     );
    2227 #endif 
    2228 #if H_3D_SPIVMP
    2229     if( isDepth )
    2230     {
    2231       vps.setSubPULog2Size         ( layer, (layer != 1) ? 6: 0 );
    2232       vps.setSubPUMPILog2Size      ( layer, (!isLayerZero) ? m_iSubPUMPILog2Size: 0 );
    2233     }
    2234     else
    2235     {
    2236       vps.setSubPULog2Size         ( layer, (!isLayerZero) ? m_iSubPULog2Size: 0 );
    2237     }
    2238 #endif
    2239 
    2240 #if H_3D_DIM
    2241     vps.setVpsDepthModesFlag( layer, isDepth && !isLayerZero && (m_useDMM || m_useSDC || m_useDLT ) );
    2242 #if H_3D_FCO
    2243     vps.setIVPFlag          ( layer, isDepth && !isLayerZero && m_useIVP && !isDepthFirst );
    2244 #else
    2245     vps.setIVPFlag          ( layer, isDepth && !isLayerZero && m_useIVP );
    2246 #endif
    2247 #endif
    2248 
    2249 #if H_3D_IV_MERGE
    2250     if( !vps.getNumDirectRefLayers(layer) )
    2251     {
    2252       vps.setIvMvPredFlag    (layer, false);
    2253       vps.setIvMvScalingFlag (layer, false);
    2254     }
    2255     else
    2256     {
    2257       if( isDepth )
    2258       {
    2259         vps.setIvMvPredFlag         ( layer, (layer != 1) && m_ivMvPredFlag[1] );
    2260       }
    2261       else
    2262       {
    2263         vps.setIvMvPredFlag         ( layer, !isLayerZero && m_ivMvPredFlag[0] );
    2264       }
    2265       vps.setIvMvScalingFlag (layer, m_ivMvScalingFlag);
    2266     }
    2267 #endif
    2268 #if H_3D_QTLPC
    2269 #if H_3D_FCO
    2270     vps.setLimQtPredFlag         ( layer, isDepth && m_bLimQtPredFlag && !isDepthFirst );
    2271 #else
    2272     vps.setLimQtPredFlag         ( layer, isDepth && m_bLimQtPredFlag );
    2273 #endif
    2274 #endif
    2275 #if H_3D_NBDV_REF
    2276     vps.setDepthRefinementFlag  ( layer, !isLayerZero && !isDepth && m_depthRefinementFlag );         
    2277 #endif
    2278 #if H_3D_VSP
    2279     vps.setViewSynthesisPredFlag( layer, !isLayerZero && !isDepth && vps.getNumDirectRefLayers(layer) && m_viewSynthesisPredFlag );         
    2280 #endif
    2281 #if H_3D_DBBP
    2282     vps.setUseDBBP              ( layer, !isLayerZero && !isDepth && m_bUseDBBP );
    2283 #endif
    2284 #if H_3D_INTER_SDC
    2285     vps.setInterSDCFlag( layer, !isLayerZero && isDepth && m_bDepthInterSDCFlag );
    2286 #endif
    2287 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2288     vps.setSingleDepthModeFlag( layer, !isLayerZero && isDepth && m_useSingleDepthMode );         
    2289 #endif
    2290 #if H_3D_IV_MERGE
    2291 #if H_3D_FCO
    2292     vps.setMPIFlag( layer, !isLayerZero && isDepth && m_bMPIFlag && !isDepthFirst );
    2293 #else
    2294     vps.setMPIFlag( layer, !isLayerZero && isDepth && m_bMPIFlag );
    2295 #endif
    2296 #endif
    2297   } 
    2298 }
    2299 #endif
    23002087
    23012088Void TAppEncTop::xDeriveDltArray( TComVPS& vps, TComDLT& dlt )
  • branches/HTM-13.0-dev0/source/App/TAppEncoder/TAppEncTop.h

    r1124 r1131  
    9292#if H_3D
    9393  TComDLT                    m_dlt;                         ///< dlt
    94 #if HHI_TOOL_PARAMETERS_I2_J0107
    9594  TComSps3dExtension         m_sps3dExtension;              ///< Currently all layers share the same sps 3D Extension 
    96 #endif
    9795#endif
    9896
     
    149147#endif
    150148#if H_3D
    151 #if !HHI_TOOL_PARAMETERS_I2_J0107
    152   Void xSetVPSExtension2( TComVPS& vps );
    153 #endif
    154149  Void xDeriveDltArray( TComVPS& vps, TComDLT& dlt );
    155150#endif
  • branches/HTM-13.0-dev0/source/Lib/TAppCommon/TAppComCamPara.cpp

    r1124 r1131  
    12031203  m_uiCamParsCodedPrecision = uiCodedCamParsPrecision;
    12041204  m_iLog2Precision          = iLog2Precision;
    1205 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1206 #if HHI_INTERVIEW_SKIP
    1207   m_iCurrentFrameId         = 0 ;
    1208 #endif
    1209 #endif
    12101205
    12111206  xReadCameraParameterFile( pchCfgFileName );
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComDataCU.cpp

    r1124 r1131  
    154154#endif
    155155
    156 #if !LGE_DDD_REMOVAL_J0042_J0030
    157 #if H_3D_DDD
    158   m_pucDisparityDerivedDepth = NULL;
    159   m_pbUseDDD = NULL;
    160 #endif
    161 #endif
    162156}
    163157
     
    301295  m_pcPattern            = (TComPattern*)xMalloc(TComPattern, 1);
    302296
    303 #if !LGE_DDD_REMOVAL_J0042_J0030
    304 #if H_3D_DDD
    305   m_pucDisparityDerivedDepth         = (UChar*  )xMalloc( UChar,  uiNumPartition);
    306   m_pbUseDDD                         = (Bool*  ) xMalloc( Bool,   uiNumPartition);
    307 #endif
    308 #endif
    309297
    310298  // create motion vector fields
     
    390378#endif
    391379
    392 #if !LGE_DDD_REMOVAL_J0042_J0030
    393 #if H_3D_DDD
    394     if ( m_pucDisparityDerivedDepth ) { xFree(m_pucDisparityDerivedDepth);          m_pucDisparityDerivedDepth        = NULL; }
    395     if ( m_pbUseDDD                 ) { xFree(m_pbUseDDD);                          m_pbUseDDD                        = NULL; }
    396 #endif
    397 #endif
    398380
    399381#if H_3D_ARP
     
    524506#endif
    525507
    526 #if !LGE_DDD_REMOVAL_J0042_J0030
    527 #if H_3D_DDD
    528     m_pucDisparityDerivedDepth[ui] = pcFrom->m_pucDisparityDerivedDepth[ui];
    529     m_pbUseDDD[ui] = pcFrom->m_pbUseDDD[ui];
    530 #endif
    531 #endif
    532508    m_puhWidth  [ui] = pcFrom->getWidth(ui);
    533509    m_puhHeight [ui] = pcFrom->getHeight(ui);
     
    611587#endif
    612588
    613 #if !LGE_DDD_REMOVAL_J0042_J0030
    614 #if H_3D_DDD
    615     memset( m_pucDisparityDerivedDepth        + firstElement, 0,           numElements * sizeof( *m_pucDisparityDerivedDepth ) );
    616     memset( m_pbUseDDD                        + firstElement, 0,           numElements * sizeof( *m_pbUseDDD ) );
    617 #endif
    618 #endif
    619589
    620590#if H_3D_DIM
     
    793763#endif
    794764
    795 #if !LGE_DDD_REMOVAL_J0042_J0030
    796 #if H_3D_DDD
    797       m_pucDisparityDerivedDepth[ui] = 0;
    798       m_pbUseDDD[ui] = 0;
    799 #endif
    800 #endif
    801765
    802766#if H_3D_DIM
     
    904868#endif
    905869
    906 #if !LGE_DDD_REMOVAL_J0042_J0030
    907 #if H_3D_DDD
    908   memset( m_pucDisparityDerivedDepth,         0, iSizeInUchar );
    909   memset( m_pbUseDDD,                         0, iSizeInBool );
    910 #endif
    911 #endif
    912870
    913871  UChar uhWidth  = g_uiMaxCUWidth  >> uiDepth;
     
    1003961#endif
    1004962
    1005 #if !LGE_DDD_REMOVAL_J0042_J0030
    1006 #if H_3D_DDD
    1007       m_pucDisparityDerivedDepth[ui] = pcCU->m_pucDisparityDerivedDepth[uiPartOffset+ui];
    1008       m_pbUseDDD[ui]                 = pcCU->m_pbUseDDD[uiPartOffset+ui];
    1009 #endif
    1010 #endif
    1011963
    1012964#if H_3D_DIM
     
    11541106#endif
    11551107
    1156 #if !LGE_DDD_REMOVAL_J0042_J0030
    1157 #if H_3D_DDD
    1158   m_pucDisparityDerivedDepth          = pcCU->getDDDepth()        + uiPart;
    1159   m_pbUseDDD                          = pcCU->getUseDDD()         + uiPart;
    1160 #endif
    1161 #endif
    11621108
    11631109  m_puhLumaIntraDir     = pcCU->getLumaIntraDir()     + uiPart;
     
    13091255#endif
    13101256
    1311 #if !LGE_DDD_REMOVAL_J0042_J0030
    1312 #if H_3D_DDD
    1313   m_pucDisparityDerivedDepth         = pcCU->getDDDepth()              + uiAbsPartIdx;
    1314   m_pbUseDDD                         = pcCU->getUseDDD()              + uiAbsPartIdx;
    1315 #endif
    1316 #endif
    13171257   
    13181258#if H_3D_DBBP
     
    13801320  memcpy( m_puhCbf[2] + uiOffset, pcCU->getCbf(TEXT_CHROMA_V), iSizeInUchar );
    13811321
    1382 #if !LGE_DDD_REMOVAL_J0042_J0030
    1383 #if H_3D_DDD
    1384   memcpy( m_pucDisparityDerivedDepth          + uiOffset, pcCU->getDDDepth(),         iSizeInUchar );
    1385   memcpy( m_pbUseDDD                          + uiOffset, pcCU->getUseDDD(),          iSizeInBool );
    1386 #endif
    1387 #endif
    13881322
    13891323
     
    14851419#endif
    14861420
    1487 #if !LGE_DDD_REMOVAL_J0042_J0030
    1488 #if H_3D_DDD
    1489   memcpy( rpcCU->getDDDepth()          + m_uiAbsIdxInLCU, m_pucDisparityDerivedDepth,         iSizeInUchar  );
    1490   memcpy( rpcCU->getUseDDD()           + m_uiAbsIdxInLCU, m_pbUseDDD,                         iSizeInBool  );
    1491 #endif
    1492 #endif
    14931421
    14941422  memcpy( rpcCU->getPartitionSize()  + m_uiAbsIdxInLCU, m_pePartSize, sizeof( *m_pePartSize ) * m_uiNumPartition );
     
    16241552  memcpy( rpcCU->getCbf(TEXT_CHROMA_V) + uiPartOffset, m_puhCbf[2], iSizeInUchar );
    16251553
    1626 #if !LGE_DDD_REMOVAL_J0042_J0030
    1627 #if H_3D_DDD
    1628   memcpy( rpcCU->getDDDepth()          + uiPartOffset, m_pucDisparityDerivedDepth,         iSizeInUchar );
    1629   memcpy( rpcCU->getUseDDD()           + uiPartOffset, m_pbUseDDD,                         iSizeInBool );
    1630 #endif
    1631 #endif
    16321554
    16331555#if H_3D_DIM
     
    16961618}
    16971619
    1698 #if !LGE_DDD_REMOVAL_J0042_J0030
    1699 #if H_3D_DDD
    1700 Void TComDataCU::setDDDepthSubParts ( UChar ucDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    1701 {
    1702     setSubPart<UChar>( ucDDD, m_pucDisparityDerivedDepth, uiAbsPartIdx, uiDepth, uiPartIdx );
    1703 }
    1704 
    1705 Void TComDataCU::setUseDDD        ( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    1706 {
    1707     setSubPart<Bool>( bUseDDD, m_pbUseDDD, uiAbsPartIdx, uiDepth, uiPartIdx );
    1708 }
    1709 
    1710 Void TComDataCU::setUseDDD( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiDepth )
    1711 {
    1712     memset( m_pbUseDDD + uiAbsPartIdx, bUseDDD, (m_pcPic->getNumPartInCU() >> ( 2 * uiDepth ))*sizeof(Bool) );
    1713 }
    1714 
    1715 #endif
    1716 #endif
    17171620
    17181621// --------------------------------------------------------------------------------------------------------------------
     
    24252328    Bool depthRefineFlag = false;
    24262329#if H_3D_NBDV_REF
    2427 #if HHI_TOOL_PARAMETERS_I2_J0107
    24282330    depthRefineFlag = m_pcSlice->getDepthRefinementFlag(  );
    2429 #else
    2430     depthRefineFlag = m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() );
    2431 #endif
    24322331#endif // H_3D_NBDV_REF
    24332332   
     
    33403239inline Bool TComDataCU::xAddVspCand( Int mrgCandIdx, DisInfo* pDInfo, Int& iCount)
    33413240{
    3342 #if HHI_TOOL_PARAMETERS_I2_J0107
    33433241  if ( m_pcSlice->getViewIndex() == 0 || !m_pcSlice->getViewSynthesisPredFlag( ) || m_pcSlice->getIsDepth() || pDInfo->m_aVIdxCan == -1)
    3344 #else
    3345   if ( m_pcSlice->getViewIndex() == 0 || !m_pcSlice->getVPS()->getViewSynthesisPredFlag( m_pcSlice->getLayerIdInVps() ) || m_pcSlice->getIsDepth() || pDInfo->m_aVIdxCan == -1)
    3346 #endif
    33473242  {
    33483243    return false;
     
    38993794)
    39003795{
    3901 #if !SEC_A1_BASED_VSP_J0039
    3902   UInt uiAbsPartAddr = m_uiAbsIdxInLCU + uiAbsPartIdx;
    3903 #endif
    39043796#if H_3D_IV_MERGE
    39053797  ////////////////////////////
     
    39143806  UChar tmpDir;
    39153807
    3916 #if !LGE_DDD_REMOVAL_J0042_J0030
    3917 #if H_3D_DDD
    3918   m_iUseDDDCandIdx = -1;
    3919 #endif
    3920 #endif
    39213808
    39223809  //////////////////////////////////
     
    39583845  deriveLeftBottomIdxGeneral  ( uiAbsPartIdx, uiPUIdx, uiPartIdxLB );
    39593846#if H_3D
    3960 #if HHI_TOOL_PARAMETERS_I2_J0107
    39613847  Bool bMPIFlag   = getSlice()->getMpiFlag();
    3962 #else
    3963   Bool bMPIFlag   = getSlice()->getVPS()->getMPIFlag( getSlice()->getLayerIdInVps() );
    3964 #endif
    39653848  Bool bIsDepth = getSlice()->getIsDepth();
    39663849#endif
     
    40223905
    40233906  // above
    4024 #if !SEC_A1_BASED_VSP_J0039
    4025   UInt uiAbovePartIdx = 0;
    4026   TComDataCU* pcCUAbove = 0;
    4027   pcCUAbove = getPUAbove( uiAbovePartIdx, uiPartIdxRT );
    4028 #endif
    40293907
    40303908  if (getAvailableFlagB1())
     
    40333911#if H_3D_VSP
    40343912    ,
    4035 #if SEC_A1_BASED_VSP_J0039
    40363913      false
    4037 #else
    4038       ( ( ( getAddr() - pcCUAbove->getAddr() ) == 0) && (pcCUAbove->getVSPFlag(uiAbovePartIdx) != 0)
    4039 #if H_3D_IC
    4040       && !bICFlag
    4041 #endif
    4042 #if H_3D_ARP
    4043       && !bARPFlag
    4044 #endif
    4045 #if H_3D_DBBP
    4046       && !bDBBPFlag
    4047 #endif
    4048       )
    4049 #endif
    40503914#endif
    40513915      , false
     
    40553919
    40563920  // above right
    4057 #if !SEC_A1_BASED_VSP_J0039
    4058   UInt uiAboveRightPartIdx = 0;
    4059   TComDataCU* pcCUAboveRight = 0;
    4060   pcCUAboveRight = getPUAboveRight( uiAboveRightPartIdx, uiPartIdxRT );
    4061 #endif
    40623921
    40633922  if (getAvailableFlagB0())
     
    40663925#if H_3D_VSP
    40673926    ,
    4068 #if SEC_A1_BASED_VSP_J0039
    40693927      false
    4070 #else
    4071       ( ( ( getAddr() - pcCUAboveRight->getAddr() ) == 0) && (pcCUAboveRight->getVSPFlag(uiAboveRightPartIdx) != 0)
    4072 #if H_3D_IC
    4073       && !bICFlag
    4074 #endif
    4075 #if H_3D_ARP
    4076       && !bARPFlag
    4077 #endif
    4078 #if H_3D_DBBP
    4079       && !bDBBPFlag
    4080 #endif
    4081       )
    4082 #endif
    40833928#endif
    40843929      , false
     
    40883933
    40893934  // left bottom
    4090 #if !SEC_A1_BASED_VSP_J0039
    4091   UInt uiLeftBottomPartIdx = 0;
    4092   TComDataCU* pcCULeftBottom = getPUBelowLeft( uiLeftBottomPartIdx, uiPartIdxLB );
    4093 #endif
    40943935
    40953936  if (getAvailableFlagA0())
     
    40983939#if H_3D_VSP
    40993940    ,
    4100 #if SEC_A1_BASED_VSP_J0039
    41013941      false
    4102 #else
    4103       (pcCULeftBottom->getVSPFlag(uiLeftBottomPartIdx) != 0
    4104 #if H_3D_IC
    4105       && !bICFlag
    4106 #endif
    4107 #if H_3D_ARP
    4108       && !bARPFlag
    4109 #endif
    4110 #if H_3D_DBBP
    4111       && !bDBBPFlag
    4112 #endif
    4113       )
    4114 #endif
    41153942#endif
    41163943      , false
     
    41203947
    41213948  // above left
    4122 #if !SEC_A1_BASED_VSP_J0039
    4123   UInt uiAboveLeftPartIdx = 0;
    4124   TComDataCU* pcCUAboveLeft = 0;
    4125   pcCUAboveLeft = getPUAboveLeft( uiAboveLeftPartIdx, uiAbsPartAddr );
    4126 #endif
    41273949
    41283950  if (getAvailableFlagB2())
     
    41313953#if H_3D_VSP
    41323954    ,
    4133 #if SEC_A1_BASED_VSP_J0039
    41343955      false
    4135 #else
    4136       ( ( ( getAddr() - pcCUAboveLeft->getAddr() ) == 0) && (pcCUAboveLeft->getVSPFlag(uiAboveLeftPartIdx) != 0)
    4137 #if H_3D_IC
    4138       && !bICFlag
    4139 #endif
    4140 #if H_3D_ARP
    4141       && !bARPFlag
    4142 #endif
    4143 #if H_3D_DBBP
    4144       && !bDBBPFlag
    4145 #endif
    4146       )
    4147 #endif
    41483956#endif
    41493957      , false
     
    43434151    }
    43444152  }
    4345 #if !LGE_DDD_REMOVAL_J0042_J0030
    4346 #if H_3D_DDD
    4347   if( m_pcSlice->getIsDepth() && m_pcSlice->getViewIndex() != 0  && bMPIFlag )
    4348   {
    4349     UInt uiPartIdx;
    4350     TComDataCU *pcTextureCU = m_pcSlice->getTexturePic()->getCU( getAddr() );
    4351     TComSlice *pcTextureSlice = pcTextureCU->getSlice(); 
    4352 
    4353 
    4354     tmpMV[0].setMvField( cZeroMv, NOT_VALID );
    4355     tmpMV[1].setMvField( cZeroMv, NOT_VALID );
    4356     tmpDir = 0;
    4357 
    4358     xDeriveCenterIdx( uiPUIdx, uiPartIdx);
    4359 
    4360     if ( pcTextureCU && !pcTextureCU->isIntra( uiPartIdx ) )
    4361     {
    4362 
    4363       TComMvField cMVField;
    4364       Int iDV = 0;
    4365       Int iViewIdx = 0;
    4366       pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_0, cMVField );
    4367       if( cMVField.getRefIdx() >= 0 )
    4368       {
    4369         if( pcTextureSlice->getRefPOC( REF_PIC_LIST_0, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
    4370         {
    4371           iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_0, cMVField.getRefIdx())->getViewIndex();
    4372           iDV = cMVField.getHor();
    4373 
    4374 
    4375           Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_0, cMVField.getRefIdx() );
    4376 
    4377           if( iValidDepRef >= 0 )
    4378           {
    4379             const TComMv cAdd( 2, 2 );
    4380             cMVField.getMv() += cAdd;
    4381             cMVField.getMv() >>= 2;
    4382 #if !(NTT_BUG_FIX_TK54)
    4383             clipMv( cMVField.getMv() );
    4384 #endif
    4385             tmpMV[ 0 ].setMvField( cMVField.getMv(), iValidDepRef );
    4386             tmpDir = 1;
    4387           }
    4388         }
    4389       }
    4390 
    4391       pcTextureCU->getMvField( pcTextureCU, uiPartIdx, REF_PIC_LIST_1, cMVField );
    4392 
    4393       if( !tmpDir && cMVField.getRefIdx() >= 0 )
    4394       {
    4395         if( pcTextureSlice->getRefPOC( REF_PIC_LIST_1, cMVField.getRefIdx()) == pcTextureSlice->getPOC() )
    4396         {
    4397           iViewIdx = pcTextureSlice->getRefPic( REF_PIC_LIST_1, cMVField.getRefIdx())->getViewIndex();
    4398           iDV = cMVField.getHor();
    4399 
    4400           Int iValidDepRef = getPic()->isTextRefValid( REF_PIC_LIST_1, cMVField.getRefIdx() );
    4401 
    4402           if( iValidDepRef >= 0 )
    4403           {
    4404             const TComMv cAdd( 2, 2 );
    4405             cMVField.getMv() += cAdd;
    4406             cMVField.getMv() >>= 2;
    4407 #if !(NTT_BUG_FIX_TK54)
    4408             clipMv( cMVField.getMv() );
    4409 #endif
    4410             tmpMV[ 1 ].setMvField( cMVField.getMv(), iValidDepRef );
    4411             tmpDir = 2;
    4412           }
    4413         }
    4414       }
    4415       if( tmpDir != 0 )
    4416       {
    4417         m_ucDDTmpDepth = m_pcSlice->getDepthFromDV( iDV,  iViewIdx );
    4418         m_iUseDDDCandIdx = iCount;
    4419 
    4420         m_mergCands[MRG_D].setCand( tmpMV, tmpDir, false, false);
    4421         if ( mrgCandIdx == iCount )
    4422         {
    4423           return;
    4424         }
    4425         iCount ++;
    4426       }
    4427     }
    4428   }
    4429 #endif
    4430 #endif
    44314153  /////////////////////////////////////////////////////////////////
    44324154  //////// DERIVE IvMC, IvMCShift,IvDCShift, IvDC  Candidates /////
     
    44414163  Int    ivCandDir   [4] = {0, 0, 0, 0};
    44424164
    4443 #if HHI_TOOL_PARAMETERS_I2_J0107
    44444165  Bool ivMvPredFlag   = getSlice()->getIvMvPredFlag();
    4445 #else
    4446   Bool ivMvPredFlag   = getSlice()->getVPS()->getIvMvPredFlag( getSlice()->getLayerIdInVps() );
    4447 #endif
    44484166
    44494167  ivMvPredFlag &= (nPSW + nPSH > 12);
     
    45284246
    45294247#if H_3D
    4530 #if SEC_A1_BASED_VSP_J0039
    45314248  iCount += m_mergCands[MRG_A1].m_bAvailable + m_mergCands[MRG_B1].m_bAvailable;
    4532 #else
    4533   iCount += m_mergCands[MRG_A1].m_bAvailable + m_mergCands[MRG_B1].m_bAvailable + m_mergCands[MRG_B0].m_bAvailable;
    4534 #endif
    45354249#else
    45364250  //left
     
    46314345#endif
    46324346
    4633 #if !LGE_DDD_REMOVAL_J0042_J0030
    4634 #if H_3D_DDD
    4635   // early termination
    4636   if ( iCount >= getSlice()->getMaxNumMergeCand())
    4637   {
    4638       return;
    4639   }
    4640 #endif
    4641 #endif
    4642 
    4643 #if SEC_A1_BASED_VSP_J0039
     4347
    46444348#if H_3D_VSP
    46454349  /////////////////////////////////////////////////
     
    46804384  iCount += m_mergCands[MRG_B0].m_bAvailable;
    46814385#endif
    4682 #endif
    46834386
    46844387
     
    47364439#endif // H_3D_IV_MERGE
    47374440
    4738 #if !SEC_A1_BASED_VSP_J0039
    4739 #if H_3D_VSP
    4740   /////////////////////////////////////////////////
    4741   //////// VIEW SYNTHESIS PREDICTION (VSP) ////////
    4742   /////////////////////////////////////////////////
    4743   if (iCount<getSlice()->getMaxNumMergeCand())
    4744   {
    4745 
    4746   if (
    4747 #if H_3D_IC
    4748       !bICFlag &&
    4749 #endif
    4750 #if H_3D_ARP
    4751       !bARPFlag &&
    4752 #endif
    4753 #if H_3D
    4754       (nPSW + nPSH > 12) &&
    4755 #endif
    4756 #if H_3D_DBBP
    4757       !bDBBPFlag &&
    4758 #endif
    4759       xAddVspCand( mrgCandIdx, &cDisInfo, iCount ) )
    4760   {
    4761     return;
    4762   }
    4763 
    4764   // early termination
    4765   if (iCount == getSlice()->getMaxNumMergeCand())
    4766   {
    4767     return;
    4768   }
    4769 #endif
    4770 #if H_3D
    4771   }
    4772 #endif
    4773 #endif
    47744441
    47754442#if H_3D
     
    60165683    iScale = xGetDistScaleFactor( iCurrViewId, iCurrRefViewId, iColViewId, iColRefViewId );
    60175684
    6018 #if HHI_TOOL_PARAMETERS_I2_J0107
    60195685    if ( iScale != 4096 && m_pcSlice->getIvMvScalingFlag( ) )
    6020 #else
    6021     if ( iScale != 4096 && m_pcSlice->getVPS()->getIvMvScalingFlag(getSlice()->getLayerIdInVps()) )
    6022 #endif
    60235686    {
    60245687      rcMv = cColMv.scaleMv( iScale );
     
    62035866
    62045867  TComMv cMv;
    6205 #if LGE_DEFAULT_DV_J0046
    62065868  if ( getSlice()->getDefaultRefViewIdxAvailableFlag() )
    62075869  {
    62085870      Int iViewIdx = getSlice()->getDefaultRefViewIdx();
    62095871      pDisp->m_aVIdxCan = iViewIdx;
    6210 #if HHI_TOOL_PARAMETERS_I2_J0107
    62115872      Int iDisp     = getSlice()->getDepthToDisparityB( iViewIdx )[ (Int64) (1 << ( getSlice()->getSPS()->getBitDepthY() - 1 )) ];
    6212 #else
    6213       Int iDisp     = getSlice()->getDepthToDisparityB( iViewIdx )[ 1 << ( getSlice()->getSPS()->getBitDepthY() - 1 ) ];
    6214 #endif
    62155873
    62165874      cMv.setHor(iDisp);
     
    62225880  }
    62235881  return false;
    6224 #else
    6225 #if MTK_I0093
    6226   Int iDisp     = getSlice()->getDepthToDisparityB( 0 )[ (Int64) (1 << ( getSlice()->getSPS()->getBitDepthY() - 1 )) ];
    6227 #else
    6228   Int iDisp     = getSlice()->getDepthToDisparityB( 0 )[ 128 ];
    6229 #endif
    6230   cMv.setHor(iDisp);
    6231   cMv.setVer(0);
    6232   pDisp->m_acNBDV = cMv;
    6233   pDisp->m_aVIdxCan = 0;
    6234 
    6235   return true;
    6236 #endif
    62375882}
    62385883#endif
     
    62665911    }
    62675912    break;
    6268 #if !SINGLE_DEPTH_SIMP_J0115
    6269   case 2: // Above
    6270     if(yP != 0)
    6271     {
    6272       *pNeighDepth = pDepth[ (yP-1) * iDepStride + (xP) ];
    6273       bDepAvail = true;
    6274     }
    6275     break;
    6276   case 3: // Left
    6277     if(xP != 0)
    6278     {
    6279       *pNeighDepth = pDepth[ (yP) * iDepStride + (xP-1) ];
    6280       bDepAvail = true;
    6281     }
    6282     break;
    6283   case 4: // Above_Left
    6284     if(xP != 0 && yP != 0)
    6285     {
    6286       *pNeighDepth = pDepth[ (yP-1) * iDepStride + (xP-1) ];
    6287       bDepAvail = true;
    6288     }
    6289     break;
    6290 #endif
    62915913  default:
    62925914      break;
     
    63275949  }
    63285950#if H_3D_NBDV_REF
    6329 #if HHI_TOOL_PARAMETERS_I2_J0107
    63305951  if( !m_pcSlice->getDepthRefinementFlag( ) )
    6331 #else
    6332   if( !m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() ) )
    6333 #endif
    63345952  {
    63355953    bDepthRefine = false;
     
    64926110  pDInfo->m_acNBDV = defaultDV;
    64936111
    6494 #if LGE_DEFAULT_DV_J0046
    64956112  if (getSlice()->getDefaultRefViewIdxAvailableFlag())
    64966113  {
     
    65206137      pDInfo->m_acDoNBDV = defaultDV;
    65216138#endif
    6522 #if LGE_SIMP_DISP_AVAIL_J0041
    65236139      return true;
    6524 #endif
    6525   }
    6526 #else
    6527   Int valid = 0;
    6528   Int viewIndex = 0;
    6529   for( UInt uiBId = 0; uiBId < getSlice()->getViewIndex() && valid==0; uiBId++ )
    6530   {
    6531     UInt        uiBaseId    = uiBId;
    6532     TComPic*    pcBasePic   = getSlice()->getIvPic( false, uiBaseId );
    6533     for( Int iRefListId = 0; ( iRefListId < (getSlice()->isInterB()? 2:1) ) && !getSlice()->isIntra() && valid==0; iRefListId++ )
    6534     {
    6535       RefPicList  eRefPicListTest = RefPicList( iRefListId );
    6536       Int         iNumRefPics = getSlice()->getNumRefIdx( eRefPicListTest ) ;
    6537       for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )
    6538       {
    6539         if(pcBasePic->getPOC() == getSlice()->getRefPic( eRefPicListTest, iRefIndex )->getPOC()
    6540           && pcBasePic->getViewIndex() == getSlice()->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())
    6541         {
    6542           valid=1;
    6543           viewIndex = uiBaseId;
    6544           break;
    6545         }
    6546       }
    6547     }
    6548   }
    6549   if(valid)
    6550   {
    6551     pDInfo->m_aVIdxCan = viewIndex;
    6552 #if H_3D_NBDV_REF
    6553     TComPic* picDepth = NULL;
    6554 #if H_3D_FCO_VSP_DONBDV_E0163
    6555     picDepth  = getSlice()->getIvPic(true, getSlice()->getViewIndex() );
    6556     if ( picDepth->getPicYuvRec() != NULL ) 
    6557     {
    6558       defaultDV.setZero();
    6559     }
    6560     else // Go back with virtual depth
    6561     {
    6562       picDepth = getSlice()->getIvPic( true, viewIndex );
    6563     }
    6564 
    6565     assert(picDepth != NULL);
    6566 #else
    6567     picDepth = getSlice()->getIvPic( true, viewIndex );
    6568 #if !BUG_FIX_TK65
    6569     assert(picDepth!=NULL);
    6570 #endif
    6571 #endif
    6572     if (picDepth && bDepthRefine)
    6573     {
    6574       estimateDVFromDM(viewIndex, uiPartIdx, picDepth, uiPartAddr, &defaultDV ); // from base view
    6575     }
    6576     pDInfo->m_acDoNBDV = defaultDV;
    6577 #endif
    6578 #if LGE_SIMP_DISP_AVAIL_J0041
    6579     return true;
    6580 #endif
    6581   }
    6582 #endif
     6140  }
    65836141  return false;
    65846142}
     
    68346392  Bool depthRefineFlag = false;
    68356393#if H_3D_NBDV_REF
    6836 #if HHI_TOOL_PARAMETERS_I2_J0107
    68376394  depthRefineFlag = m_pcSlice->getDepthRefinementFlag( );
    6838 #else
    6839   depthRefineFlag = m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() );
    6840 #endif
    68416395#endif // H_3D_NBDV_REF
    68426396
     
    68966450Void TComDataCU::getSPPara(Int iPUWidth, Int iPUHeight, Int& iNumSP, Int& iNumSPInOneLine, Int& iSPWidth, Int& iSPHeight)
    68976451{
    6898 #if HHI_TOOL_PARAMETERS_I2_J0107
    68996452  Int iSubPUSize = ( getSlice()->getIsDepth() ? getSlice()->getMpiSubPbSize() : getSlice()->getSubPbSize() );
    6900 #else
    6901   Int iSubPUSize = 1<<getSlice()->getVPS()->getSubPULog2Size(getSlice()->getLayerId());
    6902   if( getSlice()->getIsDepth() )
    6903   {
    6904     iSubPUSize = 1<<getSlice()->getVPS()->getSubPUMPILog2Size(getSlice()->getLayerId());
    6905   }
    6906 #endif
    69076453
    69086454  iNumSPInOneLine = iPUWidth/iSubPUSize;
    6909 #if !HS_SP_SIMP_J0066
    6910   iNumSPInOneLine = iNumSPInOneLine < 1 ? 1: iNumSPInOneLine;
    6911 #endif
    69126455  Int iNumSPInOneColumn = iPUHeight/iSubPUSize;
    6913 #if !HS_SP_SIMP_J0066
    6914   iNumSPInOneColumn = iNumSPInOneColumn < 1 ? 1: iNumSPInOneColumn;
    6915 #else
    69166456  iNumSPInOneLine = (iPUHeight % iSubPUSize != 0 || iPUWidth % iSubPUSize != 0 ) ? 1 : iNumSPInOneLine;
    69176457  iNumSPInOneColumn = (iPUHeight % iSubPUSize != 0  || iPUWidth % iSubPUSize != 0 ) ? 1 : iNumSPInOneColumn;
    6918 #endif
    69196458  iNumSP = iNumSPInOneLine * iNumSPInOneColumn;
    69206459
     
    69906529  Bool depthRefineFlag = false;
    69916530#if H_3D_NBDV_REF
    6992 #if HHI_TOOL_PARAMETERS_I2_J0107
    69936531  depthRefineFlag = m_pcSlice->getDepthRefinementFlag( );
    6994 #else
    6995   depthRefineFlag = m_pcSlice->getVPS()->getDepthRefinementFlag( m_pcSlice->getLayerIdInVps() );
    6996 #endif
    69976532#endif // H_3D_NBDV_REF
    69986533
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComDataCU.h

    r1124 r1131  
    227227  DisInfo       m_cDefaultDisInfo;    ///< Default disparity information for initializing
    228228#endif
    229 #if !LGE_DDD_REMOVAL_J0042_J0030
    230 #if H_3D_DDD
    231   UChar*        m_pucDisparityDerivedDepth;
    232   Bool*         m_pbUseDDD;
    233   Int           m_iUseDDDCandIdx;
    234   UChar         m_ucDDTmpDepth;
    235 #endif
    236 #endif
    237229#if H_3D_IV_MERGE
    238230  TComMotionCand  m_mergCands[MRG_IVSHIFT+1];
     
    743735  UInt          getCoefScanIdx(UInt uiAbsPartIdx, UInt uiWidth, Bool bIsLuma, Bool bIsIntra);
    744736
    745 #if !LGE_DDD_REMOVAL_J0042_J0030
    746 #if H_3D_DDD
    747   UChar*       getDDDepth        ()                        { return m_pucDisparityDerivedDepth;        }
    748   UChar        getDDDepth        ( UInt uiIdx )            { return m_pucDisparityDerivedDepth[uiIdx]; }
    749   Void         setDDDepth        ( UInt uiIdx, UChar n )   { m_pucDisparityDerivedDepth[uiIdx] = n;    }
    750   Void         setDDDepthSubParts( UChar ucDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth );
    751 
    752   Bool*        getUseDDD        ()                        { return m_pbUseDDD;        }
    753   Bool         getUseDDD        ( UInt uiIdx )            { return m_pbUseDDD[uiIdx]; }
    754   Void         setUseDDD        ( UInt uiIdx, Bool n )     { m_pbUseDDD[uiIdx] = n;    }
    755   Void         setUseDDD( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiDepth );
    756 
    757   Void         setUseDDD        ( Bool bUseDDD, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth );
    758 
    759   UChar        getDDTmpDepth(){ return m_ucDDTmpDepth; }
    760   Int          getUseDDDCandIdx(){ return m_iUseDDDCandIdx;}
    761 
    762 #endif
    763 #endif
    764737
    765738#if H_3D_DIM
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComPrediction.cpp

    r1124 r1131  
    11581158  pcCU->clipMv(cMv);
    11591159
    1160 #if !LGE_DDD_REMOVAL_J0042_J0030
    1161 #if H_3D_DDD
    1162   if( pcCU->getUseDDD( uiPartAddr ) )
    1163   {
    1164       assert( pcCU->getSPIVMPFlag( uiPartAddr ) == 0 );
    1165       assert( pcCU->getSlice()->getViewIndex() != 0 );
    1166 
    1167       Int dstStride = rpcYuvPred->getStride();
    1168       Int dstStrideC = rpcYuvPred->getCStride();
    1169       Pel *dst      = rpcYuvPred->getLumaAddr( uiPartAddr );
    1170       Pel *dstU     = rpcYuvPred->getCbAddr( uiPartAddr );
    1171       Pel *dstV     = rpcYuvPred->getCrAddr( uiPartAddr );
    1172 
    1173       Int iWidthC  = iWidth >> 1;
    1174       Int iHeightC = iHeight >> 1;
    1175       Int DefaultC = 1 << ( g_bitDepthY - 1);
    1176       for ( Int i = 0; i < iHeight; i++)
    1177       {
    1178           for ( Int j = 0; j < iWidth ; j++)
    1179           {
    1180               dst[j] = pcCU->getDDDepth( uiPartAddr );
    1181           }
    1182           dst += dstStride;
    1183       }
    1184       for ( Int i = 0; i < iHeightC; i++)
    1185       {
    1186           for ( Int j = 0; j < iWidthC; j++)
    1187           {
    1188               dstU[j] = dstV[j] = DefaultC;
    1189           }
    1190           dstU += dstStrideC;
    1191           dstV += dstStrideC;
    1192       }
    1193 
    1194       //return;
    1195   } else
    1196 #endif
    1197 #endif
    11981160#if H_3D_ARP
    11991161  if(pcCU->getARPW( uiPartAddr ) > 0  && pcCU->getSlice()->getRefPic( eRefPicList, iRefIdx )->getPOC()== pcCU->getSlice()->getPOC())
     
    21902152      x += pRef[j];
    21912153      y += pRec[j];
    2192 #if LGE_CHROMA_IC_J0050_J0034
    21932154      if ( eType == TEXT_LUMA )
    21942155      {
    2195 #endif
    21962156        xx += (pRef[j] * pRef[j])>>precShift;
    21972157        xy += (pRef[j] * pRec[j])>>precShift;
    2198 #if LGE_CHROMA_IC_J0050_J0034
    2199       }
    2200 #endif
     2158      }
    22012159    }
    22022160    iCountShift += g_aucConvertToBit[ uiWidth ] + 1;
     
    22272185      x += pRef[0];
    22282186      y += pRec[0];
    2229 #if LGE_CHROMA_IC_J0050_J0034
    22302187      if ( eType == TEXT_LUMA )
    22312188      {
    2232 #endif
    22332189        xx += (pRef[0] * pRef[0])>>precShift;
    22342190        xy += (pRef[0] * pRec[0])>>precShift;
    2235 #if LGE_CHROMA_IC_J0050_J0034
    2236       }
    2237 #endif     
     2191      }
    22382192      pRef += iRefStride*2;
    22392193      pRec += iRecStride*2;
     
    22492203  }
    22502204
    2251 #if LGE_CHROMA_IC_J0050_J0034
    22522205  if (  eType != TEXT_LUMA )
    22532206  {
     
    22572210  else
    22582211  {
    2259 #endif
    22602212  xy += xx >> IC_REG_COST_SHIFT;
    22612213  xx += xx >> IC_REG_COST_SHIFT;
     
    22992251    }
    23002252  }   
    2301 #if LGE_CHROMA_IC_J0050_J0034
    2302   }
    2303 #endif
     2253  }
    23042254}
    23052255#endif
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComRom.cpp

    r1124 r1131  
    362362const UChar g_dmm1TabIdxBits[6] =
    363363{ //2x2   4x4   8x8 16x16 32x32 64x64
    364 #if MTK_DMM_SIM_J0035
    365364     0,    7,   10,   9,    9,   13 };
    366 #else
    367      0,    7,   10,   11,   11,   13 };
    368 #endif
    369365
    370366const UChar g_dmm3IntraTabIdxBits[6] =
     
    767763    }
    768764
    769 #if MTK_DMM_SIM_J0035
    770765    for( Int iK = 0; iK < uiBlockSize; iK += (uiWidth>=16 ?2:1))
    771766    {
     
    776771      }
    777772    }
    778 #else
    779     for( Int iK = 0; iK < uiBlockSize; iK++ )
    780     {
    781       for( Int iL = 0; iL < uiBlockSize; iL++ )
    782       {
    783         cTempWedgelet.setWedgelet( uhStartX + (iK*iStepStartX) , uhStartY + (iK*iStepStartY), uhEndX + (iL*iStepEndX), uhEndY + (iL*iStepEndY), (UChar)uiOri, eWedgeRes, ((iL%2)==0 && (iK%2)==0) );
    784         addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList );
    785       }
    786     }
    787 #endif
    788773  }
    789774
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComSlice.cpp

    r1124 r1131  
    179179  }
    180180#endif
    181 #if LGE_DEFAULT_DV_J0046
    182181  m_iDefaultRefViewIdx = -1;
    183182  m_bDefaultRefViewIdxAvailableFlag = false;
    184 #endif
    185183}
    186184
     
    18791877  m_vpsBaseLayerAvailableFlag = true;
    18801878
    1881 #if  H_MV_FIX_NUM_VIEWS
    18821879  m_numViews = 0;
    1883 #endif
    18841880
    18851881#endif
     
    19181914  m_repFormatIdxPresentFlag = false;
    19191915  m_maxOneActiveRefLayerFlag = false;
    1920 #if H_MV_HLS_FIX
    19211916  m_vpsPocLsbAlignedFlag  = false;
    1922 #endif
    19231917  m_directDepTypeLenMinus2   = 0;         
    19241918 
     
    19561950    m_layerIdInNuh      [i] = ( i == 0 ) ? 0 : -1;
    19571951    m_numDirectRefLayers[i] = 0;
    1958 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    19591952#if H_3D
    19601953    m_numRefListLayers[i] = 0;
    1961 #endif
    19621954#endif
    19631955    m_vpsRepFormatIdx    [i] = 0;
     
    19681960#if H_3D
    19691961    m_viewIndex         [i] = -1;
    1970 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1971     m_vpsDepthModesFlag [i] = false;
    1972     m_ivMvScalingFlag[i] = true;
    1973     m_bIVPFlag [i]      = false;
    1974 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    1975     m_singleDepthModeFlag[ i ] = false;
    1976 #endif
    1977 #endif
    19781962#endif
    19791963
     
    19841968      m_dependencyFlag  [i][j]    = false;
    19851969      m_idDirectRefLayer[i][j]    = -1;
    1986 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    19871970#if H_3D
    19881971      m_idRefListLayer[i][j]    = -1;
    1989 #endif
    19901972#endif
    19911973      m_idPredictedLayer[i][j]    = -1;
     
    19991981    }
    20001982#if H_3D_ARP
    2001 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2002     m_uiUseAdvResPred[i]  = 0;
    2003     m_uiARPStepNum[i]     = 1;
    2004 #endif
    20051983#endif
    20061984  }
     
    20081986  m_dpbSize = new TComDpbSize;
    20091987
    2010 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2011 #if H_3D
    2012   for( Int i = 0; i < MAX_NUM_LAYERS; i++ )
    2013   {
    2014 #if H_3D_IV_MERGE
    2015     m_ivMvPredFlag         [ i ] = false;
    2016 #if H_3D_SPIVMP
    2017     m_iSubPULog2Size       [ i ] = 0;
    2018 #endif
    2019 #endif
    2020 #if H_3D_QTLPC
    2021     m_bLimQtPredFlag       [ i ] = false;
    2022 #endif
    2023 #if H_3D_VSP
    2024     m_viewSynthesisPredFlag[ i ] = false;
    2025 #endif
    2026 #if H_3D_NBDV_REF
    2027     m_depthRefinementFlag  [ i ] = false;
    2028 #endif
    2029 #if H_3D_INTER_SDC
    2030     m_bInterSDCFlag        [ i ] = false;
    2031 #endif
    2032 #if H_3D
    2033     m_bIVPFlag             [ i ] = false;
    2034 #endif
    2035 #if H_3D_DBBP
    2036     m_dbbpFlag             [ i ] = false;
    2037 #endif
    2038 #if H_3D_IV_MERGE
    2039     m_bMPIFlag             [ i ] = false;
    2040 #endif
    2041   } 
    2042 #endif
    2043 #endif
    20441988
    20451989#endif
     
    21322076    Int iNuhLId = getLayerIdInNuh( i );
    21332077    Int d = 0;
    2134 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    21352078#if H_3D
    21362079    Int l = 0;
    21372080#endif
    2138 #endif
    21392081    Int r = 0;
    21402082    Int p = 0;
     
    21472089        m_idDirectRefLayer[iNuhLId][d++] = jNuhLid;
    21482090      }
    2149 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    21502091#if H_3D
    21512092      if( getDirectDependencyFlag( i , j ) && ( getDepthId( iNuhLId ) == getDepthId( jNuhLid ) ))
     
    21542095      }
    21552096#endif
    2156 #endif
    21572097
    21582098      if( getDependencyFlag( i , j ) )
     
    21662106    }
    21672107    m_numDirectRefLayers[ iNuhLId ] = d;
    2168 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    21692108#if H_3D
    21702109    m_numRefListLayers[ iNuhLId ] = l;
    2171 #endif
    21722110#endif
    21732111
     
    22062144
    22072145
    2208 #if H_MV_FIX_NUM_VIEWS
    22092146Void     TComVPS::initNumViews( )
    22102147{
     
    22422179  }
    22432180}
    2244 #endif
    22452181
    22462182
     
    24032339}
    24042340
    2405 #if !H_MV_FIX_NUM_VIEWS
    2406 Int TComVPS::getNumViews()
    2407 {
    2408   Int numViews = 1;
    2409   for( Int i = 0; i <=  getMaxLayersMinus1(); i++ )
    2410   {
    2411     Int lId = getLayerIdInNuh( i );
    2412     if ( i > 0 && ( getViewIndex( lId ) != getScalabilityId( i - 1, VIEW_ORDER_INDEX ) ) )
    2413     {
    2414       numViews++;
    2415     }   
    2416   }
    2417   return numViews;
    2418 }
    2419 #endif
    24202341
    24212342
     
    26562577  xPrintArray( "IdRefLayer"      , getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numRefLayers, m_idRefLayer, true );
    26572578  xPrintArray( "IdDirectRefLayer", getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numDirectRefLayers, m_idDirectRefLayer, true );
    2658 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    26592579#if H_3D
    26602580  xPrintArray( "IdRefListLayer", getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numRefListLayers, m_idRefListLayer, true );
    2661 #endif
    26622581#endif
    26632582
     
    30843003      i++;
    30853004    }
    3086 #if SHARP_DLT_SIMP_J0029
    30873005    iIdxUp = bFound ?  iIdxDown + 1 : iNumDepthValues-1;
    3088 #else
    3089     // iterate over indices to find upper closest depth
    3090     i = iNumDepthValues-2;
    3091     bFound = false;
    3092     while(!bFound && i>=0)
    3093     {
    3094       if( m_iIdx2DepthValue[layerIdInVps][i] < p )
    3095       {
    3096         iIdxUp  = i+1;
    3097         bFound    = true;
    3098       }
    3099 
    3100       i--;
    3101     }
    3102 
    3103     // assert monotony
    3104     assert(iIdxDown<=iIdxUp);
    3105 #endif
    31063006
    31073007    // assign closer depth value/idx
     
    36843584{
    36853585  TComVPS* vps = getVPS();
    3686 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    36873586#if H_3D
    36883587  Int refLayerIdx = vps->getLayerIdInVps( vps->getIdRefListLayer( getLayerId(), i ) );
     
    36903589  Int refLayerIdx = vps->getLayerIdInVps( vps->getIdDirectRefLayer( getLayerId(), i ) );
    36913590#endif
    3692 #else
    3693   Int refLayerIdx = vps->getLayerIdInVps( vps->getIdDirectRefLayer( getLayerId(), i ) );
    3694 #endif
    3695 
    3696 #if H_MV_FIX_REF_LAYER_PIC_FLAG
     3591
    36973592  Bool refLayerPicFlag = ( vps->getSubLayersVpsMaxMinus1( refLayerIdx ) >=  getTLayer()  && ( getTLayer() == 0   ||
    36983593    vps->getMaxTidIlRefPicsPlus1( refLayerIdx, vps->getLayerIdInVps( getLayerId() )) > getTLayer() ));
    3699 #else
    3700   Bool refLayerPicFlag = ( vps->getSubLayersVpsMaxMinus1( refLayerIdx ) >=  getTLayer() )  && ( getTLayer() == 0  ) &&
    3701     ( vps->getMaxTidIlRefPicsPlus1( refLayerIdx, vps->getLayerIdInVps( getLayerId() )) > getTLayer() );
    3702 #endif
    37033594  return refLayerPicFlag;       
    37043595}   
     
    37083599  Int refLayerPicIdc = -1;
    37093600  Int curj = 0;
    3710 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37113601#if H_3D
    37123602  for( Int i = 0;  i < getVPS()->getNumRefListLayers( getLayerId()) ; i++ )
     
    37143604  for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    37153605#endif
    3716 #else
    3717   for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    3718 #endif
    37193606  {
    37203607    if( getRefLayerPicFlag( i ) )
     
    37373624
    37383625  Int numRefLayerPics = 0;
    3739 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37403626#if H_3D
    37413627  for( Int i = 0;  i < getVPS()->getNumRefListLayers( getLayerId()) ; i++ )
     
    37433629  for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    37443630#endif
    3745 #else
    3746   for( Int i = 0;  i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ )
    3747 #endif
    37483631  {
    37493632    numRefLayerPics += getRefLayerPicFlag( i );
     
    37703653    numActiveRefLayerPics = 0;
    37713654  }
    3772 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37733655#if H_3D
    37743656  else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumRefListLayers( getLayerId() ) == 1 )
     
    37763658  else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumDirectRefLayers( getLayerId() ) == 1 )
    37773659#endif
    3778 #else
    3779   else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumDirectRefLayers( getLayerId() ) == 1 )
    3780 #endif 
    37813660  {
    37823661    numActiveRefLayerPics = 1;
     
    37913670Int TComSlice::getRefPicLayerId( Int i )
    37923671{
    3793 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    37943672#if H_3D
    37953673  return getVPS()->getIdRefListLayer( getLayerId(), getInterLayerPredLayerIdc( i ) );
     
    37973675  return getVPS()->getIdDirectRefLayer( getLayerId(), getInterLayerPredLayerIdc( i ) );
    37983676#endif
    3799 #else
    3800   return getVPS()->getIdDirectRefLayer( getLayerId(), getInterLayerPredLayerIdc( i ) );
    3801 #endif
    3802 }
    3803 
    3804 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
     3677}
     3678#if H_3D
    38053679Void TComSlice::setDefaultRefView( )
    38063680{
     
    38393713{
    38403714  Bool tempRefPicInListsFlag = false;
    3841 #if HHI_TOOL_PARAMETERS_I2_J0107
    38423715  if( !getIvResPredFlag() || this->isIRAP())
    3843 #else
    3844   if(!getVPS()->getUseAdvRP(getLayerId()) || this->isIRAP())
    3845 #endif
    38463716  {
    38473717    m_nARPStepNum = 0;
     
    38713741      }
    38723742    }
    3873 #if SEC_ARP_VIEW_REF_CHECK_J0037
    38743743    tempRefPicInListsFlag = (getFirstTRefIdx(REF_PIC_LIST_0) >= 0 || getFirstTRefIdx(REF_PIC_LIST_1) >= 0) && getDefaultRefViewIdxAvailableFlag();
    3875 #else
    3876     tempRefPicInListsFlag = getFirstTRefIdx(REF_PIC_LIST_0) >= 0 || getFirstTRefIdx(REF_PIC_LIST_1) >= 0;
    3877 #endif
    3878 #if HHI_TOOL_PARAMETERS_I2_J0107
    38793744    m_nARPStepNum = tempRefPicInListsFlag ?  H_3D_ARP_WFNR : 0;
    3880 #else
    3881     m_nARPStepNum = tempRefPicInListsFlag ? getVPS()->getARPStepNum(getLayerId()) : 0;
    3882 #endif
    38833745  }
    38843746
     
    40633925  Bool setupLUT = false;
    40643926 
    4065 #if HHI_TOOL_PARAMETERS_I2_J0107
    40663927  setupLUT = setupLUT || getViewSynthesisPredFlag( );
    4067 #else
    4068   Int layerIdInVPS = getVPS()->getLayerIdInNuh( m_layerId );
    4069 #if H_3D_VSP
    4070   setupLUT = setupLUT || getVPS()->getViewSynthesisPredFlag( layerIdInVPS);
    4071 #endif
    4072 #endif
    40733928
    40743929#if H_3D_NBDV_REF
    4075 #if HHI_TOOL_PARAMETERS_I2_J0107
    40763930  setupLUT = setupLUT || getDepthRefinementFlag( );
    4077 #else
    4078   setupLUT = setupLUT || getVPS()->getDepthRefinementFlag( layerIdInVPS );
    4079 #endif
    40803931#endif
    40813932
    40823933#if H_3D_IV_MERGE
    4083 #if HHI_TOOL_PARAMETERS_I2_J0107
    40843934  setupLUT = setupLUT || ( getIvMvPredFlag() && getIsDepth() );
    4085 #else
    4086   setupLUT = setupLUT || ( getVPS()->getIvMvPredFlag(layerIdInVPS ) && getIsDepth() );
    4087 #endif
    4088 #endif
    4089 
    4090 #if !LGE_DDD_REMOVAL_J0042_J0030
    4091 #if H_3D_DDD
    4092 #if H_3D_FCO
    4093   if( getIsDepth() && getViewIndex() > 0 && getVPS()->getMPIFlag(layerIdInVPS))
    4094 #else
    4095   if( getIsDepth() && getViewIndex() > 0 )
    4096 #endif
    4097   {
    4098       TComSlice *pcTextSlice = getTexturePic()->getSlice( 0 );
    4099       memcpy( m_aiDDDInvScale, pcTextSlice->m_aiDDDInvScale, sizeof( Int ) * getViewIndex() );
    4100       memcpy( m_aiDDDInvOffset, pcTextSlice->m_aiDDDInvOffset, sizeof( Int ) * getViewIndex() );
    4101       memcpy( m_aiDDDShift, pcTextSlice->m_aiDDDShift, sizeof( Int ) * getViewIndex() );             
    4102   } 
    4103 #endif
    4104 #endif
     3935#endif
     3936
    41053937
    41063938  if( !setupLUT )
     
    41513983      m_depthToDisparityF[ i ][ d ] = ( invCodScale[ i ] * d + invOffset ) >> log2Div;
    41523984    }
    4153 #if !LGE_DDD_REMOVAL_J0042_J0030
    4154 #if H_3D_DDD
    4155     initializeDDDPara( vps->getCamParPrecision(), codScale[ i ], codOffset[ i ], i );
    4156 #endif
    4157 #endif
    4158   }
    4159 }
    4160 #endif
    4161 #endif
    4162 
    4163 #if !LGE_DDD_REMOVAL_J0042_J0030
    4164 #if H_3D_DDD
    4165 Void TComSlice::initializeDDDPara( UInt uiCamParsCodedPrecision, Int  iCodedScale,Int  iCodedOffset, Int iBaseViewIdx )
    4166 {
    4167     UInt uiViewId     = getViewIndex();
    4168 
    4169     if( uiViewId == 0 )
    4170     {
    4171         m_aiDDDInvScale[ iBaseViewIdx ] = m_aiDDDInvOffset[ iBaseViewIdx ] = m_aiDDDShift[ iBaseViewIdx ] = 0;
    4172         return;
    4173     }
    4174 
    4175 
    4176     Int iSign = iCodedScale >= 0 ? 1 : -1;
    4177     iCodedScale = abs( iCodedScale );
    4178 
    4179     Int iBitWidth = 0;
    4180 
    4181     const Int iInvPres = 9;
    4182 
    4183     while( ((( 1 << iBitWidth ) << 1 ) <= iCodedScale ) )
    4184     {
    4185         iBitWidth ++;
    4186     }
    4187     iBitWidth += iInvPres;
    4188     Int iTargetValue =  1 << iBitWidth;
    4189 
    4190     Int iMinError = MAX_INT;
    4191     Int iBestD = 1 << ( iInvPres - 1 );
    4192     for( Int d = 1 << ( iInvPres - 1 ); d < ( 1 << iInvPres ); d++ )
    4193     {
    4194         Int iError = abs( iCodedScale * d - iTargetValue );
    4195         if( iError < iMinError )
    4196         {
    4197             iMinError = iError;
    4198             iBestD = d;
    4199         }
    4200         if( iMinError == 0 )
    4201         {
    4202             break;
    4203         }
    4204     }
    4205     Int iRoundingDir = 0;
    4206     if( iCodedScale * iBestD > iTargetValue )
    4207     {
    4208         iRoundingDir = -1;
    4209     }
    4210     else if( iCodedScale * iBestD < iTargetValue )
    4211     {
    4212         iRoundingDir = 1;
    4213     }
    4214     Int iCamPres = uiCamParsCodedPrecision - 1;
    4215     m_aiDDDInvScale [ iBaseViewIdx ] = ( iBestD << ( iCamPres + g_bitDepthY )) * iSign;
    4216     m_aiDDDInvOffset[ iBaseViewIdx ] = -iSign * iBestD * ( iCodedOffset << g_bitDepthY );
    4217     m_aiDDDShift    [ iBaseViewIdx ] = iBitWidth;
    4218     m_aiDDDInvOffset[ iBaseViewIdx ] += 1 << ( m_aiDDDShift[ iBaseViewIdx ] - 1 );
    4219     m_aiDDDInvOffset[ iBaseViewIdx ] += ( 1 << ( m_aiDDDShift[ iBaseViewIdx ] - 4 ) ) * iRoundingDir;
    4220 
    4221     return;
    4222 }
    4223 
    4224 
    4225 #endif
    4226 #endif
     3985  }
     3986}
     3987#endif
     3988#endif
     3989
    42273990
    42283991#if H_MV
     
    42584021#endif
    42594022
    4260 #if !LGE_DDD_REMOVAL_J0042_J0030
    4261 #if H_3D_DBBP
    4262 Int TComSlice::getDepthFromDV( Int iDV, Int iBaseViewIdx )
    4263 {
    4264   return ClipY(( iDV * m_aiDDDInvScale[ iBaseViewIdx ] + m_aiDDDInvOffset[ iBaseViewIdx ] ) >> m_aiDDDShift[ iBaseViewIdx ]);
    4265 }
    4266 #endif
    4267 #endif
    4268 
    4269 #if HHI_TOOL_PARAMETERS_I2_J0107
     4023
    42704024#if H_3D
    42714025
     
    43644118}
    43654119#endif
    4366 #endif
    43674120
    43684121
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TComSlice.h

    r1124 r1131  
    861861  TComRepFormat* m_repFormat             [MAX_NUM_LAYERS];
    862862  Bool        m_maxOneActiveRefLayerFlag;       
    863 #if H_MV_HLS7_GEN || H_MV_HLS_FIX
    864863  Bool        m_vpsPocLsbAlignedFlag;
    865 #endif
    866864  Bool        m_pocLsbNotPresentFlag     [MAX_NUM_LAYERS];
    867865
     
    884882  Int         m_dependencyFlag           [MAX_NUM_LAYERS][MAX_NUM_LAYERS];
    885883
    886 #if H_MV_FIX_NUM_VIEWS
    887884  Int         m_numViews;
    888 #endif
    889885  Int         m_numDirectRefLayers       [MAX_NUM_LAYERS];
    890886  Int         m_idDirectRefLayer         [MAX_NUM_LAYERS][MAX_NUM_LAYERS]; 
    891 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    892887#if H_3D
    893888  Int         m_numRefListLayers         [MAX_NUM_LAYERS];
    894889  Int         m_idRefListLayer           [MAX_NUM_LAYERS][MAX_NUM_LAYERS]; 
    895 #endif
    896890#endif
    897891
     
    919913  Void        xSetRefLayerFlags( Int currLayerId );
    920914  // VPS EXTENSION 2 SYNTAX ELEMENTS
    921 #if !HHI_TOOL_PARAMETERS_I2_J0107
    922 #if H_3D_ARP
    923   UInt        m_uiUseAdvResPred          [MAX_NUM_LAYERS   ];
    924   UInt        m_uiARPStepNum             [MAX_NUM_LAYERS   ];
    925 #endif
    926 #if H_3D_IV_MERGE
    927   Bool        m_ivMvPredFlag             [ MAX_NUM_LAYERS ];
    928   Bool        m_ivMvScalingFlag          [ MAX_NUM_LAYERS ];
    929 #if H_3D_SPIVMP
    930   Int         m_iSubPULog2Size           [MAX_NUM_LAYERS   ];
    931   Int         m_iSubPUMPILog2Size        [MAX_NUM_LAYERS   ];
    932 #endif
    933 #endif
    934 #if H_3D_QTLPC
    935   Bool        m_bLimQtPredFlag           [ MAX_NUM_LAYERS ];
    936 #endif
    937 #if H_3D_VSP
    938   Bool        m_viewSynthesisPredFlag    [ MAX_NUM_LAYERS ];
    939 #endif
    940 #if H_3D_NBDV_REF
    941   Bool        m_depthRefinementFlag      [ MAX_NUM_LAYERS ];
    942 #endif
    943   Bool        m_vpsDepthModesFlag        [MAX_NUM_LAYERS   ];
    944 #if H_3D
    945   Bool        m_bIVPFlag                 [MAX_NUM_LAYERS   ];
    946 #endif
    947 #endif
    948915#if H_3D
    949916  UInt        m_uiCamParPrecision;
     
    953920  Int         ***m_aaaiCodedOffset;
    954921
    955 #if H_MV_FIX_NUM_VIEWS
    956922#if HHI_VIEW_ID_LIST_I5_J0107
    957923  std::vector<Int>  m_viewOIdxList;
    958924#endif
    959 #endif
    960 
    961 #endif
    962 #if !HHI_TOOL_PARAMETERS_I2_J0107
    963 #if H_3D_INTER_SDC
    964   Bool        m_bInterSDCFlag[MAX_NUM_LAYERS   ];
    965 #endif
    966 #if H_3D_DBBP
    967   Bool        m_dbbpFlag[MAX_NUM_LAYERS];
    968 #endif
    969 #if H_3D_IV_MERGE
    970   Bool        m_bMPIFlag[MAX_NUM_LAYERS   ];
    971 #endif
    972 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    973   Bool        m_singleDepthModeFlag    [ MAX_NUM_LAYERS ];
    974 #endif
     925
    975926#endif
    976927
     
    11591110  Bool    getMaxOneActiveRefLayerFlag( )                                   { return m_maxOneActiveRefLayerFlag; }
    11601111
    1161 #if H_MV_HLS7_GEN || H_MV_HLS_FIX
    11621112  Void    setVpsPocLsbAlignedFlag( Bool flag )                             { m_vpsPocLsbAlignedFlag = flag; }
    11631113  Bool    getVpsPocLsbAlignedFlag(  )                                      { return m_vpsPocLsbAlignedFlag; }
    1164 #endif
    11651114
    11661115  Void    setDpbSize( TComDpbSize* val )                                   { assert( m_dpbSize != 0 ); m_dpbSize = val; }
     
    11961145  Void    setRefLayers();
    11971146
    1198 #if H_MV_FIX_NUM_VIEWS
    11991147  // To be aligned with spec naming, getViewIndex will be removed in future versions
    12001148  Int     getViewOrderIdx ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), VIEW_ORDER_INDEX  ); }   
    12011149  Int     getViewIndex    ( Int layerIdInNuh )                             { return getViewOrderIdx( layerIdInNuh ); }   
    1202 #else
    1203   Int     getViewIndex    ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), VIEW_ORDER_INDEX  ); }   
    1204 #endif
    12051150  Int     getAuxId        ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), AUX_ID  ); }   
    12061151  Int     getDependencyId ( Int layerIdInNuh )                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), DEPENDENCY_ID  ); }   
    1207 #if H_MV_FIX_NUM_VIEWS
    12081152  Int     getNumViews()                                                    { return m_numViews; }
    12091153  Void    initNumViews();
     
    12111155  Int     getViewOIdxList( Int i )                                         { return m_viewOIdxList[i]; }
    12121156#endif
    1213 #else
    1214   Int     getNumViews();
    1215 #endif
    12161157
    12171158  Bool    getDependencyFlag( Int i, Int j )                                { return m_dependencyFlag[i][j]; }
    12181159  Int     getNumDirectRefLayers( Int layerIdInNuh )                        { return m_numDirectRefLayers[ layerIdInNuh ];  };                               
    1219 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    12201160#if H_3D
    12211161  Int     getNumRefListLayers( Int layerIdInNuh )                         { return m_numRefListLayers[ layerIdInNuh ];  };                               
    1222 #endif
    12231162#endif
    12241163
     
    12301169  Int     getIdPredictedLayer        ( Int i, Int j ) { assert( j >= 0 && j < getNumPredictedLayers( i )); return m_idPredictedLayer[i][j]; }
    12311170  Int     getIdDirectRefLayer        ( Int i, Int j ) { assert( j >= 0 && j < getNumDirectRefLayers( i )); return m_idDirectRefLayer[i][j]; }
    1232 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    12331171#if H_3D
    12341172  Int     getIdRefListLayer          ( Int i, Int j ) { assert( j >= 0 && j < getNumRefListLayers   ( i )); return m_idRefListLayer[i][j]; }
    1235 #endif
    12361173#endif
    12371174  Int     getNumIndependentLayers    (  )             { return m_numIndependentLayers; }
     
    13331270#if H_3D 
    13341271  Int     getDepthId      ( Int layerIdInNuh)                             { return getScalabilityId( getLayerIdInVps(layerIdInNuh), DEPTH_ID ); }
    1335 #if HHI_TOOL_PARAMETERS_I2_J0107
    13361272  Bool    getVpsDepthFlag( Int layerIdInNuh)                              { return (getDepthId( layerIdInNuh ) > 0);  }
    1337 #endif
    13381273  Int     getLayerIdInNuh( Int viewIndex, Bool depthFlag );   
    13391274
    1340 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1341 #if H_3D_ARP
    1342   UInt    getUseAdvRP  ( Int layerIdInVps )                                { return m_uiUseAdvResPred[layerIdInVps];    }
    1343   UInt    getARPStepNum( Int layerIdInVps )                                { return m_uiARPStepNum[layerIdInVps];       }
    1344   Void    setUseAdvRP  ( Int layerIdInVps, UInt val )                      { m_uiUseAdvResPred[layerIdInVps] = val;     }
    1345   Void    setARPStepNum( Int layerIdInVps, UInt val )                      { m_uiARPStepNum[layerIdInVps]    = val;     }
    1346 #endif
    1347 #endif
    13481275
    13491276  Void createCamPars(Int iNumViews);
     
    13601287  Int* getInvCodedOffset     ( Int viewIndex )  { return m_aaaiCodedOffset[viewIndex][1]; }
    13611288
    1362 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1363 #if H_3D_IV_MERGE
    1364   Void    setIvMvPredFlag     ( Int layerIdInVps, Bool val )  { m_ivMvPredFlag[ layerIdInVps ] = val; }
    1365   Bool    getIvMvPredFlag     ( Int layerIdInVps )            { return m_ivMvPredFlag[ layerIdInVps ]; };
    1366 #if H_3D_SPIVMP
    1367   Int     getSubPULog2Size(Int layerIdInVps)           { return m_iSubPULog2Size[layerIdInVps]; }
    1368   Void    setSubPULog2Size(Int layerIdInVps, Int u)    { m_iSubPULog2Size[layerIdInVps] = u;}
    1369   Int     getSubPUMPILog2Size(Int layerIdInVps)           { return m_iSubPUMPILog2Size[layerIdInVps]; }
    1370   Void    setSubPUMPILog2Size(Int layerIdInVps, Int u)    { m_iSubPUMPILog2Size[layerIdInVps] = u;}
    1371 #endif
    1372 #endif
    1373 #if H_3D_QTLPC
    1374   Void    setLimQtPredFlag    ( Int layerIdInVps, Bool val )  { m_bLimQtPredFlag[ layerIdInVps ] = val; }
    1375   Bool    getLimQtPredFlag    ( Int layerIdInVps ) { return m_bLimQtPredFlag[layerIdInVps];}
    1376 #endif
    1377 #if H_3D_VSP
    1378   Void    setViewSynthesisPredFlag  ( Int layerIdInVps, Bool val )  { m_viewSynthesisPredFlag[ layerIdInVps ] = val; }
    1379   Bool    getViewSynthesisPredFlag  ( Int layerIdInVps )            { return m_viewSynthesisPredFlag[ layerIdInVps ]; };
    1380 #endif
    1381 #if H_3D_NBDV_REF
    1382   Void    setDepthRefinementFlag  ( Int layerIdInVps, Bool val )  { m_depthRefinementFlag[ layerIdInVps ] = val; }
    1383   Bool    getDepthRefinementFlag  ( Int layerIdInVps )            { return m_depthRefinementFlag[ layerIdInVps ]; };
    1384 #endif
    1385   Void    setVpsDepthModesFlag( Int layerIdInVps, Bool val )               { m_vpsDepthModesFlag[ layerIdInVps ] = val; }
    1386   Bool    getVpsDepthModesFlag( Int layerIdInVps )                         { return m_vpsDepthModesFlag[ layerIdInVps ]; }
    1387 
    1388   Void    setIVPFlag( Int layerIdInVps, Bool val )                    { m_bIVPFlag[ layerIdInVps ] = val; }
    1389   Bool    getIVPFlag( Int layerIdInVps )                              { return m_bIVPFlag[ layerIdInVps ]; }
    1390 
    1391   Bool    getIvMvScalingFlag   ( Int layerIdInVps )                        { return m_ivMvScalingFlag[ layerIdInVps ]; }
    1392   Void    setIvMvScalingFlag   (Int layerIdInVps, Bool b )                 { m_ivMvScalingFlag[ layerIdInVps ] = b;    } 
    1393 
    1394 #if H_3D_INTER_SDC
    1395   Bool    getInterSDCFlag      ( Int layerIdInVps )           { return m_bInterSDCFlag[layerIdInVps]; }
    1396   Void    setInterSDCFlag      ( Int layerIdInVps, Bool bval ){ m_bInterSDCFlag[layerIdInVps] = bval; }
    1397 #endif
    1398 #if H_3D_DBBP
    1399   Bool getUseDBBP              ( Int layerIdInVps )         { return m_dbbpFlag[layerIdInVps]; }
    1400   Void setUseDBBP              ( Int layerIdInVps, Bool bval ){ m_dbbpFlag[layerIdInVps] = bval; }
    1401 #endif
    1402 #if H_3D_IV_MERGE
    1403   Bool    getMPIFlag      ( Int layerIdInVps )           { return m_bMPIFlag[layerIdInVps]; }
    1404   Void    setMPIFlag      ( Int layerIdInVps, Bool bval ){ m_bMPIFlag[layerIdInVps] = bval; }
    1405 #endif
    1406 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    1407   Void    setSingleDepthModeFlag  ( Int layerIdInVps, Bool val )  { m_singleDepthModeFlag[ layerIdInVps ] = val; }
    1408   Bool    getSingleDepthModeFlag  ( Int layerIdInVps )            { return m_singleDepthModeFlag[ layerIdInVps ]; };
    1409 #endif
    1410 #endif 
    14111289#endif
    14121290#endif
     
    16751553};
    16761554
    1677 #if HHI_TOOL_PARAMETERS_I2_J0107
    16781555#if H_3D
    16791556class TComSps3dExtension
     
    17621639
    17631640#endif
    1764 #endif
    17651641
    17661642/// SPS class
     
    18631739#endif
    18641740#if H_3D
    1865 #if HHI_TOOL_PARAMETERS_I2_J0107
    18661741  TComSps3dExtension m_sps3dExtension;
    1867 #endif
    18681742  UInt        m_uiCamParPrecision;
    18691743  Bool        m_bCamParInSliceHeader;
     
    20441918  Bool getInterViewMvVertConstraintFlag()         { return m_interViewMvVertConstraintFlag;}
    20451919
    2046 #if HHI_TOOL_PARAMETERS_I2_J0107
    20471920#if H_3D
    20481921  Void setSps3dExtension ( TComSps3dExtension& sps3dExtension ) { m_sps3dExtension = sps3dExtension; }
    20491922  TComSps3dExtension* getSps3dExtension ( )                     { return &m_sps3dExtension; }
    2050 #endif
    20511923#endif
    20521924
     
    25052377#endif
    25062378#endif
    2507 #if !LGE_DDD_REMOVAL_J0042_J0030
    2508 #if H_3D_DDD
    2509   Int          m_aiDDDInvScale [MAX_NUM_LAYERS];
    2510   Int          m_aiDDDInvOffset[MAX_NUM_LAYERS];
    2511   UInt         m_aiDDDShift    [MAX_NUM_LAYERS];
    2512 #endif
    2513 #endif
    25142379#if H_3D_SINGLE_DEPTH
    25152380  Bool      m_bApplySingleDepthMode;
     
    25192384  Int *m_aICEnableNum;
    25202385#endif
    2521 #if LGE_DEFAULT_DV_J0046
    25222386  Int       m_iDefaultRefViewIdx;
    25232387  Bool      m_bDefaultRefViewIdxAvailableFlag;
    2524 #endif
    2525 
    2526 #if HHI_TOOL_PARAMETERS_I2_J0107
     2388
    25272389  Bool m_ivMvPredFlag         ;
    25282390  Bool m_ivMvScalingFlag      ;
     
    25402402  Int  m_mpiSubPbSize         ;
    25412403  Int  m_subPbSize            ;
    2542 #endif
    25432404public:
    25442405  TComSlice();
     
    26102471#if H_3D
    26112472  TComPic*  getTexturePic       ()                              { return  m_ivPicsCurrPoc[0][ m_viewIndex ]; }
    2612 #endif
    2613 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2614 #if H_3D_SINGLE_DEPTH
    2615   Void      setApplySingleDepthMode( Bool b )                                { m_bApplySingleDepthMode = b; }
    2616   Bool      getApplySingleDepthMode()                                        { return m_bApplySingleDepthMode; }
    2617 #endif
    26182473#endif
    26192474#if H_3D_IC
     
    28532708  Int* getDepthToDisparityB( Int refViewIdx ) { return m_depthToDisparityB[ refViewIdx ]; };
    28542709  Int* getDepthToDisparityF( Int refViewIdx ) { return m_depthToDisparityF[ refViewIdx ]; };
    2855 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2856   Bool getVpsDepthModesFlag  ()  { return getVPS()->getVpsDepthModesFlag( getVPS()->getLayerIdInVps( m_layerId ) ); }
    2857   Bool getIVPFlag       ()  { return getVPS()->getIVPFlag( getVPS()->getLayerIdInVps( m_layerId ) ); }
    2858 #endif
    28592710#endif
    28602711#if H_3D_IC
     
    29142765  Int  getPocMsbVal(  ) { return m_pocMsbVal; }
    29152766
    2916 #if H_MV_HLS_FIX
    29172767  Bool getCraOrBlaPicFlag() { return ( getCraPicFlag() || getBlaPicFlag() ); }
    29182768  Bool getPocMsbValRequiredFlag() { return ( getCraOrBlaPicFlag() && ( getVPS()->getVpsPocLsbAlignedFlag() || getVPS()->getNumDirectRefLayers( getLayerIdInVps() ) == 0 ) );  }
    2919 #else
    2920   Bool getPocMsbValRequiredFlag() { return m_pocMsbValRequiredFlag; }
    2921   Void setPocMsbValRequiredFlag(Bool x) { m_pocMsbValRequiredFlag = x; }
    2922 #endif
    29232769
    29242770
     
    29382784  // Additional variables derived in slice header semantics
    29392785
    2940 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    29412786#if H_3D
    29422787  Int  getNumInterLayerRefPicsMinus1Len( ) { return gCeilLog2(  getVPS()->getNumRefListLayers( getLayerId() )); }
     
    29472792#endif
    29482793
    2949 #else
    2950   Int  getNumInterLayerRefPicsMinus1Len( ) { return gCeilLog2(  getVPS()->getNumDirectRefLayers( getLayerId() )); }
    2951   Int  getInterLayerPredLayerIdcLen    ( ) { return gCeilLog2(  getVPS()->getNumDirectRefLayers( getLayerId() )); }
    2952 #endif
    29532794
    29542795  Int  getRefLayerPicFlag( Int i );
     
    29672808
    29682809
    2969 #if HHI_TOOL_PARAMETERS_I2_J0107
    29702810#if H_3D
    29712811  // 3D-HEVC tool parameters
     
    29872827  Int  getSubPbSize              ( ) { return m_subPbSize              ; };
    29882828#endif
    2989 #endif
    29902829
    29912830
     
    29932832  Bool inferPocMsbValPresentFlag(); 
    29942833#endif
    2995 #if !LGE_DDD_REMOVAL_J0042_J0030
    2996 #if H_3D_DDD
    2997   Void initializeDDDPara( UInt uiCamParsCodedPrecision, Int  iCodedScale,Int  iCodedOffset, Int iBaseViewIdx );
    2998   Int  getDepthFromDV( Int iDV, Int iBaseViewIdx );
    2999 #endif
    3000 #endif
    3001 #if LGE_DEFAULT_DV_J0046
     2834#if H_3D
    30022835  Int  getDefaultRefViewIdx() { return m_iDefaultRefViewIdx; }
    30032836  Void setDefaultRefViewIdx(Int iViewIdx) { m_iDefaultRefViewIdx = iViewIdx; }
     
    30052838  Bool getDefaultRefViewIdxAvailableFlag() { return m_bDefaultRefViewIdxAvailableFlag; }
    30062839  Void setDefaultRefViewIdxAvailableFlag(Bool bViewIdx) { m_bDefaultRefViewIdxAvailableFlag = bViewIdx; }
    3007 #endif
    3008 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
    30092840  Void setDefaultRefView( );
    30102841#endif
    3011 
    30122842protected:
    30132843  TComPic*  xGetRefPic  (TComList<TComPic*>& rcListPic,
  • branches/HTM-13.0-dev0/source/Lib/TLibCommon/TypeDef.h

    r1124 r1131  
    103103                                              // MTK_NBDV_TN_FIX_E0172     fix the issue of DV derivation from the temporal neighboring blocks, issue 7 in JCT3V-E0172
    104104                                              // MTK_TEXTURE_MRGCAND_BUGFIX_E0182  Bug fix for TEXTURE MERGING CANDIDATE     , JCT3V-E0182
    105 #define LGE_SIMP_DISP_AVAIL_J0041    1   // Use 2 status for disparity availability - DISP_AVAILABLE and DISP_NONE
     105                                              // LGE_SIMP_DISP_AVAIL_J0041    // Use 2 status for disparity availability - DISP_AVAILABLE and DISP_NONE
    106106
    107107#define H_3D_ARP                          1   // Advanced residual prediction (ARP), JCT3V-D0177
     
    129129                                              // MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX  1  // Remove the global variables used in JCT3V-H0086
    130130                                              // SEC_IC_NEIGHBOR_CLIP_I0080    // Clipping of neighboring sample position, JCT3V-I0080
     131                                              // LGE_CHROMA_IC_J0050_J0034
    131132
    132133#if H_3D_NBDV
     
    156157                                              // NTT_STORE_SPDV_VSP_G0148 Storing Sub-PU based DV for VSP
    157158                                              // Restricted bi-prediction for VSP
    158 #define SEC_A1_BASED_VSP_J0039            1   // Removal of redundant VSP in Merge list
     159                                              // MTK_MRG_LIST_SIZE_CLEANUP_J0059   1   // Include VSP for deriving merge candidate list size, JCT3V-J0059
     160                                              // SEC_A1_BASED_VSP_J0039            1   // Removal of redundant VSP in Merge list
     161
    159162
    160163
     
    182185                                              // SEC_SIMP_SHIFTED_DV_I0086     Simplification of Shifted DV candidate, JCT3V-I0086
    183186
    184 #define MTK_MRG_LIST_SIZE_CLEANUP_J0059   1   // Include VSP for deriving merge candidate list size, JCT3V-J0059
     187
    185188
    186189
     
    231234                                              // SEPARATE_FLAG_I0085
    232235                                              // H_3D_DELTA_DLT
    233                                               // RWTH_DLT_CLIP_I0057               1
    234 
    235 
     236                                              // RWTH_DLT_CLIP_I0057
     237                                              // MTK_DMM_SIM_J0035
     238                                              // MTK_J0033
     239                                              // SHARP_DLT_SIMP_J0029              1   // DLT(DepthValue2Idx[]) table derivation cleanup
    236240
    237241#define H_3D_SINGLE_DEPTH                 1   // Single depth mode proposed in JCT3V-I0095
    238 #define MTK_SINGLE_DEPTH_VPS_FLAG_J0060   1   // Add VPS control flags and remove slice header control flag for single depth, JCT3V-J0060
    239 #define ALIGN_J0060_J0107                 1   // Alignment of changed tool parameters
    240 #define ALGIN_J0107_J0059                 1   // Alignment of changed tool parameters               
    241 
    242 #define MTK_J0033                         1
    243 #define SHARP_DLT_SIMP_J0029              1   // DLT(DepthValue2Idx[]) table derivation cleanup
     242                                              // HS_SP_SIMP_J0066
     243                                              // SINGLE_DEPTH_SIMP_J0115           1
     244                                              // MTK_SINGLE_DEPTH_VPS_FLAG_J0060   1   // Add VPS control flags and remove slice header control flag for single depth, JCT3V-J0060
    244245
    245246#define H_3D_INTER_SDC                    1   // INTER SDC, Inter simplified depth coding
     
    263264                                              // SHARP_DBBP_SIMPLE_FLTER_I0109     1   // Simple condition and one dimensional filter for DBBP
    264265                                              // SEC_DBBP_DMM4_THRESHOLD_I0076     Simplification of threshold derivation for DBBP and DMM4, JCT3V-I0076
    265 #define SEC_DBBP_VIEW_REF_CHECK_J0037     1   // Signaling dbbp_flag when the current slice has view reference picture(s), JCT3V-J0037 item4
     266                                              // SEC_DBBP_VIEW_REF_CHECK_J0037     1   // Signaling dbbp_flag when the current slice has view reference picture(s), JCT3V-J0037 item4
    266267
    267268#define H_3D_DDD                          1   // Disparity derived depth coding
    268 #define LGE_DDD_REMOVAL_J0042_J0030       1   // DDD removal
     269                                              // LGE_DDD_REMOVAL_J0042_J0030 DDD removal
    269270
    270271#define H_3D_FCO                          0   // Flexible coding order for 3D
     
    283284#define H_3D_FAST_DEPTH_INTRA             1   // Fast DMM and RBC Mode Selection
    284285                                              // SCU_HS_FAST_DEPTH_INTRA_E0238_HHIFIX
    285 #define MTK_DMM_SIM_J0035                 1
    286 #endif
     286#endif
     287
     288//HLS
     289//HHI_DEPENDENCY_SIGNALLING_I1_J0107
     290//HHI_TOOL_PARAMETERS_I2_J0107
     291//HHI_VPS_3D_EXTENSION_I3_J0107
    287292
    288293// Rate Control
     
    302307
    303308#if H_3D
    304 #define HHI_DEPENDENCY_SIGNALLING_I1_J0107     1
    305 #define HHI_TOOL_PARAMETERS_I2_J0107           1
    306 #define HHI_VPS_3D_EXTENSION_I3_J0107          1
    307309#define HHI_VIEW_ID_LIST_I5_J0107              0
    308310#endif
     
    314316#if H_3D_SINGLE_DEPTH
    315317#define SINGLE_DEPTH_MODE_CAND_LIST_SIZE            2 // size of the sample candidate list
    316 #define SINGLE_DEPTH_SIMP_J0115           1
     318
    317319#endif
    318320
     
    331333#define DVFROM_ABOVE                      1
    332334#define IDV_CANDS                         2
    333 #define LGE_DEFAULT_DV_J0046              1
    334335#endif
    335336
     
    367368#define IC_SHIFT_DIFF                     12
    368369#define IC_LOW_LATENCY_ENCODING_THRESHOLD 0.1 // Threshold for low-latency IC encoding in JCT3V-H0086
    369 #define LGE_CHROMA_IC_J0050_J0034         1
    370370#endif
    371371
     
    389389#endif
    390390
    391 
    392 #if H_3D_SPIVMP
    393 #define HS_SP_SIMP_J0066                        1
    394 #endif
    395391
    396392/////////////////////////////////////////////////////////////////////////////////
     
    935931enum DefaultMergCandOrder
    936932{
    937 #if SEC_A1_BASED_VSP_J0039
    938933  MRG_T = 0,            ///< MPI
    939934  MRG_D,                ///< DDD
     
    948943  MRG_IVSHIFT,          ///< Shifted IVMC of Shifted IVDC. (These are mutually exclusive)
    949944  MRG_COL               ///< Temporal co-located
    950 #else
    951   MRG_T = 0,            ///< MPI
    952   MRG_D,                ///< DDD
    953   MRG_IVMC,             ///< Temporal inter-view
    954   MRG_A1,               ///< Left
    955   MRG_B1,               ///< Above
    956   MRG_B0,               ///< Above right
    957   MRG_IVDC,             ///< Disparity inter-view
    958   MRG_VSP,              ///< VSP
    959   MRG_A0,               ///< Left bottom
    960   MRG_B2,               ///< Above left
    961   MRG_IVSHIFT,          ///< Shifted IVMC of Shifted IVDC. (These are mutually exclusive)
    962   MRG_COL               ///< Temporal co-located
    963 #endif
    964945};
    965946#endif
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1124 r1131  
    721721}
    722722
    723 #if HHI_TOOL_PARAMETERS_I2_J0107
    724723Void TDecCavlc::parseSPS(TComSPS* pcSPS)
    725 #else
    726 #if H_3D
    727 Void TDecCavlc::parseSPS(TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    728 #else
    729 Void TDecCavlc::parseSPS(TComSPS* pcSPS)
    730 #endif
    731 #endif
    732724{
    733725#if ENC_DEC_TRACE 
     
    997989  if ( pcSPS->getSps3dExtensionFlag() )
    998990  {
    999 #if HHI_TOOL_PARAMETERS_I2_J0107
    1000991    parseSPS3dExtension( pcSPS );
    1001 #else
    1002     parseSPSExtension2( pcSPS, viewIndex, depthFlag  );
    1003 #endif
    1004992  }
    1005993
     
    10281016
    10291017#if H_3D
    1030 #if HHI_TOOL_PARAMETERS_I2_J0107
    10311018Void TDecCavlc::parseSPS3dExtension( TComSPS* pcSPS )
    10321019{
     
    10571044  }
    10581045}
    1059 #else
    1060 Void TDecCavlc::parseSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    1061 {
    1062 
    1063 }
    1064 #endif
    10651046#endif
    10661047
     
    10711052  READ_FLAG( uiCode, "pps_infer_scaling_list_flag" ); pcPPS->setPpsInferScalingListFlag( uiCode == 1 );
    10721053  READ_CODE( 6, uiCode, "pps_scaling_list_ref_layer_id" ); pcPPS->setPpsScalingListRefLayerId( uiCode );
    1073 #if H_MV_HLS_FIX
    10741054
    10751055  UInt numRefLocOffsets;;
     
    11121092  // This is required to equal to 0 for Multiview Main profile.
    11131093  assert( uiCode == 0 );
    1114 #else
    1115   READ_UVLC( uiCode, "num_ref_loc_offsets" ); assert( uiCode == 0 );
    1116 #endif
    11171094}
    11181095
     
    12371214    {
    12381215#if H_3D
    1239 #if HHI_VPS_3D_EXTENSION_I3_J0107
    12401216      READ_FLAG( uiCode,  "vps_3d_extension_flag" );
    12411217      if ( uiCode )
     
    12481224      if (uiCode)
    12491225      {     
    1250 #else
    1251       m_pcBitstream->readOutTrailingBits();
    1252       pcVPS->createCamPars(pcVPS->getNumViews());
    1253       parseVPSExtension2( pcVPS );   
    1254       READ_FLAG( uiCode,  "vps_extension3_flag" );
    1255       if (uiCode)
    1256       {     
    1257 #endif
    12581226#endif
    12591227#endif 
     
    13301298  }
    13311299
    1332 #if H_MV_FIX_NUM_VIEWS
    13331300  pcVPS->initNumViews();
    1334 #endif
    13351301
    13361302  READ_CODE( 4, uiCode, "view_id_len" ); pcVPS->setViewIdLen( uiCode );
     
    14411407  for( Int i = 1; i < pcVPS->getNumOutputLayerSets( ); i++ )
    14421408  {
    1443 #if H_MV_HLS_FIX
    14441409    if( pcVPS->getNumLayerSets() > 2 && i >= pcVPS->getNumLayerSets( ) )   
    1445 #else
    1446     if( i >= pcVPS->getNumLayerSets( ) )   
    1447 #endif
    14481410    {       
    14491411      READ_CODE( pcVPS->getLayerSetIdxForOlsMinus1Len( i ), uiCode, "layer_set_idx_for_ols_minus1[i]" ); pcVPS->setLayerSetIdxForOlsMinus1( i, uiCode );
     
    15171479  READ_FLAG( uiCode, "max_one_active_ref_layer_flag" ); pcVPS->setMaxOneActiveRefLayerFlag ( uiCode == 1 );
    15181480
    1519 #if H_MV_HLS7_GEN || H_MV_HLS_FIX
    15201481  READ_FLAG( uiCode, "vps_poc_lsb_aligned_flag" ); pcVPS->setVpsPocLsbAlignedFlag( uiCode == 1 );
    1521 #endif
    15221482  for( Int i = 1; i  <=  pcVPS->getMaxLayersMinus1(); i++ )
    15231483  {
     
    15671527    parseVPSVUI( pcVPS );
    15681528  }     
    1569 #if H_MV_HLS_FIX
    15701529  else
    1571 #endif
    15721530  {
    15731531    TComVPSVUI* pcVPSVUI = pcVPS->getVPSVUI( );
     
    19451903
    19461904#if H_3D
    1947 #if HHI_VPS_3D_EXTENSION_I3_J0107
    19481905Void TDecCavlc::parseVPS3dExtension( TComVPS* pcVPS )
    1949 #else
    1950 Void TDecCavlc::parseVPSExtension2( TComVPS* pcVPS )
    1951 #endif
    19521906{
    19531907  UInt uiCode;
    19541908
    1955 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1956   for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ )
    1957   {
    1958 #if H_3D_ARP
    1959     pcVPS->setUseAdvRP  ( i, 0 );
    1960     pcVPS->setARPStepNum( i, 1 );
    1961 #endif 
    1962 #if H_3D_SPIVMP
    1963     pcVPS->setSubPULog2Size(i, 0);
    1964 #endif
    1965     {
    1966 #if H_3D_IV_MERGE
    1967       READ_FLAG( uiCode, "iv_mv_pred_flag[i]");          pcVPS->setIvMvPredFlag         ( i, uiCode == 1 ? true : false );
    1968       READ_FLAG( uiCode, "iv_mv_scaling_flag[i]");       pcVPS->setIvMvScalingFlag         ( i, uiCode == 1 ? true : false );
    1969 #endif
    1970       if( !( pcVPS->getDepthId( i ) == 1 ) )
    1971       {
    1972 #if H_3D_IV_MERGE
    1973         if( !pcVPS->getNumDirectRefLayers(i) )
    1974         {
    1975           assert( !uiCode );         
    1976         }
    1977 #if H_3D_SPIVMP
    1978         READ_UVLC (uiCode, "log2_sub_PU_size_minus3[i]");     pcVPS->setSubPULog2Size(i, uiCode+3);
    1979 #endif
    1980 #endif
    1981 #if H_3D_ARP
    1982         READ_FLAG( uiCode, "iv_res_pred_flag[i]"  );       pcVPS->setUseAdvRP  ( i, uiCode ); pcVPS->setARPStepNum( i, uiCode ? H_3D_ARP_WFNR : 1 );
    1983         if( !pcVPS->getNumDirectRefLayers(i) )
    1984         {
    1985           assert( !uiCode );         
    1986         }
    1987 #endif
    1988 #if H_3D_NBDV_REF
    1989         READ_FLAG( uiCode, "depth_refinement_flag[i]");    pcVPS->setDepthRefinementFlag  ( i, uiCode == 1 ? true : false );
    1990 #endif
    1991 #if H_3D_VSP
    1992         READ_FLAG( uiCode, "view_synthesis_pred_flag[i]"); pcVPS->setViewSynthesisPredFlag( i, uiCode == 1 ? true : false );
    1993         if( !pcVPS->getNumDirectRefLayers(i) )
    1994         {
    1995           assert( !uiCode );         
    1996         }
    1997 #endif
    1998 #if H_3D_DBBP
    1999           READ_FLAG( uiCode, "use_dbbp_flag[i]" ); pcVPS->setUseDBBP( i, uiCode == 1 ? true : false );
    2000 #endif
    2001       }
    2002       else
    2003       {
    2004 #if H_3D_IV_MERGE
    2005         READ_FLAG( uiCode, "mpi_flag[i]" );             pcVPS->setMPIFlag( i, uiCode == 1 ? true : false );
    2006         READ_UVLC (uiCode, "log2_mpi_sub_PU_size_minus3[i]");     pcVPS->setSubPUMPILog2Size(i, uiCode+3);
    2007 #endif
    2008         READ_FLAG( uiCode, "vps_depth_modes_flag[i]" );             pcVPS->setVpsDepthModesFlag( i, uiCode == 1 ? true : false );
    2009 #if H_3D
    2010         READ_FLAG( uiCode, "ivp_flag[i]" );                   pcVPS->setIVPFlag( i, uiCode == 1 ? true : false );
    2011 #endif
    2012 #if H_3D_QTLPC
    2013         READ_FLAG( uiCode, "lim_qt_pred_flag[i]");                  pcVPS->setLimQtPredFlag     ( i, uiCode == 1 ? true : false );
    2014 #endif
    2015 #if H_3D_INTER_SDC
    2016             READ_FLAG( uiCode, "depth_inter_SDC_flag" );              pcVPS->setInterSDCFlag( i, uiCode ? true : false );
    2017 #endif
    2018 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2019         READ_FLAG( uiCode, "single_depth_mode_flag[i]"); pcVPS->setSingleDepthModeFlag( i, uiCode == 1 ? true : false );       
    2020 #endif
    2021       }
    2022     }
    2023   }
    2024 #endif
    20251909
    20261910  UInt uiCamParPrecision = 0;
     
    21312015#endif
    21322016  rpcSlice->setSPS(sps);
    2133 #if HHI_TOOL_PARAMETERS_I2_J0107
    21342017#if H_3D
    21352018  rpcSlice->init3dToolParameters();
    2136 #endif
    21372019#endif
    21382020  rpcSlice->setPPS(pps);
     
    22072089    rpcSlice->checkCrossLayerBlaFlag( );
    22082090
    2209 #if !H_MV_HLS7_GEN && !H_MV_HLS_FIX
    2210     if ( rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > esb )
    2211     {
    2212       esb++;
    2213       READ_FLAG( uiCode, "poc_reset_flag" ); rpcSlice->setPocResetFlag( uiCode == 1 );
    2214     }
    2215 #endif
    22162091
    22172092    for (; esb < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); esb++)   
     
    24922367    Bool interLayerPredLayerIdcPresentFlag = false;
    24932368    Int layerId       = rpcSlice->getLayerId();
    2494 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    24952369#if H_3D
    24962370    if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumRefListLayers( layerId ) > 0 )
     
    24982372    if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
    24992373#endif
    2500 #else
    2501     if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
    2502 #endif
    25032374    {   
    25042375      READ_FLAG( uiCode, "inter_layer_pred_enabled_flag" ); rpcSlice->setInterLayerPredEnabledFlag( uiCode == 1 );
    2505 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    25062376#if H_3D
    25072377      if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumRefListLayers( layerId ) > 1 )
     
    25092379      if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
    25102380#endif
    2511 #else
    2512       if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
    2513 #endif
    25142381      {           
    25152382        if( !vps->getMaxOneActiveRefLayerFlag()) 
     
    25172384          READ_CODE( rpcSlice->getNumInterLayerRefPicsMinus1Len( ), uiCode, "num_inter_layer_ref_pics_minus1" ); rpcSlice->setNumInterLayerRefPicsMinus1( uiCode );
    25182385        }
    2519 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    25202386#if H_3D
    25212387        if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumRefListLayers( layerId ) )
    2522 #else
    2523         if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
    2524 #endif
    25252388#else
    25262389        if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
     
    27112574    }
    27122575#if H_3D_IC
    2713 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    27142576    else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 )
    2715 #else
    2716     else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 )
    2717 #endif
    27182577    {
    27192578      UInt uiCodeTmp = 0;
     
    27292588    }
    27302589#endif
    2731 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2732 #if H_3D_SINGLE_DEPTH
    2733     if(rpcSlice->getIsDepth())
    2734     {
    2735       UInt uiCodeTmp = 0;
    2736       READ_FLAG( uiCodeTmp, "slice_enable_single_depth_mode" );
    2737       rpcSlice->setApplySingleDepthMode(uiCodeTmp);
    2738     }
    2739 #endif
    2740 #endif
    27412590    if (!rpcSlice->isIntra())
    27422591    {
    27432592      READ_UVLC( uiCode, "five_minus_max_num_merge_cand");
    27442593#if H_3D_IV_MERGE
    2745 #if HHI_TOOL_PARAMETERS_I2_J0107
    2746 #if ALGIN_J0107_J0059
    27472594      rpcSlice->setMaxNumMergeCand(( ( rpcSlice->getMpiFlag() || rpcSlice->getIvMvPredFlag() || rpcSlice->getViewSynthesisPredFlag() ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2748 #else
    2749       rpcSlice->setMaxNumMergeCand(( ( rpcSlice->getMpiFlag() || rpcSlice->getIvMvPredFlag() ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2750 #endif
    2751 #else
    2752       if(rpcSlice->getIsDepth())
    2753       {
    2754         Bool bMPIFlag = rpcSlice->getVPS()->getMPIFlag( rpcSlice->getLayerIdInVps() ) ;
    2755         Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;
    2756         rpcSlice->setMaxNumMergeCand(( ( bMPIFlag || ivMvPredFlag ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2757       }
    2758       else
    2759       {
    2760         Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;
    2761 #if MTK_MRG_LIST_SIZE_CLEANUP_J0059
    2762         Bool vspFlag = rpcSlice->getVPS()->getViewSynthesisPredFlag( rpcSlice->getLayerIdInVps() ) ;
    2763         rpcSlice->setMaxNumMergeCand(( ivMvPredFlag || vspFlag? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2764 #else
    2765         rpcSlice->setMaxNumMergeCand(( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2766 #endif
    2767       }
    2768 #endif
    27692595#else
    27702596      rpcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - uiCode);
     
    29262752
    29272753    // Derive the value of PocMs8bValRequiredFlag
    2928 #if !H_MV_HLS_FIX
    2929     rpcSlice->setPocMsbValRequiredFlag( rpcSlice->getCraPicFlag() || rpcSlice->getBlaPicFlag()
    2930                                           /* || TODO related to vps_poc_lsb_aligned_flag */
    2931                                           );
    2932 #endif
    2933 
    2934 #if H_MV_HLS_FIX
     2754
    29352755    if( !rpcSlice->getPocMsbValRequiredFlag() && rpcSlice->getVPS()->getVpsPocLsbAlignedFlag() )
    2936 #else
    2937     if( !rpcSlice->getPocMsbValRequiredFlag() /* TODO &&  rpcSlice->getVPS()->getVpsPocLsbAlignedFlag() */ )
    2938 #endif
    29392756    {
    29402757      READ_FLAG( uiCode, "poc_msb_val_present_flag" ); rpcSlice->setPocMsbValPresentFlag( uiCode == 1 );
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecCAVLC.h

    r1124 r1131  
    9090#endif
    9191#if H_3D
    92 #if HHI_VPS_3D_EXTENSION_I3_J0107
    9392  Void  parseVPS3dExtension  ( TComVPS* pcVPS );
    94 #else
    95   Void  parseVPSExtension2  ( TComVPS* pcVPS );
    96 #endif
    97 #if HHI_TOOL_PARAMETERS_I2_J0107
    9893  Void  parseSPS3dExtension ( TComSPS* pcSPS );
    9994  Void  parseSPS            ( TComSPS* pcSPS );
    100 #else
    101   Void  parseSPSExtension2  ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
    102   Void  parseSPS            ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );
    103 #endif 
    10495#else
    10596  Void  parseSPS            ( TComSPS* pcSPS );
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecCu.cpp

    r1124 r1131  
    291291  DTRACE_CU_S("=========== coding_unit ===========\n")
    292292#endif
    293 #if !LGE_DDD_REMOVAL_J0042_J0030
    294 #if H_3D_DDD
    295       pcCU->setUseDDD( false, uiAbsPartIdx, uiDepth );
    296 #endif
    297 #endif
    298293
    299294  if( (g_uiMaxCUWidth>>uiDepth) >= pcCU->getSlice()->getPPS()->getMinCuDQPSize() && pcCU->getSlice()->getPPS()->getUseDQP())
     
    315310  {
    316311#if H_3D_ARP && H_3D_IV_MERGE
    317 #if HHI_TOOL_PARAMETERS_I2_J0107
    318312    if( pcCU->getSlice()->getIvResPredFlag() || pcCU->getSlice()->getIvMvPredFlag() )
    319 #else
    320     if( pcCU->getSlice()->getVPS()->getUseAdvRP( pcCU->getSlice()->getLayerId() ) || pcCU->getSlice()->getVPS()->getIvMvPredFlag( pcCU->getSlice()->getLayerId() ))
    321 #endif
    322313#else
    323314#if H_3D_ARP
     
    349340#endif
    350341#if H_3D_NBDV_REF
    351 #if HHI_TOOL_PARAMETERS_I2_J0107
    352342      if( pcCU->getSlice()->getDepthBasedBlkPartFlag() )  //Notes from QC: please check the condition for DoNBDV. Remove this comment once it is done.
    353 #else
    354       if(pcCU->getSlice()->getVPS()->getDepthRefinementFlag( pcCU->getSlice()->getLayerIdInVps() ))  //Notes from QC: please check the condition for DoNBDV. Remove this comment once it is done.
    355 #endif
    356343      {
    357344        DvInfo.bDV = m_ppcCU[uiDepth]->getDisMvpCandNBDV(&DvInfo, true);
     
    460447#endif
    461448    pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiAbsPartIdx, 0, uiDepth );
    462 #if !LGE_DDD_REMOVAL_J0042_J0030
    463 #if H_3D_DDD
    464     if( uiMergeIndex == m_ppcCU[uiDepth]->getUseDDDCandIdx() )
    465     {
    466         assert( pcCU->getSlice()->getViewIndex() != 0 );
    467         pcCU->setUseDDD( true, uiAbsPartIdx, 0, uiDepth );
    468         pcCU->setDDDepthSubParts( m_ppcCU[uiDepth]->getDDTmpDepth(),uiAbsPartIdx, 0, uiDepth );
    469     }
    470 #endif
    471 #endif
    472449
    473450    TComMv cTmpMv( 0, 0 );
     
    744721  //construction of depth candidates
    745722  Pel testDepth;
    746 #if SINGLE_DEPTH_SIMP_J0115
    747723  Pel DepthNeighbours[2];
    748 #else
    749   Pel DepthNeighbours[5];
    750 #endif
    751724  Int index =0;
    752 #if SINGLE_DEPTH_SIMP_J0115
    753725  for( Int i = 0; (i < 2) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )
    754 #else
    755   for( Int i = 0; (i < 5) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )
    756 #endif
    757726  {
    758727    if(!pcCU->getNeighDepth (0, uiAbsPartIdx, &testDepth, i))
     
    762731    DepthNeighbours[index]=testDepth;
    763732    index++;
    764 #if !SINGLE_DEPTH_SIMP_J0115
    765     for(Int j=0;j<index-1;j++)
    766     {
    767      if( (DepthNeighbours[index-1]==DepthNeighbours[j]) )
    768      {
    769        index--;
    770        break;
    771      }
    772     }
    773 #endif
    774733  }
    775734
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecEntropy.cpp

    r1124 r1131  
    5959    return;
    6060  } 
    61 #if ALIGN_J0060_J0107
    62 #else
    63   if ( !pcCU->getSlice()->getIsDepth() )
    64   {
    65     return;
    66   }
    67 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    68   if(!pcCU->getSlice()->getVPS()->getSingleDepthModeFlag(pcCU->getSlice()->getLayerIdInVps()))
    69   {
    70      return;
    71   }
    72 #else
    73   if(!pcCU->getSlice()->getApplySingleDepthMode())
    74   {
    75      return;
    76   }
    77 #endif
    78 #endif
    7961
    8062  m_pcEntropyDecoderIf->parseSingleDepthMode( pcCU, uiAbsPartIdx, uiDepth );
     
    167149 
    168150#if H_3D_DBBP
    169 #if SEC_DBBP_VIEW_REF_CHECK_J0037
    170   #if HHI_TOOL_PARAMETERS_I2_J0107
    171151if( pcCU->getSlice()->getDepthBasedBlkPartFlag() && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
    172 #else
    173 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() )
    174 #endif
    175 #else
    176   if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 )
    177 #endif
    178152  {
    179153    decodeDBBPFlag(pcCU, uiAbsPartIdx, uiDepth);
     
    360334      }
    361335      pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
    362 #if !LGE_DDD_REMOVAL_J0042_J0030
    363 #if H_3D_DDD
    364       if( uiMergeIndex == pcSubCU->getUseDDDCandIdx() )
    365       {
    366           assert( pcCU->getSlice()->getViewIndex() != 0 );
    367           pcCU->setUseDDD( true, uiSubPartIdx, uiPartIdx, uiDepth );
    368           pcCU->setDDDepthSubParts( pcSubCU->getDDTmpDepth(),uiSubPartIdx, uiPartIdx, uiDepth );
    369       }
    370       else
    371       {
    372           pcCU->setUseDDD( false, uiSubPartIdx, uiPartIdx, uiDepth );
    373       }
    374 #endif
    375 #endif
    376336
    377337      TComMv cTmpMv( 0, 0 );
     
    852812  pcCU->setSDCFlagSubParts( false, uiAbsPartIdx, uiDepth );
    853813
    854 #if HHI_TOOL_PARAMETERS_I2_J0107
    855814  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getInterSdcFlag() ) ||
    856815    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getIntraSdcWedgeFlag() ) )
    857 #else
    858   if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) ||
    859     ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )
    860 #endif
    861816  {
    862817    return;
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecEntropy.h

    r1124 r1131  
    6666
    6767  virtual Void  parseVPS                  ( TComVPS* pcVPS )                       = 0;
    68 #if HHI_TOOL_PARAMETERS_I2_J0107
    6968  virtual Void  parseSPS                  ( TComSPS* pcSPS )                                      = 0;
    70 #else
    71 #if H_3D
    72   virtual Void  parseSPS                  ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag  )                    = 0;
    73 #else
    74   virtual Void  parseSPS                  ( TComSPS* pcSPS )                                      = 0;
    75 #endif
    76 #endif
    7769#if H_3D
    7870  virtual Void  parsePPS                  ( TComPPS* pcPPS, TComVPS* pcVPS )                      = 0;
     
    161153  Void    resetEntropy                ( TComSlice* p)           { m_pcEntropyDecoderIf->resetEntropy(p);                    }
    162154  Void    decodeVPS                   ( TComVPS* pcVPS ) { m_pcEntropyDecoderIf->parseVPS(pcVPS); }
    163 #if HHI_TOOL_PARAMETERS_I2_J0107
    164155  Void    decodeSPS                   ( TComSPS* pcSPS     )    { m_pcEntropyDecoderIf->parseSPS(pcSPS);                    }
    165 #else
    166 #if H_3D
    167   Void    decodeSPS                   ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )    { m_pcEntropyDecoderIf->parseSPS(pcSPS, viewIndex, depthFlag );                    }
    168 #else
    169   Void    decodeSPS                   ( TComSPS* pcSPS     )    { m_pcEntropyDecoderIf->parseSPS(pcSPS);                    }
    170 #endif
    171 #endif
    172156#if H_3D
    173157  Void    decodePPS                   ( TComPPS* pcPPS, TComVPS* pcVPS )    { m_pcEntropyDecoderIf->parsePPS(pcPPS, pcVPS);                    }
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecSbac.cpp

    r1124 r1131  
    703703
    704704 
    705 #if HHI_TOOL_PARAMETERS_I2_J0107
    706705  Bool    bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag();
    707 #else
    708   TComVPS *vps           = pcCU->getPic()->getSlice(0)->getVPS();
    709   Bool    bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());
    710 #endif
    711706  TComPic *pcTexture      = pcCU->getSlice()->getTexturePic();
    712707  Bool bDepthMapDetect    = (pcTexture != NULL);
     
    762757  Bool bParsePartSize    = true;
    763758 
    764 #if HHI_TOOL_PARAMETERS_I2_J0107
    765759  Bool    bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag();
    766 #else
    767   TComVPS *vps           = pcCU->getPic()->getSlice(0)->getVPS();
    768   Bool    bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());
    769 #endif
    770760  TComPic *pcTexture     = pcCU->getSlice()->getTexturePic();
    771761  Bool bDepthMapDetect   = (pcTexture != NULL);
     
    992982  {
    993983#if H_3D_DIM
    994 #if HHI_TOOL_PARAMETERS_I2_J0107
    995984    if( pcCU->getSlice()->getIntraSdcWedgeFlag() || pcCU->getSlice()->getIntraContourFlag() )
    996 #else
    997     if( pcCU->getSlice()->getVpsDepthModesFlag() || pcCU->getSlice()->getIVPFlag() )
    998 #endif
    999985    {
    1000986      parseIntraDepth( pcCU, absPartIdx+partOffset*j, depth );
     
    11111097      xParseDmm1WedgeIdx( uiTabIdx, g_dmm1TabIdxBits[pcCU->getIntraSizeIdx(absPartIdx)] );
    11121098
    1113 #if MTK_J0033
    11141099      assert( uiTabIdx < g_dmmWedgeLists[ g_aucConvertToBit[ pcCU->getDMM1BasePatternWidth( pcCU->getWidth( absPartIdx ) )]].size());
    1115 #endif
    11161100
    11171101      pcCU->setDmmWedgeTabIdxSubParts( uiTabIdx, dimType, absPartIdx, depth );
     
    11431127  if( uiIsDimMode )
    11441128  {
    1145 #if HHI_TOOL_PARAMETERS_I2_J0107
    11461129    if( pcCU->getSlice()->getIntraSdcWedgeFlag() && pcCU->getSlice()->getIntraContourFlag() )
    1147 #else
    1148     if( pcCU->getSlice()->getVpsDepthModesFlag() && pcCU->getSlice()->getIVPFlag() )
    1149 #endif
    11501130    {
    11511131      m_pcTDecBinIf->decodeBin( uiSymbol, m_cDepthIntraModeSCModel.get( 0, 0, 0 ) );
     
    11591139      }
    11601140    }
    1161 #if HHI_TOOL_PARAMETERS_I2_J0107
    11621141    else if ( pcCU->getSlice()->getIntraSdcWedgeFlag() )
    1163 #else
    1164     else if ( pcCU->getSlice()->getVpsDepthModesFlag() )
    1165 #endif
    11661142    {
    11671143      pcCU->setLumaIntraDirSubParts( DIM_OFFSET, absPartIdx, depth );
    11681144    }
    1169 #if HHI_TOOL_PARAMETERS_I2_J0107
    11701145    else if( pcCU->getSlice()->getIntraContourFlag() )
    1171 #else
    1172     else if( pcCU->getSlice()->getIVPFlag() )
    1173 #endif
    11741146    {
    11751147      pcCU->setLumaIntraDirSubParts( ( 1+ DIM_OFFSET ), absPartIdx, depth );
     
    21512123Void TDecSbac::parseDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
    21522124{
    2153 #if HHI_TOOL_PARAMETERS_I2_J0107
    21542125  AOF( pcCU->getSlice()->getDepthBasedBlkPartFlag() );
    2155 #else
    2156   AOF( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) );
    2157 #endif
    21582126  AOF( !pcCU->getSlice()->getIsDepth() );
    21592127 
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecSbac.h

    r1124 r1131  
    7676  Void  setBitstream              ( TComInputBitstream* p  ) { m_pcBitstream = p; m_pcTDecBinIf->init( p ); }
    7777  Void  parseVPS                  ( TComVPS* /*pcVPS*/ ) {}
    78 #if HHI_TOOL_PARAMETERS_I2_J0107
    7978  Void  parseSPS                  ( TComSPS* /*pcSPS*/ ) {}
    80 #else
    81 #if H_3D
    82   Void  parseSPS                  ( TComSPS* /*pcSPS*/ , Int /*viewIndex*/, Bool /*depthFlag*/ ) {}
    83 #else
    84   Void  parseSPS                  ( TComSPS* /*pcSPS*/ ) {}
    85 #endif
    86 #endif
    8779#if H_3D
    8880  Void  parsePPS                  ( TComPPS* /*pcPPS*/, TComVPS* /*pcVPS*/ ) {}
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecSlice.cpp

    r1124 r1131  
    280280      iNumSubstreamsPerTile = 1;
    281281    }
    282 #if LGE_DEFAULT_DV_J0046 && !SEC_ARP_VIEW_REF_CHECK_J0037 && !SEC_DBBP_VIEW_REF_CHECK_J0037
    283     pcSlice->setDefaultRefViewIdx( -1 );
    284     pcSlice->setDefaultRefViewIdxAvailableFlag( false );
    285 
    286     Int valid = 0;
    287     Int viewIndex = 0;
    288     for( UInt uiBId = 0; uiBId < pcSlice->getViewIndex() && valid==0; uiBId++ )
    289     {
    290         UInt        uiBaseId    = uiBId;
    291         TComPic*    pcBasePic   = pcSlice->getIvPic( false, uiBaseId );
    292         for( Int iRefListId = 0; ( iRefListId < (pcSlice->isInterB()? 2:1) ) && !pcSlice->isIntra() && valid==0; iRefListId++ )
    293         {
    294             RefPicList  eRefPicListTest = RefPicList( iRefListId );
    295             Int         iNumRefPics = pcSlice->getNumRefIdx( eRefPicListTest ) ;
    296             for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )
    297             {
    298                 if(pcBasePic->getPOC() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getPOC()
    299                     && pcBasePic->getViewIndex() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())
    300                 {
    301                     valid=1;
    302                     viewIndex = uiBaseId;
    303                     break;
    304                 }
    305             }
    306         }
    307     }
    308     if( valid )
    309     {
    310         pcSlice->setDefaultRefViewIdx( viewIndex );
    311         pcSlice->setDefaultRefViewIdxAvailableFlag( true );   
    312     }
    313 #endif
    314282
    315283    if ( (iCUAddr == rpcPic->getPicSym()->getTComTile(rpcPic->getPicSym()->getTileIdxMap(iCUAddr))->getFirstCUAddr()) && // 1st in tile.
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecTop.cpp

    r1124 r1131  
    726726
    727727#endif
    728 #if HHI_TOOL_PARAMETERS_I2_J0107
    729728#if H_3D
    730729  m_apcSlicePilot->init3dToolParameters();
    731 #endif
    732730#endif
    733731  pps->setSPS(sps);
     
    10871085    pcSlice->getTempRefPicLists( m_cListPic, m_refPicSetInterLayer0, m_refPicSetInterLayer1, tempRefPicLists, usedAsLongTerm, numPocTotalCurr);
    10881086    pcSlice->setRefPicList     ( tempRefPicLists, usedAsLongTerm, numPocTotalCurr, true );
    1089 
    1090 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
     1087#if H_3D
    10911088    pcSlice->setDefaultRefView();
    10921089#endif
    1093 
    10941090#if H_3D_ARP
    10951091    pcSlice->setARPStepNum(m_ivPicLists);
     
    12441240  TComVPS* vps = m_parameterSetManagerDecoder.getPrefetchedVPS( 0 );
    12451241  assert( vps != 0 );
    1246 #if HHI_TOOL_PARAMETERS_I2_J0107
    12471242  m_cEntropyDecoder.decodeSPS( sps );
    1248 #else
    1249   m_cEntropyDecoder.decodeSPS( sps, vps->getViewIndex( m_layerId ), ( vps->getDepthId( m_layerId ) == 1 ) );
    1250 #endif
    12511243#else
    12521244  m_cEntropyDecoder.decodeSPS( sps );
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecTop.h

    r1124 r1131  
    8383#endif
    8484
    85 #if !LGE_DDD_REMOVAL_J0042_J0030
    86 #if H_3D_DDD
    87   Int getCodedScale( Int iBaseView, Int iCureView){ return m_aaiCodedScale[ iBaseView ][ iCureView ];}
    88   Int getCodedOffset( Int iBaseView, Int iCureView){ return m_aaiCodedOffset[ iBaseView ][ iCureView ];}
    89   UInt getCamParsCodedPrecision(){ return m_vps->getCamParPrecision(); }
    90 #endif
    91 #endif
    9285
    9386private:
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1124 r1131  
    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" );
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncCavlc.h

    r1124 r1131  
    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 );
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncCfg.h

    r1124 r1131  
    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};
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncCu.cpp

    r1124 r1131  
    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 );
     
    19011868
    19021869#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
    19101870
    19111871  for( UInt uiNoResidual = 0; uiNoResidual < iteration; ++uiNoResidual )
     
    19401900#if H_3D_VSP
    19411901          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
    19551902#endif
    19561903#if H_3D_SPIVMP
     
    20562003          xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    20572004#if H_3D_INTER_SDC
    2058 #if HHI_TOOL_PARAMETERS_I2_J0107
    20592005          if( rpcTempCU->getSlice()->getInterSdcFlag() && !uiNoResidual )
    2060 #else
    2061           if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && !uiNoResidual )
    2062 #endif
    20632006          {
    20642007            Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE};
     
    21322075      {
    21332076#if H_3D_INTER_SDC
    2134 #if HHI_TOOL_PARAMETERS_I2_J0107
    21352077        if( rpcTempCU->getSlice()->getInterSdcFlag() )
    2136 #else
    2137         if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) )
    2138 #endif
    21392078        {
    21402079          bestIsSkip = !rpcBestCU->getSDCFlag( 0 ) && ( rpcBestCU->getQtRootCbf(0) == 0 );
     
    22122151  UChar uhDepth = rpcTempCU->getDepth( 0 );
    22132152#if H_3D_ARP
    2214 #if !HHI_TOOL_PARAMETERS_I2_J0107
    2215   Int iLayerId    = rpcTempCU->getSlice()->getLayerId();
    2216 #endif
    22172153  Bool bFirstTime = true;
    22182154  Int nARPWMax    = rpcTempCU->getSlice()->getARPStepNum() - 1;
     
    22252161  for( Int nARPW = 0; nARPW <= nARPWMax; nARPW++ )
    22262162  {
    2227 #if HHI_TOOL_PARAMETERS_I2_J0107
    22282163    if( !bFirstTime && rpcTempCU->getSlice()->getIvResPredFlag() )
    2229 #else
    2230     if( bFirstTime == false && rpcTempCU->getSlice()->getVPS()->getUseAdvRP( iLayerId ) )
    2231 #endif
    22322164    {
    22332165      rpcTempCU->initEstData( rpcTempCU->getDepth(0), rpcTempCU->getQP(0),bTransquantBypassFlag );     
     
    22532185  rpcTempCU->setPartSizeSubParts  ( ePartSize,  0, uhDepth );
    22542186  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
    22602187
    22612188#if H_3D_ARP
     
    23352262  xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    23362263#if H_3D_INTER_SDC
    2337 #if HHI_TOOL_PARAMETERS_I2_J0107
    23382264  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
    23422265  {
    23432266    Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE};
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncEntropy.cpp

    r1124 r1131  
    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;
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncEntropy.h

    r1124 r1131  
    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 );
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncGOP.cpp

    r1124 r1131  
    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));
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncSbac.cpp

    r1124 r1131  
    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 
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncSbac.h

    r1124 r1131  
    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 );
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncSearch.cpp

    r1124 r1131  
    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
    31353116      if( bOnlyIVP && pcCU->getSlice()->getIntraContourFlag() )
    3136 #else
    3137       if( bOnlyIVP && m_pcEncCfg->getUseIVP() )
    3138 #endif
    31393117      {
    31403118        TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight );
     
    31583136
    31593137#if H_3D_DIM_DMM
    3160 #if HHI_TOOL_PARAMETERS_I2_J0107
    31613138      if( ( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() )  || pcCU->getSlice()->getIntraContourFlag() )
    3162 #else
    3163       if( ( m_pcEncCfg->getUseDMM() || m_pcEncCfg->getUseIVP() )
    3164 #endif
    31653139#if H_3D_FAST_DEPTH_INTRA
    31663140         && (uiRdModeList[0] != PLANAR_IDX || varCU >= varThreshold)
     
    31693143      {
    31703144        UInt uiStart, uiEnd;
    3171 #if HHI_TOOL_PARAMETERS_I2_J0107
    31723145        if( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) &&  pcCU->getSlice()->getIntraContourFlag() )
    3173 #else
    3174         if( m_pcEncCfg->getUseDMM() &&  m_pcEncCfg->getUseIVP() )
    3175 #endif
    31763146        {
    31773147          uiStart = 0;
    31783148          uiEnd   = 2;
    31793149        }
    3180 #if HHI_TOOL_PARAMETERS_I2_J0107
    31813150        else if( ( m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) )
    3182 #else
    3183         else if( m_pcEncCfg->getUseDMM() )
    3184 #endif
    31853151        {
    31863152          uiStart = 0;
    31873153          uiEnd   = 1;
    31883154        }
    3189 #if HHI_TOOL_PARAMETERS_I2_J0107
    31903155        else if( pcCU->getSlice()->getIntraContourFlag() )
    3191 #else
    3192         else if( m_pcEncCfg->getUseIVP() )
    3193 #endif
    31943156        {
    31953157          uiStart = 1;
     
    33293291#if H_3D_DIM_SDC
    33303292#if H_3D_FAST_INTRA_SDC
    3331 #if HHI_TOOL_PARAMETERS_I2_J0107
    33323293      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
    33363294#else
    33373295      Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) );
     
    41774135      }
    41784136#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
    41924137
    41934138      xGetInterPredictionError( pcCU, pcYuvOrg, iPUIdx, uiCostCand, m_pcEncCfg->getUseHADME() );
     
    48754820#if H_3D_VSP
    48764821        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
    48924822#endif
    48934823#if H_3D_SPIVMP
     
    49674897        pcCU->setSPIVMPFlagSubParts(0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    49684898#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
    49744899        // set ME result
    49754900        pcCU->setMergeFlagSubParts( false,        uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
     
    53535278#endif
    53545279#if H_3D_INTER_SDC
    5355 #if HHI_TOOL_PARAMETERS_I2_J0107 
    53565280   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
    53675281#endif
    53685282
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncSlice.cpp

    r1124 r1131  
    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
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncSlice.h

    r1124 r1131  
    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:
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncTop.cpp

    r1124 r1131  
    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 )
  • branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncTop.h

    r1124 r1131  
    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
  • branches/HTM-13.0-dev0/source/Lib/TLibExtractor/TExtrTop.cpp

    r1124 r1131  
    7474#if H_3D
    7575
    76 #if HHI_TOOL_PARAMETERS_I2_J0107
    7776     m_cEntropyDecoder   .decodeSPS( &cSPS );
    78 #else
    79       Int layerIdInVPS = m_cVPS.getLayerIdInVps( uiLayerId );
    80      m_cEntropyDecoder   .decodeSPS( &cSPS, m_cVPS.getViewIndex( layerIdInVPS ), ( m_cVPS.getDepthId( layerIdInVPS ) == 1 ) );
    81 #endif
    8277#else
    8378     m_cEntropyDecoder   .decodeSPS( &cSPS );
Note: See TracChangeset for help on using the changeset viewer.