Changeset 1012 in SHVCSoftware


Ignore:
Timestamp:
4 Feb 2015, 00:25:57 (10 years ago)
Author:
seregin
Message:

port the fix to the ticket #55 (rev 1011)

Location:
branches/SHM-upgrade/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1006 r1012  
    40094009    READ_FLAG(uiCode, "cross_layer_irap_aligned_flag" );
    40104010    vps->setCrossLayerIrapAlignFlag(uiCode);
     4011#endif
     4012#if O0223_PICTURE_TYPES_ALIGN_FLAG
     4013  }
     4014  else
     4015  {
     4016    vps->setCrossLayerIrapAlignFlag(true);
     4017  }
     4018#endif
    40114019#if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
    4012     if( uiCode )
    4013     {
    4014       READ_FLAG( uiCode, "all_layers_idr_aligned_flag" );
    4015       vps->setCrossLayerAlignedIdrOnlyFlag(uiCode);
    4016     }
    4017 #endif
    4018 #endif
    4019 #if O0223_PICTURE_TYPES_ALIGN_FLAG
    4020   }
    4021   else
    4022   {
    4023     vps->setCrossLayerIrapAlignFlag(true);
     4020  if( uiCode )
     4021  {
     4022    READ_FLAG( uiCode, "all_layers_idr_aligned_flag" );
     4023    vps->setCrossLayerAlignedIdrOnlyFlag(uiCode);
    40244024  }
    40254025#endif
     
    41994199  {
    42004200#if VPS_FIX_TO_MATCH_SPEC
    4201       for( i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++ )
    4202 #else
    4203       for (i = 0; i < vps->getMaxLayers(); i++)
     4201    for( i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++ )
     4202#else
     4203    for (i = 0; i < vps->getMaxLayers(); i++)
    42044204#endif
    42054205    {
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1010 r1012  
    28392839#if IRAP_ALIGN_FLAG_IN_VPS_VUI
    28402840    WRITE_FLAG(vps->getCrossLayerIrapAlignFlag(), "cross_layer_irap_aligned_flag");
    2841 #if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
    2842     if(vps->getCrossLayerIrapAlignFlag())
    2843     {
    2844        WRITE_FLAG(vps->getCrossLayerAlignedIdrOnlyFlag(), "all_layers_idr_aligned_flag");
    2845     }
    2846 #endif
    28472841#endif
    28482842#if O0223_PICTURE_TYPES_ALIGN_FLAG
    28492843  }
    2850 #endif
     2844  else
     2845  {
     2846    vps->setCrossLayerIrapAlignFlag(vps->getVpsVuiPresentFlag()); // When not present, the value of cross_layer_irap_aligned_flag is inferred to be equal to vps_vui_present_flag
     2847  }
     2848#endif
     2849#if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
     2850  if(vps->getCrossLayerIrapAlignFlag())
     2851  {
     2852    WRITE_FLAG(vps->getCrossLayerAlignedIdrOnlyFlag(), "all_layers_idr_aligned_flag");
     2853  }
     2854#endif
     2855
    28512856  WRITE_FLAG( vps->getBitRatePresentVpsFlag(),        "bit_rate_present_vps_flag" );
    28522857  WRITE_FLAG( vps->getPicRatePresentVpsFlag(),        "pic_rate_present_vps_flag" );
Note: See TracChangeset for help on using the changeset viewer.