Changeset 250 in SHVCSoftware


Ignore:
Timestamp:
31 May 2013, 09:48:43 (12 years ago)
Author:
seregin
Message:

use refLayerIdc for getting reference layer encoder and decoder

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r248 r250  
    249249    {
    250250#if VPS_EXTN_DIRECT_REF_LAYERS
    251       TDecTop *pcTDecTopBase = (TDecTop *)getRefLayerDec( m_layerId );
     251      TDecTop *pcTDecTopBase = (TDecTop *)getRefLayerDec( m_layerId - 1 );
    252252#else
    253253      TDecTop *pcTDecTopBase = (TDecTop *)getLayerDec( m_layerId-1 );
     
    832832      {
    833833#if VPS_EXTN_DIRECT_REF_LAYERS
    834         TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( m_layerId );
     834        TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( m_layerId - 1 );
    835835#else
    836836        TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
     
    12811281
    12821282#if VPS_EXTN_DIRECT_REF_LAYERS
    1283 TDecTop* TDecTop::getRefLayerDec( UInt layerId )
     1283TDecTop* TDecTop::getRefLayerDec( UInt refLayerIdc )
    12841284{
    12851285  TComVPS* vps = m_parameterSetManagerDecoder[0].getActiveVPS();
     
    12991299#endif
    13001300 
    1301   return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, 0 ) );
     1301  return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, refLayerIdc ) );
    13021302}
    13031303#endif
  • branches/SHM-2.1-dev/source/Lib/TLibDecoder/TDecTop.h

    r238 r250  
    157157  TDecTop*  getLayerDec(UInt layer)     { return m_ppcTDecTop[layer]; }
    158158#if VPS_EXTN_DIRECT_REF_LAYERS
    159   TDecTop*  getRefLayerDec(UInt layerId);
     159  TDecTop*  getRefLayerDec(UInt refLayerIdc);
    160160#endif
    161161#if AVC_BASE
  • branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r240 r250  
    536536    {
    537537#if VPS_EXTN_DIRECT_REF_LAYERS
    538       TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(m_layerId)->getListPic();
     538      TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(m_layerId-1)->getListPic();
    539539#else
    540540      TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId-1]->getListPic();
  • branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r245 r250  
    508508      {
    509509#if VPS_EXTN_DIRECT_REF_LAYERS
    510         TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( m_layerId );
     510        TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( m_layerId - 1 );
    511511#else
    512512        TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
     
    539539      {
    540540#if VPS_EXTN_DIRECT_REF_LAYERS
    541         TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( m_layerId );
     541        TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( m_layerId - 1 );
    542542#else
    543543        TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
     
    11991199#if SVC_EXTENSION
    12001200#if VPS_EXTN_DIRECT_REF_LAYERS
    1201 TEncTop* TEncTop::getRefLayerEnc( UInt layerId )
     1201TEncTop* TEncTop::getRefLayerEnc( UInt refLayerIdc )
    12021202{
    12031203  if( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() <= 0 )
     
    12131213  assert( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() == 1 );
    12141214
    1215   return (TEncTop *)getLayerEnc( getVPS()->getRefLayerId( m_layerId, 0 ) );
     1215  return (TEncTop *)getLayerEnc( getVPS()->getRefLayerId( m_layerId, refLayerIdc ) );
    12161216}
    12171217#endif
  • branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncTop.h

    r238 r250  
    231231  Void      encodePrep( TComPicYuv* pcPicYuvOrg );
    232232#if VPS_EXTN_DIRECT_REF_LAYERS
    233   TEncTop*  getRefLayerEnc(UInt layerId);
     233  TEncTop*  getRefLayerEnc(UInt refLayerIdc);
    234234#endif
    235235#else
Note: See TracChangeset for help on using the changeset viewer.