Changeset 760 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
30 Apr 2014, 00:44:54 (11 years ago)
Author:
seregin
Message:

add pps extension flag

Location:
branches/SHM-6-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

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

    r758 r760  
    256256  WRITE_FLAG( pcPPS->getSliceHeaderExtensionPresentFlag() ? 1 : 0, "slice_segment_header_extension_present_flag");
    257257#if P0166_MODIFIED_PPS_EXTENSION
    258   WRITE_FLAG( 1, "pps_extension_flag" );
    259   if( 1 ) //pps_extension_flag
     258  WRITE_FLAG( pcPPS->getExtensionFlag() ? 1 : 0, "pps_extension_flag" );
     259
     260  if( pcPPS->getExtensionFlag() )
    260261  {
    261262#if !POC_RESET_IDC
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r754 r760  
    11711171  }
    11721172#if SVC_EXTENSION
    1173   if (!m_layerId)
     1173  if( m_layerId > 0 )
     1174  {
     1175    m_cPPS.setListsModificationPresentFlag(true);
     1176    m_cPPS.setExtensionFlag(true);
     1177  }
     1178  else
    11741179  {
    11751180    m_cPPS.setListsModificationPresentFlag(false);
    1176   }
    1177   else
    1178   {
    1179     m_cPPS.setListsModificationPresentFlag(true);
    1180   }
    1181 
    1182   m_cPPS.setPPSId         ( m_iPPSIdCnt         );
    1183   m_cPPS.setSPSId         ( m_iSPSIdCnt         );
    1184 #endif
     1181    m_cPPS.setExtensionFlag(false);
     1182  }
     1183
     1184  m_cPPS.setPPSId( m_iPPSIdCnt );
     1185  m_cPPS.setSPSId( m_iSPSIdCnt );
    11851186#if POC_RESET_FLAG
    11861187  m_cPPS.setNumExtraSliceHeaderBits( 2 );
     
    11951196  m_cPPS.setCGSFlag( m_nCGSFlag );
    11961197#endif
     1198#endif //SVC_EXTENSION
    11971199}
    11981200
Note: See TracChangeset for help on using the changeset viewer.