Patent ID: 11962796
Assignee: QUALCOMM INCORPORATED
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 10:
11. A device for coding video data, the device comprising:
a memory configured to store one or more samples of a prediction block; and
processing circuitry configured to:
determining a motion vector for inter-predicting a current block;
determine the prediction block for inter-predicting the current block based on the determined motion vector;
determine one or more refinement offsets for modifying the one or more samples of the prediction block in accordance with gradient-based prediction refinement, wherein to determine the one or more refinement offsets, the processing circuitry is configured to:
determine a horizontal displacement and a vertical displacement for the gradient-based prediction refinement of the one or more samples of the prediction block, wherein the horizontal displacement and the vertical displacement are used for determining the one or more refinement offsets that are used for modifying the one or more samples of the prediction block in accordance with the gradient-based prediction refinement;
round the horizontal displacement and the vertical displacement, that are used for determining the one or more refinement offsets, to a precision level that is the same for different inter-prediction modes;
determine a first gradient based on a first set of samples of the one or more samples of the prediction block; and
determine a second gradient based on a second set of samples of the one or more samples of the prediction block,
wherein to determine one or more refinement offsets, the processing circuitry is configured to determine the one or more refinement offsets, for modifying the one or more samples of the prediction block in accordance with gradient-based prediction refinement, based on the first gradient for a sample of the one or more samples located at (i,j), the rounded horizontal displacement for the sample of the one or more samples located at (i,j), the second gradient for the sample of the one or more samples located at (i,j), and the rounded vertical displacement for the sample of the one or more samples located at (i,j);
modify, in accordance with the gradient-based prediction refinement, the one or more samples of the prediction block based on the determined one or more refinement offsets to generate a modified prediction block, wherein to modify the one or more samples, the processing circuitry is configured to select a clipping process from at least one of:
clip the one or more refinement offsets to generate clipped refinement offsets, and modify the one or more samples based on the clipped refinement offsets to generate the modified prediction block, or
modify the one or more samples of the prediction block based on the determined one or more refinement offsets to generate a refinement result, and clip the refinement result to generate the modified prediction block; and

code the current block based on the modified prediction block.