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


Ignore:
Timestamp:
20 Nov 2013, 02:32:16 (12 years ago)
Author:
etri
Message:

Add chroma and bit-depth control flag in representation format.(JCTVC-O0179)

File:
1 edited

Legend:

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

    r494 r502  
    10711071Void  TEncCavlc::codeRepFormat      ( RepFormat *repFormat )
    10721072{
     1073#if REPN_FORMAT_CONTROL_FLAG
     1074   WRITE_FLAG ( repFormat->getChromaAndBitDepthVpsPresentFlag(), "chroma_and_bit_depth_vps_presenet_flag");
     1075
     1076   WRITE_CODE ( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_in_luma_samples" );   
     1077   WRITE_CODE ( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_in_luma_samples" ); 
     1078
     1079   if ( repFormat->getChromaAndBitDepthVpsPresentFlag() )
     1080   {
     1081     WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" );   
     1082
     1083     if( repFormat->getChromaFormatVpsIdc() == 3 )
     1084     {
     1085       WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_flag");     
     1086     }
     1087
     1088     assert( repFormat->getBitDepthVpsLuma() >= 8 );
     1089     assert( repFormat->getBitDepthVpsChroma() >= 8 );
     1090     WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8,   4, "bit_depth_luma_minus8" );           
     1091     WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" );
     1092   }
     1093#else
    10731094  WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" );   
    10741095 
     
    10841105  assert( repFormat->getBitDepthVpsChroma() >= 8 );
    10851106  WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8,   4, "bit_depth_luma_minus8" );           
    1086   WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" );         
     1107  WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" );
     1108#endif
    10871109
    10881110}
Note: See TracChangeset for help on using the changeset viewer.