Changeset 1113 in SHVCSoftware
- Timestamp:
- 7 Jul 2015, 01:05:51 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1107 r1113 2005 2005 #else 2006 2006 , m_viewIdLenMinus1 (0) 2007 #endif2008 #endif2009 #if !P0307_REMOVE_VPS_VUI_OFFSET2010 #if VPS_VUI_OFFSET2011 , m_vpsVuiOffset (0)2012 2007 #endif 2013 2008 #endif -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1107 r1113 857 857 #endif 858 858 859 #if !P0307_REMOVE_VPS_VUI_OFFSET860 #if VPS_VUI_OFFSET861 Int m_vpsVuiOffset;862 #endif863 #endif864 859 #if P0307_VPS_NON_VUI_EXTENSION 865 860 Int m_vpsNonVuiExtLength; … … 1364 1359 Void setVpsExtensionFlag(Bool x) { m_vpsExtensionFlag = x; } 1365 1360 1366 #if !P0307_REMOVE_VPS_VUI_OFFSET1367 #if VPS_VUI_OFFSET1368 Int getVpsVuiOffset() { return m_vpsVuiOffset; }1369 Void setVpsVuiOffset(Int x) { m_vpsVuiOffset = x; }1370 #endif1371 #endif1372 1361 #if P0307_VPS_NON_VUI_EXTENSION 1373 1362 Int getVpsNonVuiExtLength() { return m_vpsNonVuiExtLength; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1112 r1113 81 81 82 82 #define P0130_EOB 1 ///< JCTVC-P0130, set layer Id of EOB NALU to be fixed to 0 83 #define P0307_REMOVE_VPS_VUI_OFFSET 1 ///< JCTVC-P0307, remove implementation related to VPS VUI offset signalling84 83 #define P0307_VPS_NON_VUI_EXTENSION 1 ///< JCTVC-P0307, implementation related to NON VUI VPS Extension signalling 85 84 #define P0307_VPS_NON_VUI_EXT_UPDATE 1 ///< JCTVC-P0307, implementation related to NON VUI VPS Extension signalling -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1112 r1113 2726 2726 #endif 2727 2727 2728 #if !P0307_REMOVE_VPS_VUI_OFFSET2729 #if O0109_MOVE_VPS_VUI_FLAG2730 READ_FLAG( uiCode, "vps_vui_present_flag"); vps->setVpsVuiPresentFlag(uiCode ? true : false);2731 if ( uiCode )2732 {2733 #endif2734 #if VPS_VUI_OFFSET2735 READ_CODE( 16, uiCode, "vps_vui_offset" ); vps->setVpsVuiOffset( uiCode );2736 #endif2737 #if O0109_MOVE_VPS_VUI_FLAG2738 }2739 #endif2740 #endif2741 2728 READ_FLAG( uiCode, "splitting_flag" ); vps->setSplittingFlag(uiCode ? true : false); 2742 2729 … … 3469 3456 #endif 3470 3457 3471 #if P0307_REMOVE_VPS_VUI_OFFSET3472 3458 READ_FLAG( uiCode, "vps_vui_present_flag"); vps->setVpsVuiPresentFlag(uiCode ? true : false); 3473 #endif3474 3459 3475 3460 #if O0109_MOVE_VPS_VUI_FLAG -
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.