Patent ID: 11949895
Assignee: TENCENT AMERICA LLC
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 19:
20. A non-transitory computer-readable medium storing instructions that when executed by a computer for video decoding cause the computer to perform a method for video decoding, the method comprising:
receiving a current block that is affine coded and included in a current coding tree unit (CTU);
in response to a determination that the current block is adjacent to a top-left corner, a left boundary, or a top boundary of the current CTU, checking an availability of affine coded blocks that are outside the current CTU and neighbor the current block at predefined candidate positions according to a predefined order;
in response to a determination that the current block is adjacent to the left boundary of the current CTU, determining a four parameter or a six parameter affine model based on motion vectors (MVs) of minimum sized blocks that are adjacent to control points of an affine coded left neighboring block of the current block, the MVs of the minimum sized blocks serving as control point motion vectors (CPMVs) at the control points of the affine coded left neighboring block in the four parameter or the six parameter affine model;
determining an inherited spatial affine candidate in a merge candidate list or an advanced motion vector prediction (AMVP) candidate list based on the determined affine model;
determining whether entries in an affine history-based motion vector prediction (HMVP) table include an affine HMVP candidate that neighbors the current CTU;
in response to a determination that the affine HMVP candidate that neighbors the current CTU exists in the affine HMVP table,
deriving an inherited HMVP affine candidate from the affine HMVP candidate in the affine HMVP table, and
replacing the inherited spatial affine candidate with the inherited HMVP affine candidate in the merge candidate list or the AMVP candidate list such that the merge candidate list or the AMVP candidate list has a predetermined maximum number of inherited affine candidates.