Ignore:
Timestamp:
22 May 2015, 05:38:04 (9 years ago)
Author:
sharpjp-htm
Message:

Migration of illumination compensation(NH_3D_IC) and small fix(H_MV_ENC_DEC_TRAC_FIX)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibCommon/TComSlice.cpp

    r1214 r1225  
    140140, m_pocMsbValRequiredFlag         (false)
    141141#endif
    142 #if H_3D_IC
     142#if NH_3D_IC
    143143, m_bApplyIC                      (false)
    144144, m_icSkipParseFlag               (false)
     
    11701170  m_bApplyDIS = pSrc->m_bApplyDIS;
    11711171#endif
    1172 #if H_3D_IC
     1172#if NH_3D_IC
    11731173  m_bApplyIC = pSrc->m_bApplyIC;
    11741174  m_icSkipParseFlag = pSrc->m_icSkipParseFlag;
     
    36903690#endif
    36913691
    3692 #if H_3D_IC
     3692#if NH_3D_IC
    36933693// This is an encoder only function and should be moved to TEncSlice or TEncSearch!!
    36943694Void TComSlice::xSetApplyIC(Bool bUseLowLatencyICEnc)
     
    37793779    {
    37803780      // Histogram building - luminance
    3781       Int iMaxPelValue = ( 1 << g_bitDepthY );
     3781      Int iMaxPelValue = ( 1 << getSPS()->getBitDepth(CHANNEL_TYPE_LUMA) );
    37823782      Int *aiRefOrgHist = (Int *) xMalloc( Int,iMaxPelValue );
    37833783      Int *aiCurrHist   = (Int *) xMalloc( Int,iMaxPelValue );
     
    37853785      memset( aiCurrHist, 0, iMaxPelValue*sizeof(Int) );
    37863786
    3787       Int iWidth   = pcCurrPicYuv->getWidth();
    3788       Int iHeight  = pcCurrPicYuv->getHeight();
    3789 
    3790       Pel* pCurrY   = pcCurrPicYuv ->getLumaAddr();
    3791       Pel* pRefOrgY = pcRefPicYuvOrg  ->getLumaAddr();
    3792       Int iCurrStride = pcCurrPicYuv->getStride();
    3793       Int iRefStride = pcRefPicYuvOrg->getStride();
    3794 
     3787      Int iWidth   = pcCurrPicYuv->getWidth(COMPONENT_Y);
     3788      Int iHeight  = pcCurrPicYuv->getHeight(COMPONENT_Y);
     3789      Pel* pCurrY   = pcCurrPicYuv->getAddr(COMPONENT_Y);
     3790      Pel* pRefOrgY = pcRefPicYuvOrg->getAddr(COMPONENT_Y);
     3791      Int iCurrStride = pcCurrPicYuv->getStride(COMPONENT_Y);
     3792      Int iRefStride = pcRefPicYuvOrg->getStride(COMPONENT_Y);
    37953793      for ( Int y = 0; y < iHeight; y++ )
    37963794      {
Note: See TracChangeset for help on using the changeset viewer.