Changeset 1502 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
- Timestamp:
- 11 Dec 2015, 00:05:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1500 r1502 1225 1225 #endif 1226 1226 1227 #if SCALABLE_REXT1228 const ChromaFormat chFmt = pcSlice->getChromaFormatIdc();1229 #else1230 1227 const ChromaFormat chFmt = sps->getChromaFormatIdc(); 1231 #endif1232 1228 const UInt numValidComp=getNumberValidComponents(chFmt); 1233 1229 const Bool bChroma=(chFmt!=CHROMA_400); … … 1241 1237 pcSlice->setDependentSliceSegmentFlag(false); 1242 1238 } 1243 #if SVC_EXTENSION1244 Int numCTUs = ((pcSlice->getPicWidthInLumaSamples()+sps->getMaxCUWidth()-1)/sps->getMaxCUWidth())*((pcSlice->getPicHeightInLumaSamples()+sps->getMaxCUHeight()-1)/sps->getMaxCUHeight());1245 #else1246 1239 Int numCTUs = ((sps->getPicWidthInLumaSamples()+sps->getMaxCUWidth()-1)/sps->getMaxCUWidth())*((sps->getPicHeightInLumaSamples()+sps->getMaxCUHeight()-1)/sps->getMaxCUHeight()); 1247 #endif1248 1240 UInt sliceSegmentAddress = 0; 1249 1241 Int bitsSliceSegmentAddress = 0; … … 1832 1824 pcSlice->setSliceQp (26 + pps->getPicInitQPMinus26() + iCode); 1833 1825 1834 #if SVC_EXTENSION1835 assert( pcSlice->getSliceQp() >= -pcSlice->getQpBDOffset(CHANNEL_TYPE_LUMA) );1836 #else1837 1826 assert( pcSlice->getSliceQp() >= -sps->getQpBDOffset(CHANNEL_TYPE_LUMA) ); 1838 #endif1839 1827 assert( pcSlice->getSliceQp() <= 51 ); 1840 1828 … … 2365 2353 #endif 2366 2354 2367 #if SVC_EXTENSION2368 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffset(CHANNEL_TYPE_LUMA);2369 #else2370 2355 Int qpBdOffsetY = pcCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA); 2371 #endif2372 2356 const Int qp = (((Int) pcCU->getRefQP( uiAbsPartIdx ) + iDQp + 52 + 2*qpBdOffsetY )%(52+ qpBdOffsetY)) - qpBdOffsetY; 2373 2357 … … 2429 2413 { 2430 2414 WPScalingParam *wp; 2431 #if SCALABLE_REXT2432 const ChromaFormat chFmt = pcSlice->getChromaFormatIdc();2433 #else2434 2415 const ChromaFormat chFmt = sps->getChromaFormatIdc(); 2435 #endif2436 2416 const Int numValidComp = Int(getNumberValidComponents(chFmt)); 2437 2417 const Bool bChroma = (chFmt!=CHROMA_400); … … 2496 2476 wp[COMPONENT_Y].iWeight = (iDeltaWeight + (1<<wp[COMPONENT_Y].uiLog2WeightDenom)); 2497 2477 READ_SVLC( wp[COMPONENT_Y].iOffset, iNumRef==0?"luma_offset_l0[i]":"luma_offset_l1[i]" ); 2498 #if SVC_EXTENSION2499 Int range=sps->getSpsRangeExtension().getHighPrecisionOffsetsEnabledFlag() ? (1<<pcSlice->getBitDepth(CHANNEL_TYPE_LUMA))/2 : 128;2500 #else2501 2478 Int range=sps->getSpsRangeExtension().getHighPrecisionOffsetsEnabledFlag() ? (1<<sps->getBitDepth(CHANNEL_TYPE_LUMA))/2 : 128; 2502 #endif2503 2479 assert( wp[0].iOffset >= -range ); 2504 2480 assert( wp[0].iOffset < range ); … … 2513 2489 if ( wp[COMPONENT_Cb].bPresentFlag ) 2514 2490 { 2515 #if SVC_EXTENSION2516 Int range=sps->getSpsRangeExtension().getHighPrecisionOffsetsEnabledFlag() ? (1<<pcSlice->getBitDepth(CHANNEL_TYPE_CHROMA))/2 : 128;2517 #else2518 2491 Int range=sps->getSpsRangeExtension().getHighPrecisionOffsetsEnabledFlag() ? (1<<sps->getBitDepth(CHANNEL_TYPE_CHROMA))/2 : 128; 2519 #endif2520 2492 for ( Int j=1 ; j<numValidComp ; j++ ) 2521 2493 {
Note: See TracChangeset for help on using the changeset viewer.