Changeset 826 in 3DVCSoftware for branches/HTM-9.3-dev0/source/Lib/TLibCommon
- Timestamp:
- 5 Feb 2014, 18:55:49 (11 years ago)
- Location:
- branches/HTM-9.3-dev0/source/Lib/TLibCommon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.3-dev0/source/Lib/TLibCommon/ContextTables.h
r816 r826 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 100 103 #endif 104 #endif 101 105 102 106 #if H_3D_IC 107 #if MTK_IC_FLAG_CABAC_SIMP_G0061 108 #define NUM_IC_FLAG_CTX 1 ///< number of context models for illumination compensation flag 109 #else 103 110 #define NUM_IC_FLAG_CTX 3 ///< number of context models for illumination compensation flag 111 #endif 104 112 #endif 105 113 … … 368 376 369 377 #if H_3D_ARP 378 #if MTK_ARP_FLAG_CABAC_SIMP_G0061 379 static const UChar 380 INIT_ARPW[3][NUM_ARPW_CTX] = 381 { 382 { 162, 153, 162 }, 383 { 162, 153, 162 }, 384 { 162, 153, 162 }, 385 }; 386 #else 370 387 static const UChar 371 388 INIT_ARPW[3][NUM_ARPW_CTX] = … … 376 393 }; 377 394 #endif 378 395 #endif 379 396 #if H_3D_IC 397 #if MTK_IC_FLAG_CABAC_SIMP_G0061 398 static const UChar 399 INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = 400 { 401 { 154 }, 402 { 154 }, 403 { 154 }, 404 }; 405 #else 380 406 static const UChar 381 407 INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = … … 386 412 }; 387 413 #endif 414 #endif 388 415 #if H_3D_DIM 389 416 static const UChar -
branches/HTM-9.3-dev0/source/Lib/TLibCommon/TComDataCU.cpp
r821 r826 2398 2398 uiCtx = ( pcTempCU ) ? ((pcTempCU->getARPW( uiTempPartIdx )==0)?0:1) : 0; 2399 2399 2400 #if !MTK_ARP_FLAG_CABAC_SIMP_G0061 2400 2401 pcTempCU = getPUAbove( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx ); 2401 2402 uiCtx += ( pcTempCU ) ? ((pcTempCU->getARPW( uiTempPartIdx )==0)?0:1): 0; 2402 2403 #endif 2403 2404 return uiCtx; 2404 2405 } 2405 2406 #endif 2406 2407 #if !MTK_IC_FLAG_CABAC_SIMP_G0061 2407 2408 #if H_3D_IC 2408 2409 UInt TComDataCU::getCtxICFlag( UInt uiAbsPartIdx ) … … 2422 2423 } 2423 2424 #endif 2424 2425 #endif 2425 2426 #if H_3D_DBBP 2426 2427 Pel* TComDataCU::getVirtualDepthBlock(UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, UInt& uiDepthStride) … … 3460 3461 Bool* abCandIsInter, TComMvField* pcMvFieldNeighbours, UChar* puhInterDirNeighbours, Int* vspFlag, Int& iCount3DV, InheritedVSPDisInfo* inheritedVSPDisInfo ) 3461 3462 { 3463 #if MTK_NBDV_IVREF_FIX_G0067 3464 if ( m_pcSlice->getViewIndex() == 0 || !m_pcSlice->getVPS()->getViewSynthesisPredFlag( m_pcSlice->getLayerIdInVps() ) || m_pcSlice->getIsDepth() || pDInfo->m_aVIdxCan == -1) 3465 #else 3462 3466 if ( m_pcSlice->getViewIndex() == 0 || !m_pcSlice->getVPS()->getViewSynthesisPredFlag( m_pcSlice->getLayerIdInVps() ) || m_pcSlice->getIsDepth() ) 3467 #endif 3463 3468 { 3464 3469 return false; … … 4694 4699 Bool ivMvPredFlag = getSlice()->getVPS()->getIvMvPredFlag( getSlice()->getLayerIdInVps() ); 4695 4700 4701 #if MTK_NBDV_IVREF_FIX_G0067 4702 if ( ivMvPredFlag && cDisInfo.m_aVIdxCan!=-1) 4703 #else 4696 4704 if ( ivMvPredFlag ) 4705 #endif 4697 4706 { 4698 4707 getInterViewMergeCands(uiPUIdx, ivCandRefIdx, ivCandMv, &cDisInfo, ivCandDir , bIsDepth, pcMvFieldSP, puhInterDirSP ); … … 6950 6959 // Init disparity struct for results 6951 6960 pDInfo->bDV = false; 6961 #if MTK_NBDV_IVREF_FIX_G0067 6962 pDInfo->m_aVIdxCan = -1; 6963 #endif 6952 6964 // Init struct for disparities from MCP neighboring blocks 6953 6965 IDVInfo cIDVInfo; -
branches/HTM-9.3-dev0/source/Lib/TLibCommon/TComDataCU.h
r816 r826 781 781 UInt getCTXARPWFlag ( UInt uiAbsPartIdx ); 782 782 #endif 783 #if !MTK_IC_FLAG_CABAC_SIMP_G0061 783 784 #if H_3D_IC 784 785 UInt getCtxICFlag ( UInt uiAbsPartIdx ); 786 #endif 785 787 #endif 786 788 UInt getSliceStartCU ( UInt pos ) { return m_sliceStartCU[pos-m_uiAbsIdxInLCU]; } -
branches/HTM-9.3-dev0/source/Lib/TLibCommon/TComSlice.cpp
r816 r826 3132 3132 for ( Int refListIdx = 0; refListIdx < ((m_eSliceType==B_SLICE) ? 2 : 1); refListIdx++ ) 3133 3133 { 3134 #if MTK_ARP_REF_SELECTION_G0053 3135 Int diffPOC=MAX_INT; 3136 Int idx=-1; 3137 #endif 3134 3138 for(Int i = 0; i < getNumRefIdx(RefPicList(refListIdx)); i++ ) 3135 3139 { 3136 3140 if ( getRefPic(RefPicList(refListIdx), i)->getPOC() != getPOC() ) 3137 3141 { 3142 #if MTK_ARP_REF_SELECTION_G0053 3143 if( abs(getRefPic(RefPicList(refListIdx), i)->getPOC() - getPOC()) < diffPOC) 3144 { 3145 diffPOC=abs(getRefPic(RefPicList(refListIdx), i)->getPOC() - getPOC()); 3146 idx=i; 3147 } 3148 #else 3138 3149 setFirstTRefIdx (RefPicList(refListIdx), i); 3139 3150 break; 3151 #endif 3140 3152 } 3153 #if MTK_ARP_REF_SELECTION_G0053 3154 if(idx>=0) 3155 { 3156 setFirstTRefIdx (RefPicList(refListIdx), idx); 3157 } 3158 #endif 3141 3159 } 3142 3160 } -
branches/HTM-9.3-dev0/source/Lib/TLibCommon/TypeDef.h
r816 r826 78 78 // HHI_QTLPC_RAU_OFF_C0160 // JCT3V-C0160 change 2: quadtree limitation and predictive coding switched off in random access units 79 79 80 #ifdef H_3D_QTLPC 81 #define MTK_TEX_DEP_PAR_G0055 1 // Texture-partition-dependent depth partition. JCT3V-G0055 82 #endif 80 83 #define H_3D_VSO 1 // VSO, View synthesis optimization, includes: 81 84 // HHI_VSO … … 102 105 // SHARP_ARP_REF_CHECK_F0105 ARP reference picture selection and DPB check 103 106 // LGE_ARP_CTX_F0161 JCT3V-F0161 107 #define MTK_ARP_REF_SELECTION_G0053 1 // ARP Reference picture selection in JCT3V-G0053 108 #define MTK_ARP_FLAG_CABAC_SIMP_G0061 1 // Use 2 context for ARP flag referring to only left neighbor block in JCT3V-G0061 104 109 #define H_3D_IC 1 // Illumination Compensation, JCT3V-B0045, JCT3V-C0046, JCT3V-D0060 105 110 // Unifying rounding offset, for IC part, JCT3V-D0135 … … 109 114 // LGE_IC_CTX_F0160 //JCT3V-F0160 110 115 // SEC_ONLY_TEXTURE_IC_F0151 116 #define MTK_IC_FLAG_CABAC_SIMP_G0061 1 // Use only 1 context for IC flag in JCT3V-G0061 111 117 112 118 #if H_3D_NBDV … … 117 123 // NBDV_DEFAULT_VIEWIDX_BUGFIX Bug fix for invalid default view index for NBDV 118 124 // NTT_DoNBDV_VECTOR_CLIP_E0141 disparity vector clipping in DoNBDV, JCT3V-E0141 and JCT3V-E0209 125 #define MTK_NBDV_IVREF_FIX_G0067 1 // Disable IvMC, VSP when IVREF is not available, JCT3V-G0067 119 126 #endif 120 127 … … 231 238 #define H_3D_ARP_WFNR 3 232 239 #endif 240 #define KHU_SIMP_SPIVMP_G0147 1 // Simplification on Sub-PU level temporal interview motion prediction 233 241 234 242 #if H_3D_SPIVMP … … 237 245 #define QC_DEPTH_MERGE_SIMP_G0127 1 // Remove DV candidate and shifting candidate for depth coding 238 246 239 #define KHU_SIMP_SPIVMP_G0147 1 // Simplification on Sub-PU level temporal interview motion prediction247 #define SEC_IC_ARP_SIG_G0072 1 // Disabling IC when ARP is enabled, option 1 in JCT3V-G0072, part 2 in JCT3V-G0121 240 248 241 249 ///// ***** DEPTH INTRA MODES *********
Note: See TracChangeset for help on using the changeset viewer.