Changeset 75 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib


Ignore:
Timestamp:
11 Mar 2013, 23:06:21 (12 years ago)
Author:
seregin
Message:

remove m_bIsILR flag

Location:
branches/HM-10.0-dev-SHM/source/Lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.cpp

    r74 r75  
    7070, m_bSpatialEnhLayer( false )
    7171, m_pcFullPelBaseRec( NULL )
    72 #if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    73 , m_bIsILR                                (false)
    74 #endif
    7572#endif
    7673{
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.h

    r74 r75  
    9494  Bool                  m_bSpatialEnhLayer;       // whether current layer is a spatial enhancement layer,
    9595  TComPicYuv*           m_pcFullPelBaseRec;    // upsampled base layer recontruction for difference domain inter prediction
    96 #if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    97   Bool                  m_bIsILR;                 //  Is ILR picture
    98 #endif
    9996#endif
    10097
     
    127124#endif
    128125#if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    129   Void          setIsILR( Bool bIsILR)      {m_bIsILR = bIsILR;}
    130   Bool          getIsILR()                  {return m_bIsILR;}
     126  Bool          getIsILR( UInt refLayer = 0 )   {return (getIsLongTerm() && m_layerId == refLayer);}
    131127#endif
    132128
  • branches/HM-10.0-dev-SHM/source/Lib/TLibDecoder/TDecTop.cpp

    r74 r75  
    159159        m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true);
    160160#endif
    161 #if REF_IDX_ME_ZEROMV || REF_IDX_MFM
    162         m_cIlpPic[j]->setIsILR(true);
    163 #endif
    164161        for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++)
    165162        {
     
    178175    m_cIlpPic[0]->copyUpsampledPictureYuv(pcPic->getFullPelBaseRec(), m_cIlpPic[0]->getPicYuvRec());
    179176    m_cIlpPic[0]->getSlice(0)->setPOC(pcPic->getPOC());
     177    m_cIlpPic[0]->setLayerId(0); //set reference layerId
    180178    m_cIlpPic[0]->getPicYuvRec()->setBorderExtension(false);
    181179    m_cIlpPic[0]->getPicYuvRec()->extendPicBorder();
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncTop.cpp

    r74 r75  
    11271127        m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true);
    11281128#endif
    1129 #if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    1130         m_cIlpPic[j]->setIsILR(true);
    1131 #endif
    11321129        for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++)
    11331130        {
     
    11461143    m_cIlpPic[0]->copyUpsampledPictureYuv(pcPic->getFullPelBaseRec(), m_cIlpPic[0]->getPicYuvRec());
    11471144    m_cIlpPic[0]->getSlice(0)->setPOC(pcPic->getPOC());
     1145    m_cIlpPic[0]->setLayerId(0); //set reference layerId
    11481146    m_cIlpPic[0]->getPicYuvRec()->setBorderExtension(false);
    11491147    m_cIlpPic[0]->getPicYuvRec()->extendPicBorder();
Note: See TracChangeset for help on using the changeset viewer.