Inter prediction method, encoder, decoder and storage medium
By creating separate motion information mapping tables for each partition in the Geometrical Partition Mode, the method addresses the issue of suboptimal motion information selection in inter prediction, improving accuracy and encoding efficiency in video encoding.
Patent Information
- Application Number
- JP2022555840
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-04-03
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-04-03
AI Technical Summary
The current inter prediction methods in video encoding, particularly using Geometrical Partition Mode (GPM), indiscriminately select motion information from a shared merge candidate list for different partitions of a block, leading to potential suboptimal selection of motion information and reduced prediction accuracy.
Construct separate motion information mapping tables for each partition based on GPM parameters and attribute information, allowing for the selection of the best motion information from the merged candidate list for each partition, thereby improving the accuracy of motion information selection.
Enhances the accuracy of motion information selection and improves the overall inter prediction effectiveness by ensuring that the best motion information is used for each partition, reducing prediction errors and enhancing encoding efficiency.
Smart Images

Figure 0007564232000011 
Figure 0007564232000012 
Figure 0007564232000013
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present application relate to video encoding techniques, including, but not limited to, inter-prediction methods, encoders, decoders, and storage media. [Background technology]
[0002] In video encoding and decoding, in the process of encoding and decoding a current block, in addition to intra prediction, an inter prediction method can also be adopted. Inter prediction can include motion estimation and motion compensation, and for motion compensation, a geometric partition prediction mode (GPM) is adopted to divide the current block of inter into two non-rectangular partitions and predict them respectively, and then perform weighted fusion, thereby obtaining a predicted value of the current block.
[0003] Currently, in the prediction process of GPM, it is necessary to construct a corresponding motion information candidate list (one-way merge candidate list), which is actually selected from the normal motion information candidate list (merge list) in the manner of parity checking, that is, the motion information of each of the two partitions after adopting the GPM split mode is selected from the same one-way merge candidate list.
[0004] However, since all of the candidate motion information for each of the two partitions divided in the current GPM is selected indiscriminately from the same Merge candidate list, when selecting the motion information to be used in each partition, there is a risk that the optimal candidate motion information will not be selected, or even if the optimal candidate motion information is selected, the effect of prediction performed using the optimal candidate motion information is not good. Summary of the Invention [Problem to be solved by the invention]
[0005] The present embodiment provides an inter prediction method, an encoder, a decoder and a storage medium, which can construct respective merge mapping tables for different partitions, improve the accuracy of motion information selection for each partition, and further improve the inter prediction effect. [Means for solving the problem]
[0006] In a first aspect, embodiments of the present application provide an inter prediction method for application to a decoder, the method comprising: Parsing the bitstream to determine a prediction mode parameter of a current block; When the prediction mode parameter indicates that an inter prediction value of the current block is determined using an inter geometric partition prediction mode (GPM), determining a GPM parameter of the current block, a merge motion information candidate list of the current block, and attribute information of motion information in the merge motion information candidate list; determining a first motion information mapping table of a first partition and a second motion information mapping table of a second partition according to the GPM parameters, the merge motion information candidate list and the attribute information; determining an inter-prediction value of the current block based on the first motion information mapping table, the second motion information mapping table, and the merge motion information candidate list.
[0007] In a second aspect, embodiments of the present application provide an inter prediction method for application to an encoder, the method comprising: determining a prediction mode parameter for a current block; When the prediction mode parameter indicates that an inter prediction value of the current block is determined using an inter geometric partition prediction mode (GPM), determining a GPM parameter of the current block, a merge motion information candidate list of the current block, and attribute information of motion information in the merge motion information candidate list; determining a first motion information mapping table of a first partition and a second motion information mapping table of a second partition according to the GPM parameters, the merge motion information candidate list and the attribute information; determining an inter-prediction value of the current block based on the first motion information mapping table, the second motion information mapping table, and the merge motion information candidate list.
[0008] In a third aspect, embodiments of the present application provide a decoder, the decoder comprising: a decoding unit configured to analyze the bitstream to determine a prediction mode parameter of a current block; a first obtaining unit configured to, when the prediction mode parameter indicates that an inter-predicted value of the current block is determined using an inter-geometric partition prediction mode (GPM), determine a GPM parameter of the current block, a merged motion information candidate list of the current block, and attribute information of motion information in the merged motion information candidate list, and determine a first motion information mapping table of a first partition and a second motion information mapping table of a second partition based on the GPM parameter, the merged motion information candidate list, and the attribute information; The decoding unit is further configured to determine, based on the first motion information mapping table, the second motion information mapping table and the merged motion information candidate list, an inter prediction value of the current block.
[0009] In a fourth aspect, embodiments of the present invention provide an encoder, the encoder comprising: a second obtaining unit configured to determine a prediction mode parameter of a current block, and when the prediction mode parameter indicates that an inter-predicted value of the current block is determined using an inter-geometric partition prediction mode (GPM), determine a GPM parameter of the current block, a merged motion information candidate list of the current block, and attribute information of motion information in the merged motion information candidate list, and determine a first motion information mapping table of a first partition and a second motion information mapping table of a second partition based on the GPM parameter, the merged motion information candidate list, and the attribute information; and a coding unit configured to determine an inter-prediction value of the current block based on the first motion information mapping table, the second motion information mapping table, and the merged motion information candidate list.
[0010] In a fifth aspect, embodiments of the present disclosure further provide a decoder including a first memory and a first processor; The first memory stores a computer program executable by a first processor, the program implementing the inter prediction method for a decoder when executed by the first processor.
[0011] In a sixth aspect, embodiments of the present disclosure further provide an encoder including a second memory and a second processor, The second memory stores a computer program executable by a second processor, the program implementing the inter prediction method of the encoder when executed by the second processor.
[0012] In a seventh aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, the computer program realizing the inter-prediction method of a decoder when executed by a first processor, or the computer program realizing the inter-prediction method of an encoder when executed by a second processor.
[0013] The present embodiment provides an inter-prediction method, an encoder, a decoder, and a storage medium, which determine a prediction mode parameter of a current block by analyzing a bitstream, and when the prediction mode parameter indicates that an inter-prediction value of the current block is determined using an inter-geometric partitioning prediction mode (GPM), determine a GPM parameter of the current block, a merge motion information candidate list of the current block, and attribute information of the motion information in the merge motion information candidate list, and based on the GPM parameter, the merge motion information candidate list, determine a first motion information mapping table of a first partition and a second motion information mapping table of a second partition, and determine an inter-prediction value of the current block based on the first motion information mapping table, the second motion information mapping table, and the merge motion information candidate list. By adopting the above technical proposal, when GPM prediction is performed, for the first and second partitions that are divided, a corresponding motion information mapping table can be constructed based on attribute information, so that respective optimal motion information can be obtained from the merge motion information candidate list based on the motion information mapping table, and then the prediction process of the current block can be performed, which realizes the construction of respective candidate motion information for the two partitions after GPM division. In order to use respective situations of different partitions, respective merge mapping tables can be constructed for different partitions, which improves the selection accuracy of motion information for each partition and further improves the inter-prediction effect. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a block diagram of a configuration of a video encoding system provided by an embodiment of the present application. [Diagram 2] FIG. 2 is a block diagram of a configuration of a video decoding system provided by an embodiment of the present application. [Diagram 3] 1 is a flowchart illustrating an implementation of an intra prediction method provided by an embodiment of the present application; [Figure 4a]FIG. 2 illustrates two exemplary divisions of TPM modes provided by an embodiment of the present invention. [Figure 4b] FIG. 2 illustrates two exemplary divisions of TPM modes provided by an embodiment of the present invention. [Figure 5a] FIG. 2 illustrates seven exemplary division modes provided by an embodiment of the present invention. [Figure 5b] FIG. 2 illustrates seven exemplary division modes provided by an embodiment of the present invention. [Figure 5c] FIG. 2 illustrates seven exemplary division modes provided by an embodiment of the present invention. [Figure 5d] FIG. 2 illustrates seven exemplary division modes provided by an embodiment of the present invention. [Figure 5e] FIG. 2 illustrates seven exemplary division modes provided by an embodiment of the present invention. [Figure 5f] FIG. 2 illustrates seven exemplary division modes provided by an embodiment of the present invention. [Figure 5g] FIG. 2 illustrates seven exemplary division modes provided by an embodiment of the present invention. [Figure 6] 13A and 13B are diagrams illustrating exemplary current block angles and steps provided by an embodiment of the present application. [Figure 7] FIG. 13 is a diagram showing the positions of adjacent blocks in a spatial merge candidate list in an embodiment of the present invention. [Figure 8] 1 is a structural diagram showing the configuration of a merge candidate list in an embodiment of the present invention. [Figure 9] FIG. 2 is a diagram showing an example block division provided by an embodiment of the present invention; [Figure 10] FIG. 2 is a second diagram showing an exemplary block division provided by an embodiment of the present invention. [Figure 11] 4 is a flowchart illustrating an implementation of an inter-prediction method further provided by an embodiment of the present application. [Figure 12] 1 is a flowchart of an exemplary GPM mode prediction provided by an embodiment of the present application. [Figure 13]FIG. 2 is a diagram illustrating an exemplary current block division scheme provided by an embodiment of the present application; [Figure 14a] FIG. 4 is a diagram illustrating an exemplary first weighted value of luminance provided by an embodiment of the present application. [Figure 14b] FIG. 2 illustrates an exemplary first weighted value of chrominance provided by an embodiment of the present invention. [Figure 15] FIG. 2 is a diagram showing the structure of a decoder provided by an embodiment of the present invention; [Figure 16] FIG. 2 is a second diagram showing the structure of a decoder provided by an embodiment of the present invention. [Figure 17] 1 is a diagram showing the structure of an encoder provided by an embodiment of the present invention; [Figure 18] FIG. 2 is a second diagram showing the structure of an encoder provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] In order to more fully understand the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application will be described in detail with reference to the drawings, and the attached drawings are for illustrative reference purposes only and are not used to limit the embodiments of the present application.
[0016] In a video image, a first image component, a second image component and a third image component are generally used to represent a current block (CB: Coding Block), where the three image components are a luminance component, a blue chrominance component and a red chrominance component, respectively. Specifically, the luminance component is usually represented by the symbol Y, the blue chrominance component is usually represented by the symbol Cb or U, and the red chrominance component is usually represented by the symbol Cr or V, and thus the video image may be represented in either a YCbCr format or a YUV format.
[0017] Next, a related technical solution for a geometric partition prediction mode (GPM) will be described.
[0018] In the hybrid framework of video coding, coding techniques such as prediction, transformation, quantization, etc. are usually performed on square and rectangular blocks as units. However, in practical applications, the edges of moving objects are not always in the horizontal or vertical direction, and even if they are, they are not always exactly on the edges of divisible blocks, and the motion vectors on both sides of the moving edges are usually different, so in the coding process, performing motion prediction and compensation on the whole block is likely to generate large prediction errors, which limits the coding efficiency.
[0019] The present application provides a video encoding system, as shown in FIG. 1, comprising: The video decoder includes a transform unit 111, a quantization unit 112, a mode selection and coding control logic unit 113, an intra prediction unit 114, an inter prediction unit 115 (including motion compensation and motion estimation), an inverse quantization unit 116, an inverse transform unit 117, a loop filter unit 118, an encoding unit 119, and a decoded image buffer unit 110. For an input original video signal, a video reconstruction block can be obtained through division by a coding tree unit (CTU), and an encoding mode is determined through the mode selection and coding control logic unit 113, and a transformation is performed on the video reconstruction block through the transform unit 111 and the quantization unit 112 for residual pixel information obtained through intra or inter prediction, the transformation including transforming the residual information from pixel domain to transform domain and performing quantization on the obtained transform coefficients, thereby further reducing the bit rate. Here, the intra prediction unit 114 is configured to determine an optimal intra prediction mode (i.e., a target prediction mode) of the video reconstruction block, and the inter prediction unit 115 is configured to perform inter prediction coding of the received video reconstruction block relative to one or more blocks in one or more reference frames to provide temporal prediction information. Wherein, motion estimation is a process of generating a motion vector, which can estimate the motion of the video reconstruction block, and motion compensation performs motion compensation based on the motion vector determined by motion estimation. After determining the inter prediction mode, the inter prediction unit 115 is further configured to provide the selected inter prediction data to the encoding unit 119, and further transmits the motion vector data determined by calculation to the encoding unit 119.Furthermore, the inverse quantization unit 116 and the inverse transform unit 117 are used to reconstruct the video reconstruction block to reconstruct a residual block in the pixel domain, the reconstructed residual block is filtered through the loop filter unit 118 to remove block artifacts, and the reconstructed residual block is added to one predictive block in the frame of the decoded image buffer unit 110 to generate a reconstructed video reconstruction block, and the encoding unit 119 is configured to encode various coding parameters and quantized transform coefficients. The decoded image buffer unit 110 is configured to store the reconstructed video reconstruction block for prediction reference. With the encoding of the video image, new reconstructed video reconstruction blocks are generated one after another, and all these reconstructed video reconstruction blocks are stored in the decoded image buffer unit 110.
[0020] The present embodiment provides a video decoding system. FIG. 2 is a diagram showing the configuration of the video decoding system of the present embodiment. As shown in FIG. 2, the video decoding system 12 includes: The video decoding system 12 includes a decoding unit 121, an inverse transform unit 127, an inverse quantization unit 122, an intra prediction unit 123, a motion compensation unit 124, a loop filter unit 125, and a decoded image buffer unit 126. After the input video signal is encoded by the video encoding system 11, it outputs a bit stream of the video signal, which is input to the video decoding system 12, which first passes through the decoding unit 121 to obtain decoded transform coefficients, and processes the transform coefficients through the inverse transform unit 127 and the inverse quantization unit 122 to generate residual blocks in the pixel domain, the intra prediction unit 123 is configured to generate prediction data for a current video decoding block based on the determined intra prediction direction and data from a previously decoded block of the current frame or picture, and the motion compensation unit 124 determines prediction information used for the video decoding block by analyzing the motion vector and other related syntax elements, and outputs the prediction information to the video decoding system 12. The prediction information is used to generate a predictive block of the video decoding block being decoded, and a decoded video block is generated by adding the residual block from the inverse transform unit 127 and the inverse quantization unit 122 and the corresponding predictive block generated by the intra prediction unit 123 or the motion compensation unit 124, and the decoded video signal can be filtered through the loop filter unit 125 to remove block artifacts and improve video quality, and the decoded video block is stored in the decoded image buffer unit 126, which is configured to store reference images for subsequent intra prediction or motion compensation, and is also used to output a video signal to obtain a restored original video signal.
[0021] The inter prediction method provided by the embodiment of the present application mainly acts on the inter prediction unit 215 of the video encoding system 11 and the inter prediction unit of the video decoding system 12, i.e., the motion compensation unit 124. In other words, through the inter prediction method provided by the embodiment of the present application, the video encoding system 11 can obtain a better prediction effect, and the reconstruction quality of the video decoding can also be correspondingly improved at the decoding end.
[0022] Based on this, the technical solution of the present application will now be described in more detail with reference to the drawings and examples. Before describing in detail, it should be noted that the terms "first", "second" and "third" referred to throughout this specification are merely for distinguishing different features, and do not limit the functions such as priority, order, size relationship, etc.
[0023] The present embodiment provides an inter-prediction method for a video decoding device, i.e., a decoder. The function of the method can be realized by calling a program code through a first processor in the video decoding device, and of course, the program code can be stored in a computer storage medium, so that the video decoding device includes at least a first processor and a first memory.
[0024] FIG. 3 is a flowchart of an inter prediction method provided by an embodiment of the present application, which is applied to a decoder. As shown in FIG. 3, the method includes the following steps:
[0025] At S101, the bitstream is parsed to determine the prediction mode parameters of the current block.
[0026] In the present embodiment, a video image may be divided into a number of image blocks, and each image block currently being decoded may be referred to as a decoded block, where each decoded block may include a first image component, a second image component, and a third image component, and the current block is a decoded block that is currently predicted from the first image component, the second image component, or the third image component in the video image.
[0027] Here, if the current block performs a first image component prediction and the first image component is a luminance component, i.e. the predicted image component is a luminance component, then the current block may be referred to as a luminance block; or, if the current block performs a second image component prediction and the second image component is a chrominance component, i.e. the predicted image component is a chrominance component, then the current block may be referred to as a chrominance block.
[0028] The prediction mode parameter indicates the coding mode of the current block and the parameters related to the mode. The encoder can usually determine the prediction mode parameter of the current block by adopting a rate offset optimization (RDO: Rate Distortion Optimization) method. The decoder can directly analyze the GPM parameters by analyzing the bitstream.
[0029] In the present embodiment, during the decoding process, the decoder can analyze information such as the encoding means adopted by the encoder when encoding from the bitstream, i.e., the predictive decoding parameters of the current block. However, based on the diversity of the current encoding method, there may be various prediction modes decoded by the decoder, and the inter prediction method according to the present embodiment is a scenario that is only applicable when the encoding adopts the GPM prediction mode.
[0030] When the decoder analyzes the bitstream, obtains prediction decoding parameters, and indicates that an inter geometric partition prediction mode (GPM) is used to determine inter prediction of the current block, the decoder employs the inter prediction method provided by the embodiment of the present application. Information such as the GPM parameters of the current block employed during encoding is analyzed from the bitstream. Here, the GPM mode parameters include the GPM partition mode and motion related information. Here, there can be 64 types of GPM partition modes.
[0031] In this embodiment, the decoder decodes the prediction mode of the current block, and if the current block uses a GPM, the GPM needs to decode the partition mode of the GPM. If the GPM uses a mask scheme, the decoder decodes MV information or other information related to the GPM used in the two partitions of the current block.
[0032] In S102, when the prediction mode parameters indicate that an inter-prediction value of the current block is determined using an inter-geometric partitioning prediction mode (GPM), the GPM parameters of the current block, the merge motion information candidate list of the current block, and attribute information of the motion information in the merge motion information candidate list are determined.
[0033] In the present embodiment, the attribute information may include source information of the motion information, and the present embodiment is described as an example in which the attribute information is motion information, and the present embodiment does not limit the attribute information to other information, which can be realized by adopting the inter-prediction method provided by the present embodiment.
[0034] In the present embodiment, when the prediction mode parameter indicates that the GPM is used to determine the inter-prediction value of the current block, obtain the GPM parameter of the current block, obtain the merge candidate list (merge motion information candidate list) of the current block, and simultaneously obtain the source description of the motion information stored in the merge candidate list, i.e., source information, where the source information represents the block that is the source of the motion information.
[0035] In addition, the merge candidate list includes multiple candidate motion vectors (MVs) used to motion predict the current block, where mv provides an offset from coordinates in the decoded image to coordinates in the reference image and is a two-dimensional vector for inter prediction.
[0036] In the present embodiment, the inter prediction generates a prediction value of the current block based on pixels in a reference frame of the current block, by indicating the position of pixels for prediction in the reference frame through the MV. The reference frame may be a short-term reference image or a long-term reference image, and the reference frame includes inter prediction samples that can be used during the decoding process of the subsequent image in the decoding order.
[0037] In the process of creating a new generation of video coding standard H.266 / Versatile Video Coding (VVC), partitions of shapes other than squares and rectangles are introduced. First, as shown in Figures 4a and 4b, the triangular partition prediction mode (TPM) is introduced, in which the diagonal or inverse diagonal of a square or rectangle is used as the partition line to obtain a triangular prediction unit, which can represent inter prediction data more flexibly, reduce prediction error, and further improve the efficiency of encoding and decoding.
[0038] At the Nth meeting of JVET (Joint Video Experts Team), a more flexible inter geometric partitioning prediction mode (GEO: Geometrical partitioning for inter blocks) than TPM was introduced, and then JVET formally adopted the GEO prediction mode in VVC and renamed it GPM. Specifically, the GPM prediction technology adopts a more flexible representation method for the edge part of a moving object in an image, and as shown in Figure 5a to Figure 5g, divides an inter block into two non-rectangular subpartitions, performs prediction on each of the two divided subpartitions, and then performs weighted fusion to obtain the inter prediction value of the current block.
[0039] The current GPM technology in VVC Draft8 has a total of 64 division modes, with each division mode corresponding to one angle α and one step ρ, for a total of 20 angles and 4 steps.
[0040] Exemplarily, each combination of angle and step constitutes one partition mode, as shown in Fig. 6. GPM partitions the current block into two non-rectangular sub-partitions, performs unidirectional motion compensation on each sub-partition separately to obtain a unidirectional prediction value, and finally weightedly fuses the unidirectional prediction values of the two partitions using a weighting matrix to obtain a final GPM prediction value.
[0041] In the present embodiment, when it is determined on the decoder side to perform inter prediction using GMP, the decoder can analyze the bitstream to obtain GPM parameters when the encoder performs inter prediction using GPM for the current block.
[0042] It should be noted that the decoder analyzes the syntax and the process of constructing the merge candidate list of the current block is the same as the process of constructing the list in normal merge mode. Figure 7 is a diagram showing the position of the neighboring blocks in the spatial merge candidate list in the embodiment of the present application, as shown in Figure 7, the configuration order of the neighboring blocks in the merge candidate list is the left neighboring block A1, the upper neighboring block B1, the upper right neighboring block B0, the lower left neighboring block A0, and the upper left neighboring block B2, and the position block Col corresponds to the motion vector information of the neighboring block, and the reference frames are sequentially arranged according to the sources of different directions, followed by (not shown) the history reference block his, the average MV avg of the first and second candidate MVs, and the zero motion vector 0.
[0043] That is, the source information in this embodiment is A0, A1, B1, B0, B2, col, and his corresponding associated information, and avg and 0. One source corresponds to each piece of motion information stored in the Merge candidate list.
[0044] For example, one-way or two-way MV information of the five adjacent blocks in FIG. 7 is obtained, and one-way or two-way MV information of each adjacent block is added to the Merge candidate list according to the addition order of the adjacent blocks (source information A1-B1-B0-A0(B2)) to form the candidate items of the current block. Here, B2 is an alternative, and if at least one of the previous four items is unavailable, the MV information of B2 needs to be added to the candidate list. The addition order of the adjacent blocks indicates the degree of correlation between each MV information and the MV information of the current block, that is, the addition order of the Merge candidate list indicates the possibility that the corresponding candidate item will be selected as the MV information of the current block, and also indicates the degree of accuracy after the corresponding candidate item is selected as the MV information of the current block.
[0045] In this embodiment, Figure 8 is a diagram showing a first configuration of a merge candidate list in this embodiment. Based on Figure 7, which is a diagram showing the positions of adjacent blocks, a merge candidate list as shown in Figure 8 is obtained. As shown in Figure 8, the merge candidate list includes MV information of five adjacent blocks, whose serial numbers are 0, 1, 2, 3, and 4 respectively, and includes bidirectional prediction MV information for each adjacent block, i.e., list0 and list1. In addition, the source information (source) obtained by the decoder can be listed in the source item in the merge candidate list to indicate the block that is the source of the bidirectional MV corresponding to each serial number.
[0046] In S103, a first motion information mapping table of the first partition and a second motion information mapping table of the second partition are determined based on the GPM parameters, the merge motion information candidate list and the attribute information.
[0047] After the decoder obtains the GPM parameters, the merged motion information candidate list, and the source information (attribute information), the decoder can perform GPM mode partitioning on the current block based on the GPM parameters to determine a first partition and a second partition, and then determine a first motion information mapping table and a second motion information mapping table based on the source information and the merged motion information candidate list.
[0048] In addition, the first motion information mapping table is a correspondence relationship between an index of the first candidate motion information corresponding to the first partition and a motion index in the merge motion information candidate list, and the second motion information mapping table is second This is the correspondence between the index of the second candidate motion information corresponding to the partition and the motion index in the merge motion information candidate list.
[0049] In this embodiment, the merge candidate list includes a serial number (which may be referred to as an actual serial number here) and MV information corresponding to the serial number, and each source of the source information corresponds to a serial number.
[0050] The decoder realizes obtaining a motion information mapping table for the first partition and the second partition based on the constructed commonly used merge candidate list and source information, where what is stored in the motion information mapping table is not the motion information but the ranking serial numbers obtained according to the order of the ranked serial numbers after ranking the source ranking of the partition based on the source information, and the motion information mapping table is the correspondence between the actual serial numbers and the ranking serial numbers.
[0051] That is, the first motion information mapping table stores, for the first partition, a correspondence between a first prioritized serial number determined based on source information and an actual serial number, and the second motion information mapping table stores, for the second partition, a correspondence between a second prioritized serial number determined based on source information and an actual serial number.
[0052] Illustratively, Table 1 is an example of a mapping table. [Table 1]
[0053] Here, MergeMapA[ ] is a serial number of the first priority, MergeMapB[ ] is a serial number of the second priority, the first motion information mapping table may be a mapping table composed of a first row and a second row, and the second motion information mapping table may be a mapping table composed of a first row and a third row, and the specific implementation form of the mapping tables is not limited by the embodiments of the present application.
[0054] In the present embodiment, the first ranking serial number may be determined based on the first ranking source information and the third ranking source information, and the second ranking serial number may be determined based on the second ranking source information and the fourth ranking source information. The first ranking source information, the second ranking source information, the third ranking source information, and the fourth ranking source information will be described in the following embodiments.
[0055] JPEG0007564232000002.jpg119156
[0056] In this embodiment, MergeMapA[] is a reordering of partition A (corresponding to the original Merge candidate list), and MergeMapB[] is a reordering of partition B (corresponding to the original Merge candidate list).
[0057] In this embodiment, the implementation principle of the decoder determining the first motion information mapping table and the second motion information mapping table based on the source information and the merge motion information candidate list is to optimize the MV acquisition technology of the first and second partitions of the GPM, analyze the current GPM mode to reuse the existing conventional merge candidate list, add source items during the construction of the existing merge candidate list, and mark which surrounding block each option is derived from. When constructing the one-way merge list of the GPM, distribute and construct mapping tables with the merge candidate lists for the two partitions after GPM division, and then select the motion information from the corresponding one-way merge candidate list based on the mapping table.
[0058] Based on the same principle, it should be understood that if the encoder transmits serial numbers based on a mapping table, the actual serial number actually transmitted (which is 1) will be smaller than the serial number with a higher priority ranking (MergeMapA[] which is 2), thus saving bitstream.
[0059] In the embodiment of the present invention, when constructing mapping tables for two partitions, each partition can have its own unique Merge mapping table based on the proximity of each MV source to the corresponding partition.
[0060] In some embodiments of the present application, the process in which the decoder determines the first motion information mapping table and the second motion information mapping table based on the source information and the merge motion information candidate list can be realized in the following manner.
[0061] Method 1: the decoder determines a first set of weighted values for target pixel positions of each adjacent block adjacent to the first partition and a second set of weighted values for target pixel positions of each adjacent block adjacent to the second partition based on source information, determines a first motion information mapping table from a merged motion information candidate list based on the first weighted value set, and determines a second motion information mapping table from the merged motion information candidate list based on the second weighted value set.
[0062] In an embodiment of the present application, the decoder may implement a process of determining a first motion information mapping table from a merged motion information candidate list based on a first set of weighting values, and determining a second motion information mapping table from the merged motion information candidate list based on a second set of weighting values as follows:
[0063] The decoder obtains the weighted values of the first partition and the weighted values of the second partition, ranks the first weighted value set based on the weighted values of the first partition to obtain first-ranked source information of each adjacent block, determines a first merged motion information index that matches the rank of the first-ranked source information from the merged motion information candidate list, serializes the merged motion information indexes in order, and then obtains an index of the first candidate motion information, and determines a mapping relationship between the index of the first candidate motion information and the corresponding merged motion information index as a first motion information mapping table, and ranks the second weighted value set based on the weighted values of the second partition to obtain second-ranked source information of each adjacent block, determines a second merged motion information index that matches the rank of the second-ranked source information from the merged motion information candidate list, and serializes the second merged motion information indexes in order, and then obtains an index of the second candidate motion information, and determines a mapping relationship between the index of the second candidate motion information and the corresponding second merged motion information index as a second motion information mapping table.
[0064] In this embodiment, the decoder calculates the pixel position weighted values,wValue,corresponding to the positions of each source in the two partitions, respectively,,re-ranks them according to descending order of wValue (ascending order according to the serial number in the original Merge candidate list in case of the same,wValue or non-existent vector,his,avg,0), and records the corresponding rankings (serial numbers in the ranking) in a mapping table.
[0065] In this embodiment, the decoder may obtain a first set of weights for the target pixel positions of each adjacent block adjacent to the first partition and a second set of weights for the target pixel positions of each adjacent block adjacent to the second partition based on the weight mask matrix, or may obtain the first set of weights and the second set of weights by direct calculation, and the detailed obtaining method is not limited to the embodiment of the present application.
[0066] Here, the target pixel positions in this specification are pixel positions corresponding to each neighboring block within the current block, and are within the current block.
[0067] In addition, the closer the weight value of an adjacent block is to the weight value of the first partition, the higher the possibility that the adjacent block belongs to the first partition, i.e., the closer the weight value of an adjacent block is to the weight value of the second partition, the higher the possibility that the adjacent block belongs to the second partition, i.e., the higher the closeness. It may be understood that the closer the adjacent block is to the partition, the higher the ranking or priority.
[0068] JPEG0007564232000003.jpg220154
[0069] JPEG0007564232000004.jpg161153
[0070] In some embodiments of the present application, when the target pixel positions are at least two pixel positions adjacent to the neighboring blocks in the current block, that is, the weighted values of the neighboring blocks are obtained by weighted values (weighted average, mean square deviation, etc.) of a plurality of pixel positions connected with the current block in the current block, the decoder realizes the process of determining a first weighted value set of the target pixel positions of each neighboring block adjacent to the first partition and a second weighted value set of the target pixel positions of each neighboring block adjacent to the second partition based on the source information as follows: Based on the source information, determine a first weighted value set of the target pixel positions of each neighboring block adjacent to the first partition and a second weighted value set of the target pixel positions of each neighboring block adjacent to the second partition. determining each adjacent block adjacent to the second partition; determining a first weighted value average value corresponding to at least two pixel positions of each adjacent block adjacent to the first partition, thereby obtaining a first set of weighted values for each adjacent block, the first weighted value set being composed of the first weighted value average values respectively corresponding to each adjacent block; determining a second weighted value average value corresponding to at least two pixel positions of each adjacent block adjacent to the second partition, thereby obtaining a second set of weighted values for each adjacent block, the second weighted value set being composed of the second weighted value average values respectively corresponding to each adjacent block.
[0071] That is, the corresponding representative adjacent pixel (multiple adjacent pixels may be used) of each adjacent block in the current block is selected in a different manner, and after obtaining the weight mask matrix corresponding to partition A of the current block, the weight values of the adjacent pixels of each candidate in the Merge candidate list are added and averaged, and the candidate with the largest average value is preferentially used to obtain the MV of partition A, and the candidate with the smallest average value is preferentially used to obtain the MV of partition B.
[0072] For example, as shown in FIG. 10, the target pixel point of B2 may be a pixel shown in region 1, the target pixel point of B1 may be a pixel shown in region 2, the target pixel point of B0 may be a pixel shown in region 3, the target pixel point of A0 may be a pixel shown in region 4, the target pixel point of A1 may be a pixel shown in region 5, and the target pixel point of col may be a pixel shown in region 6.
[0073] It should be noted that the number and positions of the target pixel positions are not limited to those in the embodiment of the present invention, so long as they are selected so as to be adjacent to the adjacent blocks.
[0074] Method 2: The decoder determines, based on the source information, a first set of distances between each adjacent block adjacent to the first partition and the division line, and a second set of distances between each adjacent block adjacent to the second partition and the division line, based on the first distance set, determines a first motion information mapping table from a merge motion information candidate list, and based on the second distance set, determines a second motion information mapping table from the merge motion information candidate list.
[0075] In this embodiment, the decoder determines a first motion information mapping table from the merge motion information candidate list according to the first distance set, and determines a second motion information mapping table from the merge motion information candidate list according to the second distance set. In this embodiment, the decoder ranks the first distance set to obtain a third ranked source information of each neighboring block, determines a first merge motion information index from the merge motion information candidate list that is consistent with the rank of the third ranked source information, sequentially assigns serial numbers to the merge motion information indexes, and then obtains a first candidate motion information index, and determines the mapping relationship between the index of the first candidate motion information and the index of the corresponding merge motion information as the first motion information mapping table; ranks the second distance set to obtain a fourth ranked source information of each neighboring block, determines a second merge motion information index from the merge motion information candidate list that is consistent with the rank of the fourth ranked source information, sequentially assigns serial numbers to the second merge motion information indexes, and then obtains a second candidate motion information index, and determines the mapping relationship between the index of the second candidate motion information and the index of the corresponding second merge motion information as the second motion information mapping table.
[0076] In some embodiments of the present application, the process in which the decoder determines, based on source information, a first set of distances between each adjacent block adjacent to the first partition and the division line, and a second set of distances between each adjacent block adjacent to the second partition and the division line, may include the following methods A and B.
[0077] Method A: The decoder determines, based on the source information, each adjacent block adjacent to the first partition and the second partition, determines a first adjacent pixel position of the current block corresponding to each adjacent block, determines a first set of distances between the first pixel position in the first partition and the division line, and determines a second set of distances between the first pixel position in the second partition and the division line.
[0078] Method B: The decoder determines, based on the source information, each adjacent block adjacent to the first partition and the second partition, determines a first pixel position corresponding to each adjacent block, determines a first set of distances between the first pixel position in the first partition and the division line, and determines a second set of distances between the first pixel position in the second partition and the division line.
[0079] In the present embodiment, the first neighboring pixel position is a position of a neighboring pixel in a current block of a neighboring block, and the first pixel position is a pixel position in the neighboring block that represents the neighboring block.
[0080] In the present embodiment, the distance calculation method may be the same as the weight calculation principle, or may be obtained by adopting other mathematical methods, and is not limited to the present embodiment.
[0081] In addition, in the first partition, the farther the distance between the adjacent block and the dividing line is from the dividing line, the greater the possibility that the adjacent block belongs to the first partition, i.e., the closer the distance between the adjacent block and the dividing line is from the dividing line, the greater the possibility that the adjacent block belongs to the second partition, i.e., the greater the closer the distance is between the adjacent block and the partition, the higher the ranking or the higher the priority.
[0082] JPEG0007564232000005.jpg202154
[0083] JPEG0007564232000006.jpg160155
[0084] In S104, an inter-prediction value of the current block is determined according to the first motion information mapping table, the second motion information mapping table, and the merge motion information candidate list.
[0085] After the decoder obtains the first motion information mapping table and the second motion information mapping table, it can determine the first motion information of the first partition based on the merged motion information candidate list and the first motion information mapping table, and can determine the second motion information corresponding to the second partition based on the merged motion information candidate list and the second motion information mapping table, perform one-way prediction on the first partition based on the first motion information, and perform one-way prediction on the second partition based on the second motion information, and determine the inter-prediction value of the current block based on the weighted processing of the first prediction value and the second prediction value.
[0086] When performing GPM prediction, the construction of corresponding motion information mapping tables can be performed for the first and second partitions respectively, and then, based on the motion information mapping table, the respective optimal motion information can be obtained from the merge motion information candidate list, and then the prediction process of the current block can be performed, which realizes the construction of respective candidate motion information for the two partitions after GPM division, and it should be understood that, in order to use the respective situations of different partitions, respective merge mapping tables are constructed for different partitions, thereby improving the selection accuracy of motion information for each partition, and further improving the inter-prediction effect.
[0087] In some embodiments of the present application, in the process of the decoder determining the inter-prediction value of the current block according to the first motion information mapping table, the second motion information mapping table and the merge motion information candidate list, the process of acquiring the first motion information and the second motion information is to respectively initialize the motion information candidate list of the current block according to the first motion information mapping table and the second motion information mapping table, and acquire the first motion information in the merge candidate list in order according to a predetermined acquisition policy, the acquisition policy is determined by the construction order (serial number of ranking) of the neighboring blocks in the merge candidate list and the reference list indication information, and the reference list indication information indicates the priority of using the MV information of the first reference list and the MV information of the second reference list. In detail, the decoder acquires the first motion information in the merge candidate list in order according to the construction order of the neighboring blocks in the merge candidate list and the reference list indication information, where the reference list indication information indicates the motion information of the first reference list or the motion information of the second reference list to be preferentially used.
[0088] In the present embodiment, the coding layer syntax for the decoder analysis is as shown in Table 2. [Table 2]
[0089] Here, merge_gpm_idx0[x0][y0] indicates the position of partition A (first partition) in the Merge list for re-ordering partition A of the MV, and m=merge_gpm_idx0[xCb][yCb] is set, and subsequent processing is awaited.
[0090] JPEG0007564232000008.jpg44157
[0091] Let M = mergeCandList[mergeMapA[m]], and extract from the Merge List the item corresponding to the serial number corresponding to the m-th item in the m-th MergeMapA for use in constructing the MV for partition A.
[0092] In a block of geometric prediction, each partition uses only one-way prediction mode, but each item in the Merge list can be MV information of bidirectional prediction, so it is necessary to extract and use one-way prediction MV from it. Let X=(m&0x01), or, let X=(mergeMapA[m]&0x01), remove, where "&" is a bitwise AND operation, i.e., extract the last bit of m (similar to a parity check), and if it is 0, select list0, and if it is 1, select list1. In this way, as shown in the options corresponding to the hatched area in FIG. 8, the mv information predFlagLXM corresponding to the reference frame in the reference list corresponding to X is used preferentially for partition prediction. If the corresponding mv is unavailable (the mv of the adjacent block may itself be one-way), use the opposite MV (the MV indicated by the white block (blank area) horizontally corresponding to the blue block), and X=1-X.
[0093] After the prediction is completed, the decoder stores the corresponding MV information in the processing variables of partition A for use in constructing the subsequent prediction block. The syntax is as follows:
[0094] mvA[0]=mvLXM[0] mvA[1]=mvLXM[1] refIdxA=refIdxLXM predListFlagA=X Here, mvA is an mv vector, refIdxA is a reference frame corresponding to the motion vector, and predListFlagA indicates which list of the motion vector candidate items is currently selected.
[0095] Similarly, let N=mergeCandList[mergeMapB[n]], and extract from the Merge Candidate List the item corresponding to the serial number corresponding to the nth item in the nth MergeMapB for use in constructing the MV for partition B.
[0096] The one-way motion vector of the nth item is used to construct mvB, and the mv corresponding to the shaded area as shown in Figure 8 is used preferentially, and if it is unavailable, the opposite mv is used. Therefore, let X = (mergeMapA[n] & 0x01) or let X = (n & 0x01). If predFlagLXN is unavailable, then X = 1 - X.
[0097] After the prediction is completed, the decoder stores the corresponding MV information in the processing variables of partition B for use when constructing subsequent prediction blocks.
[0098] mvB[0]=mvLXN[0] mvB[1]=mvLXN[1] refIdxB=refIdxLXN predListFlagB=X Here, mvB is an mv vector, refIdxB is a reference frame corresponding to the motion vector, and predListFlagB indicates which list of the motion vector candidate items is currently selected.
[0099] In some embodiments of the present application, after S102, the inter prediction method provided by the embodiments of the present application further includes the following steps:
[0100] In S105, a second motion information mapping table of the second partition is constructed according to the source information and the merge motion information candidate list.
[0101] In S106, an inter-prediction value of the current block is determined according to the second motion information mapping table and the merge motion information candidate list.
[0102] In this embodiment, the decoder reorders only one partition and builds a mapping table, that is, the decoder can realize the construction of a mapping table only for the first partition, and the second partition performs motion information check while adopting the merge candidate list, or the decoder can realize the construction of a mapping table only for the second partition, and the first partition performs motion information check while adopting the merge candidate list.
[0103] Here, an example will be described in which the decoder performs construction of a mapping table for the second partition, and performs motion information check for the first partition while adopting the Merge candidate list.
[0104] The decoder can construct a second motion information mapping table of the second partition according to the source information and the merge motion information candidate list, and the specific construction manner is consistent with the manner and principle of realizing the second motion information mapping table in the above-mentioned embodiment, and the description will not be repeated here.Then, the decoder determines a second predicted value of the second partition according to the second motion information mapping table and the merge motion information candidate list, while the decoder uses the merge motion information candidate list to determine a second predicted value of the first partition, and determines an inter-predicted value of the current block according to the weighted fusion of the first predicted value and the second predicted value.
[0105] For example, when the decoder constructs a merge list of the GPM, it adopts the existing merge candidate list for partition A, but performs reordering on the merge list for partition B. The weight values of the neighboring pixels of each candidate in the merge candidate list corresponding to partition B are summed and averaged (using the method of FIG. 10), or directly according to the weight values (using the method of FIG. 9), and the merge candidate list is reordered in descending order of average values (obtaining a mapping table). In this case, it is still necessary to determine the mapping table by adding source information of each candidate to the merge list.
[0106] It should be appreciated that the decoder can realize the reconstruction of the mapping table for a part of the partition, which reduces the processing complexity and also achieves the objective of improving the accuracy of selecting the motion information.
[0107] In some embodiments of the present application, the attribute information includes source information and is decoded by the decoder. GPM parameters includes a first target motion information index, and the first target motion information index is a position in the first motion information mapping table, and the implementation process of S103 may further include the following steps:
[0108] In S1031, a first motion information mapping table is determined from the merge motion information candidate list based on the source information.
[0109] In S1032, the first motion information of the first partition is determined from the merge motion information candidate list according to the first target motion information index and the first motion information mapping table.
[0110] In S1033, the first motion information is de-duplicated from the merge motion information candidate list to obtain a de-duplicated merge motion information candidate list.
[0111] At S1034, a second motion information mapping table is determined from the deduplicated merged motion information candidate list based on the source information.
[0112] In the embodiment of the present application, after the decoder selects an MV in the first partition, it deletes the selected MV, and then adopts the deleted Merge list to build the second motion mapping table of the second partition, that is, the decoder determines a first motion information mapping table from the merge motion information candidate list based on the source information, determines the first motion information of the first partition from the merge motion information candidate list based on the first target motion information index and the first motion information mapping table, deduplicates the first motion information from the merge motion information candidate list to obtain a deduplicated merge motion information candidate list, and determines a second motion information mapping table from the deduplicated merge motion information candidate list based on the source information.
[0113] Exemplarily, after partition A selects an MV, it removes the source candidate of the MV from the reordered Merge list, and reconstructs the mapping table corresponding to partition B. For example, if partition A selects a corresponding candidate of B1, partition B will eliminate the B1 candidate when selecting an MV, and then obtain a reordered motion information mapping table (e.g., A1-A0-B0-Col-B2-his-avg-0) based on the weight or distance information of partition B. When partition B selects an MV, it reorders the Merge list so that partition B preferentially selects the A1 candidate in Merge as much as possible.
[0114] In some embodiments of the present application, the implementation process of S104 may further include the following steps.
[0115] In S1041, the first motion information with the highest priority is determined from the merge motion information candidate list based on the first motion information mapping table.
[0116] In S1042, the second motion information with the highest priority is determined from the merge motion information candidate list based on the second motion information mapping table.
[0117] In S1043, an inter-prediction value of the current block is determined based on the first motion information and the second motion information.
[0118] In this embodiment, after obtaining the first motion information mapping table, the decoder can directly find out the first motion information corresponding to the actual serial number with the highest priority, and after obtaining the second motion information mapping table, the decoder can directly find out the second motion information corresponding to the actual serial number with the highest priority, and determine the inter-prediction value of the current block based on the first motion information and the second motion information.
[0119] In some embodiments of the present application, the decoder calculates a first predicted value of a first partition using first motion information, calculates a second predicted value of the second partition using second motion information, and performs weighted fusion on the first predicted value and the second predicted value to obtain an inter predicted value of the current block.
[0120] It should be understood that after the two partitions reorder the motion mapping tables respectively, the decoder is directly used to select the MV with the highest priority in the Merge candidate list based on the mapping tables, i.e., the encoder no longer needs to transmit the index, i.e., the actual serial number, of the motion information selected during encoding.
[0121] In addition, in this embodiment of the present application, the decoder can further transmit the actual serial number of one partition, select a ranking serial number in the mapping table based on the actual serial number, and select motion information from the merge candidate list based on the ranking serial number; and for another partition, a method of directly selecting the motion information with the highest priority is adopted to perform inter prediction, and this is not limited to the embodiment of the present application.
[0122] In some embodiments of the present application, the decoder may be directly used to realize selecting the MV with the highest priority in the Merge candidate list based on the mapping table after the two partitions respectively re-order the motion mapping table; furthermore, after performing a ranking on the first weight value set based on the weight value of the first partition to obtain first-ordered source information of each adjacent block, performing a ranking on the second weight value set based on the weight value of the second partition to obtain second-ordered source information of each adjacent block, the decoder may determine the first motion information with the highest priority in the ranking of the first-ordered source information from the merge motion information candidate list, determine the second motion information, which is the motion information with the highest priority in the ranking of the second-ordered source information from the merge motion information candidate list, and determine the inter-prediction value of the current block based on the first motion information and the second motion information; Or, After the decoder ranks the first distance set to obtain third-ranked source information for each adjacent block, and after ranking the second distance set to obtain fourth-ranked source information for each adjacent block, it determines from the merged motion information candidate list a first motion information which is the motion information with the highest priority in the ranking of the third-ranked source information, determines from the merged motion information candidate list a second motion information which is the motion information with the highest priority in the ranking of the fourth-ranked source information, and determines an inter-prediction value of the current block based on the first motion information and the second motion information.
[0123] In this embodiment, it is not necessary to build all items, but only the most likely items.
[0124] In this embodiment, after two partitions reorder the merge candidate lists, the MV with the highest ranking is selected. The coding syntax is modified as follows:
[0125] The Coding Unit (CU) layer syntax is as shown in Table 3. [Table 3]
[0126] It should be appreciated that such an implementation improves the efficiency of the encoder by saving the process of transmitting the actual serial number, resulting in a smaller transmitted bitstream. In some embodiments of the present application, after S101 and before S104, the method further includes the steps of:
[0127] In S107, when the prediction mode parameter indicates that the GPM is used to determine the inter-prediction value of the current block, the GPM parameters of the current block, the reconstructed motion information mapping table of the first partition, and the reconstructed motion information mapping table of the second partition are determined.
[0128] In S108, the division mode of the current GPM is determined based on the GPM parameters of the current block.
[0129] In S109, a first motion information mapping table corresponding to the partition mode of the current GPM is determined from the reconstructed motion information mapping table of the first partition.
[0130] In S110, a second motion information mapping table corresponding to the partition mode of the current GPM is determined from the reconstructed motion information mapping table of the second partition.
[0131] In this embodiment, before executing the editor, the decoder first performs determination and calculation of the reconstructed motion information mapping table of the first partition and the reconstructed motion information mapping table of the second partition under different modes and dimensions based on all GPM partition modes and all block dimensions, and the detailed calculation method is consistent with the means adopted in the above-mentioned embodiment. Then, when the prediction mode parameter indicates that the inter prediction of the current block is determined using the inter geometric partition prediction mode (GPM), the decoder determines the GPM parameter of the current block, obtains the reconstructed motion information mapping table of the first partition and the reconstructed motion information mapping table of the second partition, and then determines the partition mode of the current GPM based on the GPM parameter of the current block, determines the first motion information mapping table corresponding to the partition mode of the current GPM from the reconstructed motion information mapping table of the first partition, and determines the second motion information mapping table corresponding to the partition mode of the current GPM from the reconstructed motion information mapping table of the second partition.
[0132] In some embodiments of the present application, after S101, the method further includes the following steps:
[0133] In S111, when the prediction mode parameter indicates that the GPM is used to determine the inter prediction of the current block, the GPM parameters of the current block and motion information corresponding to the source information and attribute information of the neighboring blocks of the current block are determined.
[0134] In S112, a first motion information candidate list and a second motion information candidate list are constructed based on the attribute information of the neighboring blocks of the current block and the motion information corresponding to the attribute information, respectively.
[0135] In S113, an inter-prediction value of the current block is determined according to the first motion information candidate list and the second motion information candidate list.
[0136] In the present embodiment, the attribute information includes source information.
[0137] In the embodiment of the present application, when the decoder indicates that in the decoding process, the prediction mode parameter is to use the inter geometric partition prediction mode (GPM) to determine the inter prediction of the current block, the decoder can directly execute the establishment of a first motion information candidate list and a second motion information candidate list by obtaining the source information of the neighboring blocks of the current block and the motion information corresponding to the source information, where the first motion information candidate list is obtained by ranking the motion information corresponding to the source information according to the first ranking source information or the third ranking source information obtained by the above-mentioned embodiment. The second motion information candidate list is obtained by ranking the motion information corresponding to the source information according to the second ranking source information or the fourth ranking source information obtained by the above-mentioned embodiment.
[0138] In this embodiment, the decoder constructs a first motion information candidate list and a second motion information candidate list based on the source information of adjacent blocks of the current block and the motion information corresponding to the source information, respectively, and can determine the inter-prediction value of the current block based on the first motion information candidate list and the second motion information candidate list, without needing to rely on the merge candidate list of candidates, and can realize the process of directly calculating the first motion information candidate list and the second motion information candidate list.
[0139] The present embodiment provides an inter-prediction method, which is applied to a video encoding device, i.e., an encoder. The function of the method can be realized by calling a program code through a processor in the video encoding device, and of course, the program code can be stored in a second memory, as can be seen, the video encoding device includes at least a second processor and a second memory.
[0140] FIG. 11 is a flowchart of the implementation of the inter prediction method provided by an embodiment of the present application. As shown in FIG. 11, the method includes the following steps:
[0141] In S201, the prediction mode parameters of the current block are determined.
[0142] In the present embodiment, a video image may be divided into a number of image blocks, and each currently encoded image block may be referred to as a coding block (CB), where each coding block may include a first image component, a second image component, and a third image component, and the current block is a decoding block from which the current first image component, second image component, or third image component in the video image is predicted.
[0143] Here, if the current block performs a first image component prediction which is a luminance component, i.e., assuming that the predicted image component is a luminance component, the current block may be referred to as a luminance block, or if the current block performs a second image component prediction which is a chrominance component, i.e., assuming that the predicted image component is a chrominance component, the current block may be referred to as a chrominance block.
[0144] The prediction mode parameter indicates the encoding mode of the current block and parameters related to the encoding mode. In general, the prediction mode parameter of the current block can be determined by adopting a rate offset optimization (RDO) method.
[0145] Specifically, in some embodiments, the implementation of the encoder determining the prediction mode parameter of the current block includes the encoder determining a predicted image component of the current block, respectively performing predictive encoding on the predicted image component using a plurality of prediction modes based on the parameters of the current block, calculating a rate offset cost result corresponding to each prediction mode under the plurality of prediction modes, selecting a minimum rate offset cost result from the calculated plurality of rate offset cost results, and determining the prediction mode corresponding to the minimum rate offset cost result as the prediction mode parameter of the current block.
[0146] That is, the encoder side may adopt multiple prediction modes for the current block to perform coding on the predicted image components, respectively. Here, the multiple prediction modes typically include an inter prediction mode, a conventional intra prediction mode, and a non-conventional intra prediction mode, where the conventional intra prediction mode may include a direct current (DC) mode, a planar (PLANAR) mode, and an angle mode, etc., the non-conventional intra prediction mode may include an MIP mode, a cross-component linear model prediction (CCLM) mode, an intra block copy (IBC) mode, and a palette (PLT) mode, etc., and the inter prediction mode may include an inter geometric partition prediction mode (GPM), a triangle partition mode (TPM), etc.
[0147] In this way, after performing encoding on the current block using multiple prediction modes, a rate offset cost result corresponding to each prediction mode can be obtained, and then a minimum rate offset cost result is selected from the obtained multiple rate offset cost results, and a prediction mode corresponding to the minimum rate offset cost result is determined as a prediction mode parameter of the current block; thus, finally, encoding can be performed on the current block using the determined prediction mode, and further, such a prediction mode can reduce a prediction residual and improve encoding efficiency.
[0148] In addition, the process in which the encoder calculates the rate offset cost result is also realized by a prediction method that is potentially provided by the embodiment of the present application, and the description thereof will not be repeated here.
[0149] In S202, when the prediction mode parameters indicate that an inter-prediction value of the current block is determined using an inter-geometric partitioning prediction mode (GPM), the GPM parameters of the current block, the merge motion information candidate list of the current block, and attribute information of the motion information in the merge motion information candidate list are determined.
[0150] In S203, a first motion information mapping table of the first partition and a second motion information mapping table of the second partition are determined according to the GPM parameters, the merge motion information candidate list and the attribute information.
[0151] In some embodiments of the present application, the first motion information mapping table is a correspondence relationship between an index of the first candidate motion information corresponding to the first partition and a motion index in the merge motion information candidate list; and the second motion information mapping table is: second This is the correspondence between the index of the second candidate motion information corresponding to the partition and the motion index in the merge motion information candidate list.
[0152] In some embodiments of the present application, the attribute information includes source information, and the encoder performs GPM mode partitioning on the current block based on the GPM parameters to determine a first partition and a second partition, writes the GPM parameters into the bitstream, and determines a first motion information mapping table and a second motion information mapping table based on the source information and the merge motion information candidate list.
[0153] In some embodiments of the present application, the process in which the encoder determines the first motion information mapping table and the second motion information mapping table based on the source information and the merge motion information candidate list can be realized by the following steps.
[0154] Method 1: Based on source information, determine a first set of weighted values for target pixel positions of each adjacent block adjacent to the first partition and a second set of weighted values for target pixel positions of each adjacent block adjacent to the second partition; based on the first set of weighted values, determine a first motion information mapping table from a merged motion information candidate list; and based on the second set of weighted values, determine a second motion information mapping table from the merged motion information candidate list.
[0155] In an embodiment of the present application, the implementation of the process in which the decoder determines a first motion information mapping table from a merged motion information candidate list based on a first set of weighting values, and determines a second motion information mapping table from the merged motion information candidate list based on a second set of weighting values may be as follows:
[0156] The encoder obtains the weighted values of the first partition and the weighted values of the second partition, ranks a first weighted value set based on the weighted values of the first partition to obtain first-ranked source information of each adjacent block, determines a first merged motion information index corresponding to the rank of the first-ranked source information from the merged motion information candidate list, serializes the merged motion information index in order, and then obtains an index of a first candidate motion information, and determines a mapping relationship between the index of the first candidate motion information and the corresponding merged motion information index as a first motion information mapping table, ranks a second weighted value set based on the weighted values of the second partition to obtain second-ranked source information of each adjacent block, determines a second merged motion information index corresponding to the rank of the second-ranked source information from the merged motion information candidate list, serializes the second merged motion information index in order, and then obtains an index of a second candidate motion information, and determines a mapping relationship between the index of the second candidate motion information and the corresponding second merged motion information index as a second motion information mapping table.
[0157] In some embodiments of the present application, the target pixel location is a location of at least two pixels in the current block adjacent to the neighboring blocks.
[0158] The realization process of the encoder determining, based on source information, a first set of weighted values of target pixel positions of each adjacent block adjacent to the first partition and a second set of weighted values of target pixel positions of each adjacent block adjacent to the second partition is as follows: the encoder determines, based on source information, each adjacent block adjacent to the first partition and the second partition, and determines a first weighted value average value corresponding to at least two pixel positions of each adjacent block adjacent to the first partition, thereby obtaining a first weighted value set of each adjacent block, where the first weighted value set is constituted by the first weighted value average value corresponding to each adjacent block respectively; and determines a second weighted value set corresponding to at least two pixel positions of each adjacent block adjacent to the second partition, thereby obtaining a second weighted value set of each adjacent block, where the second weighted value set is constituted by the second weighted value average value corresponding to each adjacent block respectively.
[0159] Method 2: The encoder determines, based on source information, a first set of distances between each adjacent block adjacent to the first partition and the division line, and a second set of distances between each adjacent block adjacent to the second partition and the division line, based on the first set of distances, a first motion information mapping table from a merge motion information candidate list, and based on the second set of distances, a second motion information mapping table from the merge motion information candidate list.
[0160] In some embodiments of the present application, the encoder determines a first motion information mapping table from the merge motion information candidate list based on the first distance set, and determines a second motion information mapping table from the merge motion information candidate list based on the second distance set. In the present embodiment, the encoder ranks the first distance set to obtain a third ranked source information of each neighboring block, determines a first merge motion information index from the merge motion information candidate list that is consistent with the ranking of the third ranked source information, serializes the merge motion information indexes in order, and then obtains a first candidate motion information index, and determines a mapping relationship between the first candidate motion information index and the corresponding merge motion information index as the first motion information mapping table, ranks the second distance set to obtain a fourth ranked source information of each neighboring block, determines a second merge motion information index from the merge motion information candidate list that is consistent with the ranking of the fourth ranked source information, serializes the second merge motion information indexes in order, and then obtains a second candidate motion information index, and determines a mapping relationship between the second candidate motion information index and the corresponding second merge motion information index as the second motion information mapping table.
[0161] In some embodiments of the present application, the process in which the encoder determines, based on source information, a first set of distances between each adjacent block adjacent to the first partition and the division line, and a second set of distances between each adjacent block adjacent to the second partition and the division line, may include the following methods A and B.
[0162] In method A, the encoder determines, based on source information, each adjacent block to the first partition and the second partition, determines a first adjacent pixel position of the current block corresponding to each adjacent block, determines a first set of distances between the first adjacent pixel positions in the first partition and the division line, and determines a second set of distances between the first adjacent pixel positions in the second partition and the division line.
[0163] Method B: The encoder determines, based on source information, each adjacent block adjacent to the first partition and the second partition, determines a first pixel position corresponding to each adjacent block, determines a first set of distances between the first pixel position in the first partition and the division line, and determines a second set of distances between the first pixel position in the second partition and the division line.
[0164] In S204, an inter-prediction value of the current block is determined according to the first motion information mapping table, the second motion information mapping table, and the merge motion information candidate list.
[0165] In some embodiments of the present application, after S202, the encoder builds a second motion information mapping table of the second partition according to the attribute information and the merge motion information candidate list, and determines the inter-prediction value of the current block according to the second motion information mapping table and the merge motion information candidate list. The attribute information includes source information.
[0166] In some embodiments of the present application, the attribute information includes source information; GPM parameters includes a first target motion information index, the first target motion information index being a position in the first motion information mapping table, and an implementation of S203 may include: the encoder determining a first motion information mapping table from the merged motion information candidate list based on the source information; determining first motion information of the first partition from the merged motion information candidate list based on the first target motion information index and the first motion information mapping table, the first target motion information index being written to the bitstream; deduplicating the first motion information from the merged motion information candidate list to obtain a deduplicated merged motion information candidate list; and determining a second motion information mapping table from the deduplicated merged motion information candidate list based on the source information.
[0167] In some embodiments of the present application, the implementation process of S204 may further include: determining a first motion information with the highest priority from the merged motion information candidate list based on a first motion information mapping table; determining a second motion information with the highest priority from the merged motion information candidate list based on a second motion information mapping table; and determining an inter-prediction value of the current block based on the first motion information and the second motion information.
[0168] In some embodiments of the present application, the encoder calculates a first predicted value of a first partition using first motion information, calculates a second predicted value of the second partition using second motion information, and performs weighted fusion of the first predicted value and the second predicted value to obtain an inter predicted value of the current block.
[0169] In some embodiments of the present application, after the encoder performs a ranking on the first weighting value set based on the weighting value of the first partition to obtain first-ranked source information of each adjacent block, and performs a ranking on the second weighting value set based on the weighting value of the second partition to obtain second-ranked source information of each adjacent block, the encoder determines a first motion information having the highest priority in the ranking of the first-ranked source information from the merged motion information candidate list, determines a second motion information having the highest priority in the ranking of the second-ranked source information from the merged motion information candidate list, and determines an inter-prediction value of the current block based on the first motion information and the second motion information; or After the encoder ranks the first distance set to obtain third-ranked source information for each adjacent block, and after the encoder ranks the second distance set to obtain fourth-ranked source information for each adjacent block, it determines from the merged motion information candidate list a first motion information which is the motion information with the highest priority in the ranking of the third-ranked source information, determines from the merged motion information candidate list a second motion information which is the motion information with the highest priority in the ranking of the fourth-ranked source information, and determines an inter-prediction value of the current block based on the first motion information and the second motion information.
[0170] In some embodiments of the present application, after S101 and before S104, when the prediction mode parameter indicates that the GPM is used to determine the inter-prediction value of the current block, the encoder determines the GPM parameters of the current block, a reconstructed motion information mapping table of the first partition, and a reconstructed motion information mapping table of the second partition, determines the partition mode of the current GPM based on the GPM parameters of the current block, determines from the reconstructed motion information mapping table of the first partition a first motion information mapping table corresponding to the partition mode of the current GPM, and determines from the reconstructed motion information mapping table of the second partition a second motion information mapping table corresponding to the partition mode of the current GPM.
[0171] In some embodiments of the present application, after S101, when the prediction mode parameter indicates to use GPM to determine the inter prediction of the current block, the encoder determines the GPM parameter of the current block and the motion information corresponding to the source information and attribute information of the neighboring block of the current block, respectively constructs a first motion information candidate list and a second motion information candidate list according to the motion information corresponding to the attribute information and source information of the neighboring block of the current block, and determines the inter prediction value of the current block according to the first motion information candidate list and the second motion information candidate list, where the attribute information includes source information.
[0172] It should be understood that when performing GPM prediction, for the first partition and the second partition, the construction of corresponding motion information mapping tables can be performed respectively based on attribute information, so that respective optimal motion information can be obtained from the merge motion information candidate list based on the motion information mapping table, and then the prediction process of the current block can be performed, thereby realizing the construction of respective candidate motion information for the two partitions after GPM division, and since respective situations of different partitions are used, respective merge mapping tables are constructed for different partitions, thereby improving the selection accuracy of motion information for each partition, and further improving the inter-prediction effect.
[0173] Based on the above inter-prediction method of the present application, a specific inter-prediction realization process is provided, and an encoder is taken as an example, and the process includes the following steps:
[0174] Step 1: Terms of Use and Syntax Analysis However, currently, in VTM8.0, the coding unit corresponding to each current block must satisfy some restriction conditions in order to use the GPM prediction mode. Illustratively, these restriction conditions may include the following conditions:
[0175] (a) The Sequence Parameter Set (SPS) allows the GPM prediction mode to be adopted.
[0176] (b) The coding image area of the current block belongs to a bidirectional predictive slice (B Slice).
[0177] (c) The size restrictions of the current block are that the width and height are both greater than or equal to 8 and less than or equal to 64, and the aspect of the current block is both less than 8.
[0178] (d) The current block is non-general merge predicted, non-merge_subblock predicted, non-affine predicted, non-composed intra inter prediction (CIIP).
[0179] (e) The GPM prediction mode is disabled for chrominance components in 4:0:0 format.
[0180] The syntax description of the coding unit layer corresponding to the current block is as shown in Table 2.
[0181] Here, ae(v) denotes a context-adaptive arithmetic entropy-coded syntax element, merge_gpm_idx0[x0][y0] denotes the position in the Merge list of the MV in partition A, merge_gpm_idx1[x0][y0] denotes the position in the Merge list of the MV in partition B, and MaxNumGpmMergeCand is determined by the length of the table after duplicate checking and duplicate elimination.
[0182] Step 2: Construct motion information mapping tables or motion information lists corresponding to the two partitions respectively.
[0183] Step 3: Get MVs from two partitions (first partition A, then partition B).
[0184] Step 4, the GPM prediction process of the encoder.
[0185] Next, the GPM mode prediction process in a VVC Draft8 compatible encoder will be described in detail.
[0186] FIG. 12 is a flow chart of GPM mode prediction in an embodiment of the present invention, where the inputs of the prediction process include:
[0187] luma location(xCb,yCb) cbWidth, cbHeight 1 / 16 fractional-sample accuracy mvA and mvB mvCA and mvCB refidxA and refidxB predListFlagA and predListFlagB. The prediction process for the input information specifically includes the following steps:
[0188] S1, calculate one-way predictions for two partitions.
[0189] The GPM mode reuses the existing conventional merge list and constructs a one-way merge list belonging to the GPM according to the oddness check method, and the merge candidates of each of the two subpartitions after GPM division are all selected from the one-way merge candidate list.
[0190] Then, for the three components L, Cb, and Cr, a reference frame list refPicLN and sub-pixel predicted pixel values predSamplesLN are derived, where N is A or B. This step is the same as the general Inter prediction technique. That is, the existing motion compensation method is used to calculate the unidirectional motion compensation predicted values of each of the two partitions, which are used in the final weighted fusion process of the subsequent GPM. The motion compensation here is the same as the conventional motion compensation process, that is, the pixel values of the corresponding area are looked up and copied through the motion vector.
[0191] S2, get the angle and step of GMP mode.
[0192] If the current prediction block is in GPM mode, search the table based on the partition mode index merge_gpm_partition_idx selected by the current block to obtain the corresponding angle angleIdx and step distanceIdx, and the mapping table for the partition mode is as shown in Table 1.
[0193] Weighted predicted pixel values predSamples are derived for the three components S3, L, Cb, and Cr.
[0194] S3.1, Calculation of current luminance block prediction value.
[0195] S3.1.1, the predefined weight matrix is clipped to obtain the weight mask matrix of the current luminance block.
[0196] 1) First, to obtain the weighting matrix, it is necessary to calculate the offset (x, y) of the upper left corner of the current block corresponding to the coordinate origin through the current block and the division mode of the current block, where the coordinate origin is at the geometric center point of a block having the same size, and a division line having the same angle passes through the geometric center point.
[0197] 13 is a diagram showing a division method of a current block in an embodiment of the present application, as shown in Fig. 13, the dashed line indicates the division line, the white background here is based on the current limiting conditions, the shaded area is the current block, and based on the current block and the division mode of the current block, the offset (OffsetX, OffsetX) of the upper left corner of the current block corresponding to the coordinate origin is calculated, and the maximum movement range (112x112) of the maximum size block (64x64) corresponding to the coordinate system is further determined. If the division line does not pass through the center point of the block, the relative position of the division line is kept as it is, and the position of the block in the coordinate system is moved, thereby obtaining a suitable division.
[0198] In this embodiment, the size information of the current block of the encoder includes the height H of the current block and the width W of the current block, thus determining the coordinate region where the current block is located, and further determining the position information of each pixel point in the current block, i.e., the coordinate information (x, y) of each pixel point. The encoder can determine the weight index corresponding to the pixel point in the current block according to the angle index information, the predetermined angle mapping table, and the pixel point position information in the current block.
[0199] In some embodiments of the present application, the implementation process of the encoder determining the weighted index corresponding to the pixel point in the current block based on the angle index information, a predetermined angle mapping table, and the position information of the pixel point in the current block includes the encoder determining the cosine angle index information and the sine angle index information based on the angle index information, the encoder performing a descending power operation on the angle of the predetermined angle mapping table to obtain an updated angle mapping table, and the encoder determining the weighted index corresponding to the pixel point in the current block based on the cosine angle index information, the sine angle index information, and the updated angle mapping table, respectively combining the position information of the pixel point in the current block.
[0200] Exemplarily, the cosine angle index information may be obtained based on Equation 1, and the sine angle index information may be obtained based on Equation 2. [Formula 1] displacementX= angleIdx [Formula 2] displacementY=(displacementX + 8)%32 Here, displacementX is cosine angle index information, displacementY is sine angle index information, and angleIdx is angle index information.
[0201] The cos(α) index number corresponding to the current angle is displacementX, and the corresponding −sin(α) index number is displacementY.
[0202] Since the transmission of related information of partition A and partition B in the bitstream is performed in order, the order of the two partitions needs to follow a certain rule, that is, the value of partFlip is calculated according to Equation 3. [Formula 3] partFlip=(angleIdx>=13&&angleIdx<=27)?0:1 Here, partFlip indicates the distribution positions of partition A and partition B in the current block. Specifically, when partFlip is 0, it indicates that the side where the distance weightIdx between the point obtained by the following formula 8 and the division line is a negative value is partition A, and the opposite side of the division line is partition B. When partFlip is 1, it is the opposite, that is, the side where weightIdx is a positive value is partition A, and the opposite side (i.e., the side where it is a negative value) is partition B.
[0203] The key parameter shiftHor is calculated by the following Equations 4 and 5. [Formula 4] hwRatio = nH / nW hwRatio is the height of the CU / width of the CU. [Formula 5] shiftHor = ( angleIdx % 16 = = 8 | | ( angleIdx % 16 != 0 && hwRatio > 0 ) ) ? 0 : 1 shiftHor means determining the displacement direction between different division lines of the same angle. If the value is 0, the division line is offset on the Y axis, and if the value is 1, the division line is offset on the X axis.
[0204] Next, offsets offsetX and offsetY of the current prediction block are calculated based on the size and partition information of the current prediction block using Equations 6 to 7: If shiftHor==0, the current block has an offset relative to the height of the current block in the vertical direction, and the offset information is as follows: [Formula 6] offsetX = (- nW ) >> 1 offsetY =((- nH ) >> 1)+ angleIdx < 16 ? (distanceIdx × nH) >> 3 : -((distanceIdx × nH) >> 3) When the offset direction identification value is 1, that is, when the value of shiftHor is 1, the current block has an offset relative to the width of the current block in the vertical direction, and the offset information is as follows: [Formula 7] offsetX =((- nW ) >> 1 )+ angleIdx < 16 ? (distanceIdx × nW) >> 3 : -((distanceIdx × nW) >> 3 offsetY=(-nH)>>1 Here, ">>" denotes the right shift operator, nW denotes the width of the current block, and nH denotes the height of the current block.
[0205] 2) After determining the offset information offsetX and offsetY, the weighted index value (denoted as weightIdx) at the current pixel point can be calculated through the pixel point position in the current block, and the weighted matrix of the current block can be obtained by calculating the weighted value at the current pixel point through Equations 8 to 10. [Formula 8] weightIdx = (((x × subW + offsetX)<<1) + 1)×disLut[displacementX] +(((y×subH+offsetY)<<1) + 1)×disLut[displacementY]. [Formula 9] weightIdxL=partFlip?32+weightIdx:32-weightIdx [Formula 10] wValue=Clip3(0,8,(weightIdxL+4 )>> 3 Here, clip3 indicates the crunch operator, 0 indicates the lower limit, and 8 indicates the upper limit. For example, clip3(i,j,x) indicates that if x is less than i, then the value is i, if x is greater than j, then the value is j, and if x is greater than or equal to i and less than or equal to j, then the value is x.
[0206] And Table 3 provides an example of a geometric division line distance array lookup table, and the disLut[] used in Equation 8 is as shown in Table 3, where subW and subH indicate the downsampling rate, and if the YUV format of the current block is 420 format, subW and subH may all be 2. The disLut[] used here is as shown in Table 3, where subW and subH indicate the downsampling rate, and if the YUV format of the current block is 420 format, subW and subH are all 2. Luminance does not need to be downsampled, and the chrominance weighting is obtained by performing downsampling on the luminance weighting, see S3.2. [Table 4]
[0207] Here, the smaller the absolute value of weightIdx, the closer the current pixel point is to the edge of the partition, and the more uniform the distribution of weights A and B of the pixel point in the two partitions.
[0208] S3.1.2, perform pixel-wise weighting on the one-way predicted values of the two partitions to obtain the final GPM predicted block, and the specific weighting calculation is as shown in Equation 11. [Formula 11] pbSamples[ x ][ y ] = Clip3( 0, ( 1 << BitDepth ) - 1, ( predSamplesLA[ x ][ y ] × wValue +predSamplesLB[x][y]×(8- wValue )+offset1 )>>shift1 ) Here, BitDepth indicates the bit depth, offset1 is used for rounding, and shift1 is used to restore the weighted average prediction value to the same bit depth as the input video, and the calculation of offset1 and shift1 is as shown in Equations 12-13. [Formula 12] shift1=Max( 5, 17 - BitDepth [Formula 13] offset1=1<<(shift1-1) S3.2, Calculation of current chrominance block (Cb and Ct) predictions.
[0209] The luminance sample weight value of the upper left corner of each 2×2 block in Fig. 14a is obtained, and directly used as the chrominance sample weight value at the current (x, y), that is, the luminance sample weight value is downsampled to obtain the current block chrominance weight matrix in Fig. 14b. The calculation of chrominance weight is also as shown in Equation 11.
[0210] The sampling relationships of the luminance and chrominance weighting matrices are as shown in Figures 14a and 14b.
[0211] S4, store MV information for predicting subsequent mvN, refidxN, and predListFlagN.
[0212] The storage process is realized by using the motion mask matrix of the current luminance block, and if the predicted value is completely obtained from partition A, record the motion vector of partition A; if the predicted value is completely obtained from partition B, record the motion vector of partition B; otherwise, record the motion vectors of the two partitions simultaneously. The calculation of the motion mask is almost the same as the process of calculating the luminance weighting matrix, and firstly, calculate an offset, and the calculation of the offset is as shown in Equations 14 to 17.
[0213] When the offset direction identification value is 0, that is, when shiftHor is 0, the offset information at this time is as shown below. [Formula 14] offsetX=(-cbWidth)>>1 [Formula 15] offsetY = ((-cbHeight )>>1) + ( angleIdx < 16 ? ( distanceIdx × cbHeight ) >>3:-( ( distanceIdx × cbHeight )>>3 ) ) When the offset direction identification value is 1, that is, when shiftHor is 1, the offset information at this time is as shown below. [Formula 16] offsetX = ( ( -cbWidth ) >> 1 ) + ( angleIdx < 16 ? ( distanceIdx × cbWidth ) >> 3 : -( ( distanceIdx × cbWidth ) >>3 ) ) [Formula 17] offsetY=(-cbHeight)>>1 Here, cbWidth and cbHeight are the width and height of the motion mask matrix corresponding to the GPM prediction block (i.e., the width and height of the luma component of the current block).
[0214] Since the motion mask matrix of the GPM prediction block is still calculated in units of 4x4 sub-blocks, the calculation of the motion index value (which may be indicated as motionIdx) at the geometric center position (4i+2, 4j+2) of each 4x4 sub-block is similar to the calculation of the weight index value weightIdx in Equation 8, and is specifically as shown below. [Formula 18] motionIdx=(((4×xSbIdx+offsetX)<<1)+5)×disLut[displacementX]+(((4×ySbIdx+offsetY)<<1) + 5)×disLut[displacementY] Then, the MV information that the current 4×4 sub-block needs to store is determined. As in the case of predicting the weights, first, it is necessary to determine whether the current sub-block is in partition A or partition B. [Formula 19] partIdx = (angleIdx>=13&& angleIdx <= 27 )? 0 : 1 Here, (xSbIdx, ySbIdx) indicates the subblock coordinates in the current CU of each 4x4 subblock (sb:subblock). The range of coordinates is xSbIdx = 0..numSbX - 1 and ySbIdx = 0..numSbY - 1. partIdx indicates whether the two partitions need to be flipped. [Formula 20] sType = abs( motionIdx)<32?2:( motionIdx <=0 ?(1- partIdx ):partIdx ) In this embodiment, the output of the prediction process includes predicted pixel values predSamplesL, predSamplesCb, and predSamplesCr.
[0215] In this way, based on the size of ABS(motionIdx) at the geometric center position (4i+2, 4j+2) of each 4x4 sub-block, it is determined whether the current sub-block stores a unidirectional MV or a bidirectional MV, and the specific judgment process is as shown below.
[0216] If sType is 2, the current block stores the constructed bidirectional MV, Otherwise, if sType is 0, the current block stores the MVA of the first partition; If sType is 1, the current block stores the MVB of the second partition, The stored MV information is used for MV prediction of subsequent coding blocks.
[0217] Step 5: The encoder performs the encoding process for the relevant syntax of the GPM prediction mode.
[0218] The encoder regards GPM and other inter prediction modes as competing modes, selects a mode among the modes according to rate offset optimization (RDO) or other strategies, and transmits the selected result to the decoding end in the form of a syntax element in a bitstream, i.e., the operation of writing the syntax in section 1). This process is opposite to the parsing process, and first obtains the reference position information m and n selected from the Merge lists of each of the two partitions A and B, and then substitutes values into the syntax elements according to the following formula:
[0219] merge_gpm_idx0[xCb][yCb]=m merge_gpm_idx1[xCb][yCb]=n-(merge_gpm_idx1[xCb][yCb]>=m)?1:0 After obtaining the prediction, the encoder performs binarization and entropy coding, and finally writes it into a bitstream for transmission.
[0220] As shown in FIG. 15, an embodiment of the present invention provides a decoder 1, which includes: a decoding unit 10 and a first obtaining unit 11; The decoding unit 10 is configured to analyze the bitstream to determine a prediction mode parameter of a current block.
[0221] The first acquisition unit 11 is configured to determine a GPM parameter of the current block, a merge motion information candidate list of the current block, and attribute information of the motion information in the merge motion information candidate list when the prediction mode parameter indicates that a GPM is used to determine the inter-prediction value of the current block, and to determine a first motion information mapping table of a first partition and a second motion information mapping table of a second partition based on the GPM parameter, the merge motion information candidate list, and the attribute information.
[0222] The decoding unit 10 is further configured to determine, based on the first motion information mapping table, the second motion information mapping table, and the merged motion information candidate list, an inter-prediction value of the current block.
[0223] In some embodiments of the present application, the first motion information mapping table is a correspondence relationship between an index of a first candidate motion information corresponding to the first partition and a motion index in the merge motion information candidate list, and the second motion information mapping table is second The correspondence between the index of the second candidate motion information corresponding to the partition and the motion index in the merged motion information candidate list.
[0224] In some embodiments of the present application, the attribute information includes source information, and the first acquisition unit 11 is further configured to perform GPM mode partitioning on the current block based on GPM parameters to determine the first partition and the second partition, and to determine the first motion information mapping table and the second motion information mapping table based on the source information and the merged motion information candidate list.
[0225] In some embodiments of the present application, the first acquisition unit 11 is further configured to determine, based on the source information, a first set of weighted values for target pixel positions of each adjacent block adjacent to the first partition and a second set of weighted values for target pixel positions of each adjacent block adjacent to the second partition, determine the first motion information mapping table from the merged motion information candidate list based on the first set of weighted values, and determine the second motion information mapping table from the merged motion information candidate list based on the second set of weighted values.
[0226] In some embodiments of the present application, the first acquisition unit 11 further acquires the weighted value of the first partition and the weighted value of the second partition, ranks the first weighted value set according to the weighted value of the first partition, acquires first-ranked source information of each adjacent block, determines a first merged motion information index from the merged motion information candidate list that is consistent with the rank of the first-ranked source information, sequentially assigns serial numbers to the merged motion information indexes, and then acquires an index of first candidate motion information; and determines a mapping relationship between the index of the first candidate motion information and the corresponding merged motion information index. The present invention is configured to determine a mapping relationship between the indexes of the second candidate motion information and the corresponding second candidate motion information indexes as the first motion information mapping table, rank the second weighted value set based on the weighted value of the second partition to obtain second ranked source information of each adjacent block, determine the second merged motion information indexes that match the ranking of the second ranked source information from the merged motion information candidate list, sequentially assign serial numbers to the second merged motion information indexes, and then obtain indexes of second candidate motion information, and determine a mapping relationship between the indexes of the second candidate motion information and the corresponding second merged motion information indexes as the second motion information mapping table.
[0227] In some embodiments of the present application, the first acquisition unit 11 is further configured to determine, based on the source information, a first set of distances between each adjacent block adjacent to the first partition and a division line and a second set of distances between each adjacent block adjacent to the second partition and a division line, determine the first motion information mapping table from the merged motion information candidate list based on the first distance set, and determine the second motion information mapping table from the merged motion information candidate list based on the second distance set.
[0228] In some embodiments of the present application, the first acquisition unit 11 is further configured to rank the first distance set to obtain third-ranked source information of each adjacent block, determine the first merge motion information index from the merge motion information candidate list that matches the ranking of the third-ranked source information, and after serializing the merge motion information index in order, obtain an index of first candidate motion information, and determine the mapping relationship between the index of the first candidate motion information and the index of the corresponding merge motion information as the first motion information mapping table, rank the second distance set to obtain fourth-ranked source information of each adjacent block, determine the second merge motion information index from the merge motion information candidate list that matches the ranking of the fourth-ranked source information, and after serializing the second merge motion information index in order, obtain an index of second candidate motion information, and determine the mapping relationship between the index of the second candidate motion information and the index of the corresponding second merge motion information as the second motion information mapping table.
[0229] In some embodiments of the present application, the first acquisition unit 11 is further configured to determine, based on the source information, each adjacent block adjacent to the first partition and the second partition, determine a first adjacent pixel position of the current block corresponding to each adjacent block, determine the first set of distances between the first adjacent pixel position and the division line in the first partition, and determine the second set of distances between the first adjacent pixel position and the division line in the second partition.
[0230] In some embodiments of the present application, the first acquisition unit 11 is further configured to determine, based on the source information, each adjacent block adjacent to the first partition and the second partition, determine the first pixel position corresponding to each adjacent block, determine the first set of distances between the first pixel position in the first partition and the division line, and determine the second set of distances between the first pixel position in the first partition and the division line.
[0231] In some embodiments of the present application, the target pixel position is a position of at least two pixels adjacent to an adjacent block in the current block, and the first acquisition unit 11 is further configured to determine each adjacent block adjacent to the first partition and the second partition based on the source information, and determine a first weighted value average value corresponding to the at least two pixel positions of each adjacent block adjacent to the first partition, thereby obtaining the first weighted value set of each adjacent block, the first weighted value set being constituted by the first weighted value average value respectively corresponding to each adjacent block, and to determine a second weighted value average value corresponding to the at least two pixel positions of each adjacent block adjacent to the second partition, thereby obtaining the second weighted value set of each adjacent block, the second weighted value set being constituted by the second weighted value average value respectively corresponding to each adjacent block.
[0232] In some embodiments of the present application, the first acquisition unit 11 is further configured to determine GPM parameters of the current block, obtain a merge motion information candidate list of the current block and attribute information of the motion information in the merge motion information candidate list, and then construct the second motion information mapping table of the second partition based on the attribute information and the merge motion information candidate list, where the attribute information includes source information.
[0233] The decoding unit 10 is further configured to determine, based on the second motion information mapping table and the merged motion information candidate list, an inter-prediction value of the current block.
[0234] In some embodiments of the present application, GPM parameters includes a first target motion information index, and the first acquisition unit 11 is further configured to determine the first motion information mapping table from the merged motion information candidate list based on the source information, determine first motion information of the first partition from the merged motion information candidate list based on the first target motion information index and the first motion information mapping table, deduplicate the first motion information from the merged motion information candidate list to obtain a deduplicated merged motion information candidate list, and determine the second motion information mapping table from the deduplicated merged motion information candidate list based on the source information.
[0235] In some embodiments of the present application, the first acquisition unit 11 is further configured to determine a first motion information having the highest priority from the merged motion information candidate list based on the first motion information mapping table, and to determine a second motion information having the highest priority from the merged motion information candidate list based on the second motion information mapping table.
[0236] The decoding unit 10 is further configured to determine an inter prediction value of the current block based on the first motion information and the second motion information.
[0237] In some embodiments of the present application, the decoding unit 10 is further configured to calculate a first predicted value of the first partition using the first motion information, calculate a second predicted value of the second partition using the second motion information, and perform weighted fusion of the first predicted value and the second predicted value to obtain an inter predicted value of the current block.
[0238] In some embodiments of the present application, the first acquisition unit 11 is further configured to rank the first weighted value set based on the weighted value of the first partition to obtain first-ranked source information of each adjacent block, and then rank the second weighted value set based on the weighted value of the second partition to obtain second-ranked source information of each adjacent block, and then determine from the merged motion information candidate list a first motion information which has the highest priority in the ranking of the first-ranked source information, and determine from the merged motion information candidate list a second motion information which is the motion information which has the highest priority in the ranking of the second-ranked source information.
[0239] The decoding unit 10 is further configured to determine an inter prediction value of the current block based on the first motion information and the second motion information.
[0240] In some embodiments of the present application, the first acquisition unit 11 is further configured, after ranking the first distance set to obtain third-ranked source information for each adjacent block, and after ranking the second distance set to obtain fourth-ranked source information for each adjacent block, to determine from the merged motion information candidate list the first motion information which is the motion information with the highest priority in the ranking of the third-ranked source information, and to determine from the merged motion information candidate list the second motion information which is the motion information with the highest priority in the ranking of the fourth-ranked source information.
[0241] The decoding unit 10 is further configured to determine an inter prediction value of the current block based on the first motion information and the second motion information.
[0242] In some embodiments of the present application, the first acquisition unit 11 is further configured to analyze the bitstream to determine a prediction mode parameter of the current block, and then, before determining an inter prediction value of the current block based on the first motion information mapping table and the second motion information mapping table, when the prediction mode parameter indicates that a GPM is used to determine the inter prediction value of the current block, determine a GPM parameter of the current block, a reconstructed motion information mapping table of a first partition, and a reconstructed motion information mapping table of a second partition, determine a partition mode of the current GPM based on the GPM parameter of the current block, determine a first motion information mapping table corresponding to the partition mode of the current GPM from the reconstructed motion information mapping table of the first partition, and determine a second motion information mapping table corresponding to the partition mode of the current GPM from the reconstructed motion information mapping table of the second partition.
[0243] In some embodiments of the present application, the first acquisition unit 11 further analyzes the bitstream to determine a prediction mode parameter of the current block, and when the prediction mode parameter indicates that a GPM is used to determine an inter-prediction value of the current block, determines a GPM parameter of the current block, attribute information of the neighboring blocks of the current block, and motion information corresponding to the attribute information, and respectively constructs a first motion information candidate list and a second motion information candidate list based on the attribute information of the neighboring blocks of the current block and the motion information corresponding to the source information, where the attribute information includes source information.
[0244] The decoding unit 10 is further configured to determine an inter prediction value of the current block based on the first motion information candidate list and the second motion information candidate list.
[0245] In practical application, as shown in FIG. 16, an embodiment of the present invention provides a decoder, the decoder comprising: A first memory 13 and a first processor 12, The first memory 13 stores a computer program executable by the first processor 12, which, when executing the program, implements a decoder-side inter-prediction method.
[0246] It should be understood that when performing GPM prediction, for the first and second partitions that are divided, the construction of corresponding motion information mapping tables can be performed respectively based on attribute information, so that respective optimal motion information can be obtained from the merge motion information candidate list based on the motion information mapping table, and then the prediction process of the current block can be performed; when the construction of candidate motion information is respectively performed for the two partitions after GPM division, the respective conditions of different partitions are used, so that respective merge mapping tables are constructed for different partitions, which improves the accuracy of each partition selecting motion information, and further improves the inter-prediction effect.
[0247] As shown in FIG. 17, an encoder 2 is provided according to an embodiment of the present invention, and the encoder 2 includes: a second obtaining unit 20 configured to determine a prediction mode parameter of a current block, and when the prediction mode parameter indicates that an inter-predicted value of the current block is obtained using an inter-geometric partition prediction mode (GPM), determine a GPM parameter of the current block, a merged motion information candidate list of the current block, and attribute information of motion information in the merged motion information candidate list, and determine a first motion information mapping table of a first partition and a second motion information mapping table of a second partition based on the GPM parameter, the merged motion information candidate list, and the attribute information; and an encoding unit 21 for determining an inter-prediction value of the current block according to the first motion information mapping table, the second motion information mapping table, and the merged motion information candidate list.
[0248] In some embodiments of the present application, the first motion information mapping table is a correspondence relationship between an index of a first candidate motion information corresponding to the first partition and a motion index in the merge motion information candidate list, and the second motion information mapping table is second The correspondence between the index of the second candidate motion information corresponding to the partition and the motion index in the merged motion information candidate list.
[0249] In some embodiments of the present application, the attribute information includes source information, and the second acquisition unit 20 is further configured to perform GPM mode partitioning on the current block based on GPM parameters to determine the first partition and the second partition, and to determine the first motion information mapping table and the second motion information mapping table based on the source information and the merged motion information candidate list.
[0250] In some embodiments of the present application, the second acquisition unit 20 is further configured to determine, based on the source information, a first set of weighted values for target pixel positions of each adjacent block adjacent to the first partition and a second set of weighted values for target pixel positions of each adjacent block adjacent to the second partition, determine the first motion information mapping table from the merged motion information candidate list based on the first set of weighted values, and determine the second motion information mapping table from the merged motion information candidate list based on the second set of weighted values.
[0251] In some embodiments of the present application, the second acquisition unit 20 further acquires the weighted value of the first partition and the weighted value of the second partition, ranks the first weighted value set according to the weighted value of the first partition, acquires first-ranked source information of each adjacent block, determines a first merged motion information index from the merged motion information candidate list that is consistent with the rank of the first-ranked source information, sequentially assigns serial numbers to the merged motion information indexes, and then acquires an index of first candidate motion information; and determines a mapping relationship between the index of the first candidate motion information and the corresponding merged motion information index. The present invention is configured to determine a mapping relationship between the indexes of the second candidate motion information and the corresponding second candidate motion information indexes as the first motion information mapping table, rank the second weighted value set based on the weighted value of the second partition to obtain second ranked source information of each adjacent block, determine the second merged motion information indexes that match the ranking of the second ranked source information from the merged motion information candidate list, sequentially assign serial numbers to the second merged motion information indexes, and then obtain indexes of second candidate motion information, and determine a mapping relationship between the indexes of the second candidate motion information and the corresponding second merged motion information indexes as the second motion information mapping table.
[0252] In some embodiments of the present application, the second acquisition unit 20 is further configured to determine, based on the source information, a first set of distances between each adjacent block adjacent to the first partition and a division line and a second set of distances between each adjacent block adjacent to the second partition and a division line, determine the first motion information mapping table from the merged motion information candidate list based on the first distance set, and determine the second motion information mapping table from the merged motion information candidate list based on the second distance set.
[0253] In some embodiments of the present application, the second acquisition unit 20 is further configured to rank the first distance set, obtain third-ranked source information of each adjacent block, determine the first merge motion information index from the merge motion information candidate list that matches the ranking of the third-ranked source information, and after serializing the merge motion information index in order, obtain an index of first candidate motion information, and determine the mapping relationship between the index of the first candidate motion information and the index of the corresponding merge motion information as the first motion information mapping table, rank the second distance set, obtain fourth-ranked source information of each adjacent block, determine the second merge motion information index from the merge motion information candidate list that matches the ranking of the fourth-ranked source information, and after serializing the second merge motion information index in order, obtain an index of second candidate motion information, and determine the mapping relationship between the index of the second candidate motion information and the index of the corresponding second merge motion information as the second motion information mapping table.
[0254] In some embodiments of the present application, the second acquisition unit 20 is further configured to determine, based on the source information, each adjacent block adjacent to the first partition and the second partition, determine a first pixel position corresponding to each adjacent block, determine the first set of distances between the first adjacent pixel position in the first partition and the division line, and determine the second set of distances between the first adjacent pixel position in the second partition and the division line.
[0255] In some embodiments of the present application, the second acquisition unit 20 further determines, based on the source information, adjacent blocks adjacent to the first partition and the second partition, and generates a corresponding The method is configured to determine a first pixel location, determine the first set of distances between the first adjacent pixel location in the first partition and the dividing line, and determine the second set of distances between the first adjacent pixel location in the second partition and the dividing line.
[0256] In some embodiments of the present application, the target pixel position is a position of at least two pixels adjacent to an adjacent block in the current block, and the first acquisition unit 11 is further configured to determine each adjacent block adjacent to the first partition and the second partition based on the source information, and determine a first weighted value average value corresponding to the at least two pixel positions of each adjacent block adjacent to the first partition, thereby obtaining the first weighted value set of each adjacent block, the first weighted value set being constituted by the first weighted value average value respectively corresponding to each adjacent block, and to determine a second weighted value average value corresponding to the at least two pixel positions of each adjacent block adjacent to the second partition, thereby obtaining the second weighted value set of each adjacent block, the second weighted value set being constituted by the second weighted value average value respectively corresponding to each adjacent block.
[0257] In some embodiments of the present application, the second acquisition unit 20 is further configured to determine a GPM parameter of the current block, obtain a merge motion information candidate list of the current block and attribute information of the motion information in the merge motion information candidate list, and then build the second motion information mapping table of the second partition according to the attribute information and the merge motion information candidate list, where the attribute information includes source information; The encoding unit 21 is further configured to determine an inter prediction value of the current block based on the second motion information mapping table and the merged motion information candidate list.
[0258] In some embodiments of the present application, GPM parametersincludes a first target motion information index, and the second acquisition unit 20 is further configured to determine the first motion information mapping table from the merged motion information candidate list based on the source information, determine first motion information of the first partition from the merged motion information candidate list based on the first target motion information index and the first motion information mapping table, deduplicate the first motion information from the merged motion information candidate list to obtain a deduplicated merged motion information candidate list, and determine the second motion information mapping table from the deduplicated merged motion information candidate list based on the source information.
[0259] In some embodiments of the present application, the second acquisition unit 20 is further configured to determine a first motion information with the highest priority from the merged motion information candidate list based on the first motion information mapping table, and determine a second motion information with the highest priority from the merged motion information candidate list based on the second motion information mapping table; The encoding unit 21 is further configured to determine an inter prediction value of the current block based on the first motion information and the second motion information.
[0260] In some embodiments of the present application, the encoding unit 21 is further configured to calculate a first predicted value of the first partition using the first motion information, calculate a second predicted value of the second partition using the second motion information, and perform weighted fusion of the first predicted value and the second predicted value to obtain an inter predicted value of the current block.
[0261] In some embodiments of the present application, the second acquisition unit 20 is further configured to: perform a ranking on the first weighted value set based on the weighted value of the first partition, and obtain a first-ranked source information of each adjacent block; perform a ranking on the second weighted value set based on the weighted value of the second partition, and obtain a second-ranked source information of each adjacent block; determine a first motion information having the highest priority in the ranking of the first-ranked source information from the merged motion information candidate list; and determine a second motion information having the highest priority in the ranking of the second-ranked source information from the merged motion information candidate list; The encoding unit 20 is further configured to determine an inter prediction value of the current block based on the first motion information and the second motion information.
[0262] In some embodiments of the present application, the second acquisition unit 20 is further configured to, after ranking the first distance set to obtain a third ranked source information of each of the adjacent blocks, and after ranking the second distance set to obtain a fourth ranked source information of each of the adjacent blocks, determine the first motion information from the merged motion information candidate list, which is the motion information with the highest priority in the ranking of the third ranked source information, and determine the second motion information from the merged motion information candidate list, which is the motion information with the highest priority in the ranking of the fourth ranked source information; The encoding unit 21 is further configured to determine an inter prediction value of the current block based on the first motion information and the second motion information.
[0263] In some embodiments of the present application, the second acquisition unit 20 is further configured to analyze the bitstream to determine a prediction mode parameter of the current block, and then, before determining an inter prediction value of the current block based on the first motion information mapping table and the second motion information mapping table, when the prediction mode parameter indicates that a GPM is used to determine the inter prediction value of the current block, determine a GPM parameter of the current block, a reconstructed motion information mapping table of a first partition, and a reconstructed motion information mapping table of a second partition, determine a partition mode of the current GPM based on the GPM parameter of the current block, determine a first motion information mapping table corresponding to the partition mode of the current GPM from the reconstructed motion information mapping table of the first partition, and determine a second motion information mapping table corresponding to the partition mode of the current GPM from the reconstructed motion information mapping table of the second partition.
[0264] In some embodiments of the present application, after determining a prediction mode parameter of a current block, when the prediction mode parameter indicates that a GPM is used to determine an inter-prediction value of the current block, the second acquisition unit 20 further determines a GPM parameter of the current block, and a motion information corresponding to the attribute information of the current block; and respectively constructs a first motion information candidate list and a second motion information candidate list according to the attribute information of a neighboring block of the current block and the motion information corresponding to the source information, wherein the attribute information includes source information; The encoding unit 21 is further configured to determine an inter prediction value of the current block based on the first motion information candidate list and the second motion information candidate list.
[0265] In practical application, as shown in FIG. 18, an embodiment of the present invention provides an encoder, the encoder comprising: a second memory 23 and a second processor 22; The second memory 23 stores a computer program executable by the second processor 22, which, when executing the program, implements a decoder-side inter-prediction method.
[0266] It should be understood that when performing GPM prediction, for the first partition and the second partition, the construction of a corresponding motion information mapping table can be performed respectively based on the attribute information, so that the respective optimal motion information can be obtained from the merge motion information candidate list based on the motion information mapping table, and then the prediction process of the current block can be performed, thereby realizing the construction of candidate motion information for the two partitions after GPM division, and since the respective situations of different partitions are used, respective merge mapping tables are constructed for different partitions, so that the accuracy of motion information selection for each partition can be improved, and the inter-prediction effect can be further improved.
[0267] Correspondingly, an embodiment of the present application provides a storage medium, the storage medium storing a computer program, the computer program, when executed by a first processor, performing an inter-prediction method of a decoder, or the computer program, when executed by a second processor, performing an inter-prediction method of an encoder.
[0268] It should be noted that the above description of the storage medium and device embodiments is similar to the description of the method embodiments described above, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0269] The above is only an embodiment of the present application, and the scope of protection of the present application is not limited to these, and any modifications or substitutions that a person skilled in the art can easily make within the scope of the technology disclosed in the present application are within the scope of protection of the present application. Therefore, the scope of protection of the present application is the scope of the claims. [Industrial Applicability]
[0270] In the embodiment of the present application, GPM prediction is performed on the first and second partitions, so that the construction of corresponding motion information mapping tables can be performed respectively based on attribute information, and thus, the optimal motion information can be obtained respectively from the merge motion information candidate list based on the motion information mapping table, and then the prediction process of the current block can be performed, which realizes the construction of respective candidate motion information for the two partitions after GPM division. Since different partitions are used respectively, respective merge mapping tables are constructed for different partitions, which improves the selection accuracy of motion information for each partition and further improves the inter-prediction effect.
Claims
1. An inter prediction method for application to a decoder, comprising: Parsing the bitstream to determine a prediction mode parameter of a current block; When the prediction mode parameter indicates that an inter prediction value of the current block is determined using an inter geometric partition prediction mode (GPM), determining a GPM parameter of the current block, a merge candidate list of the current block, and attribute information of motion information in the merge candidate list, the attribute information including source information; performing a GPM mode partition on the current block based on the GPM parameters to determine a first partition and a second partition; determining a first motion information mapping table for the first partition and a second motion information mapping table for the second partition based on the source information and the merge candidate list; determining an inter prediction value of the current block according to the first motion information mapping table, the second motion information mapping table, and the merge candidate list; determining the first motion information mapping table and the second motion information mapping table based on the source information and the merge candidate list, determining a first set of weighted values for a target pixel location of each neighboring block adjacent to the first partition and a second set of weighted values for a target pixel location of each neighboring block adjacent to the second partition based on the source information; determining the first motion information mapping table from the merging candidate list based on the first set of weighting values, and determining the second motion information mapping table from the merging candidate list based on the second set of weighting values.
2. the first motion information mapping table is a correspondence relationship between an index of first candidate motion information corresponding to the first partition and a motion index in the merge candidate list; the second motion information mapping table is a correspondence relationship between an index of second candidate motion information corresponding to the second partition and a motion index in the merge candidate list; The inter prediction method according to claim 1 .
3. determining the first motion information mapping table from the merging candidate list based on the first set of weighting values and determining the second motion information mapping table from the merging candidate list based on the second set of weighting values includes: obtaining a weight value of the first partition and a weight value of the second partition; Ranking the first set of weight values according to the weight values of the first partition to obtain first ranking source information of each of the neighboring blocks; determining a first merge motion information index from the merge candidate list that matches a ranking of the first ranked source information; After sequentially assigning serial numbers to the first merge motion information indexes, obtain indexes of first candidate motion information, and determine a mapping relationship between the indexes of the first candidate motion information and the corresponding first merge motion information indexes as the first motion information mapping table; Ranking the second set of weight values according to the weight values of the second partition to obtain second ranking source information of each of the neighboring blocks; determining a second merge motion information index from the merge candidate list that matches a ranking of the second ranked source information; and obtaining an index of second candidate motion information after sequentially assigning a serial number to the second merge motion information index; and determining a mapping relationship between the index of the second candidate motion information and the corresponding second merge motion information index as the second motion information mapping table. The inter prediction method according to claim 1 .
4. determining the first motion information mapping table and the second motion information mapping table based on the source information and the merge candidate list, determining, based on the source information, a first set of distances between each adjacent block adjacent to the first partition and a dividing line, and a second set of distances between each adjacent block adjacent to the second partition and a dividing line; determining the first motion information mapping table from the merging candidate list based on the first set of distances, and determining the second motion information mapping table from the merging candidate list based on the second set of distances. The inter prediction method according to claim 1 .
5. determining the first motion information mapping table from the merging candidate list based on the first set of distances and determining the second motion information mapping table from the merging candidate list based on the second set of distances includes: ranking the first distance set to obtain third ranking source information for each of the neighboring blocks; determining a first merge motion information index from the merge candidate list that matches a ranking of the third ranked source information; After sequentially assigning serial numbers to the first merge motion information indexes, obtain indexes of first candidate motion information, and determine a mapping relationship between the indexes of the first candidate motion information and the corresponding first merge motion information indexes as the first motion information mapping table; ranking the second distance set to obtain fourth ranking source information for each of the neighboring blocks; determining a second merge motion information index from the merge candidate list that matches a ranking of the fourth ranked source information; and obtaining an index of second candidate motion information after sequentially assigning a serial number to the second merge motion information index; and determining a mapping relationship between the index of the second candidate motion information and the corresponding second merge motion information index as the second motion information mapping table. The inter prediction method according to claim 4 .
6. Determining, based on the source information, a first set of distances between each adjacent block adjacent to the first partition and a dividing line, and a second set of distances between each adjacent block adjacent to the second partition and a dividing line, determining adjacent blocks adjacent to the first partition and the second partition based on the source information; determining a first neighboring pixel location of the current block corresponding to each of the neighboring blocks; determining the first set of distances between the first neighboring pixel locations in the first partition and the dividing line; determining the second set of distances between the first neighboring pixel locations in the second partition and the dividing line. The inter prediction method according to claim 4 or 5.
7. Determining, based on the source information, a first set of distances between each adjacent block adjacent to the first partition and a dividing line, and a second set of distances between each adjacent block adjacent to the second partition and a dividing line, determining adjacent blocks adjacent to the first partition and the second partition based on the source information; determining a first pixel location corresponding to each of the neighboring blocks; determining the first set of distances between the first pixel location in the first partition and the dividing line; determining the second set of distances between the first pixel location in the second partition and the dividing line. The inter prediction method according to claim 4 or 5.
8. the target pixel positions are positions of at least two pixels in the current block adjacent to the neighboring blocks; Determining, based on the source information, a first set of weighted values for a target pixel location of each neighboring block adjacent to the first partition and a second set of weighted values for a target pixel location of each neighboring block adjacent to the second partition, includes: determining adjacent blocks adjacent to the first partition and the second partition based on the source information; determining a first weighted value average corresponding to the at least two pixel positions of each neighboring block adjacent to the first partition to obtain the first weighted value set for each neighboring block, the first weighted value set being constituted by the first weighted value average corresponding to each neighboring block; determining second weighted value averages corresponding to the at least two pixel locations of each neighboring block adjacent to the second partition to obtain the second set of weights for each neighboring block, the second set of weights being constituted by the second weighted value averages respectively corresponding to each neighboring block; The inter prediction method according to claim 1 .
9. After determining the GPM parameter of the current block and obtaining attribute information of a merge candidate list of the current block and motion information in the merge candidate list, the inter prediction method includes: constructing the second motion information mapping table of the second partition according to the attribute information and the merge candidate list, where the attribute information includes source information; determining an inter prediction value of the current block based on the second motion information mapping table and the merge candidate list. The method of inter prediction according to claim 2 .
10. The GPM parameters include a first target motion information index, the first target motion information index being a position in a first motion information mapping table, and determining the first motion information mapping table and the second motion information mapping table based on the source information and the merge candidate list includes: determining the first motion information mapping table from the merge candidate list based on the source information; determining first motion information of the first partition from the merge candidate list according to the first target motion information index and the first motion information mapping table; deduplicating the first motion information from the merging candidate list to obtain a deduplicated merging candidate list; determining the second motion information mapping table from the deduplicated merge candidate list based on the source information. The method of inter prediction according to claim 1 .
11. 1. An inter prediction method for application to an encoder, comprising: determining a prediction mode parameter for a current block; When the prediction mode parameter indicates that an inter prediction value of the current block is determined using an inter geometric partition prediction mode (GPM), determining a GPM parameter of the current block, a merge candidate list of the current block, and attribute information of motion information in the merge candidate list, the attribute information including source information; performing a GPM mode partition on the current block based on the GPM parameters to determine a first partition and a second partition; determining a first motion information mapping table for the first partition and a second motion information mapping table for the second partition based on the source information and the merge candidate list; determining an inter prediction value of the current block based on the first motion information mapping table, the second motion information mapping table, and the merge candidate list; determining the first motion information mapping table and the second motion information mapping table based on the source information and the merge candidate list, determining a first set of weighted values for a target pixel location of each neighboring block adjacent to the first partition and a second set of weighted values for a target pixel location of each neighboring block adjacent to the second partition based on the source information; determining the first motion information mapping table from the merging candidate list based on the first set of weighting values, and determining the second motion information mapping table from the merging candidate list based on the second set of weighting values.
12. 1. A decoder comprising: a first memory and a first processor; The decoder, wherein the first memory stores a computer program executable by a first processor, and when the first processor executes the program, the decoder realizes the inter prediction method described in any one of claims 1 to 10.
13. A storage medium on which a computer program is stored, The storage medium, which, when the computer program is executed by a first processor, realizes the inter prediction method described in any one of claims 1 to 10, or, when the computer program is executed by a second processor, realizes the inter prediction method described in claim 11.
Citation Information
Patent Citations
A coding and decoding method and an apparatus therefor
CN109819255A
Encoding device, decoding device, encoding method, and decoding method
WO2019221103A1
