Changeset 1114 in SHVCSoftware for branches


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

macro cleanup: O0109_MOVE_VPS_VUI_FLAG

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

Legend:

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

    r1113 r1114  
    823823#endif
    824824
    825 #if O0109_MOVE_VPS_VUI_FLAG
    826825  Bool       m_vpsVuiPresentFlag;
    827 #endif
    828826  Bool       m_vpsExtensionFlag;
    829827
     
    13521350#endif
    13531351
    1354 #if O0109_MOVE_VPS_VUI_FLAG
    13551352  Bool   getVpsVuiPresentFlag()                        { return m_vpsVuiPresentFlag; }
    13561353  Void   setVpsVuiPresentFlag(Bool x)                  { m_vpsVuiPresentFlag = x;    }
    1357 #endif
    13581354  Bool   getVpsExtensionFlag()                         { return m_vpsExtensionFlag;  }
    13591355  Void   setVpsExtensionFlag(Bool x)                   { m_vpsExtensionFlag = x;     }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1113 r1114  
    9494#define P0295_DEFAULT_OUT_LAYER_IDC      1      ///< JCTVC-P0295: modifify default_one_target_output_layer_idc to default_output_layer_idc
    9595#define O0109_DEFAULT_ONE_OUT_LAYER_IDC  1      ///< JCTVC-O0109: default_one_target_output_layer_flag to default_one_target_output_layer_idc
    96 #define O0109_MOVE_VPS_VUI_FLAG          1      ///< JCTVC-O0109: move vps_vui_present_flag before vps_vui_offset
    9796
    9897#define O0135_DEFAULT_ONE_OUT_SEMANTIC   1      ///< JCTVC-O0135: semantics change of default_one_target_output_layer_idc for auxiliary pictures
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1113 r1114  
    34583458  READ_FLAG( uiCode, "vps_vui_present_flag"); vps->setVpsVuiPresentFlag(uiCode ? true : false);
    34593459
    3460 #if O0109_MOVE_VPS_VUI_FLAG
    34613460  if ( vps->getVpsVuiPresentFlag() )
    3462 #else
    3463   READ_FLAG( uiCode,  "vps_vui_present_flag" );
    3464   if (uiCode)
    3465 #endif
    34663461  {
    34673462    while ( m_pcBitstream->getNumBitsRead() % 8 != 0 )
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1113 r1114  
    24472447#endif
    24482448
    2449 #if !O0109_MOVE_VPS_VUI_FLAG
    2450   WRITE_FLAG( 1,                     "vps_vui_present_flag" );
    2451   if(1)   // Should be conditioned on the value of vps_vui_present_flag
    2452   {
    2453     while ( m_pcBitIf->getNumberOfWrittenBits() % 8 != 0 )
    2454     {
    2455       WRITE_FLAG(1,                  "vps_vui_alignment_bit_equal_to_one");
    2456     }
    2457 #if VPS_VUI_OFFSET
    2458     Int vpsVuiOffsetValeInBits = this->m_pcBitIf->getNumberOfWrittenBits() - m_vpsVuiCounter + 16; // 2 bytes for NUH
    2459     assert( vpsVuiOffsetValeInBits % 8 == 0 );
    2460     vps->setVpsVuiOffset( vpsVuiOffsetValeInBits >> 3 );
    2461 #endif
    2462     codeVPSVUI(vps); 
    2463   }
    2464 #else
    2465 
    24662449  vps->setVpsVuiPresentFlag(true);
    24672450  WRITE_FLAG( vps->getVpsVuiPresentFlag() ? 1 : 0,                     "vps_vui_present_flag" );
     
    24762459    codeVPSVUI(vps); 
    24772460  }
    2478 #endif // 0109_MOVE_VPS_FLAG
    24792461}
    24802462
Note: See TracChangeset for help on using the changeset viewer.