Changeset 427 in SHVCSoftware


Ignore:
Timestamp:
10 Oct 2013, 08:21:30 (11 years ago)
Author:
qualcomm
Message:

N0147 : setting based on intraPeriod of dependent layers

Location:
branches/SHM-3.1-dev/source
Files:
4 edited

Legend:

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

    r425 r427  
    10691069#endif
    10701070#if N0147_IRAP_ALIGN_FLAG   
    1071     vps->setCrossLayerIrapAlignFlag(maxDirectRefLayers == 0 ? false : true);
     1071    vps->setCrossLayerIrapAlignFlag(true);
     1072    for(UInt layerCtr = 1;layerCtr <= vps->getMaxLayers() - 1; layerCtr++)
     1073    {
     1074      for(Int refLayerCtr = 0; refLayerCtr < layerCtr; refLayerCtr++)
     1075      {
     1076        if (vps->getDirectDependencyFlag( layerCtr, refLayerCtr))
     1077        {         
     1078          if(m_acTEncTop[layerCtr].getIntraPeriod() !=  m_acTEncTop[refLayerCtr].getIntraPeriod())
     1079          {
     1080            vps->setCrossLayerIrapAlignFlag(false);
     1081          }
     1082        }
     1083      }
     1084    }   
    10721085#endif
    10731086#if M0040_ADAPTIVE_RESOLUTION_CHANGE
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r426 r427  
    10831083  }
    10841084
    1085   for( Int i = 0; i < vps->getNumViews(); i++ )
     1085  for( i = 0; i < vps->getNumViews(); i++ )
    10861086  {
    10871087    READ_CODE( vps->getViewIdLenMinus1( ) + 1, uiCode, "view_id_val[i]" ); vps->setViewIdVal( i, uiCode );
     
    15531553  {
    15541554#if POC_RESET_FLAG
    1555     Int i = 0;
    1556     if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > i)
     1555    Int iBits = 0;
     1556    if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits)
    15571557    {
    15581558      READ_FLAG(uiCode, "poc_reset_flag");      rpcSlice->setPocResetFlag( uiCode ? true : false );
    1559       i++;
    1560     }
    1561     if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > i)
     1559      iBits++;
     1560    }
     1561    if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits)
    15621562    {
    15631563      READ_FLAG(uiCode, "discardable_flag"); // ignored
    1564       i++;
    1565     }
    1566     for (; i < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)
     1564      iBits++;
     1565    }
     1566    for (; iBits < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); iBits++)
    15671567    {
    15681568      READ_FLAG(uiCode, "slice_reserved_undetermined_flag[]"); // ignored
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r426 r427  
    880880  }
    881881
    882   for( Int i = 0; i < vps->getNumViews(); i++ )
     882  for( i = 0; i < vps->getNumViews(); i++ )
    883883  {
    884884    WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLenMinus1( ) + 1, "view_id_val[i]" );
     
    12201220
    12211221#if POC_RESET_FLAG
    1222     Int i = 0;
    1223     if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )
     1222    Int iBits = 0;
     1223    if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits )
    12241224    {
    12251225      WRITE_FLAG( pcSlice->getPocResetFlag(), "poc_reset_flag" );
    1226       i++;
    1227     }
    1228     if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )
     1226      iBits++;
     1227    }
     1228    if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits )
    12291229    {
    12301230      assert(!!"discardable_flag");
    12311231      WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag");
    1232       i++;
    1233     }
    1234     for ( ; i < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)
     1232      iBits++;
     1233    }
     1234    for ( ; iBits < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); iBits++)
    12351235    {
    12361236      assert(!!"slice_reserved_undetermined_flag[]");
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r423 r427  
    777777          TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(0)->getListPic();
    778778          TComPic* picLayer0 = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() );
    779           if( picLayer0->getSlice(0)->isIRAP() && picLayer0)
     779          if(picLayer0)
    780780          {
    781781            pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType());
Note: See TracChangeset for help on using the changeset viewer.