Changeset 1100 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder
- Timestamp:
- 6 Jul 2015, 20:20:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1094 r1100 1644 1644 #endif 1645 1645 #endif 1646 #if RESOLUTION_BASED_DPB1647 vps->assignSubDpbIndices();1648 #else1649 1646 vps->deriveNumberOfSubDpbs(); 1650 #endif1651 1647 vps->setOutputLayerFlag( 0, 0, 1 ); 1652 1648 … … 1747 1743 Int maxNumReorderPics = -1; 1748 1744 #if CHANGE_NUMSUBDPB_IDX 1749 #if RESOLUTION_BASED_DPB1750 for(Int k = 0; k < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); k++)1751 #else1752 1745 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 1753 #endif1754 1746 #else 1755 1747 for(Int k = 0; k < vps->getNumSubDpbs(i); k++) … … 1757 1749 { 1758 1750 Int layerId = vps->getLayerSetLayerIdList(layerSetId, k); // k-th layer in the output layer set 1759 #if RESOLUTION_BASED_DPB1760 vps->setMaxVpsLayerDecPicBuffMinus1( i, k, j, m_acTEncTop[layerId].getMaxDecPicBuffering(j) - 1 );1761 // Add sub-DPB sizes of layers belonging to a sub-DPB. If a different sub-DPB size is calculated1762 // at the encoder, modify below1763 Int oldValue = vps->getMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j );1764 oldValue += vps->getMaxVpsLayerDecPicBuffMinus1( i, k, j ) + 1;1765 vps->setMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j, oldValue );1766 #else1767 1751 vps->setMaxVpsDecPicBufferingMinus1( i, k, j, m_acTEncTop[vps->getLayerIdxInVps(layerId)].getMaxDecPicBuffering(j) - 1 ); 1768 #endif1769 1752 maxNumReorderPics = std::max( maxNumReorderPics, m_acTEncTop[vps->getLayerIdxInVps(layerId)].getNumReorderPics(j)); 1770 1753 } 1771 #if RESOLUTION_BASED_DPB1772 for(Int k = 0; k < vps->getNumSubDpbs(i); k++)1773 {1774 // Decrement m_maxVpsDecPicBufferingMinus11775 Int oldValue = vps->getMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j );1776 vps->setMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j, oldValue - 1 );1777 }1778 #endif1779 1754 vps->setMaxVpsNumReorderPics(i, j, maxNumReorderPics); 1780 1755 vps->determineSubDpbInfoFlags();
Note: See TracChangeset for help on using the changeset viewer.