Changeset 227 in SHVCSoftware for branches/SHM-2.1-dev/source


Ignore:
Timestamp:
22 May 2013, 22:34:22 (11 years ago)
Author:
qualcomm
Message:

Move scaled reference layer offsets to SPS extension.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

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

    r226 r227  
    732732  }
    733733
     734  READ_FLAG( uiCode, "sps_extension_flag");
     735  if (uiCode)
     736  {
     737#if SPS_EXTENSION
     738    parseSPSExtension( pcSPS );
     739    READ_FLAG( uiCode, "sps_extension2_flag");
     740    if(uiCode)
     741    {
     742#endif
     743      while ( xMoreRbspData() )
     744      {
     745        READ_FLAG( uiCode, "sps_extension_data_flag");
     746      }
     747#if SPS_EXTENSION
     748    }
     749#endif
     750  }
     751}
     752
     753#if SPS_EXTENSION
     754Void TDecCavlc::parseSPSExtension( TComSPS* pcSPS )
     755{
     756  // more syntax elements to be parsed here
    734757#if SCALED_REF_LAYER_OFFSETS
    735758  if( pcSPS->getLayerId() > 0 )
     
    743766  }
    744767#endif
    745 
    746   READ_FLAG( uiCode, "sps_extension_flag");
    747   if (uiCode)
    748   {
    749 #if SPS_EXTENSION
    750     parseSPSExtension( pcSPS );
    751     READ_FLAG( uiCode, "sps_extension2_flag");
    752     if(uiCode)
    753     {
    754 #endif
    755       while ( xMoreRbspData() )
    756       {
    757         READ_FLAG( uiCode, "sps_extension_data_flag");
    758       }
    759 #if SPS_EXTENSION
    760     }
    761 #endif
    762   }
    763 }
    764 
    765 #if SPS_EXTENSION
    766 Void TDecCavlc::parseSPSExtension( TComSPS* pcSPS )
    767 {
    768   // syntax elements to be parsed here
    769768}
    770769#endif
  • branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r226 r227  
    560560      codeVUI(pcSPS->getVuiParameters(), pcSPS);
    561561  }
     562
     563#if SPS_EXTENSION
     564  WRITE_FLAG( 1, "sps_extension_flag" );
     565  if( 1 )   // if( sps_extension_flag )
     566  {
     567    codeSPSExtension( pcSPS );
     568    WRITE_FLAG( 0, "sps_extension2_flag" );
     569  }
     570#else
     571  WRITE_FLAG( 0, "sps_extension_flag" );
     572#endif
     573}
     574#if SPS_EXTENSION
     575Void TEncCavlc::codeSPSExtension( TComSPS* pcSPS )
     576{
     577  // more syntax elements to be written here
    562578#if SCALED_REF_LAYER_OFFSETS
    563579  if( pcSPS->getLayerId() > 0 )
     
    570586  }
    571587#endif
    572 
    573 #if SPS_EXTENSION
    574   WRITE_FLAG( 1, "sps_extension_flag" );
    575   if( 1 )   // if( sps_extension_flag )
    576   {
    577     codeSPSExtension( pcSPS );
    578     WRITE_FLAG( 0, "sps_extension2_flag" );
    579   }
    580 #else
    581   WRITE_FLAG( 0, "sps_extension_flag" );
    582 #endif
    583 }
    584 #if SPS_EXTENSION
    585 Void TEncCavlc::codeSPSExtension( TComSPS* pcSPS )
    586 {
    587   // syntax elements to be written here
    588588}
    589589#endif
Note: See TracChangeset for help on using the changeset viewer.