Changeset 187 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
12 May 2013, 18:11:47 (12 years ago)
Author:
seregin
Message:

enable zero number of direct references, fix for AVC base YUV input

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r185 r187  
    556556      pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA);
    557557    }
     558#if ZERO_NUM_DIRECT_LAYERS
     559    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
     560    {
     561      pcSlice->setSliceType(I_SLICE);
     562    }
     563    else
     564#endif
    558565    if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() )
    559566    {
     
    657664
    658665#if REF_IDX_FRAMEWORK
     666#if ZERO_NUM_DIRECT_LAYERS
     667    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
     668#else
    659669    if(m_layerId > 0)
     670#endif
    660671    {
    661672#if JCTVC_M0458_INTERLAYER_RPS_SIG
     
    690701
    691702#if SVC_EXTENSION     
     703#if ZERO_NUM_DIRECT_LAYERS
     704    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
     705#else
    692706    if(m_layerId > 0)
     707#endif
    693708    {
    694709#if !IDR_ALIGNMENT
     
    723738    //  Set reference list
    724739#if REF_IDX_FRAMEWORK
     740#if ZERO_NUM_DIRECT_LAYERS
     741    if(m_layerId ==  0 || ( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 ) )
     742#else
    725743    if(m_layerId ==  0)
     744#endif
    726745    {
    727746      pcSlice->setRefPicList( rcListPic);
     
    731750#endif
    732751#if REF_IDX_FRAMEWORK
     752#if ZERO_NUM_DIRECT_LAYERS
     753    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
     754#else
    733755    if(m_layerId > 0)
     756#endif
    734757    {
    735758      m_pcEncTop->setILRPic(pcPic);
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r175 r187  
    11931193  if( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() <= 0 )
    11941194  {
     1195#if ZERO_NUM_DIRECT_LAYERS
     1196    return (TEncTop *)getLayerEnc( 0 );
     1197#else
    11951198    return NULL;
     1199#endif
    11961200  }
    11971201
Note: See TracChangeset for help on using the changeset viewer.