Changeset 1210 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 8 Jul 2015, 22:47:39 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp ¶
r1207 r1210 1285 1285 READ_CODE(sps->getBitsForPOC(), uiCode, "pic_order_cnt_lsb"); 1286 1286 #if SVC_EXTENSION 1287 #if POC_RESET_IDC_DECODER1288 1287 pcSlice->setPicOrderCntLsb( uiCode ); 1289 #endif 1288 1290 1289 iPOClsb = uiCode; 1291 1290 #else … … 1320 1319 #if SVC_EXTENSION 1321 1320 } 1322 #if POC_RESET_IDC_DECODER1323 1321 else 1324 1322 { 1325 1323 pcSlice->setPicOrderCntLsb( 0 ); 1326 1324 } 1327 #endif 1325 1328 1326 if( !pcSlice->getIdrPicFlag() ) 1329 1327 { … … 1988 1986 } 1989 1987 1990 #if !POC_RESET_IDC_DECODER1991 Int maxPocLsb = 1 << pcSlice->getSPS()->getBitsForPOC();1992 #endif1993 1988 if( pcSlice->getPocMsbValPresentFlag() ) 1994 1989 { 1995 1990 READ_UVLC( uiCode, "poc_msb_cycle_val"); pcSlice->setPocMsbVal( uiCode ); 1996 1997 #if !POC_RESET_IDC_DECODER1998 // Update POC of the slice based on this MSB val1999 Int pocLsb = pcSlice->getPOC() % maxPocLsb;2000 pcSlice->setPOC((pcSlice->getPocMsbVal() * maxPocLsb) + pocLsb);2001 }2002 else2003 {2004 pcSlice->setPocMsbVal( pcSlice->getPOC() / maxPocLsb );2005 #endif2006 1991 } 2007 1992 -
TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp ¶
r1208 r1210 108 108 m_firstPicInLayerDecodedFlag = false; 109 109 #endif 110 #if POC_RESET_IDC_DECODER111 110 m_parseIdc = -1; 112 111 m_lastPocPeriodId = -1; 113 112 m_prevPicOrderCnt = 0; 114 #endif115 113 #if Q0048_CGS_3D_ASYMLUT 116 114 m_pColorMappedPic = NULL; … … 863 861 } 864 862 865 #if POC_RESET_IDC_DECODER863 #if SVC_POC 866 864 if( m_parseIdc != -1 ) // Second pass for a POC resetting picture 867 865 { … … 956 954 957 955 #if ALIGNED_BUMPING 958 #if POC_RESET_IDC_DECODER959 956 UInt affectedLayerList[MAX_LAYERS]; 960 957 Int numAffectedLayers; … … 1136 1133 } 1137 1134 } 1138 #else1139 if (bNewPOC || m_layerId!=m_uiPrevLayerId)1140 {1141 #endif1142 1135 m_apcSlicePilot->applyReferencePictureSet(m_cListPic, m_apcSlicePilot->getRPS()); 1143 1136 } 1144 #endif 1145 #if POC_RESET_IDC_DECODER 1146 if (!m_apcSlicePilot->getDependentSliceSegmentFlag() && (bNewPOC || m_layerId!=m_uiPrevLayerId || m_parseIdc == 1) && !m_bFirstSliceInSequence ) 1137 1138 if( !m_apcSlicePilot->getDependentSliceSegmentFlag() && (bNewPOC || m_layerId!=m_uiPrevLayerId || m_parseIdc == 1) && !m_bFirstSliceInSequence ) 1147 1139 #else 1148 1140 if (!m_apcSlicePilot->getDependentSliceSegmentFlag() && (bNewPOC || m_layerId!=m_uiPrevLayerId) && !m_bFirstSliceInSequence ) … … 1155 1147 } 1156 1148 1157 #if SVC_EXTENSION1158 #if POC_RESET_IDC_DECODER1159 1149 m_parseIdc = -1; 1160 #endif1161 1150 1162 1151 if( m_apcSlicePilot->getTLayer() == 0 && m_apcSlicePilot->getEnableTMVPFlag() == 0 ) … … 1181 1170 } 1182 1171 m_apcSlicePilot->setAvailableForTMVPRefFlag( true ); 1183 #endif1184 1172 1185 1173 // actual decoding starts here 1186 1174 xActivateParameterSets(); 1187 1175 1188 #if SVC_EXTENSION1189 1176 // Initialize ILRP if needed, only for the current layer 1190 1177 // ILRP intialization should go along with activation of parameters sets, 1191 1178 // although activation of parameter sets itself need not be done for each and every slice!!! 1192 1179 xInitILRP(m_apcSlicePilot); 1193 #endif1194 1180 1195 1181 if (!m_apcSlicePilot->getDependentSliceSegmentFlag()) … … 1414 1400 xGetNewPicBuffer (m_apcSlicePilot, m_pcPic); 1415 1401 1416 #if POC_RESET_IDC_DECODER1402 #if SVC_POC 1417 1403 m_pcPic->setCurrAuFlag( true ); 1418 1404 … … 2466 2452 } 2467 2453 2468 #if POC_RESET_IDC_DECODER2469 2454 Void TDecTop::markAllPicsAsNoCurrAu(TComVPS *vps) 2470 2455 { … … 2481 2466 } 2482 2467 } 2483 #endif 2468 2484 2469 #if Q0048_CGS_3D_ASYMLUT 2485 2470 Void TDecTop::initAsymLut(TComSlice *pcSlice) -
TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h ¶
r1205 r1210 150 150 Bool m_firstPicInLayerDecodedFlag; 151 151 #endif 152 #if POC_RESET_IDC_DECODER153 152 Int m_parseIdc; 154 153 Int m_lastPocPeriodId; 155 154 Int m_prevPicOrderCnt; 156 #endif157 155 #if CONFORMANCE_BITSTREAM_MODE 158 156 Bool m_confModeFlag; … … 212 210 213 211 #if SVC_EXTENSION 214 #if POC_RESET_IDC_DECODER215 212 Int getParseIdc () { return m_parseIdc; } 216 213 Void setParseIdc (Int x) { m_parseIdc = x; } … … 222 219 Int getPrevPicOrderCnt () { return m_prevPicOrderCnt; } 223 220 Void setPrevPicOrderCnt (Int const x) { m_prevPicOrderCnt = x; } 224 #endif 221 225 222 UInt getLayerId () { return m_layerId; } 226 223 Void setLayerId (UInt layer) { m_layerId = layer; }
Note: See TracChangeset for help on using the changeset viewer.