Changeset 468 in SHVCSoftware for branches/SHM-4.0-dev/source/App/TAppDecoder


Ignore:
Timestamp:
14 Nov 2013, 09:02:43 (11 years ago)
Author:
nokia
Message:

Integration of O0194: Support different bit-depth values for different layers, enable weighted prediction for ILR for color gamut scalability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.0-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r467 r468  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    66 * Copyright (c) 2010-2013, ITU/ISO/IEC
     
    8080    m_pchBitstreamFile = NULL;
    8181  }
    82 #if SVC_EXTENSION   
     82#if SVC_EXTENSION
    8383  for( Int i = 0; i < m_tgtLayerId; i++ )
    8484  {
     
    8888      m_pchReconFile[i] = NULL;
    8989    }
    90   } 
     90  }
    9191#if AVC_BASE
    9292  if( m_pchBLReconFile )
     
    240240      if ( m_pchReconFile[curLayerId] && !openedReconFile[curLayerId] )
    241241      {
    242         if (!m_outputBitDepthY) { m_outputBitDepthY = g_bitDepthY; }       
     242        if (!m_outputBitDepthY) { m_outputBitDepthY = g_bitDepthY; }
    243243        if (!m_outputBitDepthC) { m_outputBitDepthC = g_bitDepthC; }
    244244
     
    247247        openedReconFile[curLayerId] = true;
    248248      }
    249       if ( bNewPicture && bNewPOC && 
     249      if ( bNewPicture && bNewPOC &&
    250250           (   nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL
    251251            || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP
     
    281281  }
    282282#endif
    283   pcBLPic.destroy(); 
     283  pcBLPic.destroy();
    284284
    285285  for(UInt layer = layerIdmin; layer <= m_tgtLayerId; layer++)
     
    290290    m_acTDecTop[layer].deletePicBuffer();
    291291  }
    292  
     292
    293293  // destroy internal classes
    294294  xDestroyDecLib();
     
    399399        openedReconFile = true;
    400400      }
    401       if ( bNewPicture && 
     401      if ( bNewPicture &&
    402402           (   nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL
    403403            || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP
     
    415415    }
    416416  }
    417  
     417
    418418#if SYNTAX_OUTPUT
    419419  if( streamSyntaxFile.is_open() )
     
    422422  }
    423423#endif
    424  
     424
    425425  xFlushOutput( pcListPic );
    426426  // delete buffers
    427427  m_cTDecTop.deletePicBuffer();
    428  
     428
    429429  // destroy internal classes
    430430  xDestroyDecLib();
     
    440440#if SVC_EXTENSION
    441441  // initialize global variables
    442   initROM(); 
     442  initROM();
    443443
    444444  for(UInt layer = 0; layer <= m_tgtLayerId; layer++)
     
    450450    m_acTDecTop[layer].create();
    451451
    452     m_acTDecTop[layer].setLayerDec(m_apcTDecTop);   
     452    m_acTDecTop[layer].setLayerDec(m_apcTDecTop);
    453453  }
    454454#else
     
    479479    m_cTVideoIOYuvReconFile. close();
    480480  }
    481  
     481
    482482  // destroy decoder class
    483483  m_cTDecTop.destroy();
     
    571571
    572572#else
    573 #if O0194_REPN_FORMAT_IN_VPS_BUGFIX
     573#if O0194_DIFFERENT_BITDEPTH_EL_BL
     574          // Compile time bug-fix
    574575          m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(),
    575576#else
     
    732733  {
    733734    return;
    734   } 
     735  }
    735736  TComList<TComPic*>::iterator iterPic   = pcListPic->begin();
    736737
     
    768769
    769770#else
    770 #if O0194_REPN_FORMAT_IN_VPS_BUGFIX
     771#if O0194_DIFFERENT_BITDEPTH_EL_BL
     772          // Compile time bug-fix
    771773          m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(),
    772774#else
     
    926928        pcPic = NULL;
    927929      }
    928 #endif   
     930#endif
    929931#endif
    930932      iterPic++;
Note: See TracChangeset for help on using the changeset viewer.