Changeset 1049 in 3DVCSoftware for branches/HTM-12.0-dev1/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 20 Aug 2014, 08:01:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset for help on using the changeset viewer.