Changeset 1289 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 18 Jul 2015, 00:52:46 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 4 edited
-
TDecCu.cpp (modified) (15 diffs)
-
TDecCu.h (modified) (1 diff)
-
TDecSbac.cpp (modified) (10 diffs)
-
TDecTop.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.cpp
r1287 r1289 204 204 205 205 //! decode CU block recursively 206 Void TDecCu::xDecodeCU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool &isLastCtuOfSliceSegment) 207 { 208 TComPic* pcPic = pcCU->getPic(); 206 Void TDecCu::xDecodeCU( TComDataCU*const pcCU, const UInt uiAbsPartIdx, const UInt uiDepth, Bool &isLastCtuOfSliceSegment) 207 { 208 TComPic* pcPic = pcCU->getPic(); 209 const TComSPS &sps = pcPic->getPicSym()->getSPS(); 210 const TComPPS &pps = pcPic->getPicSym()->getPPS(); 211 const UInt maxCuWidth = sps.getMaxCUWidth(); 212 const UInt maxCuHeight= sps.getMaxCUHeight(); 209 213 UInt uiCurNumParts = pcPic->getNumPartitionsInCtu() >> (uiDepth<<1); 210 214 UInt uiQNumParts = uiCurNumParts>>2; 211 215 216 212 217 Bool bBoundary = false; 213 218 UInt uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ]; 214 UInt uiRPelX = uiLPelX + ( g_uiMaxCUWidth>>uiDepth) - 1;219 UInt uiRPelX = uiLPelX + (maxCuWidth>>uiDepth) - 1; 215 220 UInt uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ]; 216 UInt uiBPelY = uiTPelY + ( g_uiMaxCUHeight>>uiDepth) - 1;217 218 TComSlice * pcSlice = pcCU->getPic()->getSlice(pcCU->getPic()->getCurrSliceIdx()); 219 220 #if SVC_EXTENSION 221 UInt uiBPelY = uiTPelY + (maxCuHeight>>uiDepth) - 1; 222 223 #if SVC_EXTENSION 224 TComSlice * pcSlice = pcPic->getSlice(pcPic->getCurrSliceIdx()); 225 221 226 if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) ) 222 227 #else 223 if( ( uiRPelX < pcSlice->getSPS()->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getSPS()->getPicHeightInLumaSamples() ) )228 if( ( uiRPelX < sps.getPicWidthInLumaSamples() ) && ( uiBPelY < sps.getPicHeightInLumaSamples() ) ) 224 229 #endif 225 230 { … … 234 239 { 235 240 UInt uiIdx = uiAbsPartIdx; 236 if( ( g_uiMaxCUWidth>>uiDepth) == (g_uiMaxCUWidth >> ( pcCU->getSlice()->getPPS()->getMaxCuDQPDepth())) && pcCU->getSlice()->getPPS()->getUseDQP())241 if( (maxCuWidth>>uiDepth) == (maxCuWidth >> ( pps.getMaxCuDQPDepth())) && pps.getUseDQP()) // TODO: tidy expression 237 242 { 238 243 setdQPFlag(true); … … 240 245 } 241 246 242 if( ( g_uiMaxCUWidth>>uiDepth) == (g_uiMaxCUWidth >> ( pcCU->getSlice()->getPPS()->getMaxCuChromaQpAdjDepth())) && pcCU->getSlice()->getUseChromaQpAdj() )247 if( (maxCuWidth>>uiDepth) == (maxCuWidth >> ( pps.getMaxCuChromaQpAdjDepth())) && pcCU->getSlice()->getUseChromaQpAdj() ) // TODO: tidy expression 243 248 { 244 249 setIsChromaQpAdjCoded(true); … … 253 258 if ( !isLastCtuOfSliceSegment && ( uiLPelX < pcCU->getSlice()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getPicHeightInLumaSamples() ) ) 254 259 #else 255 if ( !isLastCtuOfSliceSegment && ( uiLPelX < pcCU->getSlice()->getSPS()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getSPS()->getPicHeightInLumaSamples() ) )260 if ( !isLastCtuOfSliceSegment && ( uiLPelX < sps.getPicWidthInLumaSamples() ) && ( uiTPelY < sps.getPicHeightInLumaSamples() ) ) 256 261 #endif 257 262 { … … 265 270 uiIdx += uiQNumParts; 266 271 } 267 if( ( g_uiMaxCUWidth>>uiDepth) == (g_uiMaxCUWidth >> ( pcCU->getSlice()->getPPS()->getMaxCuDQPDepth())) && pcCU->getSlice()->getPPS()->getUseDQP())272 if( (maxCuWidth>>uiDepth) == (maxCuWidth >> ( pps.getMaxCuDQPDepth())) && pps.getUseDQP()) // TODO: tidy expression 268 273 { 269 274 if ( getdQPFlag() ) … … 276 281 } 277 282 278 if( ( g_uiMaxCUWidth>>uiDepth) >= (g_uiMaxCUWidth >> ( pcCU->getSlice()->getPPS()->getMaxCuDQPDepth())) && pcCU->getSlice()->getPPS()->getUseDQP())283 if( (maxCuWidth>>uiDepth) >= (maxCuWidth >> ( pps.getMaxCuDQPDepth())) && pps.getUseDQP()) // TODO: tidy expression 279 284 { 280 285 setdQPFlag(true); … … 282 287 } 283 288 284 if( ( g_uiMaxCUWidth>>uiDepth) >= (g_uiMaxCUWidth >> ( pcCU->getSlice()->getPPS()->getMaxCuChromaQpAdjDepth())) && pcCU->getSlice()->getUseChromaQpAdj() )289 if( (maxCuWidth>>uiDepth) >= (maxCuWidth >> ( pps.getMaxCuChromaQpAdjDepth())) && pcCU->getSlice()->getUseChromaQpAdj() ) // TODO: tidy expression 285 290 { 286 291 setIsChromaQpAdjCoded(true); 287 292 } 288 293 289 if (p cCU->getSlice()->getPPS()->getTransquantBypassEnableFlag())294 if (pps.getTransquantBypassEnableFlag()) 290 295 { 291 296 m_pcEntropyDecoder->decodeCUTransquantBypassFlag( pcCU, uiAbsPartIdx, uiDepth ); … … 393 398 { 394 399 TComPic* pcPic = pCtu->getPic(); 400 TComSlice * pcSlice = pCtu->getSlice(); 401 const TComSPS &sps=*(pcSlice->getSPS()); 395 402 396 403 Bool bBoundary = false; 397 404 UInt uiLPelX = pCtu->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ]; 398 UInt uiRPelX = uiLPelX + ( g_uiMaxCUWidth>>uiDepth) - 1;405 UInt uiRPelX = uiLPelX + (sps.getMaxCUWidth()>>uiDepth) - 1; 399 406 UInt uiTPelY = pCtu->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ]; 400 UInt uiBPelY = uiTPelY + (g_uiMaxCUHeight>>uiDepth) - 1; 401 402 TComSlice * pcSlice = pCtu->getPic()->getSlice(pCtu->getPic()->getCurrSliceIdx()); 407 UInt uiBPelY = uiTPelY + (sps.getMaxCUHeight()>>uiDepth) - 1; 403 408 404 409 #if SVC_EXTENSION 405 410 if( ( uiRPelX >= pcSlice->getPicWidthInLumaSamples() ) || ( uiBPelY >= pcSlice->getPicHeightInLumaSamples() ) ) 406 411 #else 407 if( ( uiRPelX >= pcSlice->getSPS()->getPicWidthInLumaSamples() ) || ( uiBPelY >= pcSlice->getSPS()->getPicHeightInLumaSamples() ) )412 if( ( uiRPelX >= sps.getPicWidthInLumaSamples() ) || ( uiBPelY >= sps.getPicHeightInLumaSamples() ) ) 408 413 #endif 409 414 { … … 424 429 if( ( uiLPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiTPelY < pcSlice->getPicHeightInLumaSamples() ) ) 425 430 #else 426 if( ( uiLPelX < pcSlice->getSPS()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcSlice->getSPS()->getPicHeightInLumaSamples() ) )431 if( ( uiLPelX < sps.getPicWidthInLumaSamples() ) && ( uiTPelY < sps.getPicHeightInLumaSamples() ) ) 427 432 #endif 428 433 { … … 534 539 535 540 TComDataCU *pcCU = rTu.getCU(); 541 const TComSPS &sps=*(pcCU->getSlice()->getSPS()); 536 542 const UInt uiAbsPartIdx=rTu.GetAbsPartIdxTU(); 537 543 … … 649 655 const Int clipbd = pcCU->getSlice()->getBitDepth(toChannelType(compID)); 650 656 #else 651 const Int clipbd = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID));657 const Int clipbd = sps.getBitDepth(toChannelType(compID)); 652 658 #endif 653 659 #if O0043_BEST_EFFORT_DECODING 654 const Int bitDepthDelta = pcCU->getSlice()->getSPS()->getStreamBitDepth(toChannelType(compID)) - clipbd;660 const Int bitDepthDelta = sps.getStreamBitDepth(toChannelType(compID)) - clipbd; 655 661 #endif 656 662 … … 836 842 const UInt uiPcmLeftShiftBit = pcCU->getSlice()->getBitDepth(toChannelType(compID)) - pcCU->getSlice()->getSPS()->getPCMBitDepth(toChannelType(compID)); 837 843 #else 838 const UInt uiPcmLeftShiftBit = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)) - pcCU->getSlice()->getSPS()->getPCMBitDepth(toChannelType(compID)); 844 const TComSPS &sps = *(pcCU->getSlice()->getSPS()); 845 const UInt uiPcmLeftShiftBit = sps.getBitDepth(toChannelType(compID)) - sps.getPCMBitDepth(toChannelType(compID)); 839 846 #endif 840 847 … … 859 866 Void TDecCu::xReconPCM( TComDataCU* pcCU, UInt uiDepth ) 860 867 { 868 const UInt maxCuWidth = pcCU->getSlice()->getSPS()->getMaxCUWidth(); 869 const UInt maxCuHeight = pcCU->getSlice()->getSPS()->getMaxCUHeight(); 861 870 for (UInt ch=0; ch < pcCU->getPic()->getNumberValidComponents(); ch++) 862 871 { 863 872 const ComponentID compID = ComponentID(ch); 864 const UInt width = ( g_uiMaxCUWidth >>(uiDepth+m_ppcYuvResi[uiDepth]->getComponentScaleX(compID)));865 const UInt height = ( g_uiMaxCUHeight>>(uiDepth+m_ppcYuvResi[uiDepth]->getComponentScaleY(compID)));873 const UInt width = (maxCuWidth >>(uiDepth+m_ppcYuvResi[uiDepth]->getComponentScaleX(compID))); 874 const UInt height = (maxCuHeight>>(uiDepth+m_ppcYuvResi[uiDepth]->getComponentScaleY(compID))); 866 875 const UInt stride = m_ppcYuvResi[uiDepth]->getStride(compID); 867 876 Pel * pPCMChannel = pcCU->getPCMSample(compID); … … 878 887 { 879 888 const ChromaFormat format = pCU->getPic()->getChromaFormat(); 880 const UInt numValidComp=getNumberValidComponents(format); 889 const UInt numValidComp = getNumberValidComponents(format); 890 const UInt maxCuWidth = pCU->getSlice()->getSPS()->getMaxCUWidth(); 891 const UInt maxCuHeight = pCU->getSlice()->getSPS()->getMaxCUHeight(); 881 892 882 893 for (UInt componentIndex = 0; componentIndex < numValidComp; componentIndex++) … … 884 895 const ComponentID component = ComponentID(componentIndex); 885 896 886 const UInt width = g_uiMaxCUWidth >> (depth + getComponentScaleX(component, format));887 const UInt height = g_uiMaxCUHeight >> (depth + getComponentScaleY(component, format));897 const UInt width = maxCuWidth >> (depth + getComponentScaleX(component, format)); 898 const UInt height = maxCuHeight >> (depth + getComponentScaleY(component, format)); 888 899 889 900 Pel *source = m_ppcYuvReco[depth]->getAddr(component, 0, width); -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.h
r1263 r1289 106 106 protected: 107 107 108 Void xDecodeCU ( TComDataCU* pcCU, UInt uiAbsPartIdx,UInt uiDepth, Bool &isLastCtuOfSliceSegment);108 Void xDecodeCU ( TComDataCU* const pcCU, const UInt uiAbsPartIdx, const UInt uiDepth, Bool &isLastCtuOfSliceSegment); 109 109 Void xFinishDecodeCU ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool &isLastCtuOfSliceSegment); 110 110 Bool xDecodeSliceEnd ( TComDataCU* pcCU, UInt uiAbsPartIdx ); -
branches/SHM-dev/source/Lib/TLibDecoder/TDecSbac.cpp
r1287 r1289 371 371 { 372 372 Bool bIpcmFlag = true; 373 const TComSPS &sps=*(pcCU->getSlice()->getSPS()); 373 374 374 375 pcCU->setPartSizeSubParts ( SIZE_2Nx2N, uiAbsPartIdx, uiDepth ); 375 pcCU->setSizeSubParts ( g_uiMaxCUWidth>>uiDepth, g_uiMaxCUHeight>>uiDepth, uiAbsPartIdx, uiDepth );376 pcCU->setSizeSubParts ( sps.getMaxCUWidth()>>uiDepth, sps.getMaxCUHeight()>>uiDepth, uiAbsPartIdx, uiDepth ); 376 377 pcCU->setTrIdxSubParts ( 0, uiAbsPartIdx, uiDepth ); 377 378 pcCU->setIPCMFlagSubParts ( bIpcmFlag, uiAbsPartIdx, uiDepth ); … … 439 440 pcCU->setPredModeSubParts( MODE_INTER, uiAbsPartIdx, uiDepth ); 440 441 pcCU->setPartSizeSubParts( SIZE_2Nx2N, uiAbsPartIdx, uiDepth ); 441 pcCU->setSizeSubParts( g_uiMaxCUWidth>>uiDepth, g_uiMaxCUHeight>>uiDepth, uiAbsPartIdx, uiDepth );442 pcCU->setSizeSubParts( pcCU->getSlice()->getSPS()->getMaxCUWidth()>>uiDepth, pcCU->getSlice()->getSPS()->getMaxCUHeight()>>uiDepth, uiAbsPartIdx, uiDepth ); 442 443 pcCU->setMergeFlagSubParts( true , uiAbsPartIdx, 0, uiDepth ); 443 444 } … … 515 516 } 516 517 #if RExt__DECODER_DEBUG_BIT_STATISTICS 517 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__SPLIT_FLAG, g_aucConvertToBit[ g_uiMaxCUWidth>>uiDepth]+2);518 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__SPLIT_FLAG, g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()>>uiDepth]+2); 518 519 #endif 519 520 … … 537 538 UInt uiSymbol, uiMode = 0; 538 539 PartSize eMode; 540 const UChar cuWidth =UChar(pcCU->getSlice()->getSPS()->getMaxCUWidth()>>uiDepth); 541 const UChar cuHeight=UChar(pcCU->getSlice()->getSPS()->getMaxCUHeight()>>uiDepth); 539 542 540 543 #if RExt__DECODER_DEBUG_BIT_STATISTICS 541 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__PART_SIZE, g_aucConvertToBit[ g_uiMaxCUWidth>>uiDepth]+2);544 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__PART_SIZE, g_aucConvertToBit[cuWidth]+2); 542 545 #endif 543 546 … … 567 570 UInt uiMaxNumBits = 2; 568 571 569 if( uiDepth == g_uiMaxCUDepth - g_uiAddCUDepth && !( (g_uiMaxCUWidth>>uiDepth) == 8 && (g_uiMaxCUHeight>>uiDepth)== 8 ) )572 if( uiDepth == g_uiMaxCUDepth - g_uiAddCUDepth && !( cuWidth == 8 && cuHeight == 8 ) ) 570 573 { 571 574 uiMaxNumBits ++; … … 605 608 } 606 609 pcCU->setPartSizeSubParts( eMode, uiAbsPartIdx, uiDepth ); 607 pcCU->setSizeSubParts( g_uiMaxCUWidth>>uiDepth, g_uiMaxCUHeight>>uiDepth, uiAbsPartIdx, uiDepth );610 pcCU->setSizeSubParts( cuWidth, cuHeight, uiAbsPartIdx, uiDepth ); 608 611 } 609 612 … … 643 646 } 644 647 #if RExt__DECODER_DEBUG_BIT_STATISTICS 645 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__INTRA_DIR_ANG, g_aucConvertToBit[ g_uiMaxCUWidth>>depth]+2, CHANNEL_TYPE_LUMA);648 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__INTRA_DIR_ANG, g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()>>depth]+2, CHANNEL_TYPE_LUMA); 646 649 #endif 647 650 for (j=0;j<partNum;j++) … … 696 699 UInt uiSymbol; 697 700 #if RExt__DECODER_DEBUG_BIT_STATISTICS 698 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__INTRA_DIR_ANG, g_aucConvertToBit[ g_uiMaxCUWidth>>uiDepth]+2, CHANNEL_TYPE_CHROMA);701 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__INTRA_DIR_ANG, g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()>>uiDepth]+2, CHANNEL_TYPE_CHROMA); 699 702 #endif 700 703 … … 975 978 UInt symbol; 976 979 #if RExt__DECODER_DEBUG_BIT_STATISTICS 977 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__CHROMA_QP_ADJUSTMENT, g_aucConvertToBit[ g_uiMaxCUWidth>>depth]+2, CHANNEL_TYPE_CHROMA);980 const TComCodingStatisticsClassType ctype(STATS__CABAC_BITS__CHROMA_QP_ADJUSTMENT, g_aucConvertToBit[cu->getSlice()->getSPS()->getMaxCUWidth()>>depth]+2, CHANNEL_TYPE_CHROMA); 978 981 #endif 979 982 … … 1869 1872 1870 1873 #if RExt__DECODER_DEBUG_BIT_STATISTICS 1871 const TComCodingStatisticsClassType ctype(STATS__EXPLICIT_RDPCM_BITS, g_aucConvertToBit[ g_uiMaxCUWidth>>rTu.GetTransformDepthTotal()]+2);1874 const TComCodingStatisticsClassType ctype(STATS__EXPLICIT_RDPCM_BITS, g_aucConvertToBit[cu->getSlice()->getSPS()->getMaxCUWidth()>>rTu.GetTransformDepthTotal()]+2); 1872 1875 #endif 1873 1876 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1288 r1289 254 254 } 255 255 256 rpcPic->create( vps, sps, pps, g_uiMaxCU Width, g_uiMaxCUHeight, g_uiMaxCUDepth, true, m_layerId);256 rpcPic->create( vps, sps, pps, g_uiMaxCUDepth, true, m_layerId); 257 257 #else //SVC_EXTENSION 258 rpcPic->create ( sps, pps, g_uiMaxCU Width, g_uiMaxCUHeight, g_uiMaxCUDepth, true);258 rpcPic->create ( sps, pps, g_uiMaxCUDepth, true); 259 259 #endif //SVC_EXTENSION 260 260 … … 303 303 } 304 304 305 rpcPic->create( vps, sps, pps, g_uiMaxCU Width, g_uiMaxCUHeight, g_uiMaxCUDepth, true, m_layerId);305 rpcPic->create( vps, sps, pps, g_uiMaxCUDepth, true, m_layerId); 306 306 #else //SVC_EXTENSION 307 rpcPic->create ( sps, pps, g_uiMaxCU Width, g_uiMaxCUHeight, g_uiMaxCUDepth, true);307 rpcPic->create ( sps, pps, g_uiMaxCUDepth, true); 308 308 #endif //SVC_EXTENSION 309 309 } … … 493 493 UInt refLayerId = 0; 494 494 495 pBLPic->create( *vps, *sps, *pps, sps->getMaxCU Width(), sps->getMaxCUHeight(), sps->getMaxCUDepth(), true, refLayerId);495 pBLPic->create( *vps, *sps, *pps, sps->getMaxCUDepth(), true, refLayerId); 496 496 497 497 // it is needed where the VPS is accessed through the slice … … 572 572 573 573 // TODO: remove the use of the following globals: 574 g_uiMaxCUWidth = sps->getMaxCUWidth();575 g_uiMaxCUHeight = sps->getMaxCUHeight();576 574 g_uiMaxCUDepth = sps->getMaxCUDepth(); 577 575 #if SVC_EXTENSION … … 613 611 m_cLoopFilter.create( sps->getMaxCUDepth() ); 614 612 m_cPrediction.initTempBuff(sps->getChromaFormatIdc()); 613 615 614 616 615 Bool isField = false; … … 702 701 703 702 // Check if any new SEI has arrived 704 if(!m_SEIs.empty())705 {706 // Currently only decoding Unit SEI message occurring between VCL NALUs copied707 SEIMessages &picSEI = m_pcPic->getSEIs();708 SEIMessages decodingUnitInfos = extractSeisByType (m_SEIs, SEI::DECODING_UNIT_INFO);709 picSEI.insert(picSEI.end(), decodingUnitInfos.begin(), decodingUnitInfos.end());710 deleteSEIs(m_SEIs);711 }703 if(!m_SEIs.empty()) 704 { 705 // Currently only decoding Unit SEI message occurring between VCL NALUs copied 706 SEIMessages &picSEI = m_pcPic->getSEIs(); 707 SEIMessages decodingUnitInfos = extractSeisByType (m_SEIs, SEI::DECODING_UNIT_INFO); 708 picSEI.insert(picSEI.end(), decodingUnitInfos.begin(), decodingUnitInfos.end()); 709 deleteSEIs(m_SEIs); 710 } 712 711 } 713 712 … … 2199 2198 if( m_layerId > 0 ) 2200 2199 { 2201 g_uiMaxCUWidth = sps->getMaxCUWidth();2202 g_uiMaxCUHeight = sps->getMaxCUHeight();2203 2200 g_uiMaxCUDepth = sps->getMaxCUDepth(); 2204 2201 g_uiAddCUDepth = max (0, sps->getLog2MinCodingBlockSize() - (Int)sps->getQuadtreeTULog2MinSize() ); … … 2210 2207 m_cIlpPic[j] = new TComPic; 2211 2208 2212 m_cIlpPic[j]->create(*vps, *sps, *slice->getPPS(), g_uiMaxCU Width, g_uiMaxCUHeight, g_uiMaxCUDepth, true, m_layerId);2209 m_cIlpPic[j]->create(*vps, *sps, *slice->getPPS(), g_uiMaxCUDepth, true, m_layerId); 2213 2210 2214 2211 for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCtusInFrame(); i++) … … 2389 2386 Int picHeight = pcSlice->getPicHeightInLumaSamples(); 2390 2387 m_pColorMappedPic = new TComPicYuv; 2391 m_pColorMappedPic->create( picWidth, picHeight, pcSlice->getChromaFormatIdc()/*CHROMA_420*/, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, NULL );2388 m_pColorMappedPic->create( picWidth, picHeight, pcSlice->getChromaFormatIdc()/*CHROMA_420*/, pcSlice->getSPS()->getMaxCUWidth(), pcSlice->getSPS()->getMaxCUHeight(), g_uiMaxCUDepth, true, NULL ); 2392 2389 } 2393 2390 }
Note: See TracChangeset for help on using the changeset viewer.