Changeset 556 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
25 Jan 2014, 04:36:18 (11 years ago)
Author:
qualcomm
Message:

JCTVC-P0307. Removal of VPS VUI Offset and addition of new syntax element vps_non_vui_extension_length.

Macro: P0307_REMOVE_VPS_VUI_OFFSET and P0307_VPS_NON_VUI_EXTENSION
provided by Hendry <fhendry@…>

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r552 r556  
    669669  UInt numBytesInVps = this->m_pcBitIf->getNumberOfWrittenBits();
    670670#endif
     671#if !P0307_REMOVE_VPS_VUI_OFFSET
    671672#if VPS_VUI_OFFSET
    672673   m_vpsVuiCounter = this->m_pcBitIf->getNumberOfWrittenBits();
     674#endif
    673675#endif
    674676  WRITE_CODE( pcVPS->getVPSId(),                    4,        "vps_video_parameter_set_id" );
     
    798800
    799801  WRITE_FLAG( vps->getAvcBaseLayerFlag(),              "avc_base_layer_flag" );
     802#if !P0307_REMOVE_VPS_VUI_OFFSET
    800803#if O0109_MOVE_VPS_VUI_FLAG
    801804#if !VPS_VUI
     
    819822  WRITE_FLAG( vps->getSplittingFlag(),                 "splitting_flag" );
    820823#endif // O0109_MOVE_VPS_VUI_FLAG
     824#endif
     825  WRITE_FLAG( vps->getSplittingFlag(),                 "splitting_flag" );
    821826
    822827  for(i = 0; i < MAX_VPS_NUM_SCALABILITY_TYPES; i++)
     
    11281133#endif
    11291134
     1135#if P0307_VPS_NON_VUI_EXTENSION
     1136  WRITE_UVLC( vps->getVpsNonVuiExtLength(), "vps_non_vui_extension_length" );
     1137  if ( vps->getVpsNonVuiExtLength() > 0 )
     1138  {
     1139    printf("\n\nUp to the current spec, the value of vps_non_vui_extension_length is supposed to be 0\n");
     1140  }
     1141#endif
     1142
    11301143#if !O0109_MOVE_VPS_VUI_FLAG
    11311144#if !VPS_VUI
     
    11481161#endif
    11491162#else
     1163#if P0307_REMOVE_VPS_VUI_OFFSET
     1164  WRITE_FLAG( 1,                     "vps_vui_present_flag" );
     1165  vps->setVpsVuiPresentFlag(true);
     1166#endif
    11501167  if(vps->getVpsVuiPresentFlag())   // Should be conditioned on the value of vps_vui_present_flag
    11511168  {
     
    11541171      WRITE_FLAG(1,                  "vps_vui_alignment_bit_equal_to_one");
    11551172    }
     1173#if !P0307_REMOVE_VPS_VUI_OFFSET
    11561174#if VPS_VUI_OFFSET
    11571175    Int vpsVuiOffsetValeInBits = this->m_pcBitIf->getNumberOfWrittenBits() - m_vpsVuiCounter + 16; // 2 bytes for NUH
    11581176    assert( vpsVuiOffsetValeInBits % 8 == 0 );
    11591177    vps->setVpsVuiOffset( vpsVuiOffsetValeInBits >> 3 );
     1178#endif
    11601179#endif
    11611180    codeVPSVUI(vps); 
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.h

    r550 r556  
    6868  TComSlice*    m_pcSlice;
    6969  UInt          m_uiCoeffCost;
     70#if !P0307_REMOVE_VPS_VUI_OFFSET
    7071#if VPS_VUI_OFFSET
    7172  Int m_vpsVuiCounter;
     73#endif
    7274#endif
    7375  Void codeShortTermRefPicSet              ( TComSPS* pcSPS, TComReferencePictureSet* pcRPS, Bool calledFromSliceHeader, Int idx );
Note: See TracChangeset for help on using the changeset viewer.