﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
603	Incorrect chroma offset in WP	fbossen		"In the weighted prediction process, a chroma adjustment is defined in the semantics of delta_chroma_offset_l0:
ChromaOffsetL0[ i ][ j ] = (delta_chroma_offset_l0[i][j] –  ( (shift*ChromaWeightL0[ i ][ j ]) >> ChromaLog2WeightDenom ) − shift )

where shift is 1 << BitDepth

In the HM, the shift value is set to the incorrect value of g_uiIBDI_MAX>>1 (e.g., 127 instead of 128). For example in line 2694 of TDecCAVLC.cpp:
wp[j].iOffset = iDeltaChroma - ( ( (g_uiIBDI_MAX>>1)*wp[j].iWeight)>>(wp[j].uiLog2WeightDenom) ) + (g_uiIBDI_MAX>>1);
"	defect	closed	minor	HM-7.2	HM	HM-7.1	fixed		fbossen ksuehring davidf jct-vc@…
