Changeset 1292 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
18 Jul 2015, 04:14:13 (10 years ago)
Author:
seregin
Message:

port rev 4326

Location:
branches/SHM-dev/source/Lib/TLibEncoder
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.cpp

    r1259 r1292  
    4545//////////////////////////////////////////////////////////////////////
    4646
    47 #if SVC_EXTENSION
    48 TEncAnalyze             m_gcAnalyzeAll [MAX_LAYERS];
    49 TEncAnalyze             m_gcAnalyzeI [MAX_LAYERS];
    50 TEncAnalyze             m_gcAnalyzeP [MAX_LAYERS];
    51 TEncAnalyze             m_gcAnalyzeB [MAX_LAYERS];
    52 #else
    53 TEncAnalyze             m_gcAnalyzeAll;
    54 TEncAnalyze             m_gcAnalyzeI;
    55 TEncAnalyze             m_gcAnalyzeP;
    56 TEncAnalyze             m_gcAnalyzeB;
    57 #endif
    58 
    59 TEncAnalyze             m_gcAnalyzeAll_in;
    6047
    6148//! \}
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.h

    r1287 r1292  
    137137
    138138#if SVC_EXTENSION
    139   Void    printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layer )
     139  Void    printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layer = 0 )
    140140#else
    141141  Void    printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths )
     
    451451};
    452452
    453 #if SVC_EXTENSION
    454 extern TEncAnalyze             m_gcAnalyzeAll [MAX_LAYERS];
    455 extern TEncAnalyze             m_gcAnalyzeI [MAX_LAYERS];
    456 extern TEncAnalyze             m_gcAnalyzeP [MAX_LAYERS];
    457 extern TEncAnalyze             m_gcAnalyzeB [MAX_LAYERS];
    458 #else
    459453extern TEncAnalyze             m_gcAnalyzeAll;
    460454extern TEncAnalyze             m_gcAnalyzeI;
    461455extern TEncAnalyze             m_gcAnalyzeP;
    462456extern TEncAnalyze             m_gcAnalyzeB;
    463 #endif
    464457
    465458extern TEncAnalyze             m_gcAnalyzeAll_in;
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1291 r1292  
    29182918}
    29192919
    2920 #if !SVC_EXTENSION
    29212920Void TEncGOP::printOutSummary(UInt uiNumAllPicCoded, Bool isField, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths)
    29222921{
     
    29712970  printf("\nRVM: %.3lf\n" , xCalculateRVM());
    29722971}
    2973 #endif
    29742972
    29752973Void TEncGOP::preLoopFilterPicAll( TComPic* pcPic, UInt64& ruiDist )
     
    32673265
    32683266  //===== add PSNR =====
    3269 #if SVC_EXTENSION
    3270   m_gcAnalyzeAll[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);
    3271   TComSlice*  pcSlice = pcPic->getSlice(0);
    3272   if (pcSlice->isIntra())
    3273   {
    3274     m_gcAnalyzeI[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);
    3275   }
    3276   if (pcSlice->isInterP())
    3277   {
    3278     m_gcAnalyzeP[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);
    3279   }
    3280   if (pcSlice->isInterB())
    3281   {
    3282     m_gcAnalyzeB[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);
    3283   }
    3284 #else
    32853267  m_gcAnalyzeAll.addResult (dPSNR, (Double)uibits, MSEyuvframe);
    32863268  TComSlice*  pcSlice = pcPic->getSlice(0);
     
    32973279    m_gcAnalyzeB.addResult (dPSNR, (Double)uibits, MSEyuvframe);
    32983280  }
    3299 #endif
    33003281
    33013282  Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h

    r1291 r1292  
    8686
    8787private:
     88
     89  TEncAnalyze             m_gcAnalyzeAll;
     90  TEncAnalyze             m_gcAnalyzeI;
     91  TEncAnalyze             m_gcAnalyzeP;
     92  TEncAnalyze             m_gcAnalyzeB;
     93
     94  TEncAnalyze             m_gcAnalyzeAll_in;
    8895  //  Data
    8996  Bool                    m_bLongtermTestPictureHasBeenCoded;
     
    193200  TComList<TComPic*>*   getListPic()      { return m_pcListPic; }
    194201 
    195 #if !SVC_EXTENSION
    196202  Void  printOutSummary      ( UInt uiNumAllPicCoded, Bool isField, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths );
    197 #endif
    198203  Void  preLoopFilterPicAll  ( TComPic* pcPic, UInt64& ruiDist );
    199204
     
    204209#if SVC_EXTENSION
    205210  Void  determinePocResetIdc( Int const pocCurr, TComSlice *const slice);
    206   Int   getIntraRefreshInterval()  { return m_pcCfg->getIntraPeriod(); }
    207   Int   getIntraRefreshType()      { return m_pcCfg->getDecodingRefreshType(); } 
    208   Int   getLastPocPeriodId()      { return m_lastPocPeriodId; }
    209   Void  setLastPocPeriodId(Int x) { m_lastPocPeriodId = x;    }
     211  Int   getIntraRefreshInterval()   { return m_pcCfg->getIntraPeriod(); }
     212  Int   getIntraRefreshType()       { return m_pcCfg->getDecodingRefreshType(); } 
     213  Int   getLastPocPeriodId()        { return m_lastPocPeriodId; }
     214  Void  setLastPocPeriodId(Int x)   { m_lastPocPeriodId = x;    }
    210215  Void  updatePocValuesOfPics( Int const pocCurr, TComSlice *const slice);
     216
     217  TEncAnalyze* getAnalyzeAll()      { return &m_gcAnalyzeAll;  }
     218  TEncAnalyze* getAnalyzeI()        { return &m_gcAnalyzeI;    }
     219  TEncAnalyze* getAnalyzeP()        { return &m_gcAnalyzeP;    }
     220  TEncAnalyze* getAnalyzeB()        { return &m_gcAnalyzeB;    }
     221  TEncAnalyze* getAnalyzeAllin()    { return &m_gcAnalyzeAll_in; }
     222  Double       calculateRVM()       { return xCalculateRVM();    }
    211223#endif
    212224
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h

    r1287 r1292  
    263263  Void      setCurrPocMsb(Int poc)                            { m_currPocMsb = poc;  }
    264264  Int       getCurrPocMsb()                                   { return m_currPocMsb; }
     265
     266  TEncAnalyze* getAnalyzeAll()                                { return m_cGOPEncoder.getAnalyzeAll();   }
     267  TEncAnalyze* getAnalyzeI()                                  { return m_cGOPEncoder.getAnalyzeI();     }
     268  TEncAnalyze* getAnalyzeP()                                  { return m_cGOPEncoder.getAnalyzeP();     }
     269  TEncAnalyze* getAnalyzeB()                                  { return m_cGOPEncoder.getAnalyzeB();     }
     270  TEncAnalyze* getAnalyzeAllin()                              { return m_cGOPEncoder.getAnalyzeAllin(); }
     271  Double       calculateRVM()                                 { return m_cGOPEncoder.calculateRVM();    }
    265272#else //SVC_EXTENSION
    266273  Void encode( Bool bEos,
     
    275282               TComList<TComPicYuv*>& rcListPicYuvRecOut,
    276283               std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded, Bool isTff);
     284#endif //#if SVC_EXTENSION
    277285
    278286  Void printSummary(Bool isField) { m_cGOPEncoder.printOutSummary (m_uiNumAllPicCoded, isField, m_printMSEBasedSequencePSNR, m_printSequenceMSE, m_cSPS.getBitDepths()); }
    279 #endif //#if SVC_EXTENSION
    280287};
    281288
Note: See TracChangeset for help on using the changeset viewer.