Changeset 1049 in 3DVCSoftware for branches/HTM-12.0-dev1/source/Lib/TLibCommon
- Timestamp:
- 20 Aug 2014, 08:01:43 (11 years ago)
- Location:
- branches/HTM-12.0-dev1/source/Lib/TLibCommon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.0-dev1/source/Lib/TLibCommon/TComRom.cpp
r1039 r1049 369 369 370 370 Char g_aucConvertToBit [ MAX_CU_SIZE+1 ]; 371 371 #if !MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX 372 372 #if H_3D_IC 373 373 UInt g_aICEnableCANDIDATE[10] = { 0, }; 374 374 UInt g_aICEnableNUM[ 10 ] = { 0, }; 375 375 Int g_lastlayer=0; 376 #endif 376 377 #endif 377 378 #if ENC_DEC_TRACE -
branches/HTM-12.0-dev1/source/Lib/TLibCommon/TComRom.h
r1039 r1049 192 192 193 193 extern Char g_aucConvertToBit [ MAX_CU_SIZE+1 ]; // from width to log2(width)-2 194 194 #if !MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX 195 195 #if H_3D_IC 196 196 extern UInt g_aICEnableCANDIDATE[10]; 197 197 extern UInt g_aICEnableNUM[ 10 ]; //10 layers 198 198 extern Int g_lastlayer; 199 #endif 199 200 #endif 200 201 -
branches/HTM-12.0-dev1/source/Lib/TLibCommon/TComSlice.cpp
r1048 r1049 3602 3602 m_bApplyIC = true; 3603 3603 Int refLayer = curLayer-1; 3604 if( (refLayer>=0) && (g_aICEnableCANDIDATE[refLayer]>0) ) 3604 #if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX 3605 Int ICEnableCandidate = getICEnableCandidate(refLayer); 3606 Int ICEnableNum = getICEnableNum(refLayer); 3607 if( (refLayer>=0) && (ICEnableCandidate>0) ) 3605 3608 { 3606 Double ratio=Double( g_aICEnableNUM[refLayer])/Double(g_aICEnableCANDIDATE[refLayer]);3609 Double ratio=Double(ICEnableNum/Double(ICEnableCandidate)); 3607 3610 3608 3611 if( ratio > IC_LOW_LATENCY_ENCODING_THRESHOLD) 3609 {3612 { 3610 3613 m_bApplyIC=true; 3611 3614 } … … 3615 3618 } 3616 3619 } 3620 setICEnableCandidate(curLayer, 0); 3621 setICEnableNum(curLayer, 0); 3622 #else 3623 if( (refLayer>=0) && (g_aICEnableCANDIDATE[refLayer]>0) ) 3624 { 3625 Double ratio=Double(g_aICEnableNUM[refLayer])/Double(g_aICEnableCANDIDATE[refLayer]); 3626 3627 if( ratio > IC_LOW_LATENCY_ENCODING_THRESHOLD) 3628 { 3629 m_bApplyIC=true; 3630 } 3631 else 3632 { 3633 m_bApplyIC=false; 3634 } 3635 } 3617 3636 g_aICEnableNUM[curLayer]=0; 3618 3637 g_aICEnableCANDIDATE[curLayer]=0; 3619 3638 g_lastlayer=getDepth(); 3639 #endif 3620 3640 } 3621 3641 } -
branches/HTM-12.0-dev1/source/Lib/TLibCommon/TComSlice.h
r1039 r1049 2256 2256 Bool m_bApplySingleDepthMode; 2257 2257 #endif 2258 #if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX 2259 Int *m_aICEnableCandidate; 2260 Int *m_aICEnableNum; 2261 #endif 2258 2262 public: 2259 2263 TComSlice(); … … 2567 2571 #endif 2568 2572 #endif 2573 #if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX 2574 Void setICEnableCandidate( Int* ICEnableCandidate) { m_aICEnableCandidate = ICEnableCandidate; }; 2575 Void setICEnableNum( Int* ICEnableNum) { m_aICEnableNum = ICEnableNum; }; 2576 Void setICEnableCandidate( UInt layer, Int value) { m_aICEnableCandidate[ layer ] = value; }; 2577 Void setICEnableNum( UInt layer, Int value) { m_aICEnableNum[ layer ] = value; }; 2578 2579 Int getICEnableCandidate( Int layer){ return m_aICEnableCandidate[ layer ]; }; 2580 Int getICEnableNum( Int layer){ return m_aICEnableNum[ layer ]; }; 2581 #endif 2569 2582 #if H_MV 2570 2583 // Additional slice header syntax elements -
branches/HTM-12.0-dev1/source/Lib/TLibCommon/TypeDef.h
r1048 r1049 123 123 // SEC_IC_ARP_SIG_G0072, Disabling IC when ARP is enabled, option 1 in JCT3V-G0072, part 2 in JCT3V-G0121 124 124 // MTK_LOW_LATENCY_IC_ENCODING_H0086 Low-latency IC encoding in JCT3V-H0086 125 126 #define MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX 1 // Remove the global variables used in JCT3V-H0086 127 125 128 126 129 #define SEC_IC_NEIGHBOR_CLIP_I0080 1 // Clipping of neighboring sample position, JCT3V-I0080
Note: See TracChangeset for help on using the changeset viewer.