Changeset 1419 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 5 Aug 2015, 03:02:48 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp
r1353 r1419 216 216 UInt refLayerId = pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId(); 217 217 UInt refLayerIdc = pcSlice->getReferenceLayerIdc(refLayerId); 218 assert( g_posScalingFactor[refLayerIdc][0]);219 assert( g_posScalingFactor[refLayerIdc][1]);220 221 printf( "%d(%d, {%1.2f, %1.2f}x)", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex), refLayerId, 65536.0/ g_posScalingFactor[refLayerIdc][0], 65536.0/g_posScalingFactor[refLayerIdc][1]);218 assert( pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 0) ); 219 assert( pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 1) ); 220 221 printf( "%d(%d, {%1.2f, %1.2f}x)", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex), refLayerId, 65536.0/pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 0), 65536.0/pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 1) ); 222 222 } 223 223 else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1385 r1419 1595 1595 if( m_layerId > 0 && m_uiSliceIdx == 0 && ( !pcSlice->getVPS()->getSingleLayerForNonIrapFlag() || pcSlice->isIRAP() ) ) 1596 1596 { 1597 // create buffers for scaling factors 1598 m_pcPic->createMvScalingFactor(pcSlice->getNumILRRefIdx()); 1599 m_pcPic->createPosScalingFactor(pcSlice->getNumILRRefIdx()); 1600 1597 1601 for( Int i = 0; i < pcSlice->getNumILRRefIdx(); i++ ) 1598 1602 { … … 1647 1651 && ( (heightEL != heightBL) || (resamplingPhase.phaseVerLuma == 0 && resamplingPhase.phaseVerChroma == 0) ) ); 1648 1652 1649 g_mvScalingFactor[refLayerIdc][0] = widthEL == widthBL ? 4096 : Clip3(-4096, 4095, ((widthEL << 8) + (widthBL >> 1)) / widthBL); 1650 g_mvScalingFactor[refLayerIdc][1] = heightEL == heightBL ? 4096 : Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL); 1651 1652 g_posScalingFactor[refLayerIdc][0] = ((widthBL << 16) + (widthEL >> 1)) / widthEL; 1653 g_posScalingFactor[refLayerIdc][1] = ((heightBL << 16) + (heightEL >> 1)) / heightEL; 1654 1653 m_pcPic->setMvScalingFactor( refLayerIdc, 1654 widthEL == widthBL ? 4096 : Clip3(-4096, 4095, ((widthEL << 8) + (widthBL >> 1)) / widthBL), 1655 heightEL == heightBL ? 4096 : Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL) ); 1656 1657 m_pcPic->setPosScalingFactor( refLayerIdc, 1658 ((widthBL << 16) + (widthEL >> 1)) / widthEL, 1659 ((heightBL << 16) + (heightEL >> 1)) / heightEL ); 1655 1660 #if CGS_3D_ASYMLUT 1656 1661 TComPicYuv* pBaseColRec = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec();
Note: See TracChangeset for help on using the changeset viewer.