Changeset 1113 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 7 Jul 2015, 01:05:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp ¶
r1112 r1113 781 781 Void TEncCavlc::codeVPS( TComVPS* pcVPS ) 782 782 { 783 #if !P0307_REMOVE_VPS_VUI_OFFSET784 #if VPS_VUI_OFFSET785 m_vpsVuiCounter = this->m_pcBitIf->getNumberOfWrittenBits();786 #endif787 #endif788 783 WRITE_CODE( pcVPS->getVPSId(), 4, "vps_video_parameter_set_id" ); 789 784 #if VPS_RESERVED_FLAGS … … 2013 2008 WRITE_FLAG( vps->getAvcBaseLayerFlag(), "avc_base_layer_flag" ); 2014 2009 #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 2033 2011 WRITE_FLAG( vps->getSplittingFlag(), "splitting_flag" ); 2034 2012 … … 2485 2463 } 2486 2464 #else 2487 #if P0307_REMOVE_VPS_VUI_OFFSET 2465 2488 2466 vps->setVpsVuiPresentFlag(true); 2489 2467 WRITE_FLAG( vps->getVpsVuiPresentFlag() ? 1 : 0, "vps_vui_present_flag" ); 2490 #endif 2468 2491 2469 if(vps->getVpsVuiPresentFlag()) // Should be conditioned on the value of vps_vui_present_flag 2492 2470 { … … 2495 2473 WRITE_FLAG(1, "vps_vui_alignment_bit_equal_to_one"); 2496 2474 } 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 2504 2476 codeVPSVUI(vps); 2505 2477 }
Note: See TracChangeset for help on using the changeset viewer.