Inter-frame prediction method and device, equipment and storage medium

文档序号:98613 发布日期:2021-10-12 浏览:15次 中文

阅读说明:本技术 帧间预测方法及装置、设备、存储介质 (Inter-frame prediction method and device, equipment and storage medium ) 是由 霍俊彦 马彦卓 万帅 张伟 杨付正 冉启宏 于 2019-09-24 设计创作,主要内容包括:一种帧间预测方法及装置、设备、存储介质,其中,所述方法包括:根据当前块在视频图像中的位置,确定第一运动信息和第二候选运动信息,其中,所述运动信息至少包括运动矢量(301);判断所述第一运动信息的运动矢量与所述第二候选运动信息的运动矢量之间的距离是否大于第一阈值(302);当判断结果为所述距离小于或等于所述第一阈值时,更新所述第二候选运动信息,得到第二运动信息(304);当判断结果为所述距离大于所述第一阈值时,将所述第二候选运动信息作为第二运动信息(303);使用所述第一运动信息和所述第二运动信息,对所述当前块进行帧间预测(305)。(An inter-frame prediction method, an inter-frame prediction device, an inter-frame prediction apparatus and a storage medium, wherein the method comprises: determining first motion information and second candidate motion information according to a position of a current block in a video image, wherein the motion information comprises at least a motion vector (301); determining whether a distance between the motion vector of the first motion information and the motion vector of the second candidate motion information is greater than a first threshold (302); when the judgment result shows that the distance is smaller than or equal to the first threshold value, updating the second candidate motion information to obtain second motion information (304); when the judgment result shows that the distance is larger than the first threshold value, the second candidate motion information is used as second motion information (303); inter-predicting (305) the current block using the first motion information and the second motion information.)

An inter-frame prediction method applied to a video image encoder comprises the following steps:

determining first motion information and second candidate motion information according to the position of a current block in a video image, wherein the motion information at least comprises a motion vector;

judging whether the distance between the motion vector of the first motion information and the motion vector of the second candidate motion information is larger than a first threshold value or not;

when the judgment result is that the distance is smaller than or equal to the first threshold, updating the second candidate motion information to obtain second motion information; when the judgment result is that the distance is larger than the first threshold value, the second candidate motion information is used as second motion information;

inter-predicting the current block using the first motion information and the second motion information.

The method of claim 1, wherein determining the first motion information and the second candidate motion information according to the position of the current block in the video image comprises:

according to the position of the current block in the video image, using first motion information obtained by a preset motion information derivation method as the first motion information;

and using the second motion information obtained by the preset motion information derivation method as the second candidate motion information.

The method of claim 2, further comprising:

the preset motion information derivation method is a fusion (Merge) mode motion information derivation method.

The method of claim 1, wherein the determining whether the distance between the motion vector of the first motion information and the motion vector of the second candidate motion information is greater than a first threshold value comprises:

determining whether a distance between a position pointed to by the motion vector of the first motion information and a position pointed to by the motion vector of the second candidate motion information is greater than a first threshold.

The method of claim 4, further comprising:

and taking the Euclidean distance between two motion vectors as the distance between the two motion vectors, wherein the two motion vectors are respectively the motion vector of the first motion information and the motion vector of the second candidate motion information.

The method of claim 4, further comprising:

and taking the coordinate difference value of the two motion vectors in the horizontal direction and/or the vertical direction as the distance between the two motion vectors.

The method of claim 4, wherein the first threshold is a predetermined value.

The method of claim 7, wherein the predetermined value is a fractional-pel accuracy representation.

The method of claim 8, wherein the predetermined value is 1/2 pixels or 1/4 pixels.

The method of claim 4, the first threshold value being an adaptively determined value.

The method of claim 10, the first threshold value being an adaptively determined value, further comprising:

calculating correlation parameters among a plurality of motion vectors of adjacent blocks of the current block, and taking the distance between the motion vectors corresponding to the correlation parameter value representing the maximum correlation between two motion vectors as the first threshold.

The method of claim 2, wherein said updating the second candidate motion information to obtain second motion information comprises:

after the second candidate motion information is obtained, continuously using the preset motion information derivation method to obtain derived motion information;

and when the distance between the motion vector of the first motion information and the motion vector of the derived motion information is larger than the first threshold value, taking the derived motion information as the second motion information.

The method of claim 2, wherein the updating the second candidate motion information to obtain second motion information comprises:

after the second candidate motion information is obtained, continuously using the preset motion information derivation method to obtain derived motion information;

and when the distance between the motion vector of the first motion information and the motion vector of any motion information obtained by the preset motion information derivation method is smaller than or equal to the first threshold value, taking a specified one of the derived motion information as the second motion information.

The method of claim 1, wherein updating the second candidate motion information to obtain second motion information comprises:

taking a motion vector pointing to an intersection point of the first boundary line in the motion vector direction of the second candidate motion information as a motion vector of the second motion information;

wherein the first boundary line is composed of points which take the motion vector point of the first motion information as a central point and have a distance with the central point equal to the first threshold value.

The method of claim 1, wherein updating the second candidate motion information to obtain second motion information comprises:

and taking the motion vector pointing to the point with the preset distance from the motion vector of the first candidate motion information as the motion vector of the second motion information.

The method of claim 15, the preset distance being 1/2 pixels or 1/4 pixels.

The method of claim 1, the inter-predicting the current block using the first motion information and the second motion information, comprising:

selecting optimal motion information from candidate motion information indicated by the first motion information and the second motion information;

constructing an inter prediction value of the current block using the optimal motion information.

The method of claim 17, further comprising:

and determining candidate motion information indicated by the first motion information and the second motion information by using a method of a motion vector offset (MMVD) fusion mode.

The method of claim 17, further comprising:

and determining the optimal motion information by using a rate distortion optimization method.

The method of claim 17, further comprising:

and coding the parameter for indicating the optimal motion information, and writing the parameter into a code stream.

An inter-frame prediction method is applied to decoding video image code streams and comprises the following steps:

analyzing the code stream to obtain the position of the current block in the video image;

determining first motion information and second candidate motion information according to the position, wherein the motion information at least comprises a motion vector;

judging whether the distance between the motion vector of the first motion information and the motion vector of the second candidate motion information is larger than a first threshold value or not;

when the judgment result is that the distance is smaller than or equal to the first threshold, updating the second candidate motion information to obtain second motion information; when the judgment result is that the distance is larger than the first threshold value, the second candidate motion information is used as second motion information;

constructing an inter prediction value of the current block using the first motion information and the second motion information.

The method of claim 21, wherein determining first motion information and second candidate motion information based on the location comprises:

according to the position, using first motion information obtained by a preset motion information derivation method as the first motion information;

and using the second motion information obtained by the preset motion information derivation method as the second candidate motion information.

The method of claim 22, wherein the preset motion information derivation method is a fusion (Merge) mode motion information derivation method.

The method of claim 21, wherein said determining whether a distance between the motion vector of the first motion information and the motion vector of the second candidate motion information is greater than a first threshold value comprises:

determining whether a distance between a position pointed to by the motion vector of the first motion information and a position pointed to by the motion vector of the second candidate motion information is greater than a first threshold.

The method of claim 24, further comprising:

and taking the Euclidean distance between two motion vectors as the distance between the two motion vectors, wherein the two motion vectors are respectively the motion vector of the first motion information and the motion vector of the second candidate motion information.

The method of claim 24, further comprising:

and taking the coordinate difference value of the two motion vectors in the horizontal direction and/or the vertical direction as the distance between the two motion vectors.

The method of claim 24, wherein the first threshold is a predetermined value.

The method of claim 27, wherein the predetermined value is a fractional-pel accuracy representation.

The method of claim 28, wherein the predetermined value is 1/2 pixels or 1/4 pixels.

The method of claim 24, wherein the first threshold is an adaptively determined value.

The method of claim 30, further comprising:

calculating correlation parameter values between a plurality of motion vectors of adjacent blocks of the current block, and taking a distance between motion vectors corresponding to a correlation parameter value representing the maximum correlation between two motion vectors as the first threshold.

The method of claim 22, wherein said updating the second candidate motion information to obtain second motion information comprises:

after the second candidate motion information is obtained, continuously using the preset motion information derivation method to obtain derived motion information;

and when the distance between the motion vector of the first motion information and the motion vector of the derived motion information is larger than the first threshold value, taking the derived motion information as the second motion information.

The method of claim 22, wherein said updating the second candidate motion information to obtain second motion information comprises:

after the second candidate motion information is obtained, continuously using the preset motion information derivation method to obtain derived motion information;

and when the distance between the motion vector of the first motion information and the motion vector of any motion information obtained by the preset motion information derivation method is smaller than or equal to the first threshold value, taking a specified one of the derived motion information as the second motion information.

The method of claim 21, wherein updating the second candidate motion information to obtain second motion information comprises:

taking a motion vector pointing to an intersection point of the first boundary line in the motion vector direction of the second candidate motion information as a motion vector of the second motion information;

wherein the first boundary line is composed of points which take the motion vector point of the first motion information as a central point and have a distance with the central point equal to the first threshold value.

The method of claim 21, wherein updating the second candidate motion information to obtain second motion information comprises:

and taking the motion vector pointing to the point with the preset distance from the motion vector of the first candidate motion information as the motion vector of the second motion information.

The method of claim 21, the constructing the inter prediction value for the current block using the first motion information and the second motion information, comprising:

analyzing the code stream to obtain a parameter for indicating motion information used for constructing the interframe predicted value of the current block;

selecting a motion vector from candidate motion information indicated by the first motion information and the second motion information according to a parameter of the motion information;

calculating a motion vector correction quantity according to the parameters of the motion information;

taking the sum of the selected motion vector and the correction quantity of the motion vector as the motion vector of the current block;

constructing an inter prediction value of the current block using the motion vector of the current block.

The method of claim 36, further comprising:

and determining candidate motion information indicated by the first motion information and the second motion information by using a method of a motion vector offset (MMVD) fusion mode.

An inter prediction apparatus comprising:

a first determination module configured to: determining first motion information and second candidate motion information according to the position of a current block in a video image, wherein the motion information at least comprises a motion vector;

a first determination module configured to: judging whether the distance between the motion vector of the first motion information and the motion vector of the second candidate motion information is larger than a first threshold value or not; when the judgment result is that the distance is smaller than or equal to the first threshold, updating the second candidate motion information to obtain second motion information; when the judgment result is that the distance is larger than the first threshold value, the second candidate motion information is used as second motion information;

a first prediction module configured to: inter-predicting the current block using the first motion information and the second motion information.

An inter prediction apparatus comprising:

a parsing module configured to: analyzing the code stream to obtain the position of the current block in the video image;

a second determination module configured to: determining first motion information and second candidate motion information according to the position, wherein the motion information at least comprises a motion vector;

a second determination module configured to: judging whether the distance between the motion vector of the first motion information and the motion vector of the second candidate motion information is larger than a first threshold value or not; when the judgment result is that the distance is smaller than or equal to the first threshold, updating the second candidate motion information to obtain second motion information; when the judgment result is that the distance is larger than the first threshold value, the second candidate motion information is used as second motion information;

a second prediction module configured to: constructing an inter prediction value of the current block using the first motion information and the second motion information.

An electronic device comprising a memory and a processor, the memory storing a computer program operable on the processor to perform the steps of the inter prediction method of any of claims 1 to 20 when the program is executed or to perform the steps of the inter prediction method of any of claims 21 to 37 when the program is executed.

A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the inter-prediction method of any one of claims 1 to 20, or which, when executed, carries out the steps of the inter-prediction method of any one of claims 21 to 37.

30页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于视频编解码的依赖图片分辨率的配置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类