Changeset 804 in 3DVCSoftware


Ignore:
Timestamp:
27 Jan 2014, 05:35:29 (11 years ago)
Author:
mediatek-htm
Message:

The integration of JCT3V-G0053. The MACRO is "MTK_ARP_REF_SELECTION_G0053".

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

Location:
branches/HTM-9.3-dev2-MediaTek
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TComSlice.cpp

    r773 r804  
    31293129    for ( Int refListIdx = 0; refListIdx < ((m_eSliceType==B_SLICE) ? 2 : 1); refListIdx++ )
    31303130    {
     3131#if MTK_ARP_REF_SELECTION_G0053
     3132      Int diffPOC=MAX_INT;
     3133      Int idx=-1;
     3134#endif
    31313135      for(Int i = 0; i < getNumRefIdx(RefPicList(refListIdx)); i++ )
    31323136      {
    31333137        if ( getRefPic(RefPicList(refListIdx), i)->getPOC() != getPOC() )
    31343138        {
     3139#if MTK_ARP_REF_SELECTION_G0053
     3140          if( abs(getRefPic(RefPicList(refListIdx), i)->getPOC() - getPOC()) < diffPOC)
     3141          {
     3142            diffPOC=abs(getRefPic(RefPicList(refListIdx), i)->getPOC() - getPOC());
     3143            idx=i;
     3144          }
     3145#else
    31353146          setFirstTRefIdx (RefPicList(refListIdx), i);
    31363147          break;
     3148#endif
    31373149        }
     3150#if MTK_ARP_REF_SELECTION_G0053
     3151        if(idx>=0)
     3152        {
     3153          setFirstTRefIdx (RefPicList(refListIdx), idx);
     3154        }
     3155#endif
    31383156      }
    31393157    }
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TypeDef.h

    r791 r804  
    104104                                              // SHARP_ARP_REF_CHECK_F0105        ARP reference picture selection and DPB check
    105105                                              // LGE_ARP_CTX_F0161                JCT3V-F0161
     106#define MTK_ARP_REF_SELECTION_G0053       1   // ARP Reference picture selection in JCT3V-G0053
    106107#define H_3D_IC                           1   // Illumination Compensation, JCT3V-B0045, JCT3V-C0046, JCT3V-D0060
    107108                                              // Unifying rounding offset, for IC part, JCT3V-D0135
Note: See TracChangeset for help on using the changeset viewer.