CPC H04N 19/52 (2014.11) [H04N 19/184 (2014.11); H04N 19/96 (2014.11)] | 20 Claims |
1. A decoding method, comprising:
resetting a history-based motion vector predictor (HMVP) table before decoding a first CU of a current row of CTUs of a current picture being decoded;
decoding the current row of CTUs, comprising:
maintaining a plurality of motion vector predictors in the HMVP table, each motion vector predictor in the HMVP table being used for decoding at least one CU of the current row of CTUs;
for a current CU of the current row of CTUs to be decoded:
constructing a motion vector candidate list in accordance with a prediction mode and based, at least in part, on the plurality of motion vector predictors in the HMVP table;
selecting, from the motion vector candidate list, a motion vector predictor;
determining a motion vector based, at least in part, on the prediction mode and the selected motion vector predictor for decoding the current CU; and
updating the HMVP table based on the determined motion vector,
wherein the updating the HMVP table based on the determined motion vector includes:
comparing the plurality of motion vector predictors in the HMVP table with the determined motion vector;
in accordance with a comparison result that one of the plurality of motion vector predictors in the HMVP table is identical to the determined motion vector:
removing the one identical motion vector predictor from the HMVP table;
moving each of the motion vector predictors after the removed motion vector predictor forward in the HMVP table; and
adding the determined motion vector as a newest one to the HMVP table, and
wherein the prediction mode is an inter mode, the motion vector candidate list has a fixed length of two, and the constructing the motion vector candidate list comprises:
in a case where history-based motion vector predictors from the HMVP table are selected to construct the motion vector candidate list, adding up to two history-based motion vector predictors from the HMVP table to the motion vector candidate list.
|