Changeset 806 in 3DVCSoftware for branches/HTM-9.3-dev2-MediaTek/source


Ignore:
Timestamp:
28 Jan 2014, 10:00:48 (11 years ago)
Author:
mediatek-htm
Message:

Integration of CABAC simplification of ARP flag in JCT3V-G0061. The MACRO is "MTK_ARP_FLAG_CABAC_SIMP_G0061".

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

Location:
branches/HTM-9.3-dev2-MediaTek/source/Lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/ContextTables.h

    r805 r806  
    9797
    9898#if H_3D_ARP
     99#if MTK_ARP_FLAG_CABAC_SIMP_G0061
     100#define NUM_ARPW_CTX                  3       ///< number of context models for weighting factor index used by advanced residual prediction
     101#else
    99102#define NUM_ARPW_CTX                  4       ///< number of context models for weighting factor index used by advanced residual prediction
     103#endif
    100104#endif
    101105
     
    368372
    369373#if H_3D_ARP
     374#if MTK_ARP_FLAG_CABAC_SIMP_G0061
     375static const UChar
     376INIT_ARPW[3][NUM_ARPW_CTX] =
     377{
     378    { 162, 153, 162 },
     379    { 162, 153, 162 },
     380    { 162, 153, 162 },
     381};
     382#else
    370383static const UChar
    371384INIT_ARPW[3][NUM_ARPW_CTX] =
     
    376389};
    377390#endif
    378 
     391#endif
    379392#if H_3D_IC
    380393#if MTK_IC_FLAG_CABAC_SIMP_G0061
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp

    r805 r806  
    22662266  pcTempCU = getPULeft( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx );
    22672267  uiCtx    = ( pcTempCU ) ? ((pcTempCU->getARPW( uiTempPartIdx )==0)?0:1) : 0;
    2268  
     2268#if !MTK_ARP_FLAG_CABAC_SIMP_G0061       
    22692269  pcTempCU = getPUAbove( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx );
    22702270  uiCtx   += ( pcTempCU ) ? ((pcTempCU->getARPW( uiTempPartIdx )==0)?0:1): 0;
    2271  
     2271#endif
    22722272  return uiCtx;
    22732273}
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TypeDef.h

    r805 r806  
    105105                                              // LGE_ARP_CTX_F0161                JCT3V-F0161
    106106#define MTK_ARP_REF_SELECTION_G0053       1   // ARP Reference picture selection in JCT3V-G0053
     107#define MTK_ARP_FLAG_CABAC_SIMP_G0061     1   // Use 2 context for ARP flag referring to only left neighbor block in JCT3V-G0061
    107108#define H_3D_IC                           1   // Illumination Compensation, JCT3V-B0045, JCT3V-C0046, JCT3V-D0060
    108109                                              // Unifying rounding offset, for IC part, JCT3V-D0135
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibDecoder/TDecSbac.cpp

    r805 r806  
    21412141  if( 1 == uiW )   
    21422142  {
     2143#if MTK_ARP_FLAG_CABAC_SIMP_G0061
     2144    m_pcTDecBinIf->decodeBin( uiCode , m_cCUPUARPWSCModel.get( 0, 0, 2 ) );
     2145#else
    21432146    m_pcTDecBinIf->decodeBin( uiCode , m_cCUPUARPWSCModel.get( 0, 0, 3 ) );
     2147#endif
    21442148    uiW += ( 1 == uiCode ? 1 : 0 );
    21452149  }
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibEncoder/TEncSbac.cpp

    r805 r806  
    10001000  if( nBinNum > 1 )
    10011001  {
     1002#if MTK_ARP_FLAG_CABAC_SIMP_G0061
     1003     m_pcBinIf->encodeBin( ( iW == iMaxW ) ? 1 : 0, m_cCUPUARPWSCModel.get( 0, 0, 2 ) );
     1004#else
    10021005     m_pcBinIf->encodeBin( ( iW == iMaxW ) ? 1 : 0, m_cCUPUARPWSCModel.get( 0, 0, 3 ) );
     1006#endif
    10031007  }
    10041008#if H_MV_ENC_DEC_TRAC
Note: See TracChangeset for help on using the changeset viewer.