Changeset 1144 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 7 Jul 2015, 23:37:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1141 r1144 1505 1505 } 1506 1506 } 1507 #if ISLICE_TYPE_NUMDIR 1508 if( pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA && (m_pcEncTop->getNumDirectRefLayers() == 0) ) 1509 #else 1510 if( pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) 1511 #endif 1512 { 1513 pcSlice->setSliceType(I_SLICE); 1514 } 1515 else if( !m_pcEncTop->getElRapSliceTypeB() ) 1516 { 1517 if( (pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && 1518 (pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA) && 1519 pcSlice->getSliceType() == B_SLICE ) 1507 1508 if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) 1509 { 1510 if( pcSlice->getActiveNumILRRefIdx() == 0 && m_pcEncTop->getNumDirectRefLayers() == 0 ) 1511 { 1512 pcSlice->setSliceType(I_SLICE); 1513 } 1514 else if( !m_pcEncTop->getElRapSliceTypeB() && pcSlice->getSliceType() == B_SLICE ) 1520 1515 { 1521 1516 pcSlice->setSliceType(P_SLICE); 1522 1517 } 1523 } 1518 } 1524 1519 } 1525 1520 #else
Note: See TracChangeset for help on using the changeset viewer.