﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
699	Derivation process of chroma offset in WP when an input bit depth is beyond 8bit	Tanizawa	bbross	"When an input bit depth is beyond 8bit, the derivation process of chroma offset in the weighted prediction is incorrect. Since the value of chroma offset is always held in 8bit (see equations (8-224) and (8-225)), the predicted value of chroma offset must be also held in 8bit. 
The original equation (7-48) in section 7.4.5.4 should be modified simply as follows:

---------
'''Original;'''
shift = 1 << ( BitDepthC − 1 )
ChromaOffsetL0[ i ][ j ] = Clip3( −128, 127,  (delta_chroma_offset_l0[ i ][ j ] – ( (shift*ChromaWeightL0[ i ][ j ]) >> ChromaLog2WeightDenom ) − shift ) )	 (7-48)

---------
'''Modified;'''
ChromaOffsetL0[ i ][ j ] = Clip3( −128, 127,  (delta_chroma_offset_l0[ i ][ j ] – ( (128*ChromaWeightL0[ i ][ j ]) >> ChromaLog2WeightDenom ) − 128 ) )	 (7-48)
"	defect	closed	minor	D8	Text	D8 (J1003) d7	fixed		bbross wjhan jct-vc@…
