Changeset 805 in 3DVCSoftware


Ignore:
Timestamp:
27 Jan 2014, 06:48:42 (11 years ago)
Author:
mediatek-htm
Message:

Integration of CABAC simplification for IC flag in JCT3V-G0061. The MACRO is "MTK_IC_FLAG_CABAC_SIMP_G0061".

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

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

Legend:

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

    r773 r805  
    101101
    102102#if H_3D_IC
     103#if MTK_IC_FLAG_CABAC_SIMP_G0061
     104#define NUM_IC_FLAG_CTX               1       ///< number of context models for illumination compensation flag
     105#else
    103106#define NUM_IC_FLAG_CTX               3       ///< number of context models for illumination compensation flag
     107#endif
    104108#endif
    105109
     
    374378
    375379#if H_3D_IC
     380#if MTK_IC_FLAG_CABAC_SIMP_G0061
     381static const UChar
     382INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = 
     383{
     384    { 154 },
     385    { 154 },
     386    { 154 },
     387};
     388#else
    376389static const UChar
    377390INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = 
     
    382395};
    383396#endif
     397#endif
    384398#if H_3D_DIM
    385399static const UChar
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp

    r790 r805  
    22732273}
    22742274#endif
    2275 
     2275#if !MTK_IC_FLAG_CABAC_SIMP_G0061
    22762276#if H_3D_IC
    22772277UInt TComDataCU::getCtxICFlag( UInt uiAbsPartIdx )
     
    22912291}
    22922292#endif
    2293 
     2293#endif
    22942294#if H_3D_INTER_SDC
    22952295Void TComDataCU::setInterSDCFlagSubParts ( Bool bInterSDCFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TComDataCU.h

    r773 r805  
    730730  UInt          getCTXARPWFlag                  ( UInt   uiAbsPartIdx                                 );
    731731#endif 
     732#if !MTK_IC_FLAG_CABAC_SIMP_G0061
    732733#if H_3D_IC
    733734  UInt          getCtxICFlag                    ( UInt   uiAbsPartIdx                                 );
     735#endif
    734736#endif
    735737  UInt          getSliceStartCU         ( UInt pos )                  { return m_sliceStartCU[pos-m_uiAbsIdxInLCU];                                                                                          }
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TypeDef.h

    r804 r805  
    112112                                              // LGE_IC_CTX_F0160 //JCT3V-F0160
    113113                                              // SEC_ONLY_TEXTURE_IC_F0151
     114#define MTK_IC_FLAG_CABAC_SIMP_G0061      1   // Use only 1 context for IC flag in JCT3V-G0061
    114115
    115116#if H_3D_NBDV
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibDecoder/TDecSbac.cpp

    r790 r805  
    21612161{
    21622162  UInt uiSymbol = 0;
     2163#if MTK_IC_FLAG_CABAC_SIMP_G0061
     2164  m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) );
     2165#else
    21632166  UInt uiCtxIC = pcCU->getCtxICFlag( uiAbsPartIdx );
    21642167  m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, uiCtxIC ) );
     2168#endif
    21652169#if !H_MV_ENC_DEC_TRAC
    21662170  DTRACE_CABAC_VL( g_nSymbolCounter++ );
  • branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibEncoder/TEncSbac.cpp

    r790 r805  
    10181018  // get context function is here
    10191019  UInt uiSymbol = pcCU->getICFlag( uiAbsPartIdx ) ? 1 : 0;
     1020#if MTK_IC_FLAG_CABAC_SIMP_G0061
     1021  m_pcBinIf->encodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) );
     1022#else
    10201023  UInt uiCtxIC  = pcCU->getCtxICFlag( uiAbsPartIdx ) ;
    10211024  m_pcBinIf->encodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, uiCtxIC ) );
     1025#endif
    10221026#if !H_MV_ENC_DEC_TRAC
    10231027  DTRACE_CABAC_VL( g_nSymbolCounter++ );
Note: See TracChangeset for help on using the changeset viewer.