Changeset 1118 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


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

macro cleanup: REPN_FORMAT_CONTROL_FLAG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified 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.