US 12,256,095 B2
Decoding methods and devices, and encoding methods and devices
Shuqing Fang, Zhejiang (CN)
Assigned to HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO., LTD., Zhejiang (CN)
Filed by HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO., LTD., Zhejiang (CN)
Filed on Sep. 23, 2022, as Appl. No. 17/952,193.
Application 17/952,193 is a continuation of application No. PCT/CN2021/082954, filed on Mar. 25, 2021.
Claims priority of application No. 202010225428.1 (CN), filed on Mar. 26, 2020.
Prior Publication US 2023/0013243 A1, Jan. 19, 2023
Int. Cl. H04N 19/52 (2014.01); H04N 19/176 (2014.01); H04N 19/577 (2014.01)
CPC H04N 19/52 (2014.11) [H04N 19/176 (2014.11); H04N 19/577 (2014.11)] 18 Claims
OG exemplary drawing
 
1. A decoding method, comprising:
obtaining index information of an enhanced temporal motion vector prediction mode from a bit stream of a current block when it is determined that an enhanced temporal motion vector prediction technology is enabled for the current block;
determining one or more matching blocks of the current block, wherein the one or more matching blocks refer to one or more image blocks corresponding to the current block in a target reference picture, comprising:
determining one or more matching blocks of the current block at least based on a target reference picture index, a target reference direction and a position of the current block, wherein the target reference picture index is an index of a first picture in reference picture List0, and the target reference direction is a reference direction corresponding to reference picture List0; or, the target reference picture index is an index of a first picture in reference picture List1, and the target reference direction is a reference direction corresponding to reference picture List1;
determining candidate enhanced temporal motion vector prediction modes based on the one or more matching blocks and one or more new matching blocks obtained by offsetting each of the one or more matching blocks, and establishing a temporal candidate mode list based on the candidate enhanced temporal motion vector prediction modes;
based on the index information, determining the enhanced temporal motion vector prediction mode from the temporal candidate mode list;
determining motion information of each sub-block in the current block based on the determined enhanced temporal motion vector prediction mode, and performing motion compensation on each sub-block in the current block based on the motion information of each sub-block in the current block,
wherein, determining the motion information of each sub-block in the current block based on the determined enhanced temporal motion vector prediction mode, comprises:
for any sub-block in a target matching block,
if both forward motion information and backward motion information of the sub-block are available, scaling the forward motion information and the backward motion information of the sub-block to the first picture in reference picture List0 and the first picture in reference picture List1 respectively, and assigning the scaled forward motion information and the scaled backward motion information to a sub-block at a corresponding position in the current block; or
if forward motion information of the sub-block is available but backward motion information of the sub-block is unavailable, scaling the forward motion information of the sub-block to the first picture in reference picture List0, and assigning the scaled forward motion information to a sub-block at a corresponding position in the current block; or
if backward motion information of the sub-block is available but forward motion information of the sub-block is unavailable, scaling the backward motion information of the sub-block to the first picture in reference picture List1, and assigning the scaled backward motion information to a sub-block at a corresponding position in the current block,
wherein a sequence parameter set level syntax is used to indicate whether the enhanced temporal motion vector prediction technology is enabled for the current block.