Changeset 582 in SHVCSoftware for branches/SHM-5.0-dev/source/App/TAppEncoder
- Timestamp:
- 31 Jan 2014, 20:35:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/App/TAppEncoder/TAppEncTop.cpp
r580 r582 1177 1177 vps->deriveLayerIdListVariables(); 1178 1178 #endif 1179 #if RESOLUTION_BASED_DPB 1180 vps->assignSubDpbIndices(); 1181 #else 1179 1182 vps->deriveNumberOfSubDpbs(); 1183 #endif 1180 1184 // Initialize dpb_size_table() for all ouput layer sets in the VPS extension 1181 1185 for(i = 1; i < vps->getNumOutputLayerSets(); i++) … … 1191 1195 Int maxNumReorderPics = -1; 1192 1196 #if CHANGE_NUMSUBDPB_IDX 1197 #if RESOLUTION_BASED_DPB 1198 for(Int k = 0; k < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); k++) 1199 #else 1193 1200 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 1201 #endif 1194 1202 #else 1195 1203 for(Int k = 0; k < vps->getNumSubDpbs(i); k++) … … 1197 1205 { 1198 1206 Int layerId = vps->getLayerSetLayerIdList(layerSetId, k); // k-th layer in the output layer set 1207 #if RESOLUTION_BASED_DPB 1208 vps->setMaxVpsLayerDecPicBuffMinus1( i, k, j, m_acTEncTop[layerId].getMaxDecPicBuffering(j) - 1 ); 1209 // Add sub-DPB sizes of layers belonging to a sub-DPB. If a different sub-DPB size is calculated 1210 // at the encoder, modify below 1211 Int oldValue = vps->getMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j ); 1212 oldValue += vps->getMaxVpsLayerDecPicBuffMinus1( i, k, j ); 1213 vps->setMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j, oldValue ); 1214 #else 1199 1215 vps->setMaxVpsDecPicBufferingMinus1( i, k, j, m_acTEncTop[layerId].getMaxDecPicBuffering(j) - 1 ); 1216 #endif 1200 1217 maxNumReorderPics = std::max( maxNumReorderPics, m_acTEncTop[layerId].getNumReorderPics(j)); 1201 1218 }
Note: See TracChangeset for help on using the changeset viewer.