Changeset 1491 in SHVCSoftware


Ignore:
Timestamp:
2 Dec 2015, 23:43:17 (9 years ago)
Author:
seregin
Message:

remove VPS dependency in SPS parsing introduced in SCALABLE_REXT

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1487 r1491  
    200200// This can be enabled by the makefile
    201201#ifndef RExt__HIGH_BIT_DEPTH_SUPPORT
    202 #define RExt__HIGH_BIT_DEPTH_SUPPORT                      1 ///< 0 (default) use data type definitions for 8-10 bit video, 1 = use larger data types to allow for up to 16-bit video (originally developed as part of N0188)
     202#define RExt__HIGH_BIT_DEPTH_SUPPORT                      SCALABLE_REXT ///< 0 (default) use data type definitions for 8-10 bit video, 1 = use larger data types to allow for up to 16-bit video (originally developed as part of N0188)
    203203#endif
    204204
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1487 r1491  
    681681}
    682682
    683 #if SCALABLE_REXT
    684 Void TDecCavlc::parseSPS(TComSPS* pcSPS, ParameterSetManager* pcParamSetManager)
    685 #else
    686683Void TDecCavlc::parseSPS(TComSPS* pcSPS)
    687 #endif
    688684{
    689685#if ENC_DEC_TRACE
     
    693689  UInt  uiCode;
    694690  READ_CODE( 4,  uiCode, "sps_video_parameter_set_id");          pcSPS->setVPSId        ( uiCode );
    695 #if SCALABLE_REXT
    696   const TComVPS* pTmpVPS = pcParamSetManager->getVPS(pcSPS->getVPSId());
    697 #endif
    698691#if SVC_EXTENSION
    699692  UInt uiTmp = 0;
     
    748741      pcSPS->setUpdateRepFormatIndex(uiCode);
    749742    }
    750 #if SCALABLE_REXT
    751     // If update_rep_format_flag is equal to 0, the variable repFormatIdx is set equal to vps_rep_format_idx[ LayerIdxInVps[ layerIdCurr ] ].
    752     else
    753     {
    754       Int iVPSRepFormatIdx = pTmpVPS->getVpsRepFormatIdx( pTmpVPS->getLayerIdxInVps( pcSPS->getLayerId() ) );
    755       pcSPS->setUpdateRepFormatIndex( iVPSRepFormatIdx );
    756 
    757       pcSPS->setChromaFormatIdc(              pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getChromaFormatVpsIdc() );
    758       pcSPS->setPicWidthInLumaSamples(        pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getPicWidthVpsInLumaSamples() );
    759       pcSPS->setPicHeightInLumaSamples(       pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getPicHeightVpsInLumaSamples() );
    760       pcSPS->setBitDepth(CHANNEL_TYPE_LUMA,   pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getBitDepthVpsLuma() );
    761       pcSPS->setBitDepth(CHANNEL_TYPE_CHROMA, pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getBitDepthVpsChroma() );
    762       Window &conf = pcSPS->getConformanceWindow();
    763       conf.setWindowLeftOffset(               pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getConformanceWindowVps().getWindowLeftOffset() );
    764       conf.setWindowRightOffset(              pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getConformanceWindowVps().getWindowRightOffset() );
    765       conf.setWindowTopOffset(                pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getConformanceWindowVps().getWindowTopOffset() );
    766       conf.setWindowBottomOffset(             pTmpVPS->getVpsRepFormat(iVPSRepFormatIdx)->getConformanceWindowVps().getWindowBottomOffset() );
    767     }
    768 #endif
    769743  }
    770744  else
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.h

    r1487 r1491  
    7676  Void  parseQtRootCbf      ( UInt uiAbsPartIdx, UInt& uiQtRootCbf );
    7777  Void  parseVPS            ( TComVPS* pcVPS );
    78 #if SCALABLE_REXT
    79   Void  parseSPS            ( TComSPS* pcSPS, ParameterSetManager* pcParamSetManager );
    80 #else
    8178  Void  parseSPS            ( TComSPS* pcSPS );
    82 #endif
    8379#if !SVC_EXTENSION
    8480  Void  parsePPS            ( TComPPS* pcPPS );
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecEntropy.h

    r1487 r1491  
    7070
    7171  virtual Void  parseVPS                  ( TComVPS* pcVPS )     = 0;
    72 #if SCALABLE_REXT
    73   virtual Void  parseSPS                  ( TComSPS* pcSPS, ParameterSetManager* pcParamSetManager )     = 0;
    74 #else
    7572  virtual Void  parseSPS                  ( TComSPS* pcSPS )     = 0;
    76 #endif
    7773#if CGS_3D_ASYMLUT
    7874  virtual Void  parsePPS                  ( TComPPS* pcPPS, TCom3DAsymLUT * pc3DAsymLUT , Int nLayerID )     = 0;
     
    147143
    148144  Void    decodeVPS                   ( TComVPS* pcVPS ) { m_pcEntropyDecoderIf->parseVPS(pcVPS); }
    149 #if SCALABLE_REXT
    150   Void    decodeSPS                   ( TComSPS* pcSPS, ParameterSetManager* pcParamSetManager ) { m_pcEntropyDecoderIf->parseSPS(pcSPS, pcParamSetManager); }
    151 #else
    152145  Void    decodeSPS                   ( TComSPS* pcSPS ) { m_pcEntropyDecoderIf->parseSPS(pcSPS); }
    153 #endif
    154146
    155147#if CGS_3D_ASYMLUT
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecSbac.h

    r1487 r1491  
    7878  Void  setBitstream              ( TComInputBitstream* p  ) { m_pcBitstream = p; m_pcTDecBinIf->init( p ); }
    7979  Void  parseVPS                  ( TComVPS* /*pcVPS*/ ) {}
    80 #if SCALABLE_REXT
    81   Void  parseSPS                  (TComSPS*  /*pcSPS*/, ParameterSetManager* /*pcParamSetManager*/ ) {}
    82 #else
    8380  Void  parseSPS                  ( TComSPS* /*pcSPS*/ ) {}
    84 #endif
    8581#if CGS_3D_ASYMLUT
    8682  Void  parsePPS                  ( TComPPS* /*pcPPS*/, TCom3DAsymLUT * /*pc3DAsymLUT*/, Int /*nLayerID*/ ) {}
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1490 r1491  
    19361936  sps->setLayerId(m_layerId);
    19371937#endif
    1938 #if SCALABLE_REXT
    1939   m_cEntropyDecoder.decodeSPS( sps, &m_parameterSetManager );
    1940 #else
    19411938  m_cEntropyDecoder.decodeSPS( sps );
    1942 #endif
    19431939  m_parameterSetManager.storeSPS(sps, naluData);
    19441940}
Note: See TracChangeset for help on using the changeset viewer.