Changeset 384 in SHVCSoftware for branches/SHM-3.1-dev/source


Ignore:
Timestamp:
6 Sep 2013, 01:20:37 (11 years ago)
Author:
qualcomm
Message:

Added byte alignment before VPS extension.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

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

    r383 r384  
    846846  {
    847847#if VPS_EXTNS
     848    while ( m_pcBitstream->getNumBitsRead() % 8 != 0 )
     849    {
     850      READ_FLAG( uiCode, "vps_extension_alignment_bit_equal_to_one"); assert(uiCode == 1);
     851    }
    848852    parseVPSExtension(pcVPS);
    849853    READ_FLAG( uiCode, "vps_entension2_flag" );
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r383 r384  
    683683#else
    684684  WRITE_FLAG( 1,                     "vps_extension_flag" );
    685   codeVPSExtension(pcVPS);
    686   WRITE_FLAG( 0,                     "vps_extension2_flag" );   // Flag value of 1 reserved
     685  if(1) // Should be conditioned on the value of vps_extension_flag
     686  {
     687    while ( m_pcBitIf->getNumberOfWrittenBits() % 8 != 0 )
     688    {
     689      WRITE_FLAG(1,                  "vps_extension_alignment_bit_equal_to_one");
     690    }
     691    codeVPSExtension(pcVPS);
     692    WRITE_FLAG( 0,                     "vps_extension2_flag" );   // Flag value of 1 reserved
     693  }
    687694#endif 
    688695  //future extensions here..
Note: See TracChangeset for help on using the changeset viewer.