Changeset 1118 in 3DVCSoftware for branches/HTM-12.2-dev0/source/Lib/TLibEncoder


Ignore:
Timestamp:
8 Nov 2014, 21:07:36 (10 years ago)
Author:
tech
Message:

Merged 12.2-dev1-Hisilicon@1116.

Location:
branches/HTM-12.2-dev0/source/Lib/TLibEncoder
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/HTM-12.2-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1110 r1118  
    16791679        WRITE_FLAG( pcVPS->getInterSDCFlag( i ) ? 1 : 0, "depth_inter_SDC_flag" );
    16801680#endif
     1681#if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
     1682        WRITE_FLAG( pcVPS->getSingleDepthModeFlag( i ) ? 1 : 0, "single_depth_mode_flag" );
     1683#endif
    16811684      }
    16821685    } 
     
    21352138    }
    21362139#endif
     2140#if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    21372141#if H_3D_SINGLE_DEPTH
    21382142    if(pcSlice->getIsDepth())
     
    21402144      WRITE_FLAG( pcSlice->getApplySingleDepthMode() ? 1 : 0, "slice_enable_single_depth_mode" );
    21412145    }
     2146#endif
    21422147#endif
    21432148#if H_3D_IV_MERGE
     
    21612166      {
    21622167        Bool ivMvPredFlag = pcSlice->getVPS()->getIvMvPredFlag( pcSlice->getLayerIdInVps() ) ;
     2168#if MTK_MRG_LIST_SIZE_CLEANUP_J0059
     2169        Bool vspFlag = pcSlice->getVPS()->getViewSynthesisPredFlag( pcSlice->getLayerIdInVps() ) ;
     2170        WRITE_UVLC( ( ivMvPredFlag || vspFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
     2171#else
    21632172        WRITE_UVLC( ( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
    2164       }
    2165 #endif
     2173#endif
     2174      }
    21662175#else
    21672176      WRITE_UVLC(MRG_MAX_NUM_CANDS - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");
  • TabularUnified branches/HTM-12.2-dev0/source/Lib/TLibEncoder/TEncCu.cpp

    r1107 r1118  
    739739#if H_3D_SINGLE_DEPTH
    740740    rpcTempCU->initEstData( uiDepth, iMinQP, isAddLowestQP  );
     741#if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
     742    if(rpcBestCU->getSlice()->getVPS()->getSingleDepthModeFlag(rpcBestCU->getSlice()->getLayerIdInVps()))
     743#else
    741744    if(rpcBestCU->getSlice()->getApplySingleDepthMode())
     745#endif
    742746    {
    743747      xCheckRDCostSingleDepth( rpcBestCU, rpcTempCU, SIZE_2Nx2N );
  • TabularUnified branches/HTM-12.2-dev0/source/Lib/TLibEncoder/TEncEntropy.cpp

    r1106 r1118  
    134134    return;
    135135  }
     136#if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
     137  if(!pcCU->getSlice()->getVPS()->getSingleDepthModeFlag(pcCU->getSlice()->getLayerIdInVps()))
     138  {
     139     return;
     140  }
     141#else
    136142  if(!pcCU->getSlice()->getApplySingleDepthMode())
    137143  {
    138144     return;
    139145  }
    140  
     146#endif
    141147  if( bRD )
    142148  {
  • TabularUnified branches/HTM-12.2-dev0/source/Lib/TLibEncoder/TEncGOP.cpp

    r1106 r1118  
    957957    pcSlice->setRefPicList ( rcListPic );
    958958#endif
     959#if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    959960#if H_3D_SINGLE_DEPTH
    960961#if HHI_TOOL_PARAMETERS_I2_J0107
     
    972973    pcSlice->setApplySingleDepthMode(enableSingleDepthMode);
    973974#endif
    974 #endif   
     975#endif   
     976#endif
    975977#if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037
    976978    pcSlice->setDefaultRefView();
  • TabularUnified branches/HTM-12.2-dev0/source/Lib/TLibEncoder/TEncSearch.cpp

    r1106 r1118  
    28812881  Int index=0;
    28822882  Pel testDepth;
     2883#if SINGLE_DEPTH_SIMP_J0115
     2884  Pel DepthNeighbours[2];
     2885#else
    28832886  Pel DepthNeighbours[5];
     2887#endif
    28842888  //construction of depth candidates
     2889#if SINGLE_DEPTH_SIMP_J0115
     2890  for( Int i = 0; (i < 2)  && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )
     2891#else
    28852892  for( Int i = 0; (i < 5)  && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )
     2893#endif
    28862894  {
    28872895    if(!pcCU->getNeighDepth (0, 0, &testDepth, i))
     
    28912899    DepthNeighbours[index]=testDepth;
    28922900    index++;
     2901#if !SINGLE_DEPTH_SIMP_J0115
    28932902    for(Int j=0;j<index-1;j++)
    28942903    {
     
    28992908      }
    29002909    }
     2910#endif
    29012911  }
    29022912
  • TabularUnified branches/HTM-12.2-dev0/source/Lib/TLibEncoder/TEncSlice.cpp

    r1106 r1118  
    622622  else
    623623  {
     624#if MTK_MRG_LIST_SIZE_CLEANUP_J0059
     625    rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() )  || rpcSlice->getVPS()->getViewSynthesisPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) );
     626#else
    624627    rpcSlice->setMaxNumMergeCand      ( m_pcCfg->getMaxNumMergeCand()   + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) );
    625   }
    626 #endif
     628#endif
     629  }
    627630#else
    628631  rpcSlice->setMaxNumMergeCand        ( m_pcCfg->getMaxNumMergeCand()        );
Note: See TracChangeset for help on using the changeset viewer.