Ticket #602: Bugifx_Ticket602.patch
File Bugifx_Ticket602.patch, 1.5 KB (added by Tanizawa, 11 years ago) |
---|
-
source/Lib/TLibCommon/TypeDef.h
40 40 41 41 //! \ingroup TLibCommon 42 42 //! \{ 43 44 #define BUGFIX_TICKET602 1 ///< bugfix for Ticlet#602 43 45 #define TEMPORAL_ID_RESTRICTION 1 ///< I0600: Semantics of temporal_id changed 44 46 #define PREVREFPIC_DEFN 1 ///< I0345: prevRefPic defined as previous reference picture that is at same or lower 45 47 ///< temporal layer. -
source/Lib/TLibEncoder/WeightPredAnalysis.cpp
227 227 Int64 iRefAC = RefWeightACDCParam[iComp].iAC; 228 228 229 229 // calculating iWeight and iOffset params 230 #if BUGFIX_TICKET602 231 Double dWeight = (iRefAC==0) ? (Double)1.0 : Clip3( -256.0, 255.0, ((Double)iCurrAC / (Double)iRefAC) ); // clipped by range of wrost case (Log2WeightDenom = 0) 232 #else 230 233 Double dWeight = (iRefAC==0) ? (Double)1.0 : ( (Double)(iCurrAC) / (Double)iRefAC); 234 #endif 231 235 Int iWeight = (Int)( 0.5 + dWeight * (Double)(1<<iDenom) ); 232 236 Int iOffset = (Int)( ((iCurrDC<<iDenom) - ((Int64)iWeight * iRefDC) + (Int64)iRealOffset) >> iRealDenom ); 233 237