Changeset 806 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder
- Timestamp:
- 20 Jun 2014, 21:17:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r804 r806 610 610 TComOutputBitstream* pcSubstreamsOut = NULL; 611 611 #if Q0108_TSA_STSA 612 Int b_TSTA_flag= 0;612 Int flagTSTA = 0; 613 613 #endif 614 614 … … 1559 1559 } 1560 1560 } 1561 #if 1561 #if Q0108_TSA_STSA 1562 1562 else if( ( pcSlice->getTLayer() == 0 && pcSlice->getLayerId() > 0) // only for enhancement layer and with temporal layer 0 1563 1563 && !( pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_RADL_N … … 1572 1572 { 1573 1573 Bool isSTSA=true; 1574 for(Int ii=iGOPid+1; (ii<m_pcCfg->getGOPSize() && isSTSA==true);ii++)1574 for(Int ii=iGOPid+1; ii < m_pcCfg->getGOPSize() && isSTSA; ii++) 1575 1575 { 1576 1576 Int lTid= m_pcCfg->getGOPEntry(ii).m_temporalId; … … 1578 1578 { 1579 1579 TComReferencePictureSet* nRPS = pcSlice->getSPS()->getRPSList()->getReferencePictureSet(ii); 1580 for(Int jj=0; jj<nRPS->getNumberOfPictures();jj++)1580 for(Int jj=0; jj<nRPS->getNumberOfPictures(); jj++) 1581 1581 { 1582 1582 if(nRPS->getUsed(jj)) … … 1584 1584 Int tPoc=m_pcCfg->getGOPEntry(ii).m_POC+nRPS->getDeltaPOC(jj); 1585 1585 Int kk=0; 1586 for(kk=0; kk<m_pcCfg->getGOPSize();kk++)1586 for(kk=0; kk<m_pcCfg->getGOPSize(); kk++) 1587 1587 { 1588 1588 if(m_pcCfg->getGOPEntry(kk).m_POC==tPoc) 1589 { 1589 1590 break; 1591 } 1590 1592 } 1591 1593 Int tTid=m_pcCfg->getGOPEntry(kk).m_temporalId; 1592 1594 if(tTid >= pcSlice->getTLayer()) 1593 1595 { 1594 isSTSA =false;1596 isSTSA = false; 1595 1597 break; 1596 1598 } … … 1661 1663 { 1662 1664 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_STSA_N); 1663 b_TSTA_flag= 1;1665 flagTSTA = 1; 1664 1666 } 1665 1667 else 1666 1668 { 1667 1669 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_STSA_R); 1668 b_TSTA_flag= 1;1670 flagTSTA = 1; 1669 1671 } 1670 1672 #endif … … 1684 1686 { 1685 1687 #if POC_RESET_FLAG || POC_RESET_IDC_ENCODER 1686 if ( pocCurr > 0 1688 if ( pocCurr > 0 && pcSlice->isRADL() && pcPic->getSlice(0)->getBaseColPic(pcPic->getSlice(0)->getInterLayerPredLayerIdc(0))->getSlice(0)->isRASL()) 1687 1689 #else 1688 1690 if (pcSlice->getPOC()>0 && pcSlice->isRADL() && pcPic->getSlice(0)->getBaseColPic(pcPic->getSlice(0)->getInterLayerPredLayerIdc(0))->getSlice(0)->isRASL()) … … 1692 1694 pcSlice->setInterLayerPredEnabledFlag(0); 1693 1695 } 1694 #if 1695 if( ( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) || b_TSTA_flag == 1)1696 #if Q0108_TSA_STSA 1697 if( ( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) || flagTSTA == 1 ) 1696 1698 #else 1697 1699 if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
Note: See TracChangeset for help on using the changeset viewer.