Changeset 1239 in 3DVCSoftware for branches


Ignore:
Timestamp:
31 May 2015, 20:35:03 (9 years ago)
Author:
rwth
Message:
  • enabled SDC encoder speedup
  • fixed some compiler warnings
Location:
branches/HTM-14.1-update-dev1-RWTH/source
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev1-RWTH/source/App/TAppEncoder/TAppEncCfg.cpp

    r1227 r1239  
    22922292
    22932293  dimBitOffset[ 0 ] = 0;
    2294   for (Int j = 1; j <= ((Int) m_dimIds.size() - m_splittingFlag ? 1 : 0); j++ )
     2294  for (Int j = 1; j <= (((Int) m_dimIds.size() - m_splittingFlag) ? 1 : 0); j++ )
    22952295  {
    22962296    dimBitOffset[ j ] = dimBitOffset[ j - 1 ] + m_dimensionIdLen[ j - 1];
  • branches/HTM-14.1-update-dev1-RWTH/source/App/TAppRenderer/TAppRendererCfg.cpp

    r1200 r1239  
    306306
    307307  Int iNumNonNULL;
    308   for (iNumNonNULL = 0; (iNumNonNULL < m_iNumberOfInputViews)  && m_pchDepthInputFileList[iNumNonNULL]; iNumNonNULL++);  xConfirmPara( iNumNonNULL < m_iNumberOfInputViews,  "Number of DepthInputFiles  must be greater than or equal to number of BaseViewNumbers" );
    309   for (iNumNonNULL = 0; (iNumNonNULL < m_iNumberOfInputViews)  && m_pchVideoInputFileList[iNumNonNULL]; iNumNonNULL++);  xConfirmPara( iNumNonNULL < m_iNumberOfInputViews,  "Number of DepthInputFiles  must be greater than or equal to number of BaseViewNumbers" );
     308  for (iNumNonNULL = 0; (iNumNonNULL < m_iNumberOfInputViews)  && m_pchDepthInputFileList[iNumNonNULL]; iNumNonNULL++) {};  xConfirmPara( iNumNonNULL < m_iNumberOfInputViews,  "Number of DepthInputFiles  must be greater than or equal to number of BaseViewNumbers" );
     309  for (iNumNonNULL = 0; (iNumNonNULL < m_iNumberOfInputViews)  && m_pchVideoInputFileList[iNumNonNULL]; iNumNonNULL++) {};  xConfirmPara( iNumNonNULL < m_iNumberOfInputViews,  "Number of DepthInputFiles  must be greater than or equal to number of BaseViewNumbers" );
    310310
    311311
    312312  if ( !m_bSweep )
    313313  {
    314   for (iNumNonNULL = 0; (iNumNonNULL < m_iNumberOfOutputViews) && m_pchSynthOutputFileList[iNumNonNULL]; iNumNonNULL++); xConfirmPara( iNumNonNULL < m_iNumberOfOutputViews, "Number of SynthOutputFiles must be greater than or equal to number of SynthViewNumbers" );
     314    for (iNumNonNULL = 0; (iNumNonNULL < m_iNumberOfOutputViews) && m_pchSynthOutputFileList[iNumNonNULL]; iNumNonNULL++) {}; xConfirmPara( iNumNonNULL < m_iNumberOfOutputViews, "Number of SynthOutputFiles must be greater than or equal to number of SynthViewNumbers" );
    315315  }
    316316  else
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TAppCommon/TAppComCamPara.cpp

    r1200 r1239  
    13731373  Int  iSourceViewNum = m_aiBaseViews[ iViewIdx ];
    13741374  Double dBaseLine = 0.0;
    1375   Double dFL1, dCS1, dCP1, dZN1, dZF1;
    1376   Bool bInterpolated;
    1377   double dPos[3];
     1375  Double dFL1 = 0.0, dCS1 = 0.0, dCP1 = 0.0, dZN1 = 0.0, dZF1 = 0.0;
     1376  Bool bInterpolated = false;
     1377  double dPos[3] = {0.0, 0.0, 0.0};
    13781378
    13791379  if( m_iNumberOfBaseViews == 3 )
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibCommon/TComCodingStatistics.h

    r1227 r1239  
    102102  STATS__CABAC_BITS__DMMMODE,
    103103  STATS__CABAC_BITS__DMM1_BITS_EP,
     104#endif
     105#if NH_3D_SDC_INTRA
     106  STATS__CABAC_BITS__SDC_INTRA_FLAG,
     107  STATS__CABAC_BITS__SDC_DELTADC_FLAG,
    104108#endif
    105109
     
    164168   ,"STATS__CABAC_BITS__DMM1_BITS_EP"
    165169#endif
     170#if NH_3D_SDC_INTRA
     171    ,"STATS__CABAC_BITS__SDC_INTRA_FLAG"
     172    ,"STATS__CABAC_BITS__SDC_DELTADC_FLAG"
     173#endif
    166174  };
    167175  assert(STATS__NUM_STATS == sizeof(statNames)/sizeof(Char *) && name < STATS__NUM_STATS);
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibCommon/TComSlice.cpp

    r1219 r1239  
    20322032Int TComVPS::scalTypeToScalIdx( ScalabilityType scalType ) const
    20332033{
    2034   assert( scalType >= 0 && scalType <= MAX_NUM_SCALABILITY_TYPES );
    2035   assert( scalType == MAX_NUM_SCALABILITY_TYPES || getScalabilityMaskFlag( scalType ) );
     2034  assert( (Int)scalType >= 0 && (Int)scalType <= MAX_NUM_SCALABILITY_TYPES );
     2035  assert( (Int)scalType == MAX_NUM_SCALABILITY_TYPES || getScalabilityMaskFlag( scalType ) );
    20362036  Int scalIdx = 0;
    20372037  for( Int curScalType = 0; curScalType < scalType; curScalType++ )
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1237 r1239  
    18311831  else
    18321832  {
    1833     vpsVui->setVpsNumVideoSignalInfoMinus1( pcVPS->getMaxLayersMinus1() - pcVPS->getVpsBaseLayerInternalFlag() ? 0 : 1 );
     1833    vpsVui->setVpsNumVideoSignalInfoMinus1( (pcVPS->getMaxLayersMinus1() - pcVPS->getVpsBaseLayerInternalFlag()) ? 0 : 1 );
    18341834  }
    18351835
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibDecoder/TDecGop.h

    r1200 r1239  
    8181  TComLoopFilter*       m_pcLoopFilter;
    8282#if NH_MV
    83   TDecTop*              m_decTop;
     83  //TDecTop*              m_decTop;
    8484#endif
    8585
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibDecoder/TDecSbac.cpp

    r1227 r1239  
    23492349  if( pcCU->isIntra( absPartIdx ) && pcCU->getSDCFlag( absPartIdx ))
    23502350  {
    2351     m_pcTDecBinIf->decodeBin( symbol, m_cDdcFlagSCModel.get( 0, 0, 0 ) );
     2351    m_pcTDecBinIf->decodeBin( symbol, m_cDdcFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SDC_DELTADC_FLAG) );
    23522352    assert( pcCU->getPartitionSize( absPartIdx ) == SIZE_2Nx2N );
    23532353    assert( pcCU->getTransformIdx(absPartIdx) == 0 );
     
    25092509  UInt uiSymbol = 0;
    25102510
    2511   m_pcTDecBinIf->decodeBin( uiSymbol, m_cSDCFlagSCModel.get( 0, 0, 0 ) );
     2511  m_pcTDecBinIf->decodeBin( uiSymbol, m_cSDCFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__SDC_INTRA_FLAG) );
    25122512#if H_MV_ENC_DEC_TRAC
    25132513  DTRACE_CU("dc_only_flag", uiSymbol)
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibDecoder/TDecTop.h

    r1200 r1239  
    107107  UInt    m_uiBitDepthForLUT;
    108108  UInt    m_iLog2Precision;
    109   UInt    m_uiInputBitDepth;
     109  // UInt    m_uiInputBitDepth;
    110110
    111111  // look-up tables
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibEncoder/TEncSearch.cpp

    r1236 r1239  
    31433143
    31443144#if NH_3D_DMM
     3145    const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);
     3146    const UInt uiAbsPartIdx=tuRecurseWithPU.GetAbsPartIdxTU();
     3147   
     3148    Pel* piOrg         = pcOrgYuv ->getAddr( COMPONENT_Y, uiAbsPartIdx );
     3149    Pel* piPred        = pcPredYuv->getAddr( COMPONENT_Y, uiAbsPartIdx );
     3150    UInt uiStride      = pcPredYuv->getStride( COMPONENT_Y );
    31453151    if( m_pcEncCfg->getIsDepth() )
    31463152    {
    3147       const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);
    3148       const UInt uiAbsPartIdx=tuRecurseWithPU.GetAbsPartIdxTU();
    3149 
    3150       Pel* piOrg         = pcOrgYuv ->getAddr( COMPONENT_Y, uiAbsPartIdx );
    3151       Pel* piPred        = pcPredYuv->getAddr( COMPONENT_Y, uiAbsPartIdx );
    3152       UInt uiStride      = pcPredYuv->getStride( COMPONENT_Y );
    3153 
    31543153      if( puRect.width >= DMM_MIN_SIZE && puRect.width <= DMM_MAX_SIZE &&  puRect.width == puRect.height &&
    31553154          ((m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag()) || pcCU->getSlice()->getIntraContourFlag()) )
     
    32293228    DEBUG_STRING_NEW(sPU)
    32303229    UInt       uiBestPUMode  = 0;
    3231 #if H_3D_FAST_INTRA_SDC
     3230#if NH_3D_ENC_DEPTH
    32323231    UInt    uiBestPUModeConv  = 0;
    32333232    UInt    uiSecondBestPUModeConv  = 0;
     
    32423241    Double     dBestPUCost   = MAX_DOUBLE;
    32433242
    3244 #if H_3D_FAST_INTRA_SDC
     3243#if NH_3D_ENC_DEPTH
    32453244    Double  dBestPUCostConv   = MAX_DOUBLE;
    3246     UInt varCU      = m_pcRdCost->calcVAR(piOrg, uiStride, uiWidth,uiHeight,pcCU->getDepth(0));
     3245    UInt varCU      = m_pcRdCost->calcVAR(piOrg, uiStride, puRect.width, puRect.height, pcCU->getDepth(0), pcCU->getSlice()->getSPS()->getMaxCUWidth());
    32473246    UInt rdSDC = m_pcEncCfg->getIsDepth() ? numModesForFullRD : 0;
    32483247#endif
     
    32513250    Pel     apBestDCOffsets[2] = {0,0};
    32523251#endif
    3253 #if H_3D_FAST_INTRA_SDC
     3252#if NH_3D_ENC_DEPTH
    32543253    for( UInt uiMode = 0; uiMode < numModesForFullRD + rdSDC; uiMode++ )
    32553254#else
     
    32693268    {
    32703269      // set luma prediction mode
    3271 #if !H_3D_FAST_INTRA_SDC
     3270#if !NH_3D_ENC_DEPTH
    32723271      UInt uiOrgMode = uiRdModeList[uiMode];
    32733272#endif
    32743273
    3275 #if H_3D_FAST_INTRA_SDC
     3274#if NH_3D_ENC_DEPTH
    32763275      UInt uiOrgMode;
    32773276      if (uiMode < numModesForFullRD)
     
    32993298
    33003299#if NH_3D_SDC_INTRA
    3301 #if H_3D_FAST_INTRA_SDC
     3300#if NH_3D_ENC_DEPTH
    33023301      Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);
    33033302#else
     
    33073306      for( UInt uiSDC=0; uiSDC<=(bTestSDC?1:0); uiSDC++ )
    33083307      {
    3309 #if H_3D_FAST_INTRA_SDC
     3308#if NH_3D_ENC_DEPTH
    33103309        if (!uiSDC && uiMode >= numModesForFullRD) continue;
    33113310#endif
     
    33923391#if NH_3D_ENC_DEPTH
    33933392      xRecurIntraCodingLumaQT( pcOrgYuv, pcPredYuv, pcResiYuv, resiLumaPU, uiPUDistY, true, dPUCost, tuRecurseWithPU DEBUG_STRING_PASS_INTO(sMode), (zeroResi != 0) );
    3394 #if H_3D_FAST_INTRA_SDC   
     3393#if NH_3D_ENC_DEPTH
    33953394              if( dPUCost < dBestPUCostConv )
    33963395              {
     
    36243623    if( !tuRecurseWithPU.IsLastSection() )
    36253624    {
    3626       const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);
     3625      //const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);
    36273626      const UInt  uiCompWidth   = puRect.width;
    36283627      const UInt  uiCompHeight  = puRect.height;
Note: See TracChangeset for help on using the changeset viewer.