Changeset 806 in 3DVCSoftware
- Timestamp:
- 28 Jan 2014, 10:00:48 (11 years ago)
- 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 97 97 98 98 #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 99 102 #define NUM_ARPW_CTX 4 ///< number of context models for weighting factor index used by advanced residual prediction 103 #endif 100 104 #endif 101 105 … … 368 372 369 373 #if H_3D_ARP 374 #if MTK_ARP_FLAG_CABAC_SIMP_G0061 375 static const UChar 376 INIT_ARPW[3][NUM_ARPW_CTX] = 377 { 378 { 162, 153, 162 }, 379 { 162, 153, 162 }, 380 { 162, 153, 162 }, 381 }; 382 #else 370 383 static const UChar 371 384 INIT_ARPW[3][NUM_ARPW_CTX] = … … 376 389 }; 377 390 #endif 378 391 #endif 379 392 #if H_3D_IC 380 393 #if MTK_IC_FLAG_CABAC_SIMP_G0061 -
branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp
r805 r806 2266 2266 pcTempCU = getPULeft( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx ); 2267 2267 uiCtx = ( pcTempCU ) ? ((pcTempCU->getARPW( uiTempPartIdx )==0)?0:1) : 0; 2268 2268 #if !MTK_ARP_FLAG_CABAC_SIMP_G0061 2269 2269 pcTempCU = getPUAbove( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx ); 2270 2270 uiCtx += ( pcTempCU ) ? ((pcTempCU->getARPW( uiTempPartIdx )==0)?0:1): 0; 2271 2271 #endif 2272 2272 return uiCtx; 2273 2273 } -
branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibCommon/TypeDef.h
r805 r806 105 105 // LGE_ARP_CTX_F0161 JCT3V-F0161 106 106 #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 107 108 #define H_3D_IC 1 // Illumination Compensation, JCT3V-B0045, JCT3V-C0046, JCT3V-D0060 108 109 // Unifying rounding offset, for IC part, JCT3V-D0135 -
branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibDecoder/TDecSbac.cpp
r805 r806 2141 2141 if( 1 == uiW ) 2142 2142 { 2143 #if MTK_ARP_FLAG_CABAC_SIMP_G0061 2144 m_pcTDecBinIf->decodeBin( uiCode , m_cCUPUARPWSCModel.get( 0, 0, 2 ) ); 2145 #else 2143 2146 m_pcTDecBinIf->decodeBin( uiCode , m_cCUPUARPWSCModel.get( 0, 0, 3 ) ); 2147 #endif 2144 2148 uiW += ( 1 == uiCode ? 1 : 0 ); 2145 2149 } -
branches/HTM-9.3-dev2-MediaTek/source/Lib/TLibEncoder/TEncSbac.cpp
r805 r806 1000 1000 if( nBinNum > 1 ) 1001 1001 { 1002 #if MTK_ARP_FLAG_CABAC_SIMP_G0061 1003 m_pcBinIf->encodeBin( ( iW == iMaxW ) ? 1 : 0, m_cCUPUARPWSCModel.get( 0, 0, 2 ) ); 1004 #else 1002 1005 m_pcBinIf->encodeBin( ( iW == iMaxW ) ? 1 : 0, m_cCUPUARPWSCModel.get( 0, 0, 3 ) ); 1006 #endif 1003 1007 } 1004 1008 #if H_MV_ENC_DEC_TRAC
Note: See TracChangeset for help on using the changeset viewer.