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


Ignore:
Timestamp:
7 Jul 2015, 01:05:51 (10 years ago)
Author:
seregin
Message:

macro cleanup: P0307_REMOVE_VPS_VUI_OFFSET

File:
1 edited

Legend:

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

    r1112 r1113  
    781781Void TEncCavlc::codeVPS( TComVPS* pcVPS )
    782782{
    783 #if !P0307_REMOVE_VPS_VUI_OFFSET
    784 #if VPS_VUI_OFFSET
    785    m_vpsVuiCounter = this->m_pcBitIf->getNumberOfWrittenBits();
    786 #endif
    787 #endif
    788783  WRITE_CODE( pcVPS->getVPSId(),                    4,        "vps_video_parameter_set_id" );
    789784#if VPS_RESERVED_FLAGS
     
    20132008  WRITE_FLAG( vps->getAvcBaseLayerFlag(),              "avc_base_layer_flag" );
    20142009#endif
    2015 #if !P0307_REMOVE_VPS_VUI_OFFSET
    2016 #if O0109_MOVE_VPS_VUI_FLAG
    2017   WRITE_FLAG( 1,                     "vps_vui_present_flag" );
    2018   vps->setVpsVuiPresentFlag(true);
    2019   if ( vps->getVpsVuiPresentFlag() )
    2020   {
    2021 #if VPS_VUI_OFFSET
    2022     WRITE_CODE( vps->getVpsVuiOffset(  ), 16,             "vps_vui_offset" );
    2023 #endif
    2024     WRITE_FLAG( vps->getSplittingFlag(),                 "splitting_flag" );
    2025   }
    2026 #else
    2027 #if VPS_VUI_OFFSET
    2028   WRITE_CODE( vps->getVpsVuiOffset(  ), 16,             "vps_vui_offset" ); 
    2029 #endif
    2030   WRITE_FLAG( vps->getSplittingFlag(),                 "splitting_flag" );
    2031 #endif // O0109_MOVE_VPS_VUI_FLAG
    2032 #endif
     2010
    20332011  WRITE_FLAG( vps->getSplittingFlag(),                 "splitting_flag" );
    20342012
     
    24852463  }
    24862464#else
    2487 #if P0307_REMOVE_VPS_VUI_OFFSET
     2465
    24882466  vps->setVpsVuiPresentFlag(true);
    24892467  WRITE_FLAG( vps->getVpsVuiPresentFlag() ? 1 : 0,                     "vps_vui_present_flag" );
    2490 #endif
     2468
    24912469  if(vps->getVpsVuiPresentFlag())   // Should be conditioned on the value of vps_vui_present_flag
    24922470  {
     
    24952473      WRITE_FLAG(1,                  "vps_vui_alignment_bit_equal_to_one");
    24962474    }
    2497 #if !P0307_REMOVE_VPS_VUI_OFFSET
    2498 #if VPS_VUI_OFFSET
    2499     Int vpsVuiOffsetValeInBits = this->m_pcBitIf->getNumberOfWrittenBits() - m_vpsVuiCounter + 16; // 2 bytes for NUH
    2500     assert( vpsVuiOffsetValeInBits % 8 == 0 );
    2501     vps->setVpsVuiOffset( vpsVuiOffsetValeInBits >> 3 );
    2502 #endif
    2503 #endif
     2475
    25042476    codeVPSVUI(vps); 
    25052477  }
Note: See TracChangeset for help on using the changeset viewer.