Changeset 1049 in 3DVCSoftware for branches/HTM-12.0-dev1/source/Lib/TLibEncoder


Ignore:
Timestamp:
20 Aug 2014, 08:01:43 (11 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@…)

Location:
branches/HTM-12.0-dev1/source/Lib/TLibEncoder
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncEntropy.cpp

    r1039 r1049  
    185185  else
    186186  {
     187#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     188    Int ICEnableCandidate = pcCU->getSlice()->getICEnableCandidate(pcCU->getSlice()->getDepth());
     189    Int ICEnableNum = pcCU->getSlice()->getICEnableNum(pcCU->getSlice()->getDepth());
     190    ICEnableCandidate++;
     191    if(pcCU->getICFlag(uiAbsPartIdx))
     192    {
     193      ICEnableNum++;
     194    }
     195    pcCU->getSlice()->setICEnableCandidate(pcCU->getSlice()->getDepth(), ICEnableCandidate);
     196    pcCU->getSlice()->setICEnableNum(pcCU->getSlice()->getDepth(), ICEnableNum);
     197#else
    187198    g_aICEnableCANDIDATE[pcCU->getSlice()->getDepth()]++;
    188199    if(pcCU->getICFlag(uiAbsPartIdx))
     
    190201      g_aICEnableNUM[pcCU->getSlice()->getDepth()]++;
    191202    }
     203#endif
    192204  }
    193205  if( pcCU->isICFlagRequired( uiAbsPartIdx ) )
  • branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.cpp

    r1039 r1049  
    160160#endif
    161161#endif
    162 
     162#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     163  m_aICEnableCandidate           = pcTEncTop->getICEnableCandidate();
     164  m_aICEnableNum           = pcTEncTop->getICEnableNum();
     165#endif
    163166#if KWU_FIX_URQ
    164167  m_pcRateCtrl           = pcTEncTop->getRateCtrl();
     
    968971#endif   
    969972#endif
     973#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     974    pcSlice->setICEnableCandidate( m_aICEnableCandidate );         
     975    pcSlice->setICEnableNum( m_aICEnableNum );         
     976#endif
    970977    //  Slice info. refinement
    971978#if H_MV
  • branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.h

    r964 r1049  
    116116#endif
    117117#endif
     118#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     119  Int *m_aICEnableCandidate;
     120  Int *m_aICEnableNum;
     121#endif
    118122  //--Adaptive Loop filter
    119123  TEncSampleAdaptiveOffset*  m_pcSAO;
  • branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.cpp

    r1039 r1049  
    8484  m_ivPicLists = NULL;
    8585#endif
     86#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     87  m_aICEnableCandidate = NULL;
     88  m_aICEnableNum = NULL;
     89#endif
    8690}
    8791
     
    305309
    306310  xInitPPSforTiles();
    307 
     311#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     312  m_aICEnableCandidate = new Int[ 10 ];
     313  m_aICEnableNum = new Int[ 10 ];
     314
     315  for(int i=0;i<10;i++)
     316  {
     317    m_aICEnableCandidate[i]=0;
     318    m_aICEnableNum[i]=0;
     319  }
     320#endif
    308321  // initialize processing unit classes
    309322  m_cGOPEncoder.  init( this );
  • branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.h

    r872 r1049  
    7979#if H_MV
    8080  TComPicLists*           m_ivPicLists;                   ///< access to picture lists of other layers
     81#endif
     82#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     83  Int *m_aICEnableCandidate;
     84  Int *m_aICEnableNum;
    8185#endif
    8286  // encoder search
     
    162166  TComPicLists* getIvPicLists() { return m_ivPicLists; }
    163167#endif
     168#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     169  Int *getICEnableCandidate() { return m_aICEnableCandidate; }
     170  Int *getICEnableNum() { return m_aICEnableNum; }
     171#endif
    164172  Void      deletePicBuffer ();
    165173
     
    221229  Void                    setIvPicLists         ( TComPicLists* picLists) { m_ivPicLists = picLists; }
    222230#endif
     231#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
     232  Void                    setICEnableCandidate         ( Int* ICEnableCandidate) { m_aICEnableCandidate = ICEnableCandidate; }
     233  Void                    setICEnableNum         ( Int* ICEnableNum) { m_aICEnableNum = ICEnableNum; }
     234#endif
    223235  // -------------------------------------------------------------------------------------------------------------------
    224236  // encoder function
Note: See TracChangeset for help on using the changeset viewer.