Changeset 57 in SHVCSoftware for branches


Ignore:
Timestamp:
4 Mar 2013, 23:56:02 (12 years ago)
Author:
seregin
Message:

RefIdx porting

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

Legend:

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

    r54 r57  
    135135
    136136  /* there are no SEI messages associated with this picture initially */
    137   m_SEIs = NULL;
     137  m_SEIs.clear();
    138138  m_bUsedByCurr = false;
    139139  return;
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.cpp

    r54 r57  
    21062106    {
    21072107      pIlpPicList[i]->setIsLongTerm(1);  //mark ilp as long-term reference
    2108       pIlpPicList[i]->setIsUsedAsLongTerm(1);  //mark ilp as long-term reference
    21092108      m_apcRefPicList[REF_PIC_LIST_0][iOffset + i] = pIlpPicList[i];
    21102109      m_aiNumRefIdx[REF_PIC_LIST_0]++;
     
    21182117      {
    21192118        pIlpPicList[i]->setIsLongTerm(1);  //mark ilp as long-term reference
    2120         pIlpPicList[i]->setIsUsedAsLongTerm(1);  //mark ilp as long-term reference
    21212119        m_apcRefPicList[REF_PIC_LIST_1][iOffset + i] = pIlpPicList[i];
    21222120        m_aiNumRefIdx[REF_PIC_LIST_1]++;
  • branches/HM-10.0-dev-SHM/source/Lib/TLibDecoder/TDecTop.cpp

    r54 r57  
    144144  if(m_layerId>0)
    145145  {
     146    Int  numReorderPics[MAX_TLAYER];
     147    Window &conformanceWindow = pcSPS->getConformanceWindow();
     148    Window defaultDisplayWindow = pcSPS->getVuiParametersPresentFlag() ? pcSPS->getVuiParameters()->getDefaultDisplayWindow() : Window();
     149
    146150    if (m_cIlpPic[0] == NULL)
    147151    {
     
    151155        //m_cIlpPic[j]->createWithOutYuv(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, &m_cSPS, true);
    152156#if SVC_UPSAMPLING
    153         m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, pcSPS, true);
    154 #else
    155         m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, true);
     157        m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true);
     158#else
     159        m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true);
    156160#endif
    157161#if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || REF_IDX_MFM
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncCu.cpp

    r54 r57  
    18131813#endif
    18141814
    1815 
     1815#if (ENCODER_FAST_MODE)
     1816Void TEncCu::xCheckRDCostILRUni(TComDataCU *&rpcBestCU, TComDataCU *&rpcTempCU)
     1817{
     1818  UChar uhDepth = rpcTempCU->getDepth( 0 );
     1819
     1820  rpcTempCU->setDepthSubParts( uhDepth, 0 );
     1821
     1822#if SKIP_FLAG
     1823  rpcTempCU->setSkipFlagSubParts( false, 0, uhDepth );
     1824#endif
     1825
     1826  rpcTempCU->setPartSizeSubParts  ( SIZE_2Nx2N,  0, uhDepth );  //2Nx2N
     1827  rpcTempCU->setPredModeSubParts  ( MODE_INTER, 0, uhDepth );
     1828  rpcTempCU->setCUTransquantBypassSubParts  ( m_pcEncCfg->getCUTransquantBypassFlagValue(), 0, uhDepth );
     1829
     1830  Bool exitILR = m_pcPredSearch->predInterSearchILRUni( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcRecoYuvTemp[uhDepth] );
     1831
     1832  if(!exitILR)
     1833  {
     1834    return;
     1835  }
     1836
     1837  m_pcPredSearch->encodeResAndCalcRdInterCU( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvBest[uhDepth], m_ppcRecoYuvTemp[uhDepth], false );
     1838
     1839  rpcTempCU->getTotalCost()  = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() );
     1840
     1841  xCheckDQP( rpcTempCU );
     1842  xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
     1843
     1844  return;
     1845}
     1846#endif
    18161847
    18171848
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncGOP.cpp

    r54 r57  
    413413    pcSlice->setNalUnitType(getNalUnitType(pocCurr));
    414414#if REF_IDX_FRAMEWORK
    415     if( m_layerId > 0 && (uiPOCCurr % m_pcCfg->getIntraPeriod() == 0) )
     415    if( m_layerId > 0 && (pocCurr % m_pcCfg->getIntraPeriod() == 0) )
    416416    {
    417417      pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA);
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncTop.cpp

    r54 r57  
    11091109  if(m_layerId>0)
    11101110  {
     1111    Int  numReorderPics[MAX_TLAYER];
     1112    Window &conformanceWindow = m_cSPS.getConformanceWindow();
     1113    Window defaultDisplayWindow = m_cSPS.getVuiParametersPresentFlag() ? m_cSPS.getVuiParameters()->getDefaultDisplayWindow() : Window();
     1114
    11111115    if (m_cIlpPic[0] == NULL)
    11121116    {
     
    11161120        //m_cIlpPic[j]->createWithOutYuv(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, &m_cSPS, true);
    11171121#if SVC_UPSAMPLING
    1118         m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, &m_cSPS, true);
     1122        m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true);
    11191123#else
    1120         m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, true);
     1124        m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true);
    11211125#endif
    11221126#if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
Note: See TracChangeset for help on using the changeset viewer.