Changeset 6 in SHVCSoftware for trunk/source/Lib/TLibEncoder


Ignore:
Timestamp:
8 Nov 2012, 20:54:05 (13 years ago)
Author:
seregin
Message:

Correct IntraBL cost and fix for couple of compiler warnings.

Location:
trunk/source/Lib/TLibEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncEntropy.cpp

    r2 r6  
    237237  }
    238238
     239#if INTRA_BL
     240  if( pcCU->isIntraBL( uiAbsPartIdx ) )
     241  {
     242    return;
     243  }
     244#endif
     245
    239246  m_pcEntropyCoderIf->codePredMode( pcCU, uiAbsPartIdx );
    240247}
  • trunk/source/Lib/TLibEncoder/TEncSearch.cpp

    r2 r6  
    894894                            Bool         bChroma )
    895895{
    896 #if INTRA_BL
    897   if ( pcCU->isIntraBL( 0 ))
    898   {
    899     return;
    900   }
    901 #endif
    902 
    903896  if( bLuma )
    904897  {
     
    917910#if INTRA_BL
    918911      m_pcEntropyCoder->encodeIntraBLFlag ( pcCU, 0, true );
    919 #endif
    920      
     912      if( pcCU->isIntraBL( 0 ) )
     913      {
     914        return;
     915      }
     916#endif     
    921917      m_pcEntropyCoder  ->encodePartSize( pcCU, 0, pcCU->getDepth(0), true );
    922918
     
    956952    }
    957953  }
     954#if INTRA_BL
     955  if( pcCU->isIntraBL( 0 ) )
     956  {
     957    return;
     958  }
     959#endif
    958960  if( bChroma )
    959961  {
     
    61536155    }
    61546156    m_pcEntropyCoder->encodeSkipFlag ( pcCU, 0, true );
     6157#if INTRA_BL
     6158    if(m_pcEncCfg->getLayerId())
     6159    {
     6160      m_pcEntropyCoder->encodeIntraBLFlag(pcCU, 0, true);
     6161      assert( pcCU->isIntraBL( 0 ) == false );
     6162    }
     6163#endif
    61556164    m_pcEntropyCoder->encodePredMode( pcCU, 0, true );
    61566165    m_pcEntropyCoder->encodePartSize( pcCU, 0, pcCU->getDepth(0), true );
  • trunk/source/Lib/TLibEncoder/TEncTop.cpp

    r2 r6  
    389389        m_cIlpPic[j] = new  TComPic;
    390390        //m_cIlpPic[j]->createWithOutYuv(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, &m_cSPS, true);
     391#if SVC_UPSAMPLING
    391392        m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, &m_cSPS, true);
     393#else
     394        m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, true);
     395#endif
    392396#if REF_IDX_ME_AROUND_ZEROMV
    393397        m_cIlpPic[j]->setIsILR(true);
Note: See TracChangeset for help on using the changeset viewer.