Patent attributes
A method of video processing is described. The method includes: deriving, for a conversion between a current block of a video and a coded representation of the video, a prediction block for the current block that is determined according to a tool in which weights are used to determine a weighted sum of two initial prediction blocks used to determine the prediction block; and performing the conversion using the prediction block; wherein the deriving includes: applying the weights to two intermediate prediction samples that respectively belong to the two initial prediction blocks to derive a final prediction sample; and performing a right shift operation for the final prediction sample, wherein the right shift operation is pbSample>> (shift1+3)), wherein pbSample represents the final prediction sample, shift1 is set equal to Max(2, 14−bitDepth); and determining the prediction block based on the final prediction sample.