Method and device for determining image display sequence and video coding and decoding equipment

文档序号:214970 发布日期:2021-11-05 浏览:15次 中文

阅读说明:本技术 图像显示顺序的确定方法、装置和视频编解码设备 (Method and device for determining image display sequence and video coding and decoding equipment ) 是由 杨海涛 范宇群 马祥 陈焕浜 张恋 于 2019-10-24 设计创作,主要内容包括:本申请公开了一种图像显示顺序的确定方法、装置和视频编解码设备,属于视频编解码领域。所述方法包括:获取当前图像的解码顺序索引值以及与所述当前图像解码顺序相邻的在先图像的解码顺序索引值;当所述当前图像的解码顺序索引值小于所述在先图像的解码顺序索引值时,将周期标识值加1;根据所述当前图像的解码顺序索引值与预设正整数倍的所述周期标识值的和,确定所述当前图像的显示顺序索引值。本申请可以实现当前图像的显示顺序索引值在解码顺序在当前图像之前的图像的显示顺序索引值的基础上的递增,也即是,本申请实施例中图像的显示顺序索引值是递增的。(The application discloses a method and a device for determining an image display sequence and video coding and decoding equipment, and belongs to the field of video coding and decoding. The method comprises the following steps: acquiring a decoding sequence index value of a current image and a decoding sequence index value of a previous image adjacent to the decoding sequence of the current image; adding 1 to a period identification value when the decoding order index value of the current picture is smaller than the decoding order index value of the previous picture; and determining the display sequence index value of the current image according to the sum of the decoding sequence index value of the current image and the cycle identification value of a preset positive integral multiple. The display order index value of the current image can be increased on the basis of the display order index value of the image with the decoding order before the current image, namely, the display order index value of the image is increased in the embodiment of the application.)

A method for determining an image display order, the method comprising:

acquiring a decoding sequence index value of a current image and a decoding sequence index value of a previous image adjacent to the decoding sequence of the current image;

adding 1 to a period identification value when the decoding order index value of the current picture is smaller than the decoding order index value of the previous picture;

and determining the display sequence index value of the current image according to the sum of the decoding sequence index value of the current image and the cycle identification value of a preset positive integral multiple.

The method of claim 1, wherein the display order index value of the current picture is determined by the following formula:

POI=DOI+PictureOutputDelay-OutputReorderDelay+length×DOICycleCnt

the POI is a display sequence index value of the current picture, the DOI is a decoding sequence index value of the current picture, the PictureOutputDelay is a picture output delay value, the outputlerdelay is a picture reordering delay value, the length is the preset positive integer, and the DOICycleCnt is the period identification value.

The method of claim 1 or 2, wherein the method further comprises:

when the decoding order index value of the current picture is smaller than the decoding order index value of the prior picture, subtracting the preset positive integer from the decoding order index values of all pictures in the reference picture buffer area of the current picture so as to update the decoding order index values of all the pictures.

The method of claim 3, wherein an absolute value of a difference between the display order index value of any picture in the reference picture buffer and the display order index value of the current picture is less than the preset positive integer divided by 2.

The method of any one of claims 1 to 4, wherein the predetermined positive integer is 256.

The method of any of claims 1 to 5, further comprising:

and when the sequence head or the sequence start code of the video sequence where the current image is positioned is decoded, setting the period identification value to be 0.

The method of any of claims 1 to 6, further comprising:

and acquiring the motion information of the current image according to the display sequence index value of the current image and the display sequence index value of the reference image of the current image.

The method of claim 7, wherein the obtaining the motion information of the current picture according to the display order index value of the current picture and the display order index value of the reference picture of the current picture comprises:

determining a distance index value of the current image according to the display sequence index value of the current image;

determining a distance index value of the reference image according to a display sequence index value of the reference image or a display sequence index value of the current image;

subtracting the distance index value of the reference image from the distance index value of the current image to obtain the distance between the current image and the reference image;

and determining the motion information of the current image according to the distance between the current image and the reference image.

The method of claim 8, wherein determining the distance index value for the current picture based on the display order index value for the current picture comprises:

multiplying the display order index value of the current image by 2 as a distance index value of the current image.

The method of claim 8 or 9, wherein determining the distance index value of the reference picture according to the display order index value of the reference picture or the display order index value of the current picture comprises:

when the reference image is a knowledge image, multiplying a numerical value obtained by subtracting 1 from the display sequence index value of the current image by 2 to serve as a distance index value of the reference image;

and when the reference image is not a knowledge image, multiplying the display order index value of the reference image by 2 to serve as the distance index value of the reference image.

The method of any one of claims 8 to 10, wherein determining motion information for the current picture based on the distance between the current picture and the reference picture comprises:

determining a collocated image of the current image;

determining a co-located image block with the same position as that of a current image block of the current image in the co-located image;

obtaining a motion vector of the co-located image block;

obtaining the distance between the collocated image and a collocated reference image, wherein the collocated reference image is an image where an image block pointed by a motion vector of the collocated image block is located;

and scaling the motion vector of the collocated image block according to the distance between the current image and the reference image and the distance between the collocated image and the collocated reference image to obtain the motion vector of the current image block.

The method of claim 11, wherein said obtaining the distance between the collocated image and the collocated reference image comprises:

obtaining a distance index value of the collocated image and a distance index value of the collocated reference image;

subtracting the distance index value of the collocated reference image from the distance index value of the collocated image to obtain the distance between the collocated image and the collocated reference image.

The method of claim 11 or 12, wherein the motion vector of the current image block is determined by the following formula;

mvE_x=Clip3(-32768,32767,Sign(mvRef_x×BlockDistanceL×BlockDistanceRef)×(((Abs(mvRef_x×BlockDistanceL×(16384/BlockDistanceRef)))+8192)>>14))

mvE_y=Clip3(-32768,32767,Sign(mvRef_y×BlockDistanceL×BlockDistanceRef)×(((Abs(mvRef_y×BlockDistanceL×(16384/BlockDistanceRef)))+8192)>>14))

wherein mvE _ x is a horizontal component of a motion vector of the current image block, mvE _ y is a vertical component of the motion vector of the current image block, mvRef _ x is a horizontal component of the motion vector of the co-located image block, mvRef _ y is a vertical component of the motion vector of the co-located image block, BlockDistanceL is a distance between the current image and the reference image, and blockdistancefef is a distance between the co-located image and the co-located reference image.

An apparatus for determining an image display order, the apparatus comprising:

a first obtaining module, configured to obtain a decoding order index value of a current picture and a decoding order index value of a previous picture adjacent to a decoding order of the current picture;

a first updating module, configured to add 1 to a period identifier value when the decoding order index value of the current picture is smaller than the decoding order index value of the previous picture;

and the determining module is used for determining the display sequence index value of the current image according to the sum of the decoding sequence index value of the current image and the preset positive integral multiple of the period identification value.

The apparatus of claim 14, wherein the display order index value of the current picture is determined by the following formula:

POI=DOI+PictureOutputDelay-OutputReorderDelay+length×DOICycleCnt

the POI is a display sequence index value of the current picture, the DOI is a decoding sequence index value of the current picture, the PictureOutputDelay is a picture output delay value, the outputlerdelay is a picture reordering delay value, the length is the preset positive integer, and the DOICycleCnt is the period identification value.

The apparatus of claim 14 or 15, wherein the apparatus further comprises:

and a second updating module, configured to, when the decoding order index value of the current picture is smaller than the decoding order index value of the previous picture, subtract the preset positive integer from the decoding order index values of all pictures in the reference picture buffer of the current picture, so as to update the decoding order index values of all the pictures.

The apparatus of claim 16, wherein an absolute value of a difference between the display order index value of any picture in the reference picture buffer and the display order index value of the current picture is less than the preset positive integer divided by 2.

The apparatus of any one of claims 14 to 17, wherein the predetermined positive integer is 256.

The apparatus of any one of claims 14 to 18, further comprising:

and the setting module is used for setting the period identification value to be 0 when decoding the sequence head or the sequence start code of the video sequence where the current image is located.

The apparatus of any one of claims 14 to 19, further comprising:

and the second acquisition module is used for acquiring the motion information of the current image according to the display sequence index value of the current image and the display sequence index value of the reference image of the current image.

The apparatus of claim 20, wherein the second obtaining module comprises:

a first determining unit, configured to determine a distance index value of the current image according to a display order index value of the current image;

a second determining unit, configured to determine a distance index value of the reference image according to a display order index value of the reference image or a display order index value of the current image;

the calculation unit is used for subtracting the distance index value of the reference image from the distance index value of the current image to obtain the distance between the current image and the reference image;

a third determining unit, configured to determine motion information of the current image according to a distance between the current image and the reference image.

The apparatus of claim 21, wherein the first determining unit is to:

multiplying the display order index value of the current image by 2 as a distance index value of the current image.

The apparatus of claim 21 or 22, wherein the second determining unit is to:

when the reference image is a knowledge image, multiplying a numerical value obtained by subtracting 1 from the display sequence index value of the current image by 2 to serve as a distance index value of the reference image;

and when the reference image is not a knowledge image, multiplying the display order index value of the reference image by 2 to serve as the distance index value of the reference image.

The apparatus according to any of the claims 21 to 23, wherein the third determination unit is configured to:

determining a collocated image of the current image;

determining a co-located image block with the same position as that of a current image block of the current image in the co-located image;

obtaining a motion vector of the co-located image block;

obtaining the distance between the collocated image and a collocated reference image, wherein the collocated reference image is an image where an image block pointed by a motion vector of the collocated image block is located;

and scaling the motion vector of the collocated image block according to the distance between the current image and the reference image and the distance between the collocated image and the collocated reference image to obtain the motion vector of the current image block.

The apparatus of claim 24, wherein the third determination unit is to:

obtaining a distance index value of the collocated image and a distance index value of the collocated reference image;

subtracting the distance index value of the collocated reference image from the distance index value of the collocated image to obtain the distance between the collocated image and the collocated reference image.

The apparatus according to claim 24 or 25, wherein the motion vector of the current image block is determined by the following formula;

mvE_x=Clip3(-32768,32767,Sign(mvRef_x×BlockDistanceL×BlockDistanceRef)×(((Abs(mvRef_x×BlockDistanceL×(16384/BlockDistanceRef)))+8192)>>14))

mvE_y=Clip3(-32768,32767,Sign(mvRef_y×BlockDistanceL×BlockDistanceRef)×(((Abs(mv Ref_y×BlockDistanceL×(16384/BlockDistanceRef)))+8192)>>14))

wherein mvE _ x is a horizontal component of a motion vector of the current image block, mvE _ y is a vertical component of the motion vector of the current image block, mvRef _ x is a horizontal component of the motion vector of the co-located image block, mvRef _ y is a vertical component of the motion vector of the co-located image block, BlockDistanceL is a distance between the current image and the reference image, and blockdistancefef is a distance between the co-located image and the co-located reference image.

A video coding and decoding device, characterized in that the device comprises: a non-volatile memory and a processor coupled to each other, the processor calling program code stored in the memory to perform the method as described in any one of claims 1-13.

47页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:访问仿射基于历史的运动矢量预测值缓冲器的方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类