Changeset 926 in SHVCSoftware


Ignore:
Timestamp:
10 Dec 2014, 02:35:15 (10 years ago)
Author:
seregin
Message:

fix compiler warnings, rep format

Location:
branches/SHM-upgrade/source/Lib
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibCommon/TComDataCU.cpp

    r916 r926  
    326326  TComSlice * pcSlice = pcPic->getSlice(pcPic->getCurrSliceIdx());
    327327
     328#if REPN_FORMAT_IN_VPS
     329  const UInt picWidth = pcSlice->getPicWidthInLumaSamples();
     330  const UInt picHeight = pcSlice->getPicHeightInLumaSamples();
     331#else
    328332  const UInt picWidth = pcSlice->getSPS()->getPicWidthInLumaSamples();
    329333  const UInt picHeight = pcSlice->getSPS()->getPicHeightInLumaSamples();
     334#endif
    330335  const UInt granularityWidth = g_uiMaxCUWidth;
    331336
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r918 r926  
    24302430#endif
    24312431
     2432#if REPN_FORMAT_IN_VPS
     2433  Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY();
     2434#else
    24322435  Int qpBdOffsetY = pcCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA);
     2436#endif
    24332437  qp = (((Int) pcCU->getRefQP( uiAbsPartIdx ) + iDQp + 52 + 2*qpBdOffsetY )%(52+ qpBdOffsetY)) -  qpBdOffsetY;
    24342438
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCu.cpp

    r916 r926  
    223223  TComSlice * pcSlice = pcCU->getPic()->getSlice(pcCU->getPic()->getCurrSliceIdx());
    224224#if REPN_FORMAT_IN_VPS
    225   if( ( uiRPelX < pcSlice->getSPS()->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) )
     225  if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) )
    226226#else
    227227  if( ( uiRPelX < pcSlice->getSPS()->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getSPS()->getPicHeightInLumaSamples() ) )
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCu.cpp

    r916 r926  
    410410  {
    411411    Int idQP = m_pcEncCfg->getMaxDeltaQP();
     412#if REPN_FORMAT_IN_VPS
     413    iMinQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP );
     414    iMaxQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP );
     415#else
    412416    iMinQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA), MAX_QP, iBaseQP-idQP );
    413417    iMaxQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA), MAX_QP, iBaseQP+idQP );
     418#endif
    414419  }
    415420  else
     
    467472    {
    468473#endif
    469 #if (ENCODER_FAST_MODE)
     474#if ENCODER_FAST_MODE
    470475    Bool testInter = true;
    471     if (rpcBestCU->getLayerId() > 0)
     476    if( rpcBestCU->getLayerId() > 0 )
    472477    {
    473478      if(pcSlice->getSliceType() == P_SLICE && pcSlice->getNumRefIdx(REF_PIC_LIST_0) == pcSlice->getActiveNumILRRefIdx())
     
    505510
    506511      // do inter modes, SKIP and 2Nx2N
    507 #if (ENCODER_FAST_MODE == 1)
     512#if ENCODER_FAST_MODE == 1
    508513      if( rpcBestCU->getSlice()->getSliceType() != I_SLICE && testInter )
    509514#else
     
    521526        rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode );
    522527       
    523 #if (ENCODER_FAST_MODE == 2)
     528#if ENCODER_FAST_MODE == 2
    524529        if (testInter)
    525530        {
     
    535540          }
    536541        }
    537 #if (ENCODER_FAST_MODE == 2)
     542#if ENCODER_FAST_MODE == 2
    538543        }
    539544#endif
     
    560565
    561566        // do inter modes, NxN, 2NxN, and Nx2N
    562 #if (ENCODER_FAST_MODE)
     567#if ENCODER_FAST_MODE
    563568        if( rpcBestCU->getSlice()->getSliceType() != I_SLICE && testInter )
    564569#else
     
    714719        if((rpcBestCU->getSlice()->getSliceType() == I_SLICE)                                     ||
    715720#if ENCODER_FAST_MODE
    716           ( rpcBestCU->getPredictionMode(0) != MODE_INTRA && rpcBestCU->getPredictionMode(0) != MODE_INTER )   ||  // if there is no valid inter prediction
    717           !testInter                                                                                           ||
     721          rpcBestCU->getPredictionMode(0) == NUMBER_OF_PREDICTION_MODES                           ||  // if there is no valid inter prediction
     722          !testInter                                                                              ||
    718723#endif
    719724           (rpcBestCU->getCbf( 0, COMPONENT_Y  ) != 0)                                            ||
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncGOP.cpp

    r916 r926  
    29552955      const Int minCuWidth  = pcPic->getMinCUWidth();
    29562956      const Int minCuHeight = pcPic->getMinCUHeight();
     2957#if REPN_FORMAT_IN_VPS
     2958      const Int paddedWidth = ((pcSlice->getPicWidthInLumaSamples()  + minCuWidth  - 1) / minCuWidth) * minCuWidth;
     2959      const Int paddedHeight= ((pcSlice->getPicHeightInLumaSamples() + minCuHeight - 1) / minCuHeight) * minCuHeight;
     2960#else
    29572961      const Int paddedWidth = ((pcSlice->getSPS()->getPicWidthInLumaSamples()  + minCuWidth  - 1) / minCuWidth) * minCuWidth;
    29582962      const Int paddedHeight= ((pcSlice->getSPS()->getPicHeightInLumaSamples() + minCuHeight - 1) / minCuHeight) * minCuHeight;
     2963#endif
    29592964      const Int rawBits = paddedWidth * paddedHeight *
    29602965                             (g_bitDepth[CHANNEL_TYPE_LUMA] + 2*(g_bitDepth[CHANNEL_TYPE_CHROMA]>>log2subWidthCxsubHeightC));
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncSlice.h

    r916 r926  
    9999  TEncSbac                m_entropyCodingSyncContextState;      ///< context storate for state of contexts at the wavefront/WPP/entropy-coding-sync second CTU of tile-row
    100100
    101 #if SVC_EXTENSION
     101#if SVC_EXTENSION && JCTVC_M0259_LAMBDAREFINEMENT
    102102  Void     setUpLambda(TComSlice* slice, Double dLambda, Int iQP, Int dpeth = -1);
    103103#else
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncTop.cpp

    r916 r926  
    956956  for ( i = 0; i < min(m_cSPS.getMaxTLayers(),(UInt) MAX_TLAYER); i++ )
    957957  {
     958#if SVC_EXTENSION
     959    assert(i < MAX_TLAYER);
     960#endif
    958961    m_cSPS.setMaxDecPicBuffering(m_maxDecPicBuffering[i], i);
    959962    m_cSPS.setNumReorderPics(m_numReorderPics[i], i);
Note: See TracChangeset for help on using the changeset viewer.