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

Claim 21:
22. A device for coding video data, the device comprising:
means for determining a motion vector for inter-predicting a current block;
means for determining a prediction block for inter-predicting the current block based on the determined motion vector;
means for determining one or more refinement offsets for modifying one or more samples of the prediction block in accordance with gradient-based prediction refinement, wherein the means for determining the one or more refinement offsets comprises:
means for determining 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;
means for rounding 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;
means for determining a first gradient based on a first set of samples of the one or more samples of the prediction block; and
means for determining a second gradient based on a second set of samples of the one or more samples of the prediction block,
wherein the means for determining the one or more refinement offsets comprises means for determining 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);
means for modifying, 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 the means modifying the one or more samples comprises means for selecting a clipping process from at least one of:
means for clipping the one or more refinement offsets to generate clipped refinement offsets, and modifying the one or more samples based on the clipped refinement offsets to generate the modified prediction block, or
means for modifying the one or more samples of the prediction block based on the determined one or more refinement offsets to generate a refinement result, and clipping the refinement result to generate the modified prediction block; and

means for coding the current block based on the modified prediction block.