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


Ignore:
Timestamp:
20 Nov 2013, 02:32:16 (11 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/TLibDecoder/TDecCAVLC.cpp

    r494 r502  
    13511351{
    13521352  UInt uiCode;
     1353#if REPN_FORMAT_CONTROL_FLAG
     1354  READ_FLAG ( uiCode, "chroma_and_bit_depth_vps_present_flag");   repFormat->setChromaAndBitDepthVpsPresentFlag(uiCode ? true : false);
     1355  READ_CODE ( 16, uiCode, "pic_width_in_luma_samples" );          repFormat->setPicWidthVpsInLumaSamples ( uiCode );
     1356  READ_CODE ( 16, uiCode, "pic_height_in_luma_samples" );         repFormat->setPicHeightVpsInLumaSamples( uiCode );
     1357
     1358  if( repFormat->getChromaAndBitDepthVpsPresentFlag() )
     1359  {
     1360#if AUXILIARY_PICTURES
     1361    READ_CODE( 2, uiCode, "chroma_format_idc" );               repFormat->setChromaFormatVpsIdc( ChromaFormat(uiCode) );
     1362#else
     1363    READ_CODE( 2, uiCode, "chroma_format_idc" );               repFormat->setChromaFormatVpsIdc( uiCode );
     1364#endif
     1365
     1366    if( repFormat->getChromaFormatVpsIdc() == 3 )
     1367    {
     1368      READ_FLAG( uiCode, "separate_colour_plane_flag");        repFormat->setSeparateColourPlaneVpsFlag(uiCode ? true : false);
     1369    }
     1370
     1371
     1372    READ_CODE( 4, uiCode, "bit_depth_luma_minus8" );           repFormat->setBitDepthVpsLuma  ( uiCode + 8 );
     1373    READ_CODE( 4, uiCode, "bit_depth_chroma_minus8" );         repFormat->setBitDepthVpsChroma( uiCode + 8 );
     1374  }
     1375#else
    13531376#if AUXILIARY_PICTURES
    13541377  READ_CODE( 2, uiCode, "chroma_format_idc" );               repFormat->setChromaFormatVpsIdc( ChromaFormat(uiCode) );
     
    13671390  READ_CODE( 4, uiCode, "bit_depth_luma_minus8" );           repFormat->setBitDepthVpsLuma  ( uiCode + 8 );
    13681391  READ_CODE( 4, uiCode, "bit_depth_chroma_minus8" );         repFormat->setBitDepthVpsChroma( uiCode + 8 );
    1369 
     1392#endif
    13701393}
    13711394#endif
Note: See TracChangeset for help on using the changeset viewer.