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


Ignore:
Timestamp:
9 Apr 2014, 21:42:54 (11 years ago)
Author:
seregin
Message:

fix for the ticket #21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r653 r659  
    12381238#endif
    12391239#if REPN_FORMAT_IN_VPS
    1240 Void  TEncCavlc::codeRepFormat      ( RepFormat *repFormat )
     1240Void  TEncCavlc::codeRepFormat( RepFormat *repFormat )
    12411241{
    12421242#if REPN_FORMAT_CONTROL_FLAG
    1243    WRITE_FLAG ( repFormat->getChromaAndBitDepthVpsPresentFlag(), "chroma_and_bit_depth_vps_presenet_flag");
    1244 
    1245    WRITE_CODE ( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_in_luma_samples" );   
    1246    WRITE_CODE ( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_in_luma_samples" ); 
    1247 
    1248    if ( repFormat->getChromaAndBitDepthVpsPresentFlag() )
    1249    {
    1250      WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" );   
    1251 
    1252      if( repFormat->getChromaFormatVpsIdc() == 3 )
    1253      {
    1254        WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_flag");     
    1255      }
    1256 
    1257      assert( repFormat->getBitDepthVpsLuma() >= 8 );
    1258      assert( repFormat->getBitDepthVpsChroma() >= 8 );
    1259      WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8,   4, "bit_depth_luma_minus8" );           
    1260      WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" );
    1261    }
     1243  WRITE_CODE( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_vps_in_luma_samples" );   
     1244  WRITE_CODE( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_vps_in_luma_samples" ); 
     1245  WRITE_FLAG( repFormat->getChromaAndBitDepthVpsPresentFlag(), "chroma_and_bit_depth_vps_present_flag" );
     1246
     1247  if( repFormat->getChromaAndBitDepthVpsPresentFlag() )
     1248  {
     1249    WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_vps_idc" );   
     1250
     1251    if( repFormat->getChromaFormatVpsIdc() == 3 )
     1252    {
     1253      WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_vps_flag" );     
     1254    }
     1255
     1256    assert( repFormat->getBitDepthVpsLuma() >= 8 );
     1257    assert( repFormat->getBitDepthVpsChroma() >= 8 );
     1258    WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8,   4, "bit_depth_vps_luma_minus8" );           
     1259    WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_vps_chroma_minus8" );
     1260  }
    12621261#else
    12631262  WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" );   
     
    12751274  WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8,   4, "bit_depth_luma_minus8" );           
    12761275  WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" );
    1277 #endif
    1278 
     1276#endif
    12791277}
    12801278#endif
Note: See TracChangeset for help on using the changeset viewer.