Changeset 1113 in SHVCSoftware


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

macro cleanup: P0307_REMOVE_VPS_VUI_OFFSET

Location:
branches/SHM-dev/source/Lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1107 r1113  
    20052005#else
    20062006, m_viewIdLenMinus1           (0)
    2007 #endif
    2008 #endif
    2009 #if !P0307_REMOVE_VPS_VUI_OFFSET
    2010 #if VPS_VUI_OFFSET
    2011 , m_vpsVuiOffset (0)
    20122007#endif
    20132008#endif
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1107 r1113  
    857857#endif
    858858
    859 #if !P0307_REMOVE_VPS_VUI_OFFSET
    860 #if VPS_VUI_OFFSET
    861   Int        m_vpsVuiOffset;
    862 #endif
    863 #endif
    864859#if P0307_VPS_NON_VUI_EXTENSION
    865860  Int        m_vpsNonVuiExtLength;
     
    13641359  Void   setVpsExtensionFlag(Bool x)                   { m_vpsExtensionFlag = x;     }
    13651360
    1366 #if !P0307_REMOVE_VPS_VUI_OFFSET
    1367 #if VPS_VUI_OFFSET
    1368   Int    getVpsVuiOffset()         { return m_vpsVuiOffset; }
    1369   Void   setVpsVuiOffset(Int x)    { m_vpsVuiOffset = x; }
    1370 #endif
    1371 #endif
    13721361#if P0307_VPS_NON_VUI_EXTENSION
    13731362  Int    getVpsNonVuiExtLength()         { return m_vpsNonVuiExtLength; }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1112 r1113  
    8181
    8282#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 signalling
    8483#define P0307_VPS_NON_VUI_EXTENSION      1      ///< JCTVC-P0307, implementation related to NON VUI VPS Extension signalling
    8584#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  
    27262726#endif
    27272727
    2728 #if !P0307_REMOVE_VPS_VUI_OFFSET
    2729 #if O0109_MOVE_VPS_VUI_FLAG
    2730   READ_FLAG( uiCode, "vps_vui_present_flag"); vps->setVpsVuiPresentFlag(uiCode ? true : false);
    2731   if ( uiCode )
    2732   {
    2733 #endif
    2734 #if VPS_VUI_OFFSET
    2735     READ_CODE( 16, uiCode, "vps_vui_offset" );  vps->setVpsVuiOffset( uiCode );
    2736 #endif
    2737 #if O0109_MOVE_VPS_VUI_FLAG
    2738   }
    2739 #endif
    2740 #endif
    27412728  READ_FLAG( uiCode, "splitting_flag" ); vps->setSplittingFlag(uiCode ? true : false);
    27422729
     
    34693456#endif
    34703457
    3471 #if P0307_REMOVE_VPS_VUI_OFFSET
    34723458  READ_FLAG( uiCode, "vps_vui_present_flag"); vps->setVpsVuiPresentFlag(uiCode ? true : false);
    3473 #endif
    34743459
    34753460#if O0109_MOVE_VPS_VUI_FLAG
  • 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.