Changeset 617 in SHVCSoftware


Ignore:
Timestamp:
19 Feb 2014, 20:08:44 (11 years ago)
Author:
qualcomm
Message:

P0307_VPS_NON_VUI_EXT_UPDATE\

Update implementation for parsing vps_non_vui_extension_data_bit.
Decoder should allow the vps_non_vui_extension_length to be greater than 0 and read the vps_non_vui_extension_data_bit and then discard it.

Submitted by Hendry (fhendry@…)

Location:
branches/SHM-5.1-dev/source/Lib
Files:
3 edited

Legend:

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

    r616 r617  
    5353#define P0307_REMOVE_VPS_VUI_OFFSET      1      ///< JCTVC-P0307, remove implementation related to VPS VUI offset signalling
    5454#define P0307_VPS_NON_VUI_EXTENSION      1      ///< JCTVC-P0307, implementation related to NON VUI VPS Extension signalling
     55#define P0307_VPS_NON_VUI_EXT_UPDATE     1      ///< JCTVC-P0307, implementation related to NON VUI VPS Extension signalling
    5556
    5657#define DISCARDABLE_PIC_RPS              1      ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1
  • branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r615 r617  
    15461546#if P0307_VPS_NON_VUI_EXTENSION
    15471547  READ_UVLC( uiCode,           "vps_non_vui_extension_length"); vps->setVpsNonVuiExtLength((Int)uiCode);
     1548#if P0307_VPS_NON_VUI_EXT_UPDATE
     1549  if (uiCode > 0)
     1550  {
     1551    Int nonVuiExtBits = uiCode * 8;
     1552    for (i = 0; i < nonVuiExtBits; i++)
     1553    {
     1554      READ_FLAG(uiCode, "vps_non_vui_extension_data_bit" ); //just parse and discard for now.
     1555    }
     1556  }
     1557#else
    15481558  if ( vps->getVpsNonVuiExtLength() > 0 )
    15491559  {
    15501560    printf("\n\nUp to the current spec, the value of vps_non_vui_extension_length is supposed to be 0\n");
    15511561  }
     1562#endif
    15521563#endif
    15531564
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r615 r617  
    11561156#if P0307_VPS_NON_VUI_EXTENSION
    11571157  WRITE_UVLC( vps->getVpsNonVuiExtLength(), "vps_non_vui_extension_length" );
     1158#if P0307_VPS_NON_VUI_EXT_UPDATE
     1159  if (vps->getVpsNonVuiExtLength() > 0)
     1160  {
     1161    Int nonVuiExtBits = vps->getVpsNonVuiExtLength() * 8;
     1162    for (i = 0; i < nonVuiExtBits; i++)
     1163    {
     1164      WRITE_FLAG(1, "vps_non_vui_extension_data_bit"); //just parse and discard for now.
     1165    }
     1166  }
     1167#else
    11581168  if ( vps->getVpsNonVuiExtLength() > 0 )
    11591169  {
    11601170    printf("\n\nUp to the current spec, the value of vps_non_vui_extension_length is supposed to be 0\n");
    11611171  }
     1172#endif
    11621173#endif
    11631174
Note: See TracChangeset for help on using the changeset viewer.