| CPC H04N 19/52 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11)] | 5 Claims |

|
1. An encoder, comprising:
circuitry; and
memory connected to the circuitry,
wherein, in operation, the circuitry:
stores motion vector information and a Bi-prediction with CU-level Weights (BCW) index into a First-In First-Out (FIFO) buffer for a History-based Motion Vector Predictor (HMVP) mode in association with each other, the motion vector information being derived for a processed block and the BCW index being related to BCW processing of a prediction image of the processed block;
registers, in a prediction candidate list for a merge mode, one or more prediction candidates each of which is a combination of motion vector information and the BCW index, the one or more prediction candidates including a prediction candidate which is a combination of the motion vector information and the BCW index stored in the FIFO buffer for the HMVP mode;
selects a prediction candidate from the prediction candidate list for the merge mode when a current block is to be processed in the merge mode, and performs BCW processing of a prediction image of the current block, based on the BCW index of the prediction candidate selected;
wherein, when no prediction candidate having same motion vector information as the motion vector information stored in the FIFO buffer for the HMVP mode is registered in the prediction candidate list for the merge mode, the circuitry registers the combination of the motion vector information and the BCW index stored in the FIFO buffer for the HMVP mode into the prediction candidate list for the merge mode; and
wherein, when the prediction candidate selected from the prediction candidate list for the merge mode is the prediction candidate registered from the FIFO buffer for the HMVP mode, the circuitry performs the BCW processing of the prediction image of the current block based on the BCW index of the prediction candidate registered from the FIFO buffer for the HMVP mode.
|