Patent ID: 11689739

Abstract:
An encoder includes memory and circuitry configured to determine a merge mode to be applied to a current block, wherein the merge mode includes a sub-block merge mode and a first merge mode. In the merge mode, inter-prediction parameters are inferred from a neighboring block neighboring the current block. In the sub-block merge mode, the current block includes a plurality of sub-blocks, and inter-prediction parameters are provided for each of the plurality of sub-blocks. When the merge mode is determined to be the first merge mode, the circuitry generates a prediction image for the current block by performing a bi-directional optical flow prediction process, wherein the bi-directional optical flow prediction process uses a spatial gradient for the current block. When the merge mode is determined to be the sub-block merge mode, the circuitry generates a prediction image for the current block by not performing the bi-directional optical flow prediction process.