Changeset 1430 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 10 Aug 2015, 20:01:28 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r1419 r1430 125 125 shift = bitDepthLuma - currSlice->getPPS()->getCGSOutputBitDepthY(); 126 126 } 127 #endif 127 128 assert( shift >= 0 ); 128 #endif129 129 130 130 for( i = 0; i < heightBL; i++ ) … … 159 159 if( currSlice->getPPS()->getCGSFlag() ) 160 160 { 161 shift = currSlice->getBitDepth(CHANNEL_TYPE_CHROMA)- currSlice->getPPS()->getCGSOutputBitDepthC();161 shift = bitDepthChroma - currSlice->getPPS()->getCGSOutputBitDepthC(); 162 162 } 163 163 #endif 164 assert( shift >= 0 ); 164 165 165 166 for( i = 0; i < heightBL; i++ ) … … 220 221 Int rlClipB = heightBL - 1 + (NTAPS_US_LUMA>>1); 221 222 222 // g_bitDepthY was set to EL bit-depth, butshift1 should be calculated using BL bit-depth223 // shift1 should be calculated using BL bit-depth 223 224 Int shift1 = refBitDepthLuma - 8; 224 225 … … 320 321 heightBL = min<Int>( pcBasePic->getHeight(COMPONENT_Y) >> 1, heightEL ); 321 322 322 // g_bitDepthC was set to EL bit-depth, butshift1 should be calculated using BL bit-depth323 // shift1 should be calculated using BL bit-depth 323 324 shift1 = refBitDepthChroma - 8; 324 325 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1429 r1430 1799 1799 m_Enc3DAsymLUTPicUpdate.addRefLayerId( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) ); 1800 1800 1801 if( pcSlice->getPic()->get MvScalingFactor(refLayerIdc, 0) < (1<<16) || pcSlice->getPic()->getMvScalingFactor(refLayerIdc, 1) < (1<<16) ) //if(pcPic->isSpatialEnhLayer(refLayerIdc))1801 if( pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 0) < (1<<16) || pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 1) < (1<<16) ) //if(pcPic->isSpatialEnhLayer(refLayerIdc)) 1802 1802 { 1803 1803 //downsampling 1804 downScalePic(pcPic->getPicYuvOrg(), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg(), pcSlice->getBitDepths(), pcPic->getPosScalingFactor( ));1804 downScalePic(pcPic->getPicYuvOrg(), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg(), pcSlice->getBitDepths(), pcPic->getPosScalingFactor(refLayerIdc, 0)); 1805 1805 1806 1806 m_Enc3DAsymLUTPPS.setDsOrigPic(pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg()); … … 4194 4194 } 4195 4195 4196 Void TEncGOP::downScalePic( TComPicYuv* pcYuvSrc, TComPicYuv* pcYuvDest, BitDepths& bitDepth, Int** posScalingFactor)4196 Void TEncGOP::downScalePic( TComPicYuv* pcYuvSrc, TComPicYuv* pcYuvDest, BitDepths& bitDepth, const Int posScalingFactorX) 4197 4197 { 4198 4198 pcYuvSrc->setBorderExtension(false); … … 4205 4205 if(!m_temp) 4206 4206 { 4207 initDs(iWidth, iHeight, m_pcCfg->getIntraPeriod()>1, posScalingFactor );4207 initDs(iWidth, iHeight, m_pcCfg->getIntraPeriod()>1, posScalingFactorX); 4208 4208 } 4209 4209 … … 4329 4329 } 4330 4330 4331 Void TEncGOP::initDs(Int iWidth, Int iHeight, Int iType, Int** posScalingFactor)4331 Void TEncGOP::initDs(Int iWidth, Int iHeight, Int iType, const Int posScalingFactorX) 4332 4332 { 4333 4333 m_iTap = 13; 4334 if(posScalingFactor [0][0]== (1<<15))4334 if(posScalingFactorX == (1<<15)) 4335 4335 { 4336 4336 m_iM = 4; 4337 4337 m_iN = 8; 4338 4338 m_phase_filter_luma = iType? m_phase_filter_0_t1 : m_phase_filter_0_t0; 4339 m_phase_filter_chroma = m_phase_filter_0_t1_chroma; 4339 m_phase_filter_chroma = m_phase_filter_0_t1_chroma; 4340 4340 } 4341 4341 else … … 4347 4347 } 4348 4348 4349 get_mem2DintWithPad (&m_temp, iHeight, iWidth*m_iM/m_iN, 4349 get_mem2DintWithPad (&m_temp, iHeight, iWidth*m_iM/m_iN, m_iTap>>1, 0); 4350 4350 } 4351 4351 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h
r1429 r1430 287 287 #if CGS_3D_ASYMLUT 288 288 Void xDetermine3DAsymLUT( TComSlice * pSlice , TComPic * pCurPic , UInt refLayerIdc , TEncCfg * pCfg , Bool bSignalPPS ); 289 Void downScalePic( TComPicYuv* pcYuvSrc, TComPicYuv* pcYuvDest, BitDepths& bitDepth, Int** posScalingFactor);289 Void downScalePic( TComPicYuv* pcYuvSrc, TComPicYuv* pcYuvDest, BitDepths& bitDepth, const Int posScalingFactorX); 290 290 Void downScaleComponent2x2( const Pel* pSrc, Pel* pDest, const Int iSrcStride, const Int iDestStride, const Int iSrcWidth, const Int iSrcHeight, const Int inputBitDepth, const Int outputBitDepth ); 291 291 inline Short xClip( Short x , Int bitdepth ); 292 Void initDs(Int iWidth, Int iHeight, Int iType, Int** posScalingFactor);292 Void initDs(Int iWidth, Int iHeight, Int iType, const Int posScalingFactorX); 293 293 Void filterImg( Pel *src, Int iSrcStride, Pel *dst, Int iDstStride, Int height1, Int width1, BitDepths& bitDepth, Int plane ); 294 294
Note: See TracChangeset for help on using the changeset viewer.