Changeset 1118 in SHVCSoftware for branches


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

macro cleanup: REPN_FORMAT_CONTROL_FLAG

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1117 r1118  
    165165  {
    166166    RepFormat *repFormat = vps->getVpsRepFormat( idx );
    167 #if REPN_FORMAT_CONTROL_FLAG
    168167    repFormat->setChromaAndBitDepthVpsPresentFlag                         ( true );
    169168    if (idx==0)
     
    171170      assert(repFormat->getChromaAndBitDepthVpsPresentFlag() == true);
    172171    }
    173 #endif
     172
    174173    repFormat->setPicWidthVpsInLumaSamples                                ( m_acLayerCfg[mapIdxToLayer[idx]].getSourceWidth()   );
    175174    repFormat->setPicHeightVpsInLumaSamples                               ( m_acLayerCfg[mapIdxToLayer[idx]].getSourceHeight()  );
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1117 r1118  
    511511class RepFormat
    512512{
    513 #if REPN_FORMAT_CONTROL_FLAG
    514513  Bool m_chromaAndBitDepthVpsPresentFlag;
    515 #endif
    516514#if AUXILIARY_PICTURES
    517515  ChromaFormat m_chromaFormatVpsIdc;
     
    529527public:
    530528  RepFormat();
    531 #if REPN_FORMAT_CONTROL_FLAG
    532529  Bool getChromaAndBitDepthVpsPresentFlag() { return m_chromaAndBitDepthVpsPresentFlag; }
    533530  void setChromaAndBitDepthVpsPresentFlag(Bool x) { m_chromaAndBitDepthVpsPresentFlag = x; }
    534 #endif
    535531
    536532#if AUXILIARY_PICTURES
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1117 r1118  
    125125#define NO_OUTPUT_OF_PRIOR_PICS          1      ///< Use no_output_of_prior_pics_flag
    126126#define REPN_FORMAT_IN_VPS               1      ///< JCTVC-N0092: Signal represenation format (spatial resolution, bit depth, colour format) in the VPS
    127 #if REPN_FORMAT_IN_VPS
    128 #define REPN_FORMAT_CONTROL_FLAG         1      ///< JCTVC-O0179: Add control flag in representation format to control sending of chroma and bitdepth parameters
    129 #endif
    130127#define RPL_INIT_N0316_N0082             1      ///< JCTVC-N0316, JCTVC-N0082: initial reference picture list construction
    131128
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1117 r1118  
    35713571{
    35723572  UInt uiCode;
    3573 #if REPN_FORMAT_CONTROL_FLAG 
    35743573  READ_CODE( 16, uiCode, "pic_width_vps_in_luma_samples" );        repFormat->setPicWidthVpsInLumaSamples ( uiCode );
    35753574  READ_CODE( 16, uiCode, "pic_height_vps_in_luma_samples" );       repFormat->setPicHeightVpsInLumaSamples( uiCode );
     
    36093608    repFormat->setBitDepthVpsChroma         ( repFormatPrev->getBitDepthVpsChroma() );
    36103609  }
    3611 
    3612 #else
    3613 #if AUXILIARY_PICTURES
    3614   READ_CODE( 2, uiCode, "chroma_format_idc" );               repFormat->setChromaFormatVpsIdc( ChromaFormat(uiCode) );
    3615 #else
    3616   READ_CODE( 2, uiCode, "chroma_format_idc" );               repFormat->setChromaFormatVpsIdc( uiCode );
    3617 #endif
    3618 
    3619   if( repFormat->getChromaFormatVpsIdc() == 3 )
    3620   {
    3621     READ_FLAG( uiCode, "separate_colour_plane_flag");        repFormat->setSeparateColourPlaneVpsFlag(uiCode ? true : false);
    3622   }
    3623 
    3624   READ_CODE ( 16, uiCode, "pic_width_in_luma_samples" );     repFormat->setPicWidthVpsInLumaSamples ( uiCode );
    3625   READ_CODE ( 16, uiCode, "pic_height_in_luma_samples" );    repFormat->setPicHeightVpsInLumaSamples( uiCode );
    3626 
    3627   READ_CODE( 4, uiCode, "bit_depth_luma_minus8" );           repFormat->setBitDepthVpsLuma  ( uiCode + 8 );
    3628   READ_CODE( 4, uiCode, "bit_depth_chroma_minus8" );         repFormat->setBitDepthVpsChroma( uiCode + 8 );
    3629 #endif
    36303610
    36313611  READ_FLAG( uiCode, "conformance_window_vps_flag" );
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1117 r1118  
    24522452Void  TEncCavlc::codeRepFormat( RepFormat *repFormat )
    24532453{
    2454 #if REPN_FORMAT_CONTROL_FLAG
    24552454  WRITE_CODE( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_vps_in_luma_samples" );   
    24562455  WRITE_CODE( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_vps_in_luma_samples" ); 
     
    24712470    WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_vps_chroma_minus8" );
    24722471  }
    2473 #else
    2474   WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" );   
    2475  
    2476   if( repFormat->getChromaFormatVpsIdc() == 3 )
    2477   {
    2478     WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_flag");     
    2479   }
    2480 
    2481   WRITE_CODE ( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_in_luma_samples" );   
    2482   WRITE_CODE ( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_in_luma_samples" );   
    2483  
    2484   assert( repFormat->getBitDepthVpsLuma() >= 8 );
    2485   assert( repFormat->getBitDepthVpsChroma() >= 8 );
    2486   WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8,   4, "bit_depth_luma_minus8" );           
    2487   WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" );
    2488 #endif
    24892472
    24902473  Window conf = repFormat->getConformanceWindowVps();
Note: See TracChangeset for help on using the changeset viewer.