Ignore:
Timestamp:
20 Aug 2014, 08:01:43 (10 years ago)
Author:
mediatek-htm
Message:

Fix of the Ticket #63. The MACRO is "MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX".

By Yi-Wen Chen (yiwen.chen@…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.0-dev1/source/Lib/TLibCommon/TComSlice.cpp

    r1048 r1049  
    36023602      m_bApplyIC = true;
    36033603      Int refLayer = curLayer-1;
    3604       if( (refLayer>=0) && (g_aICEnableCANDIDATE[refLayer]>0) )
     3604#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     3605      Int ICEnableCandidate = getICEnableCandidate(refLayer);
     3606      Int ICEnableNum = getICEnableNum(refLayer);
     3607      if( (refLayer>=0) && (ICEnableCandidate>0) )
    36053608      {   
    3606         Double ratio=Double(g_aICEnableNUM[refLayer])/Double(g_aICEnableCANDIDATE[refLayer]);
     3609        Double ratio=Double(ICEnableNum/Double(ICEnableCandidate));
    36073610
    36083611        if( ratio > IC_LOW_LATENCY_ENCODING_THRESHOLD)
    3609 {
     3612        {
    36103613          m_bApplyIC=true;
    36113614        }
     
    36153618        }
    36163619      }
     3620      setICEnableCandidate(curLayer, 0);
     3621      setICEnableNum(curLayer, 0);
     3622#else
     3623      if( (refLayer>=0) && (g_aICEnableCANDIDATE[refLayer]>0) )
     3624      {   
     3625        Double ratio=Double(g_aICEnableNUM[refLayer])/Double(g_aICEnableCANDIDATE[refLayer]);
     3626
     3627        if( ratio > IC_LOW_LATENCY_ENCODING_THRESHOLD)
     3628{
     3629          m_bApplyIC=true;
     3630        }
     3631        else
     3632        {
     3633          m_bApplyIC=false;
     3634        }
     3635      }
    36173636      g_aICEnableNUM[curLayer]=0;
    36183637      g_aICEnableCANDIDATE[curLayer]=0;
    36193638      g_lastlayer=getDepth();
     3639#endif
    36203640    }
    36213641  }
Note: See TracChangeset for help on using the changeset viewer.