Changeset 732 in SHVCSoftware
- Timestamp:
- 24 Apr 2014, 02:16:43 (11 years ago)
- Location:
- branches/SHM-6-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/App/TAppDecoder/TAppDecTop.cpp
r711 r732 1292 1292 { 1293 1293 targetLsIdx = vps->getOutputLayerSetIdx( getCommonDecoderParams()->getTargetOutputLayerSetIdx() ); 1294 #if RESOLUTION_BASED_DPB 1294 1295 subDpbIdx = vps->getSubDpbAssigned( targetLsIdx, layerIdx ); 1296 #else 1297 subDpbIdx = layerIdx; 1298 #endif 1295 1299 } 1296 1300 // Assume that listOfPocs is sorted in increasing order - if not have to sort it. … … 1437 1441 for(Int i = 0; i < vps->getNumLayersInIdList( targetLsIdx ); i++) 1438 1442 { 1443 #if RESOUTION_BASED_DPB 1439 1444 maxDpbLimit.m_numPicsInLayer[i] = vps->getMaxVpsLayerDecPicBuffMinus1( targetOutputLsIdx, i, highestTId ) + 1; 1440 1445 maxDpbLimit.m_numPicsInSubDpb[vps->getSubDpbAssigned( targetLsIdx, i )] = vps->getMaxVpsDecPicBufferingMinus1( targetOutputLsIdx, vps->getSubDpbAssigned( targetLsIdx, i ), highestTId) + 1; 1446 #else 1447 maxDpbLimit.m_numPicsInSubDpb[i] = vps->getMaxVpsDecPicBufferingMinus1( targetOutputLsIdx, i, highestTId) + 1; 1448 #endif 1441 1449 } 1442 1450 // ------------------------------------- … … 1472 1480 retVal |= ( dpbStatus.m_numPicsInSubDpb[subDpbIdx] >= dpbLimit.m_numPicsInSubDpb[subDpbIdx] ); 1473 1481 1482 #if RESOLUTION_BASED_DPB 1474 1483 // Number of pictures in each layer 1475 1484 retVal |= ( dpbStatus.m_numPicsInLayer[layerIdx] >= dpbLimit.m_numPicsInLayer[layerIdx]); 1485 #endif 1476 1486 1477 1487 return retVal; … … 1550 1560 { 1551 1561 dpbStatus.m_numPicsNotDisplayedInLayer[i] = listOfPocsInEachLayer[i].size(); 1562 #if RESOLUTION_BASED_DPB 1552 1563 dpbStatus.m_numPicsInSubDpb[vps->getSubDpbAssigned(targetLsIdx,i)] += dpbStatus.m_numPicsInLayer[i]; 1564 #else 1565 dpbStatus.m_numPicsInSubDpb[i] += dpbStatus.m_numPicsInLayer[i]; 1566 #endif 1553 1567 } 1554 1568 assert( dpbStatus.m_numAUsNotDisplayed != -1 ); -
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp
r730 r732 2710 2710 return -1; // Layer not found 2711 2711 } 2712 #endif 2712 2713 #if O0164_MULTI_LAYER_HRD 2713 2714 Void TComVPS::setBspHrdParameters( UInt hrdIdx, UInt frameRate, UInt numDU, UInt bitRate, Bool randomAccess ) … … 2789 2790 } 2790 2791 #endif 2792 #if RESOLUTION_BASED_DPB 2791 2793 // RepFormat Assignment operator 2792 2794 RepFormat& RepFormat::operator= (const RepFormat &other) -
branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h
r729 r732 62 62 #define VPS_EXTN_UEV_CODING 1 ///< JCTVC-P0306: Code some syntax elements as ue(v), and remove some syntax elements that duplicate behaviour 63 63 #define CHANGE_NUMSUBDPB_IDX 1 ///< Change index of NumSubDpb from output layer set to layer set, to be more aligned with the Spec 64 #define RESOLUTION_BASED_DPB 1 ///< JCTVC-P0192: Assign layers to sub-DPBs based on the rep_format() signaled in the VPS 64 #define RESOLUTION_BASED_DPB 0 ///< JCTVC-Q0154 - remove sharing of sub-DPB across layers 65 ///< JCTVC-P0192: Assign layers to sub-DPBs based on the rep_format() signaled in the VPS 65 66 #define ALIGNED_BUMPING 1 ///< JCTVC-P0192: Align bumping of pictures in an AU 66 67 #define MAX_SUBDPBS MAX_LAYERS … … 188 189 #define MAX_ONE_RESAMPLING_DIRECT_LAYERS 1 ///< Allow maximum of one resampling process for direct reference layers 189 190 #define MOTION_RESAMPLING_CONSTRAINT 1 ///< JCTVC-N0108: Allow maximum of one motion resampling process for direct reference layers, and use motion inter-layer prediction from the same layer as texture inter-layer prediction. 190 #define EARLY_REF_PIC_MARKING 1 ///< Decoded picture marking of sub-layer non-reference pictures 191 #define EARLY_REF_PIC_MARKING 0 ///< Valencia meeting - remove early marking of inter-layer reference pictures 192 ///< Decoded picture marking of sub-layer non-reference pictures 191 193 #define N0120_MAX_TID_REF_PRESENT_FLAG 1 ///< JCTVC-N0120: max_tid_ref_pics_plus1_present_flag 192 194 #define N0120_MAX_TID_REF_CFG 1 ///< set max_tid_il_ref_pics_plus1 and max_tid_ref_present_flag in the config. file (configuration setting) -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r729 r732 2024 2024 if( !vps->getSubLayerDpbInfoPresentFlag(i, j) ) // If sub-layer DPB information is NOT present 2025 2025 { 2026 #if RESOLUTION_BASED_DPB 2026 2027 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 2028 #else 2029 for(Int k = 0; k < vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet ); k++) 2030 #endif 2027 2031 { 2028 2032 vps->setMaxVpsDecPicBufferingMinus1( i, k, j, vps->getMaxVpsDecPicBufferingMinus1( i, k, j - 1 ) ); 2029 2033 } 2030 2034 vps->setMaxVpsNumReorderPics( i, j, vps->getMaxVpsNumReorderPics( i, j - 1) ); 2035 #if RESOLUTION_BASED_DPB 2031 2036 for(Int k = 0; k < vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet ); k++) 2032 2037 { 2033 2038 vps->setMaxVpsLayerDecPicBuffMinus1( i, k, j, vps->getMaxVpsLayerDecPicBuffMinus1( i, k, j - 1)); 2034 2039 } 2040 #endif 2035 2041 vps->setMaxVpsLatencyIncreasePlus1( i, j, vps->getMaxVpsLatencyIncreasePlus1( i, j - 1 ) ); 2036 2042 } -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r705 r732 1407 1407 { 1408 1408 #if CHANGE_NUMSUBDPB_IDX 1409 #if RESOLUTION_BASED_DPB 1409 1410 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 1411 #else 1412 for(Int k = 0; k < vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet ); k++) 1413 #endif 1410 1414 #else 1411 1415 for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
Note: See TracChangeset for help on using the changeset viewer.