Changeset 1050 in SHVCSoftware for branches/SHM-dev/source
- Timestamp:
- 3 Mar 2015, 23:40:37 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1049 r1050 1229 1229 #if ALIGNED_BUMPING 1230 1230 // Function outputs a picture, and marks it as not needed for output. 1231 Void TAppDecTop::xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerId x, Int &pocLastDisplay, DpbStatus &dpbStatus )1231 Void TAppDecTop::xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerId, Int &pocLastDisplay, DpbStatus &dpbStatus ) 1232 1232 { 1233 1233 if ( reconFile ) … … 1242 1242 #endif 1243 1243 TComPicYuv* pPicCYuvRec = pic->getPicYuvRec(); 1244 m_acTVideoIOYuvReconFile[layerId x].write( pPicCYuvRec, m_outputColourSpaceConvert,1244 m_acTVideoIOYuvReconFile[layerId].write( pPicCYuvRec, m_outputColourSpaceConvert, 1245 1245 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(), 1246 1246 conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(), … … 1266 1266 #endif 1267 1267 #if FIX_ALIGN_BUMPING 1268 dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerId x]]--;1268 dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerId]]--; 1269 1269 #else 1270 1270 dpbStatus.m_numPicsInSubDpb[layerIdx]--; … … 1482 1482 for( Int dpbLayerCtr = 0; dpbLayerCtr < dpbStatus.m_numLayers; dpbLayerCtr++) 1483 1483 { 1484 Int layerId x= dpbStatus.m_targetDecLayerIdList[dpbLayerCtr];1484 Int layerId = dpbStatus.m_targetDecLayerIdList[dpbLayerCtr]; 1485 1485 #else 1486 1486 for( Int layerIdx = 0; layerIdx < dpbStatus.m_numLayers; layerIdx++) … … 1488 1488 #endif 1489 1489 // Check if picture with pocValue is present. 1490 it = find( listOfPocsInEachLayer[layerId x].begin(), listOfPocsInEachLayer[layerIdx].end(), pocValue );1491 if( it != listOfPocsInEachLayer[layerId x].end() ) // picture found.1492 { 1493 Int picPosition = std::distance( listOfPocsInEachLayer[layerId x].begin(), it );1490 it = find( listOfPocsInEachLayer[layerId].begin(), listOfPocsInEachLayer[layerId].end(), pocValue ); 1491 if( it != listOfPocsInEachLayer[layerId].end() ) // picture found. 1492 { 1493 Int picPosition = std::distance( listOfPocsInEachLayer[layerId].begin(), it ); 1494 1494 Int j; 1495 for(j = 0, iterPic = m_acTDecTop[layerId x].getListPic()->begin(); j < listOfPocsPositionInEachLayer[layerIdx][picPosition]; j++) // Picture to be output1495 for(j = 0, iterPic = m_acTDecTop[layerId].getListPic()->begin(); j < listOfPocsPositionInEachLayer[layerId][picPosition]; j++) // Picture to be output 1496 1496 { 1497 1497 iterPic++; … … 1499 1499 TComPic *pic = *iterPic; 1500 1500 1501 xOutputAndMarkPic( pic, m_pchReconFile[layerId x], layerIdx, m_aiPOCLastDisplay[layerIdx], dpbStatus );1501 xOutputAndMarkPic( pic, m_pchReconFile[layerId], layerId, m_aiPOCLastDisplay[layerId], dpbStatus ); 1502 1502 1503 1503 #if CONFORMANCE_BITSTREAM_MODE … … 1524 1524 #endif 1525 1525 1526 listOfPocsInEachLayer[layerId x].erase( it );1527 listOfPocsPositionInEachLayer[layerId x].erase( listOfPocsPositionInEachLayer[layerIdx].begin() + picPosition );1526 listOfPocsInEachLayer[layerId].erase( it ); 1527 listOfPocsPositionInEachLayer[layerId].erase( listOfPocsPositionInEachLayer[layerId].begin() + picPosition ); 1528 1528 #if FIX_ALIGN_BUMPING 1529 dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerId x]]--;1529 dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerId]]--; 1530 1530 #endif 1531 1531 } -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.h
r1044 r1050 110 110 Void flushAllPictures(Int layerId, Bool outputPictures); 111 111 112 Void xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerI D, Int &pocLastDisplay, DpbStatus &dpbStatus);112 Void xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerId, Int &pocLastDisplay, DpbStatus &dpbStatus); 113 113 #if POC_RESET_IDC_DECODER 114 114 Void outputAllPictures(Int layerId, Bool notOutputCurrAu);
Note: See TracChangeset for help on using the changeset viewer.