Changeset 1107 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 6 Jul 2015, 21:01:55 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 3 edited
-
TDecCAVLC.cpp (modified) (2 diffs)
-
TDecTop.cpp (modified) (12 diffs)
-
TDecTop.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1105 r1107 1475 1475 for(Int kk = 0; kk < pcSlice->getVPS()->getNumLayersInIdList(layerSetIdxForOutputLayerSet); kk++) 1476 1476 { 1477 #if R0235_SMALLEST_LAYER_ID1478 1477 if( pcSlice->getVPS()->getNecessaryLayerFlag(ii, kk) && pcSlice->getLayerId() == pcSlice->getVPS()->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, kk) ) 1479 #else1480 if(pcSlice->getLayerId() == pcSlice->getVPS()->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, kk))1481 #endif1482 1478 { 1483 1479 chkAssert=1; … … 3102 3098 //If OpTid of the output operation point is equal to vps_max_sub_layer_minus1, the conformance is indicated by general_profile_idc being equal to 7 or general_profile_compatibility_flag[ 7 ] being equal to 1 3103 3099 //The following assert may be updated / upgraded to take care of general_profile_compatibility_flag. 3104 #if R0235_SMALLEST_LAYER_ID 3100 3105 3101 // The assertion below is not valid for independent non-base layers 3106 3102 if (vps->getNumAddLayerSets() == 0) 3107 3103 { 3108 #endif 3109 if( j > 0 && vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j) != 0 && vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j - 1) != 0 && vps->getNecessaryLayerFlag(i, j-1) ) 3110 { 3111 assert(vps->getPTL(vps->getProfileLevelTierIdx(i, j))->getGeneralPTL()->getProfileIdc() == vps->getPTL(vps->getProfileLevelTierIdx(i, j - 1))->getGeneralPTL()->getProfileIdc() || 3112 vps->getPTL(vps->getProfileLevelTierIdx(i, j - 1))->getGeneralPTL()->getProfileCompatibilityFlag(vps->getPTL(vps->getProfileLevelTierIdx(i, j))->getGeneralPTL()->getProfileIdc()) || 3113 vps->getPTL(vps->getProfileLevelTierIdx(i, j))->getGeneralPTL()->getProfileCompatibilityFlag(vps->getPTL(vps->getProfileLevelTierIdx(i, j - 1))->getGeneralPTL()->getProfileIdc()) ); 3114 } 3115 #if R0235_SMALLEST_LAYER_ID 3116 } 3117 #endif 3104 if( j > 0 && vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j) != 0 && vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j - 1) != 0 && vps->getNecessaryLayerFlag(i, j-1) ) 3105 { 3106 assert(vps->getPTL(vps->getProfileLevelTierIdx(i, j))->getGeneralPTL()->getProfileIdc() == vps->getPTL(vps->getProfileLevelTierIdx(i, j - 1))->getGeneralPTL()->getProfileIdc() || 3107 vps->getPTL(vps->getProfileLevelTierIdx(i, j - 1))->getGeneralPTL()->getProfileCompatibilityFlag(vps->getPTL(vps->getProfileLevelTierIdx(i, j))->getGeneralPTL()->getProfileIdc()) || 3108 vps->getPTL(vps->getProfileLevelTierIdx(i, j))->getGeneralPTL()->getProfileCompatibilityFlag(vps->getPTL(vps->getProfileLevelTierIdx(i, j - 1))->getGeneralPTL()->getProfileIdc()) ); 3109 } 3110 } 3118 3111 #endif 3119 3112 } -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1106 r1107 91 91 #if SVC_EXTENSION 92 92 m_layerId = 0; 93 #if R0235_SMALLEST_LAYER_ID94 93 m_smallestLayerId = 0; 95 #endif96 94 #if AVC_BASE 97 95 m_pBLReconFile = NULL; … … 736 734 #if OUTPUT_LAYER_SET_INDEX 737 735 // Following check should go wherever the VPS is activated 738 #if R0235_SMALLEST_LAYER_ID739 736 if (!m_apcSlicePilot->getVPS()->getBaseLayerAvailableFlag()) 740 737 { … … 747 744 } 748 745 } 749 #else750 checkValueOfTargetOutputLayerSetIdx( m_apcSlicePilot->getVPS());751 #endif752 746 #endif 753 747 m_apcSlicePilot->initSlice( nalu.m_layerId ); … … 876 870 #if NO_OUTPUT_OF_PRIOR_PICS 877 871 #if NO_CLRAS_OUTPUT_FLAG 878 #if R0235_SMALLEST_LAYER_ID879 872 if (m_layerId == m_smallestLayerId && m_apcSlicePilot->getRapPicFlag()) 880 #else881 if (m_layerId == 0 && m_apcSlicePilot->getRapPicFlag() )882 #endif883 873 { 884 874 if (m_bFirstSliceInSequence) … … 912 902 } 913 903 914 #if R0235_SMALLEST_LAYER_ID915 904 m_apcSlicePilot->decodingRefreshMarking( m_cListPic, m_noClrasOutputFlag, m_smallestLayerId ); 916 #else917 m_apcSlicePilot->decodingRefreshMarking( m_cListPic, m_noClrasOutputFlag );918 #endif919 905 #endif 920 906 … … 2067 2053 m_cEntropyDecoder.decodeVPS( vps ); 2068 2054 m_parameterSetManagerDecoder.storePrefetchedVPS(vps); 2069 #if R0235_SMALLEST_LAYER_ID2055 #if SVC_EXTENSION 2070 2056 checkValueOfTargetOutputLayerSetIdx(vps); 2071 2057 #endif … … 2243 2229 TComCodingStatistics::IncrementStatisticEP(STATS__BYTE_ALIGNMENT_BITS,nalu.m_Bitstream->readByteAlignment(),0); 2244 2230 #endif 2231 #if SVC_EXTENSION 2245 2232 #if Q0177_EOS_CHECKS 2246 2233 m_isLastNALWasEos = false; … … 2265 2252 } 2266 2253 #endif 2267 #if R0235_SMALLEST_LAYER_ID2268 2254 xDeriveSmallestLayerId(m_parameterSetManagerDecoder.getPrefetchedVPS(0)); 2269 2255 #endif … … 2696 2682 { 2697 2683 // Check if the target decoded layer is the highest layer in the list 2698 #if R0235_SMALLEST_LAYER_ID2699 2684 assert( params->getTargetOutputLayerSetIdx() < vps->getNumOutputLayerSets() ); 2700 #endif2701 2685 #if !CONFORMANCE_BITSTREAM_MODE 2702 2686 assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() ); … … 2705 2689 #if !CONFORMANCE_BITSTREAM_MODE 2706 2690 assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1); 2707 #endif2708 2709 #if !R0235_SMALLEST_LAYER_ID2710 Bool layerSetMatchFlag = true;2711 for(Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++)2712 {2713 if( vps->getLayerSetLayerIdList( layerSetIdx, j ) != j )2714 {2715 layerSetMatchFlag = false;2716 break;2717 }2718 }2719 2720 assert(layerSetMatchFlag); // Signaled output layer set index does not match targetOutputLayerId.2721 2691 #endif 2722 2692 … … 2803 2773 Void TDecTop::xCheckLayerReset() 2804 2774 { 2805 #if R0235_SMALLEST_LAYER_ID2806 2775 if (m_apcSlicePilot->isIRAP() && m_layerId > m_smallestLayerId) 2807 #else2808 if (m_apcSlicePilot->isIRAP() && m_layerId > 0)2809 #endif2810 2776 { 2811 2777 Bool layerResetFlag; … … 2891 2857 #endif 2892 2858 2893 #if R0235_SMALLEST_LAYER_ID2859 #if SVC_EXTENSION 2894 2860 Void TDecTop::xDeriveSmallestLayerId(TComVPS* vps) 2895 2861 { -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1103 r1107 133 133 UInt m_numLayer; 134 134 TDecTop** m_ppcTDecTop; 135 #if R0235_SMALLEST_LAYER_ID136 135 UInt m_smallestLayerId; 137 #endif138 136 #if P0297_VPS_POC_LSB_ALIGNED_FLAG 139 137 Bool m_pocResettingFlag; … … 245 243 Void setLayerDec (TDecTop **p) { m_ppcTDecTop = p; } 246 244 TDecTop* getLayerDec (UInt layerId) { return m_ppcTDecTop[layerId]; } 247 #if R0235_SMALLEST_LAYER_ID248 245 Void xDeriveSmallestLayerId(TComVPS* vps); 249 #endif250 246 #if VPS_EXTN_DIRECT_REF_LAYERS 251 247 TDecTop* getRefLayerDec (UInt refLayerIdx); … … 288 284 #if CONFORMANCE_BITSTREAM_MODE 289 285 std::vector<TComPic>* getConfListPic() {return &m_confListPic; } 290 // std::string const getDecodedYuvLayerFileName(Int layerId) { return m_decodedYuvLayerFileName[layerId]; }291 286 Bool const getConfModeFlag() { return m_confModeFlag; } 292 287 Void setConfModeFlag(Bool x) { m_confModeFlag = x; }
Note: See TracChangeset for help on using the changeset viewer.