Changeset 1011 in SHVCSoftware


Ignore:
Timestamp:
3 Feb 2015, 23:44:40 (10 years ago)
Author:
seregin
Message:

fix for the ticket #55, provided by Hendry <fhendry@…>

Location:
branches/SHM-dev/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1004 r1011  
    12341234#endif
    12351235    m_acTEncTop[layer].init(isFieldCoding);
    1236 #if P0182_VPS_VUI_PS_FLAG
    1237     m_acTEncTop[layer].getVPS()->setSPSId(layer, m_acTEncTop[layer].getSPS()->getSPSId());
    1238     m_acTEncTop[layer].getVPS()->setPPSId(layer, m_acTEncTop[layer].getPPS()->getPPSId());
    1239 #endif
    12401236  }
    12411237
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1005 r1011  
    25892589    READ_FLAG(uiCode, "cross_layer_irap_aligned_flag" );
    25902590    vps->setCrossLayerIrapAlignFlag(uiCode);
     2591#endif
     2592#if O0223_PICTURE_TYPES_ALIGN_FLAG
     2593  }
     2594  else
     2595  {
     2596    vps->setCrossLayerIrapAlignFlag(true);
     2597  }
     2598#endif
    25912599#if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
    2592     if( uiCode )
    2593     {
    2594       READ_FLAG( uiCode, "all_layers_idr_aligned_flag" );
    2595       vps->setCrossLayerAlignedIdrOnlyFlag(uiCode);
    2596     }
    2597 #endif
    2598 #endif
    2599 #if O0223_PICTURE_TYPES_ALIGN_FLAG
    2600   }
    2601   else
    2602   {
    2603     vps->setCrossLayerIrapAlignFlag(true);
     2600  if( uiCode )
     2601  {
     2602    READ_FLAG( uiCode, "all_layers_idr_aligned_flag" );
     2603    vps->setCrossLayerAlignedIdrOnlyFlag(uiCode);
    26042604  }
    26052605#endif
     
    27792779  {
    27802780#if VPS_FIX_TO_MATCH_SPEC
    2781       for( i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++ )
    2782 #else
    2783       for (i = 0; i < vps->getMaxLayers(); i++)
     2781    for( i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++ )
     2782#else
     2783    for (i = 0; i < vps->getMaxLayers(); i++)
    27842784#endif
    27852785    {
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1009 r1011  
    18211821#if IRAP_ALIGN_FLAG_IN_VPS_VUI
    18221822    WRITE_FLAG(vps->getCrossLayerIrapAlignFlag(), "cross_layer_irap_aligned_flag");
    1823 #if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
    1824     if(vps->getCrossLayerIrapAlignFlag())
    1825     {
    1826        WRITE_FLAG(vps->getCrossLayerAlignedIdrOnlyFlag(), "all_layers_idr_aligned_flag");
    1827     }
    1828 #endif
    18291823#endif
    18301824#if O0223_PICTURE_TYPES_ALIGN_FLAG
    18311825  }
    1832 #endif
     1826  else
     1827  {
     1828    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
     1829  }
     1830#endif
     1831#if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
     1832  if(vps->getCrossLayerIrapAlignFlag())
     1833  {
     1834    WRITE_FLAG(vps->getCrossLayerAlignedIdrOnlyFlag(), "all_layers_idr_aligned_flag");
     1835  }
     1836#endif
     1837
    18331838  WRITE_FLAG( vps->getBitRatePresentVpsFlag(),        "bit_rate_present_vps_flag" );
    18341839  WRITE_FLAG( vps->getPicRatePresentVpsFlag(),        "pic_rate_present_vps_flag" );
     
    19161921    for (i = 0; i < vps->getMaxLayers(); i++)
    19171922#endif
    1918     for(i = 0; i < vps->getMaxLayers(); i++)
    19191923    {
    19201924      WRITE_FLAG( vps->getTilesInUseFlag(i) ? 1 : 0 , "tiles_in_use_flag[ i ]" );
Note: See TracChangeset for help on using the changeset viewer.