Inter-frame prediction method, device and electronic device for video data

By selecting adjacent spatial domain CUs and time domain co-located CUs of the coding unit CU, the reference motion vector and motion intensity are determined, and candidate motion vectors are generated for inter-frame prediction. This solves the problem of low CU motion vector efficiency in AVS3 and reduces the cost of video coding. complexity.

CN114222134BActive Publication Date: 2024-10-22HANGZHOU WEIMING XINKE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111604439.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-10-22
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

In the third-generation audio and video standard AVS3, the efficiency of determining the motion vector of the coding unit CU is low, making it difficult to meet video encoding timing and area constraints, and the large number of prediction modes results in high computational complexity.

Method used

By selecting the adjacent spatial domain CUs and time domain co-located CUs of the current coding unit CU as the reference CU set, the reference motion vector and motion intensity are determined based on the coding information of these CUs, and the motion vector end point of the spatial domain CU closest to the reference motion vector is selected as the reference CU set. The high-level motion vector expresses the target reference point of UMVE, and the offset step is determined based on the reference point to generate candidate motion vectors for inter-frame prediction.

Benefits of technology

Pre-screening candidate motion vectors in SKIP/DIRECT mode before the rate-distortion optimization RDO stage reduces the complexity of the video encoding algorithm and improves the efficiency of determining CU motion vectors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222134B_ABST
    Figure CN114222134B_ABST
Patent Text Reader

Abstract

The present application discloses an inter-frame prediction method, device and electronic device for video data. The method includes: selecting the adjacent spatial domain CU and temporal co-located CU of the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is an encoded CU; determining the reference motion vector of the current CU according to the encoding information of each CU in the reference CU set; determining the motion intensity of the current CU according to the standard deviation of the motion vector in the encoding information of each CU in the reference CU set; using the end point of the motion vector of the spatial domain CU closest to the reference motion vector in the reference CU set as the target reference point of the high-level motion vector expression UMVE; determining the offset step length matching the motion intensity based on the target reference point, and determining the candidate motion vector of the UMVE based on the offset step length; and performing inter-frame prediction on the current CU based on the candidate motion vector. The present application solves the technical problem of low efficiency in determining the motion vector of a CU in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video coding and decoding, and in particular to a method, device and electronic device for inter-frame prediction of video data. Background Art

[0002] In the third generation audio and video standard AVS3, many hybrid coding tools based on coding unit (CU) blocks are used. In addition to the traditional temporal and spatial candidates, the SKIP mode also uses two new coding tools: historical motion vector prediction HMVP and advanced motion vector expression UMVE. They are used in SKIP or DIRECT mode to improve coding quality.

[0003] AVS3 adds new technologies such as temporal motion vector prediction (TMVP) / HMVP / UMVE / Affine (AFFINE). Under the video coding rule IPPP configuration, 55 candidate modes will be generated in the SKIP mode. All candidate modes require tens of seconds per frame in series, and all parallel ones require 55 reference windows. A set of reading, interpolation, rate distortion optimization RDO, and writing circuits are allocated for each reference window, which will make it difficult to meet the hardware coding timing and area constraints. Moreover, due to the large number of prediction modes, the complexity of calculating the rate distortion cost of CU in each prediction mode is high, which makes the calculation of determining the candidate motion vector of CU large, resulting in low efficiency in determining the motion vector of CU. Summary of the invention

[0004] The embodiments of the present application provide a method, device and electronic device for inter-frame prediction of video data, so as to at least solve the technical problem of low efficiency in determining the motion vector of a CU in the related art.

[0005] According to one aspect of an embodiment of the present application, a method for inter-frame prediction of video data is provided, including: selecting adjacent spatial domain CUs and temporal co-located CUs of a current coding unit CU as a reference CU set; wherein each CU in the reference CU set is an encoded CU; determining a reference motion vector of the current CU according to encoding information of each CU in the reference CU set; determining the motion intensity of the current CU according to the standard deviation of the motion vector in the encoding information of each CU in the reference CU set; using the end point of the motion vector of the spatial domain CU in the reference CU set that is closest to the reference motion vector as a target reference point of a higher-level motion vector expression (UMVE); determining an offset step length that matches the motion intensity based on the target reference point, and determining candidate motion vectors of the UMVE based on the offset step length; and performing inter-frame prediction on the current CU based on the candidate motion vector.

[0006] According to another aspect of an embodiment of the present application, an inter-frame prediction device for video data is also provided, including: a selection unit, the selection unit selecting an adjacent spatial domain CU and a temporal co-located CU of a current coding unit CU as a reference CU set; wherein each CU in the above reference CU set is an encoded CU; a first determination unit, used to determine a reference motion vector of the above current CU according to the encoding information of each CU in the above reference CU set; a second determination unit, used to determine the motion intensity of the above current CU according to the standard deviation of the motion vector in the encoding information of each CU in the above reference CU set; a third determination unit, used to use the end point of the motion vector of the spatial domain CU in the above reference CU set that is closest to the above reference motion vector as a target reference point of a higher-level motion vector expression UMVE; a fourth determination unit, used to determine an offset step size that matches the above motion intensity based on the above target reference point, and determine the candidate motion vector of the above UMVE according to the above offset step size; a prediction unit, used to perform inter-frame prediction on the above current CU based on the above candidate motion vector.

[0007] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned inter-frame prediction method for video data when running.

[0008] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the inter-frame prediction method of video data through the computer program.

[0009] In the embodiment of the present application, the adjacent spatial CU and temporal co-located CU of the current coding unit CU are selected as a reference CU set; wherein each CU in the reference CU set is a coded CU; the reference motion vector of the current CU is determined according to the coding information of each CU in the reference CU set; the motion intensity of the current CU is determined according to the standard deviation of the motion vector in the coding information of each CU in the reference CU set; the end point of the motion vector of the spatial CU closest to the reference motion vector in the reference CU set is used as the target reference point of the high-level motion vector expression UMVE; the offset step length matching the motion intensity is determined based on the target reference point, and the candidate motion vector of the UMVE is determined according to the offset step length; inter-frame prediction is performed on the current CU based on the candidate motion vector. Since the candidate motion vectors of the SKIP / DIRECT mode are pre-screened before the rate-distortion optimization RDO stage, not only the complexity of the video coding algorithm is reduced, but also the efficiency of determining the motion vector of the CU is improved, solving the technical problem of low efficiency in determining the motion vector of the CU in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0011] Figure 1 is a schematic diagram of an application environment of an optional inter-frame prediction method for video data according to an embodiment of the present invention;

[0012] Figure 2 is a schematic diagram of an application environment of another optional inter-frame prediction method for video data according to an embodiment of the present invention;

[0013] Figure 3 is a schematic flow chart of an optional inter-frame prediction method for video data according to an embodiment of the present invention;

[0014] Figure 4 is a schematic diagram of a spatial domain CU of a current CU according to an embodiment of the present invention;

[0015] Figure 5 is a schematic diagram of another time-domain CU of a current CU according to an embodiment of the present invention;

[0016] Figure 6 is a schematic diagram of a UMVE according to an embodiment of the present invention;

[0017] Figure 7 is a schematic structural diagram of an optional inter-frame prediction device for video data according to an embodiment of the present invention;

[0018] Figure 8 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0021] According to one aspect of an embodiment of the present invention, a method for inter-frame prediction of video data is provided. Optionally, as an optional implementation, the method for inter-frame prediction of video data can be applied to, but is not limited to, Figure 1 In the hardware environment shown. The hardware environment includes: a terminal device 102 for human-computer interaction with a user, a network 104, and a server 106. A user 108 can perform human-computer interaction with the terminal device 102, and an inter-frame prediction application client for video data is running in the terminal device 102. The above-mentioned terminal device 102 includes a human-computer interaction screen 1022, a processor 1024, and a memory 1026. The human-computer interaction screen 1022 is used to present an interface for video frame processing; the processor 1024 is used to obtain the adjacent spatial domain CU and the temporal co-located CU of the current coding unit CU. The memory 1026 is used to store a reference spatial domain CU set based on the current coding unit CU.

[0022] In addition, the server 106 includes a database 1062 and a processing engine 1064, wherein the database 1062 is used to store a reference spatial CU of the current coding unit CU and a candidate motion vector of the current CU. The processing engine 1064 is used to: select an adjacent spatial CU and a temporal co-located CU of the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is a coded CU; determine a reference motion vector of the current CU according to the coding information of each CU in the reference CU set; determine the motion intensity of the current CU according to the standard deviation of the motion vector in the coding information of each CU in the reference CU set; use the end point of the motion vector of the spatial CU in the reference CU set that is closest to the reference motion vector as a target reference point of a high-level motion vector expression UMVE; determine an offset step length that matches the motion intensity based on the target reference point, and determine the candidate motion vector of the UMVE based on the offset step length; and perform inter-frame prediction on the current CU based on the candidate motion vector.

[0023] As another optional implementation, the above-mentioned inter-frame prediction method of the video data of the present application can be applied to Figure 2 In. Figure 2 As shown, human-computer interaction can be performed between user 202 and user device 204. User device 204 includes memory 206 and processor 208. In this embodiment, terminal device 204 can refer to but not be limited to the operation performed by the above terminal device 102 to perform inter-frame prediction on the above current CU based on the candidate motion vector.

[0024] Optionally, the terminal device 102 and the user device 204 may be, but are not limited to, terminals such as mobile phones, tablet computers, laptop computers, and PCs, and the network 104 may include, but is not limited to, a wireless network or a wired network. The wireless network includes: WIFI and other networks that implement wireless communication. The wired network may include, but is not limited to: a wide area network, a metropolitan area network, and a local area network. The server 106 may include, but is not limited to, any hardware device that can perform computing. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.

[0025] Optionally, in one or more embodiments, Figure 3 As shown, the inter-frame prediction method of the above video data includes:

[0026] S302 , selecting a spatial domain CU and a temporal co-located CU adjacent to the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is an encoded CU.

[0027] In this embodiment, if Figure 4 and Figure 5 As shown in the figure, according to the AVS3 standard, the reference frame image Col_pic of the current frame image Cur_pic; the current CU (Cur) has a temporal co-location {T} located at the lower right adjacent to the current Cu, and the current CU has 6 spatial CUs {A, B, D, G, C, F} adjacent to the current CU, a total of 7 CUs, and the above 7 CUs are used as the reference CU set {A, B, D, G, C, F, T} of the current Cu. CUs that are not coded in the standard and whose coding mode is INTRA are discarded.

[0028] S304: Determine a reference motion vector of the current CU according to the coding information of each CU in the reference CU set.

[0029] In the embodiment of the present invention, the coding information of the CU includes but is not limited to the coding mode, motion vector, etc., which are not limited here. The motion vector corresponding to the minimum rate-distortion cost of each CU rate-distortion cost in the reference CU set is calculated through the coding information, and the optimal motion vector for each CU is obtained. Preferably, Figure 4 As shown, in the reference CU set {A, B, D, G, C, F, T}, the optimal motion vector of CU is expressed as follows:

[0030] MV i =(MV i,x , MV i,y ), where i∈{F,G,C,A,B,D,T}.

[0031] The average of the best motion vectors of the seven CUs in the reference CU set is taken as the reference motion vector of the current CU.

[0032] MV ref =(MV ref,x , MV ref,y )

[0033]

[0034]

[0035] Among them, MV ref is the reference motion vector of the current CU, MV ref,x is the horizontal axis, MV ref,y Vertical coordinate, i∈{F,G,C,A,B,D,T}.

[0036] S306: Determine the intensity of the motion of the current CU according to the standard deviation of the motion vector in the encoding information of each CU in the reference CU set.

[0037] In an embodiment of the present invention, for example, Figure 4 As shown, in the reference CU set {A, B, D, G, C, F, T}, the standard deviation of the best motion vectors of the 7 CUs in the reference CU set is taken as the reference motion vector difference MVD of the current CU; the specific formula is as follows:

[0038] MVD ref =(MVD ref,x , MVD ref,y )

[0039]

[0040]

[0041] Among them, MVD ref is the reference motion vector difference of the current CU, i∈{F, G, C, A, B, D, T}.

[0042] In this embodiment, according to MVD ref The size of CU is used to judge the intensity of the current CU's movement.

[0043] S308 , taking the end point of the motion vector of the spatial domain CU in the reference CU set that is closest to the reference motion vector as the target reference point of the high-level motion vector expression UMVE.

[0044] In the AVS3 standard, there are at most 2 UMVE reference points, such as Figure 6 As shown in the figure, the basic motion vector of skip mode / direct mode is finely adjusted in terms of step size and direction, which improves the encoding quality while saving bit rate. Starting from two starting points, searches are performed in four directions: up, down, left, and right. The offset step size is 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 2 pixels, and 4 pixels. There are a total of 2 (reference point) × 4 (direction) × 5 (step size) = 40 motion vector candidates.

[0045] In an embodiment of the present invention, the end point of the motion vector of the spatial CU in the reference CU set that is closest to the reference motion vector is used as the target reference point of the high-level motion vector expression UMVE. For example, the motion vector of the spatial CUA is closest to the reference motion vector, so the end point of the A motion vector can be used as the target reference point.

[0046] Specifically, the formula for selecting the target reference point is as follows:

[0047] D=min i D i ;

[0048]

[0049] Where i∈{0, 1}, D is the target reference point.

[0050] S310: Determine an offset step length that matches the intensity of the motion based on the target reference point, and determine a candidate motion vector of the UMVE according to the offset step length.

[0051] In the embodiment of the present invention, the MVD is calculated from 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 2 pixels, and 4 pixels. ref =(MVD ref,x , MVD ref,y ) is used to obtain the offset step size closest to the reference motion vector difference, and then the target reference point is used as the starting point, and the end point is obtained according to the offset step size, and finally the candidate motion vectors of the 4 UMVEs can be obtained.

[0052] S312: Perform inter-frame prediction on the current CU based on the candidate motion vector.

[0053] Specifically, after obtaining the affine fusion candidate list, affine transformation interpolation is performed on the current frame to predict the next frame of the current frame.

[0054] In an embodiment of the present application, a reference spatial domain CU of a current coding unit CU is selected; wherein the reference spatial domain CU is a coding unit in an available state; when there is a reference spatial domain CU whose target coding mode is an affine mode in the reference spatial domain CU, the affine control points of the reference spatial domain CU whose target coding mode is an affine mode are used as the affine control points of the current CU, and the first affine model is written into an affine fusion candidate list; wherein the target coding mode is a prediction mode corresponding to the minimum rate-distortion cost among the rate-distortion costs in multiple inter-frame prediction modes, and the first affine model includes an affine mode based on a model; when there are at least two reference spatial domain CUs whose target coding mode is an affine mode in the reference spatial domain CU, the first affine model and / or the second affine model are written into an affine fusion candidate list; wherein the second affine model includes an affine mode based on a control point; when there is no reference spatial domain CU whose target coding mode is an affine mode in the reference spatial domain CU, the second affine model is written into an affine fusion candidate list; and inter-frame prediction is performed on the current CU according to the affine fusion candidate list. Since the candidate list of the affine SKIP mode is pre-screened before the rate-distortion optimization (RDO) stage, not only the computational complexity of the affine SKIP mode is reduced, but also the efficiency of determining the prediction mode of the CU is improved, thereby solving the technical problem of low efficiency in determining the prediction mode of the CU in the related art.

[0055] In one or more embodiments, the step S304, determining the reference motion vector of the current CU according to the coding information of each CU of the reference CU set, includes:

[0056] According to the coding information of each CU in the reference CU set, a target motion vector of each CU and a target motion vector set including the target motion vector of each CU are determined; the target motion vector is a motion vector corresponding to a minimum rate-distortion cost;

[0057] The average value of all target motion vectors in the target motion vector set is used as the reference motion vector.

[0058] Specifically, Figure 4 As shown, in the reference CU set {A, B, D, G, C, F, T}, the coding information of each CU includes the motion vector of each CU, and the optimal motion vector of the CU is expressed as follows:

[0059] MV i =(MV i,x , MV i,y ), where i∈{F,G,C,A,B,D,T}.

[0060] Take the average of the best motion vectors of the seven CUs in the reference CU set as the reference motion vector of the current CU. The formula is as follows:

[0061] MV ref =(MV ref,x , MV ref,y )

[0062]

[0063]

[0064] Among them, MV ref is the reference motion vector of the current CU, MV ref,x is the horizontal axis, MV ref,y Vertical coordinate, i∈{F,G,C,A,B,D,T}.

[0065] In one or more embodiments, the above-mentioned determination of the motion intensity of the above-mentioned current CU based on the standard deviation of the motion vector in the encoding information of each CU in the above-mentioned reference CU set includes: determining the standard deviation of all target motion vectors in the above-mentioned target motion vector set, and using the above-mentioned standard deviation as the reference motion vector difference MVD of the above-mentioned current CU; wherein the above-mentioned reference MVD is used to indicate the motion intensity of the above-mentioned current CU.

[0066] Specifically, Figure 4As shown, in the reference CU set {A, B, D, G, C, F, T}, the standard deviation of the best motion vectors of the 7 CUs in the reference CU set is taken as the reference motion vector difference MVD of the current CU; the specific formula is as follows:

[0067] MVD ref =(MVD ref,x , MVD ref,y )

[0068]

[0069]

[0070] Among them, MVD ref is the reference motion vector difference of the current CU, i∈{F, G, C, A, B, D, T}.

[0071] In this embodiment, according to MVD ref The size of CU is used to judge the intensity of the current CU's movement.

[0072] In one or more embodiments, the above-mentioned determining an offset step length that matches the above-mentioned motion intensity based on the above-mentioned target reference point, and determining the candidate motion vector of the above-mentioned UMVE according to the above-mentioned offset step length, includes: determining a target offset step length that is closest to the above-mentioned reference MVD from the offset step length set of the above-mentioned target reference point based on the above-mentioned target reference point; and determining the candidate motion vector of the above-mentioned UMVE according to the above-mentioned target offset step length.

[0073] For example, if the motion vector of spatial domain CUA is closest to the reference motion vector, then the end point of motion vector A can be used as the target reference point. Calculate the distance from MVD to 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 2 pixels, and 4 pixels. ref =(MVD ref,x , MVD ref,y ) is used to obtain the offset step size closest to the reference motion vector difference, and then the target reference point is used as the starting point, and the end point is obtained according to the offset step size, and finally the candidate motion vectors of the 4 UMVEs can be obtained.

[0074] In one or more embodiments, the determining, based on the target reference point, from the offset step set of the target reference point, a target offset step that is closest to the reference MVD includes:

[0075] A two-dimensional coordinate system is constructed with the target reference point as the origin, the left and right direction of the target reference point as the X-axis, and the up and down direction of the target reference point as the Y-axis;

[0076] Determine a first target offset step length that is closest to the reference MVD from the offset step length set on the X-axis; determine a first candidate UMVE motion vector based on the target reference point and the first target offset step length;

[0077] A second target offset step length which is closest to the reference MVD is determined from the offset step length set on the Y axis; and a second candidate UMVE motion vector is determined based on the target reference point and the second target offset step length.

[0078] Specifically, the offset step size closest to the reference MVD is selected on the X-axis and Y-axis respectively, and finally four UMVE motion vector candidates are obtained. The formula for calculating the offset step size is as follows:

[0079]

[0080]

[0081] Among them, (step x , step x ) is the position information of the offset step.

[0082] In one or more embodiments, the inter-frame prediction method of the above-mentioned video data also includes: determining the distance between the motion vector of each CU in the above-mentioned target motion vector set and the above-mentioned reference motion vector; selecting a target number of motion vectors according to the above-mentioned distance as candidate motion vectors for the skip SKIP mode or the direct DIRECT mode for inter-frame prediction.

[0083] In the embodiment of the present invention, the target number includes but is not limited to 2.

[0084] In one or more embodiments, the selecting of the adjacent spatial domain CU and the temporal co-located CU of the current coding unit CU as the reference CU set includes:

[0085] Six adjacent spatial domain CUs and one temporal co-located CU of the current coding unit CU are selected as the reference CU set.

[0086] like Figure 4 and Figure 5 As shown, according to the AVS3 standard, the reference frame image Col_pic of the current frame image Cur_pic; one temporal co-location {T} of the current CU (Cur) is located at the lower right adjacent to the current Cu, and the six spatial CUs {A, B, D, G, C, F} adjacent to the current CU, a total of 7 CUs.

[0087] Based on the above embodiments, in one or more embodiments, the inter-frame prediction method of the above video data further includes:

[0088] 1) Select 6 spatial CUs (F / G / C / A / B / D) and the temporal co-located CU (T) of the current CU, a total of 7 CUs. The positions of the 7 CUs are shown as follows Figure 4 , Figure 5 shown.

[0089] 2) According to the encoded information of the 7 CUs, the motion vector reference value with the maximum probability (the minimum rate-distortion cost) is calculated.

[0090] 3) Based on the motion vector information of the 7 CUs, predict the motion intensity of the current CU.

[0091] 4) Select the spatial motion vector closest to the reference motion vector among the motion vectors of the 7 CUs as the UMVE base point, and select the MVD that matches the motion intensity obtained in step 3) as the UMVE motion vector candidate.

[0092] 5) Select the two motion vectors closest to the reference motion vector in step 2) among the motion vectors of the seven CUs as candidates for the SKIP / DIRECT mode motion vectors.

[0093] Specifically, in the above step 1), according to the AVS3 standard, there are 7 related CUs, including 1 temporal CU and 6 spatial CUs of the current CU. The uncoded mode and the coding mode of INTRA in the standard should be discarded.

[0094] Specifically, in the above step 2), the following contents are specifically included:

[0095] a) Record the optimal motion vector of 7 CUs, expressed as MV i =(MV i,x , MV i,y ), where i∈{F,G,C,A,B,D,T}.

[0096] b) Take the average of the best motion vectors of the 7 CUs as the reference motion vector of the current CU.

[0097] MV ref =(MV ref,x , MV ref,y )

[0098]

[0099]

[0100] Among them, i∈{F,G,C,A,B,D,T}.

[0101] Specifically, in the above step 3), the following contents are specifically included:

[0102] Take the standard deviation of the best motion vectors of the seven CUs as the reference MVD of the current CU. The formula is as follows:

[0103] MVD ref =(MVD ref,x , MVD ref,y )

[0104]

[0105]

[0106] Among them, i∈{F,G,C,A,B,D,T}.

[0107] Specifically, in the above step 4), the following contents are specifically included:

[0108] a) According to the AVS3 standard, there are at most 2 UMVE reference points, and the one closest to the reference motion vector obtained in process 2) is selected, that is,

[0109]

[0110]

[0111] Among them, i∈{0,1}.

[0112] b) According to the AVS3 standard, the UMVE technology supports traversing 5 points in the four directions of upward, downward, left, and right from the reference point, and supports traversing 40 points in total. The distance (step length) from the reference point is 1, 2, 4, 8, and 16 respectively. In the x and y directions, the step length closest to the reference MVD obtained in process 3) is selected respectively, and finally 4 UMVE motion vector candidates are obtained. The calculation formula is as follows:

[0113] ||step x |-MVD ref,x |=min i ||step i,x |-MVD ref,x |;

[0114] ||step y |-MVD ref,y |=min i ||step i,y |-MVD ref,y |;

[0115] The embodiment of the present invention is based on the AVS3 standard and pre-analyzes the CU correlation, motion intensity and other means to pre-select the candidate motion vectors provided by the UMVE technology in the SKIP / DIRECT mode in the pre-stage of rate-distortion optimization (RDO), thereby reducing the number of interpolation and RDO operations and improving the video frame coding efficiency.

[0116] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0117] According to another aspect of the embodiment of the present application, there is also provided a video data inter-frame prediction device for implementing the above-mentioned video data inter-frame prediction method. Figure 7 As shown, the device comprises:

[0118] A selection unit 702 is used to select a spatial domain CU and a temporal co-located CU adjacent to the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is a coded CU;

[0119] A first determining unit 704 is configured to determine a reference motion vector of the current CU according to the coding information of each CU of the reference CU set;

[0120] A second determining unit 706 is used to determine the motion intensity of the current CU according to the standard deviation of the motion vector in the encoding information of each CU in the reference CU set;

[0121] The third determining unit 708 is configured to use the end point of the motion vector of the spatial domain CU in the reference CU set that is closest to the reference motion vector as a target reference point of the high-level motion vector expression UMVE;

[0122] A fourth determining unit 710 is configured to determine an offset step length that matches the intensity of the motion based on the target reference point, and determine a candidate motion vector of the UMVE according to the offset step length;

[0123] The prediction unit 712 is configured to perform inter-frame prediction on the current CU based on the candidate motion vector.

[0124] In the embodiment of the present application, the adjacent spatial CU and temporal co-located CU of the current coding unit CU are selected as a reference CU set; wherein each CU in the reference CU set is a coded CU; the reference motion vector of the current CU is determined according to the coding information of each CU in the reference CU set; the motion intensity of the current CU is determined according to the standard deviation of the motion vector in the coding information of each CU in the reference CU set; the end point of the motion vector of the spatial CU closest to the reference motion vector in the reference CU set is used as the target reference point of the high-level motion vector expression UMVE; the offset step length matching the motion intensity is determined based on the target reference point, and the candidate motion vector of the UMVE is determined according to the offset step length; inter-frame prediction is performed on the current CU based on the candidate motion vector. Since the candidate motion vectors of the SKIP / DIRECT mode are pre-screened before the rate-distortion optimization RDO stage, not only the complexity of the video coding algorithm is reduced, but also the efficiency of determining the motion vector of the CU is improved, solving the technical problem of low efficiency in determining the motion vector of the CU in the related art.

[0125] In one or more embodiments, the first determining unit 704 specifically includes:

[0126] A first determination module is used to determine, according to the coding information of each CU in the reference CU set, a target motion vector of each CU and a target motion vector set including the target motion vector of each CU; the target motion vector is a motion vector corresponding to a minimum rate-distortion cost;

[0127] The calculation module is used to take the average value of all target motion vectors in the target motion vector set as the reference motion vector.

[0128] In one or more embodiments, the second determining unit 706 specifically includes:

[0129] The second determination module is used to determine the standard deviation of all target motion vectors in the target motion vector set, and use the standard deviation as the reference motion vector difference MVD of the current CU; wherein the reference MVD is used to indicate the intensity of motion of the current CU.

[0130] In one or more embodiments, the fourth determining unit 710 specifically includes:

[0131] A third determination module is used to determine, based on the target reference point, a target offset step length that is closest to the reference MVD from the offset step length set of the target reference point;

[0132] The fourth determining module is used to determine the candidate motion vector of the UMVE according to the target offset step size.

[0133] In one or more embodiments, the third determination module specifically includes:

[0134] A construction subunit is used to construct a two-dimensional coordinate system with the target reference point as the origin, the left and right direction of the target reference point as the X-axis, and the up and down direction of the target reference point as the Y-axis;

[0135] A first determining subunit is used to determine a first target offset step length which is closest to the reference MVD from the offset step length set on the X-axis;

[0136] A second determining subunit is used to determine a first candidate UMVE motion vector based on the target reference point and the first target offset step size;

[0137] A third determining subunit is used to determine a second target offset step length which is closest to the reference MVD on the Y axis from the offset step length set;

[0138] The fourth determining subunit is configured to determine a second candidate UMVE motion vector based on the target reference point and the second target offset step size.

[0139] In one or more embodiments, the inter-frame prediction apparatus for the video data further includes:

[0140] a fifth determining unit, configured to determine a distance between a motion vector of each CU in the target motion vector set and the reference motion vector;

[0141] The sixth determining unit is used to select a target number of motion vectors according to the distance as candidate motion vectors for a SKIP mode or a DIRECT mode of inter-frame prediction.

[0142] In one or more embodiments, the selection unit specifically includes:

[0143] The selection module is used to select six adjacent spatial domain CUs and one temporal co-located CU of the current coding unit CU as the above-mentioned reference CU set.

[0144] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned inter-frame prediction method for video data is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a server as an example. Figure 8As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program, and the processor 804 is configured to execute the steps in any of the above method embodiments through the computer program.

[0145] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0146] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0147] S1, selecting a spatial domain CU and a temporal co-located CU adjacent to the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is an encoded CU;

[0148] S2, determining a reference motion vector of the current CU according to the coding information of each CU in the reference CU set;

[0149] S3, determining the intensity of motion of the current CU according to the standard deviation of the motion vector in the encoding information of each CU in the reference CU set;

[0150] S4, taking the end point of the motion vector of the spatial domain CU in the reference CU set that is closest to the reference motion vector as the target reference point of the high-level motion vector expression UMVE;

[0151] S5, determining an offset step length that matches the intensity of the motion based on the target reference point, and determining a candidate motion vector of the UMVE according to the offset step length;

[0152] S6: Perform inter-frame prediction on the current CU based on the candidate motion vector.

[0153] Alternatively, a person skilled in the art may understand that: Figure 8 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Figure 8 The electronic device and the electronic equipment described above are not limited in structure. Figure 8 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 8 Different configurations are shown.

[0154] Among them, the memory 802 can be used to store software programs and modules, such as program instructions / modules corresponding to the inter-frame prediction method and device of video data in the embodiments of the present application. The processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, realizing the above-mentioned inter-frame prediction method of video data. The memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 802 may further include a memory remotely arranged relative to the processor 804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. Among them, the memory 802 can be specifically but not limited to being used to store information such as the motion vector of the current coding unit CU. As an example, such as Figure 8 As shown, the memory 802 may include, but is not limited to, the selection unit 702, the first determination unit 704, the second determination unit 706, the third determination unit 708, the fourth determination unit 710, and the prediction unit 712 in the inter-frame prediction device for the video data. In addition, other module units in the inter-frame prediction device for the video data may also be included but are not limited to, which will not be described in detail in this example.

[0155] Optionally, the transmission device 808 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 808 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 808 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0156] In addition, the electronic device further includes: a display 808 for displaying the motion vector information of the current coding unit CU; and a connection bus 810 for connecting various module components in the electronic device.

[0157] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.

[0158] In one or more embodiments, the present application further provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned inter-frame prediction method for video data. The computer program is configured to execute the steps of any of the above-mentioned method embodiments when it is run.

[0159] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0160] S1, selecting a spatial domain CU and a temporal co-located CU adjacent to the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is an encoded CU;

[0161] S2, determining a reference motion vector of the current CU according to the coding information of each CU in the reference CU set;

[0162] S3, determining the intensity of motion of the current CU according to the standard deviation of the motion vector in the encoding information of each CU in the reference CU set;

[0163] S4, taking the end point of the motion vector of the spatial domain CU in the reference CU set that is closest to the reference motion vector as the target reference point of the high-level motion vector expression UMVE;

[0164] S5, determining an offset step length that matches the intensity of the motion based on the target reference point, and determining a candidate motion vector of the UMVE according to the offset step length;

[0165] S6: Perform inter-frame prediction on the current CU based on the candidate motion vector.

[0166] Optionally, in this embodiment, a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0167] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the above methods in each embodiment of the present application.

[0168] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0169] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0170] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0171] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0172] The above are only preferred implementations of the present application. It should be pointed out that ordinary technicians in this technical field can make several improvements and modifications without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for inter-frame prediction of video data, characterized in that: include: Selecting a spatial domain CU and a temporal co-located CU adjacent to the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is an encoded CU; Determine a reference motion vector of the current CU according to encoding information of each CU of the reference CU set; Determining the motion intensity of the current CU according to the standard deviation of the motion vector in the encoding information of each CU of the reference CU set; Taking the end point of the motion vector of the spatial domain CU in the reference CU set that is closest to the reference motion vector as the target reference point of the high-level motion vector expression UMVE; Determining an offset step length that matches the intensity of the motion based on the target reference point, and determining a candidate motion vector of the UMVE according to the offset step length; Inter-frame prediction is performed on the current CU based on the candidate motion vector.

2. The method according to claim 1, characterized in that The determining, according to the coding information of each CU of the reference CU set, a reference motion vector of the current CU includes: Determine, according to the coding information of each CU in the reference CU set, a target motion vector of each CU and a target motion vector set including the target motion vector of each CU; the target motion vector is a motion vector corresponding to a minimum rate-distortion cost; The average value of all target motion vectors in the target motion vector set is used as the reference motion vector.

3. The method according to claim 2, characterized in that The step of determining the motion intensity of the current CU according to the standard deviation of the motion vector in the encoding information of each CU of the reference CU set includes: Determine the standard deviation of all target motion vectors in the target motion vector set, and use the standard deviation as a reference motion vector difference MVD of the current CU; wherein the reference MVD is used to indicate the intensity of motion of the current CU.

4. The method according to claim 3, characterized in that The step of determining an offset step length that matches the intensity of the motion based on the target reference point, and determining a candidate motion vector of the UMVE according to the offset step length, comprises: Determine, based on the target reference point, a target offset step length that is closest to the reference MVD from the offset step length set of the target reference point; A candidate motion vector of the UMVE is determined according to the target offset step size.

5. The method according to claim 4, characterized in that The step of determining, based on the target reference point, from the offset step set of the target reference point, a target offset step that is closest to the reference MVD comprises: Constructing a two-dimensional coordinate system with the target reference point as the origin, the left and right direction of the target reference point as the X-axis, and the up and down direction of the target reference point as the Y-axis; Determine a first target offset step length that is closest to the reference MVD from the offset step length set on the X-axis; Determining a first candidate UMVE motion vector based on the target reference point and a first target offset step size; Determine a second target offset step length that is closest to the reference MVD from the offset step length set on the Y axis; Based on the target reference point and the second target offset step, a second candidate UMVE motion vector is determined.

6. The method according to claim 2, characterized in that The method further comprises: Determine the distance between the motion vector of each CU in the target motion vector set and the reference motion vector; A target number of motion vectors are selected according to the distances as candidate motion vectors for a SKIP mode or a DIRECT mode of inter-frame prediction.

7. The method according to claim 1, characterized in that The selecting of the adjacent spatial domain CU and the temporal co-located CU of the current coding unit CU as the reference CU set includes: Six adjacent spatial domain CUs and one temporal co-located CU of the current coding unit CU are selected as the reference CU set.

8. An inter-frame prediction device for video data, characterized in that: include: A selection unit selects a spatial domain CU and a temporal co-located CU adjacent to the current coding unit CU as a reference CU set; wherein each CU in the reference CU set is an encoded CU; A first determining unit, configured to determine a reference motion vector of the current CU according to encoding information of each CU of the reference CU set; A second determining unit, configured to determine the motion intensity of the current CU according to a standard deviation of a motion vector in the encoding information of each CU of the reference CU set; A third determining unit is configured to use an end point of a motion vector of a spatial domain CU in the reference CU set that is closest to the reference motion vector as a target reference point of an advanced motion vector expression UMVE; a fourth determining unit, configured to determine, based on the target reference point, an offset step length that matches the intensity of the motion, and determine a candidate motion vector of the UMVE according to the offset step length; A prediction unit is used to perform inter-frame prediction on the current CU based on the candidate motion vector.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.