Image prediction method, encoder, decoder and storage medium

By using syntax units in the code stream to indicate the MIP mode, the problem of reduced encoding and decoding efficiency caused by the complexity of MIP technology is solved, and a more efficient encoding and decoding process is achieved.

CN114786019BActive Publication Date: 2024-10-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210123294.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-15
Publication Date
2024-10-18
Estimated Expiration
2040-05-15

AI Technical Summary

Technical Problem

In multi-functional video coding, the high complexity of matrix-based intra prediction technology (MIP) leads to an increase in storage space and time during the encoding and decoding process, which reduces the encoding and decoding efficiency.

Method used

By using syntax units in the code stream to indicate whether the current block uses MIP mode, the image prediction process is simplified, the encoding and decoding complexity is reduced, the storage space and overall time are reduced, and the encoding and decoding efficiency is improved.

Benefits of technology

On the basis of ensuring the encoding and decoding performance, the storage space and overall time required in the encoding and decoding process are reduced, and the encoding and decoding efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114786019B_ABST
    Figure CN114786019B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an image prediction method, an encoder, a decoder, and a storage medium. If the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the encoder sets the value of the MIP mode parameter to indicate the use of the MIP mode and writes it into the bitstream; determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; writes the MIP mode of the current block into the bitstream. The decoder parses the bitstream to determine the MIP mode parameter of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parses the bitstream, determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; decodes the current block according to the prediction value.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an application filed on May 15, 2020, with application number 2020800443802, and invention name “Image prediction method, encoder, decoder and storage medium”. Technical Field

[0002] The embodiments of the present application relate to the field of video coding and decoding technology, and in particular to an image prediction method, an encoder, a decoder, and a storage medium. Background Art

[0003] In the reference software test platform of Versatile Video Coding (VVC), a new intra-frame coding technology, Matrix-based Intra Prediction (MIP) was proposed. MIP is an intra-frame prediction technology based on neural networks, that is, a multi-layer neural network is used to predict the brightness value of the current block based on the adjacent reconstructed brightness blocks. Specifically, like the traditional intra-frame mode, when using the MIP mode for intra-frame prediction, the input of the MIP prediction is also the data of the adjacent brightness blocks in the previous row and the left column of the current block, and the output is the predicted value of the brightness component of the current block. The specific prediction process is divided into three steps: downsampling, matrix-vector multiplication and interpolation.

[0004] However, due to the high complexity of the MIP mode, while the MIP technology improves the encoding and decoding performance, the storage space and overall time required in the encoding and decoding process are greatly increased, thereby reducing the encoding and decoding efficiency. Summary of the invention

[0005] The embodiments of the present application provide an image prediction method, an encoder, a decoder, and a storage medium, which can reduce the complexity while ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0006] The technical solution of the embodiment of the present application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides an image prediction method, which is applied to an encoder, and the method includes:

[0008] If the current block uses the MIP mode to determine the intra prediction value of the current block, the value of the MIP mode parameter is set to indicate the use of the MIP mode and written into the bitstream;

[0009] Determine a MIP mode of the current block, and determine predicted values ​​of a luminance component and a chrominance component corresponding to the current block according to the MIP mode;

[0010] The MIP mode of the current block is written into the bitstream.

[0011] In a second aspect, an embodiment of the present application provides an image prediction method, which is applied to a decoder, and the method includes:

[0012] Parse the bitstream and determine the MIP mode parameters of the current block;

[0013] If the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra prediction value of the current block, parse the code stream, determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode;

[0014] The current block is decoded according to the prediction value.

[0015] In a third aspect, an embodiment of the present application provides an encoder, the encoder comprising: a setting part, a first determining part and an encoding part,

[0016] The setting part is configured to set the value of the MIP mode parameter to indicate the use of the MIP mode and write it into the bitstream if the current block uses the MIP mode to determine the intra-frame prediction value of the current block;

[0017] The first determining part is configured to determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode;

[0018] The encoding part is configured to write the MIP mode of the current block into the bitstream.

[0019] In a fourth aspect, an embodiment of the present application provides an encoder, comprising a first processor and a first memory storing instructions executable by the first processor, wherein when the instructions are executed by the first processor, the image prediction method as described above is implemented.

[0020] In a fifth aspect, an embodiment of the present application provides a decoder, the decoder comprising: a decoding part, a second determining part,

[0021] The decoding part is configured to parse the bitstream to determine the MIP mode parameter of the current block; and if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parse the bitstream to determine the MIP mode of the current block;

[0022] The second determining part is configured to determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode;

[0023] The decoding part is further configured to decode the current block according to the prediction value.

[0024] In a sixth aspect, an embodiment of the present application provides a decoder, comprising a second processor and a second memory storing instructions executable by the second processor, wherein when the instructions are executed by the second processor, the image prediction method as described above is implemented.

[0025] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon, which is applied to an encoder and a decoder, and the computer program implements the image prediction method as described above when executed by a first processor, or implements the image prediction method as described above when executed by a second processor.

[0026] The embodiment of the present application provides an image prediction method, an encoder, a decoder, and a storage medium. If the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the encoder sets the value of the MIP mode parameter to indicate the use of the MIP mode and writes it into the bitstream; determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; writes the MIP mode of the current block into the bitstream. The decoder parses the bitstream to determine the MIP mode parameter of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parses the bitstream, determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; decodes the current block according to the prediction value. That is to say, in an embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, it can set the MIP mode parameters and write them into the bitstream for transmission to the decoding side while using the MIP mode to obtain the intra-frame prediction value of the current block; the decoder parses the bitstream to obtain the MIP mode parameters, and if the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate whether the current block uses the MIP mode in the bitstream, thereby simplifying the image prediction process, and can reduce the complexity on the basis of ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 Schematic diagram of the arrangement of 67 prediction modes in intra-frame prediction;

[0028] Figure 2 Schematic diagram of the process of encoding for MIP mode;

[0029] Figure 3 Schematic diagram of arrangement of the upper adjacent luminance blocks and the left adjacent luminance blocks of the current block;

[0030] Figure 4 Schematic diagram for determining the arrangement of DM mode;

[0031] Figure 5 It is a schematic diagram of the structure of a video coding system;

[0032] Figure 6 It is a structural diagram of a video decoding system;

[0033] Figure 7 Schematic diagram of the implementation process of the image prediction method Figure 1 ;

[0034] Figure 8 Schematic diagram of the implementation process of the image prediction method Figure 2 ;

[0035] Fig. 9 The structure of the encoder proposed in this application embodiment is shown in FIG. Figure 1 ;

[0036] Fig.10 The structure of the encoder proposed in this application embodiment is shown in FIG. Figure 2 ;

[0037] Fig.11 The structure of the decoder proposed in this application embodiment is shown in FIG. Figure 1 ;

[0038] Fig.12 The structure of the decoder proposed in this application embodiment is shown in FIG. Figure 2 . DETAILED DESCRIPTION

[0039] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for the convenience of description, only the parts related to the related applications are shown in the accompanying drawings.

[0040] At present, the Communications Edition Recommendations (ITU-T) and the International Organization for Standardization (ISO) / International Electrotechnical Commission (IEC) have launched a standardization project called Versatile Video Coding (VVC) to develop a new generation of video coding standards. Its purpose is to improve the performance of VVC by about 50% compared to the latest H.265 / HEVC standard when encoding high-quality videos with one or more of the following characteristics: high resolution, high frame rate, high bit depth, high dynamic range, wide color gamut, and omnidirectional viewing angle. JVET is responsible for this standardization project. Various intra-frame prediction modes and inter-frame prediction modes have been verified to achieve high compression efficiency when encoding high-quality videos, and therefore have been adopted in the VVC working draft.

[0041] In video images, VVC accepted the Affine Linear Weighted IntraPrediction technology proposed in the Joint Video Experts Team (JVET)-N0217 and renamed it as matrix-based intra prediction, namely MIP technology. This technology adds different numbers of matrix-based intra prediction modes in the intra-frame brightness prediction process according to the different sizes of intra-frame brightness coding blocks.

[0042] In order to capture finer edge directions presented in natural videos, VVC expands the 33 intra-frame brightness prediction angle modes defined in the video compression standard (High Efficiency Video Coding, HEVC) to 65. Figure 1 Schematic diagram of the arrangement of 67 prediction modes in intra-frame prediction, such as Figure 1 As shown, arrows numbered 2-66 represent 65 intra-frame angle prediction modes, and there are two non-angle modes, namely the gradual flat Planar mode numbered 0 and the DC mode numbered 1; therefore, the intra-frame prediction process in VVC includes two non-angle modes and 65 angle modes. Here, these 67 prediction modes are called traditional modes of intra-frame prediction.

[0043] MIP is an intra-frame prediction technology based on neural networks, that is, a multi-layer neural network is used to predict the brightness value of the current block based on adjacent reconstructed pixels. Specifically, MIP technology divides brightness coding blocks into three categories according to the size of the brightness coding block within the frame. Assuming the size of the brightness coding block is W×H, where W is the width parameter and H is the height parameter, the brightness coding blocks can be divided into three categories according to the size of the brightness coding block:

[0044] The luminance coding block with a size of 4×4 is a first type of luminance block, the luminance coding blocks with sizes of 8×4, 4×8 and 8×8 are second type of luminance blocks, and luminance coding blocks of other sizes are third type of luminance blocks.

[0045] For these three types of intra-frame luminance coding blocks, MIP technology adds M MIP modes based on 67 traditional intra-frame prediction modes, where M=16 for the first type of luminance blocks, M=8 for the second type of luminance blocks, and M=6 for the third type of luminance blocks.

[0046] Specifically, MIP technology is only used for intra-frame brightness prediction. Like the traditional mode, the input of MIP prediction is also the data of the previous row and the left column of the current block, and the output is the predicted value of the current block. The specific prediction process is divided into three steps: averaging, matrix-vector multiplication, and interpolation. In other words, by performing these three operations on the reconstructed brightness values ​​of the adjacent pixels in the previous row and the left column of the input, the predicted value of the brightness component of the current block can be obtained.

[0047] Figure 2 A schematic diagram of the process of encoding for the MIP mode is shown as follows: Figure 2 As shown, the specific implementation of brightness prediction in MIP mode is as follows:

[0048] Step 1: Perform an average operation on the upper adjacent reference points of the current block to obtain the vector bdry top , a total of N values; the vector bdry is obtained by averaging the adjacent reference points on the left side of the current block left , a total of N values. When the current brightness code is the first type of brightness code, N = 2; when the current brightness code is the second or third type of brightness code, N = 4. Vector bdry top and vector bdry left Form a new vector bdry red and perform subsequent operations;

[0049] Step 2: Get the corresponding matrix A through the mode number k of the MIP mode k and offset b k , calculated by the following formula (1): Figure 2 The partial prediction values ​​of the current block are marked with cross lines in :

[0050] Pred red =A k ·bdry red +b k (1)

[0051] Step 3: Obtain the remaining predicted value Pred in the current block through linear interpolation red .

[0052] It should be noted that, in the implementation process of encoding the current block, it is necessary to write the specific encoding mode used for intra-frame prediction into the compressed bit stream, so that the decoding end can determine which mode to use, whether it is the traditional mode or the MIP mode, by parsing the mode information; if it is the traditional mode, which traditional mode it is; if it is the MIP mode, which MIP mode it is.

[0053] In VVC's intra prediction, the rate-distortion cost RDcost of 67 traditional modes and M MIP modes is compared for each luminance coding block, and the optimal mode is selected and encoded from the 67 traditional modes and M MIP modes. In order to save bit overhead, VVC uses the intra mode coding technology based on the Most Probable Modes List (MPM).

[0054] It should be noted that since the multiple reference line technology (extend reference line) and intra-frame sub-block division technology (Itra Sub-Patitionar, ISP) are only used for the modes in the MPM list, when extendrefflag and ispflag are both 0, that is, when 0 reference line is used and no sub-block division is performed, it is not necessary to encode mpmflag, and the position of the optimal mode in the MPM list can be directly encoded.

[0055] Furthermore, with regard to the construction of the MPM list and the MIPMPM list, in the VVC luminance intra-frame prediction, if the optimal mode selected for the current block is the traditional mode, it is necessary to construct an MPM list containing the 6 most likely traditional modes; if the optimal mode selected for the current block is the MIP mode, it is necessary to construct a MIPMPM list containing the 3 most likely MIP modes.

[0056] Figure 3 is a schematic diagram of the arrangement of the upper adjacent brightness block and the left adjacent brightness block of the current block, such as Figure 3 As shown, the above two lists are based on Figure 3 The optimal modes of the upper adjacent luminance block (A) and the left adjacent luminance block (L) of the current block are derived.

[0057] Specifically, for the construction of the MPM list, in VVC intra-frame prediction, if the optimal mode of the current block is the traditional mode, the MPM list needs to be constructed. In the process of constructing the MPM list, it is first necessary to obtain the traditional mode ABOVE corresponding to the optimal mode of the upper adjacent luminance block and the traditional mode LEFT corresponding to the optimal mode of the left adjacent luminance block.

[0058] Furthermore, for the construction of the MIPMPM list, in VVC intra prediction, if the optimal mode of the current block is the MIP mode, the MIPMPM list needs to be constructed. In the process of constructing the MIPMPM list, it is first necessary to obtain the MIP mode ABOVE_MIP corresponding to the optimal mode of the upper adjacent luminance block and the MIP mode LEFT_MIP corresponding to the optimal mode of the left adjacent luminance block.

[0059] Further, after obtaining LEFT_MIP and ABOVE_MIP, a MIPMPM list containing three most likely MIPMPM modes is constructed according to the following method, wherein the number in MIPMPM is the number of the MIP mode, the number range is 0 to (M-1), the first type of luminance block is numbered 0-15; the second type of luminance block is numbered 0-7; and the third type of luminance block is numbered 0-5:

[0060] If LEFT_MIP is available (not -1), put LEFT_MIP into MIPMPMlist;

[0061] If ABOVE_MIP is available (not -1), put ABOVE_MIP into MIPMPMlist after passing redundancy check;

[0062] If LEFT_MIP is not available (-1), ABOVE_MIP is not available (-1), add the default list after redundancy check according to the type of the current block until the MIPMPMlist is filled:

[0063] Furthermore, it should be added that in the VVC chroma intra prediction process, there is a direct mode (DM) that uses the correlation between components. The intra prediction mode of the center position of the co-located luminance coding block corresponding to the current block is used to perform intra prediction of the current chroma block. Figure 4 To determine the arrangement diagram of the DM mode, Figure 4 As shown in Figure 4 When the intra-frame prediction mode of the CR position is the MIP mode, the MIP mode needs to be mapped to the traditional mode through the "MIP-traditional mapping table" to perform intra-frame prediction of the current chrominance block.

[0064] Due to the computational burden and storage cost required by MIP technology, it is difficult to implement MIP mode on devices with relatively low computing power or small storage capacity. Therefore, in the latest VVC working draft design, the MIP mode cannot be effectively transmitted and controlled, making it difficult to implement in flexible codec implementation and dynamic video streaming.

[0065] In order to overcome the above defects, in an embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, the MIP mode parameters can be set and written into the code stream for transmission to the decoding side while using the MIP mode to obtain the intra-frame prediction value of the current block; the decoder parses the code stream to obtain the MIP mode parameters, and if the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. That is, in the present application, the VVC bitstream transmits one or more syntax elements to enable or disable the MIP mode. The syntax elements may be located in data units in the video sequence layer, the picture layer and / or the sub-picture layer, the slice / tile / brick layer, where the sub-picture refers to the area covering a part of the picture. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate whether the current block uses the MIP mode in the code stream, thereby simplifying the image prediction process of the MIP mode, and can reduce the complexity on the basis of ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0066] Figure 5 It is a structural diagram of a video coding system. Figure 5 As shown, the video encoding system 100 includes a transform and quantization module 101, an intra-frame estimation module 102, an intra-frame prediction module 103, a motion compensation module 104, a motion estimation module 105, an inverse transform and inverse quantization module 106, a filter control analysis module 107, a deblocking filter and a sample adaptive offset (Sample Adaptive Offset, SAO) filter module 108, a header information encoding and context-based adaptive binary arithmetic coding (Context-based Adaptive Binary Arithmatic Coding, CABAC) encoding module 109 and a decoded image cache module 110 and other components; Figure 6 It is a structural diagram of a video decoding system. Figure 6As shown, the video decoding system 200 includes components such as a header information decoding and CABAC decoding module 201, an inverse transform and inverse quantization module 202, an intra-frame prediction module 203, a motion compensation module 204, a deblocking filter and SAO filter module 205, and a decoded image buffer module 206. After the video image is partially processed by the transform and quantization module 101, the intra-frame estimation module 102, the intra-frame prediction module 103, the motion compensation module 104, the motion estimation module 105, the deblocking filter and SAO filter module 108, and the header information encoding and CABAC module 109 in the video encoding system 100, a code stream of the video image is output; the code stream is input into the video decoding system 200, and is partially processed by the header information decoding and CABAC decoding module 201, the inverse transform and inverse quantization module 202, the intra-frame prediction module 203, and the motion compensation module 204 in the video decoding system 200, and the original video image is finally restored.

[0067] The image prediction method proposed in the present application can affect the entropy coding process and the entropy decoding process in the encoding and decoding process. For example, the image prediction method proposed in the present application can be used in Figure 5 The structure of the video coding system shown in FIG. 109 is applied at position 109, and can also be applied at position 109 in FIG. Figure 6 The structure of the video decoding system shown is applied at position 201.

[0068] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0069] An embodiment of the present application provides an image prediction method, which is applied to an encoder. Figure 7 Schematic diagram of the implementation process of the image prediction method Figure 1 ,like Figure 7 As shown, in the present application, the method for the encoder to perform image prediction may include the following steps:

[0070] Step 101: If the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the value of the MIP mode parameter is set to indicate the use of the MIP mode and written into the bitstream.

[0071] In an embodiment of the present application, if the MIP mode is used for the current block to determine the intra-frame prediction value of the current block, the encoder can set the value of the MIP mode parameter to indicate the use of the MIP mode and write it into the bitstream. The current block can represent the current block to be encoded or the current block to be decoded. Specifically, in the present application, when the encoder is encoding, the current block is the block to be encoded.

[0072] Furthermore, in an embodiment of the present application, when encoding a current block, the encoder may first select an optimal encoding method between the traditional mode and the MIP mode.

[0073] It should be noted that in the embodiment of the present application, in the intra-frame prediction process of VVC, for any luminance coding block, an optimal mode can be selected from the traditional mode and the MIP mode for encoding processing. Among them, the traditional mode includes 67 intra-frame prediction modes including the Planar mode numbered 0, the DC mode numbered 1, and 65 angle modes.

[0074] Further, in an embodiment of the present application, when selecting the optimal mode, the encoder can compare the Rdcost of 67 traditional modes and M MIP modes for the current block, so that the optimal mode can be selected and encoded according to the comparison result. Wherein, based on the size type of the current block, the value of M is also different. Specifically, when the current block is a first-class luminance block, that is, the current block size is 4×4, M=16; when the current block is a second-class luminance block, that is, the current block size is 8×4, 4×8 or 8×8, M=8; when the current block is a third-class luminance block, that is, the current block size is other sizes, M=6.

[0075] It can be understood that in the embodiment of the present application, if the encoder determines to use the MIP mode to determine the intra-frame prediction value of the current block, then the encoder can set the value of the MIP mode parameter to indicate the use of the MIP mode and write it into the bitstream. In other words, the encoder can use the syntax unit to indicate whether the current block uses the MIP mode, that is, the MIP mode parameter is used to indicate whether the current block uses the MIP mode.

[0076] Exemplarily, in an embodiment of the present application, after the encoder determines to use the MIP mode to determine the intra-frame prediction value of the current block, the value of the MIP mode parameter can be set to 1 and written into the bitstream, thereby indicating that the current block uses the MIP mode.

[0077] Further, in an embodiment of the present application, if the encoder determines not to use the MIP mode to determine the intra-frame prediction value of the current block, the encoder can set the value of the MIP mode parameter to indicate not to use the MIP mode and write it into the bitstream.

[0078] Exemplarily, in an embodiment of the present application, after determining not to use the MIP mode to determine the intra-frame prediction value of the current block, the encoder can set the value of the MIP mode parameter to 0 and write it into the bitstream, thereby indicating that the current block does not use the MIP mode.

[0079] Further, in an embodiment of the present application, after the encoder completes setting of the value of the MIP mode parameter, the MIP mode parameter may be indicated in the code stream with one or more syntax units. That is, after the encoder completes setting of the MIP mode parameter according to whether the current block uses the MIP mode, the MIP mode parameter may be indicated in the code stream with one or more syntax units.

[0080] It can be understood that in an embodiment of the present application, the syntax unit indicating the MIP mode parameters can be included in one or more data units in the following code stream: a data unit containing the current block, a slice header information data unit, an image header information data unit, an image layer parameter set, a sequence layer parameter set and an adaptation parameter set.

[0081] It should be noted that in an embodiment of the present application, since one or more data units in the code stream including the data unit containing the current block, the slice header information data unit, the image header information data unit, the image layer parameter set, the sequence layer parameter set and the adaptive parameter set can indicate the MIP mode parameters, the MIP mode parameters set by the encoder can be adapted thereto.

[0082] Exemplarily, in the present application, if the encoder writes the MIP mode parameter into a sequence layer parameter set (SequenceParamater Set, SPS), the MIP mode parameter can be indicated by sps_mip_enable_flag, so the decoder can determine the MIP mode parameter sps_mip_enable_flag after parsing the data unit of the sequence layer parameter set in the bitstream.

[0083] Exemplarily, in the present application, if the encoder writes the MIP mode parameters into the picture layer parameter set (PictureParamater Set, PPS), the MIP mode parameters can be indicated by pps_mip_enable_flag, so the decoder can determine the MIP mode parameter pps_mip_enable_flag after parsing the data unit of the picture layer parameter set in the bitstream.

[0084] Exemplarily, in the present application, if the encoder writes the MIP mode parameter into an adaptive parameter set (APS), the MIP mode parameter can be indicated by aps_mip_enable_flag, so the decoder can determine the MIP mode parameter aps_mip_enable_flag after parsing the data unit of the adaptive parameter set in the bitstream.

[0085] Exemplarily, in the present application, if the encoder writes the MIP mode parameter into the slice header information data unit, the MIP mode parameter can be indicated by slice_mip_enable_flag, so the decoder can determine the MIP mode parameter slice_mip_enable_flag after parsing the data unit of the slice header information data unit in the bitstream.

[0086] Step 102: Determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode.

[0087] In an embodiment of the present application, if the MIP mode is used to determine the intra-frame prediction value of the current block, the encoder can further determine the MIP mode of the current block, and then determine the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode.

[0088] It can be understood that in an embodiment of the present application, when the encoder determines the MIP mode corresponding to the current block, it can first determine the size type of the current block; then construct a candidate MIP mode list based on the size type; finally, the MIP mode of the current block can be determined from the candidate MIP mode list.

[0089] Furthermore, in an embodiment of the present application, the current block can be divided into three size types according to the size of the current block. If the size of the current block is W×H, where W is a width parameter and H is a height parameter, then the current block of size 4×4 can be determined as a first type of brightness block, that is, the size type of the current block is determined to be the first type; current blocks of sizes 8×4, 4×8 and 8×8 can also be determined as second type of brightness blocks, that is, the size type of the current block is determined to be the second type; current blocks of other sizes can also be determined as third type of brightness blocks, that is, the size type of the current block is determined to be the third type.

[0090] It is understandable that in this application, according to the height parameter and the width parameter, the current block can be of 25 sizes. Specifically, the standard stipulates that the maximum size of the luminance block is 128×128, but since the maximum size of the transform unit is 64×64, that is, the luminance block must be quadtree-divided at a size of 128×128, so the maximum luminance block size is 64×64. Table 1 is a schematic table of luminance block sizes, as shown in Table 1,

[0091] Table 1

[0092] (4×4) (4×8) (4×16) (4×32) (4×64) (8×4) (8×8) (8×16) (8×32) (8×64) (16×4) (16×8) (16×16) (16×32) (16×64) (32×4) (32×8) (32×16) (32×32) (32×64) (64×4) (64×8) (64×16) (64×32) (64×64)

[0093] At present, the MIP mode is restricted according to the height parameter and width parameter of the current block. Specifically, if the aspect ratio of the current block is greater than 4, or the height-to-width ratio is greater than 4, the MIP mode is not used to encode the current block. Table 2 is the restriction of the brightness block size under the MIP mode, as shown in Table 2.

[0094] Table 2

[0095]

[0096] That is to say, in the present application, when the encoder determines the size type of the current block, if the width and height of the current block are both equal to 4, that is, the size of the current block is 4×4, the size type of the current block can be set to the first type; if the width and height of the current block are both equal to 8, that is, the size of the current block is 8×8, or the width of the current block is equal to 8 and the height is equal to 4, that is, the size of the current block is 8×4, or the width of the current block is equal to 4 and the height is equal to 8, that is, the size of the current block is 4×8, the size type of the current block can be set to the second type; if the width and height of the current block do not meet the aforementioned conditions, that is, the size of the current block is not 4×4, 8×8, 8×4, 4×8, the size type of the current block can be set to the third type.

[0097] Further, in an embodiment of the present application, according to the size type division method proposed in the current standard, when the encoder determines the size type of the current block, if the width and height of the current block are both equal to 4, the size type of the current block can be set to the first type; if the width and height of the current block are both equal to 8, or one of the width and height of the current block is equal to 4, the size type of the current block can be set to the second type; if the width and height of the current block do not meet the aforementioned conditions, that is, the width and height of the current block are not equal to 4 or 8 at the same time, or the width and height of the current block are not equal to 4, then the size type of the current block can be set to the third type.

[0098] It should be noted that in the embodiment of the present application, for different size types, the encoder can construct different candidate MIP mode lists. Specifically, the MIP technology adds M MIP modes on the basis of 67 traditional intra-frame prediction modes, wherein the value of M is also different for different size types. The value of M may include 16, 8, and 6.

[0099] Exemplarily, in the present application, when the size type of the current block is the first type, the value of M is 16, that is, a candidate MIP mode list can be constructed according to 16 MIP modes; when the size type of the current block is the second type, the value of M is 8, that is, a candidate MIP mode list can be constructed according to 8 MIP modes; when the size type of the current block is the third type, the value of M is 6, that is, a candidate MIP mode list can be constructed according to 6 MIP modes.

[0100] Furthermore, in an embodiment of the present application, after the encoder completes the construction of the candidate MIP mode list according to the size type of the current block, it can determine the MIP mode used by the current block from the candidate MIP mode list, so that the MIP mode can be used to perform image prediction processing on the current block to obtain the intra-frame prediction value of the current block.

[0101] It can be understood that in an embodiment of the present application, after constructing a candidate MIP mode list corresponding to the current block, the encoder can select a MIP mode from the candidate MIP mode list, and then use the MIP mode to determine the predicted values ​​of the luminance component and chrominance component corresponding to the current block.

[0102] Specifically, in an embodiment of the present application, the encoder can first read the mode number k of the MIP mode from the candidate MIP mode list, so as to obtain the corresponding matrix Ak and offset bk, and perform matrix-vector multiplication according to the above formula (1), so as to obtain the brightness component prediction value corresponding to the current block.

[0103] It should be noted that in an embodiment of the present application, after the encoder determines the MIP mode of the current block from the candidate MIP mode list, it can further set the MIP mode index number of the current block according to the MIP mode of the current block, and write the MIP mode index number into the bitstream.

[0104] It can be understood that, in the present application, the MIP mode index number of the current block can be used to indicate the specific MIP mode used by the current block. That is, on the encoding side, the encoder sets the MIP mode index number of the current block and writes it into the bitstream, which is then transmitted to the decoding side. The decoder obtains the MIP mode index number of the current block by parsing the bitstream, and can determine the MIP mode indicated by the MIP mode index number from the candidate MIP mode list of the current block.

[0105] Step 103: Write the MIP mode of the current block into the bitstream.

[0106] In an embodiment of the present application, after determining the MIP mode of the current block and determining the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode, the encoder may write the MIP mode of the current block into the bitstream.

[0107] That is to say, in the present application, in the implementation process of encoding the current block, the encoder not only needs to write into the compressed bitstream whether the current block uses the MIP mode, but also needs to write into the bitstream which specific mode is used. For example, when using the MIP mode for intra-frame prediction, which specific MIP mode is used.

[0108] The embodiment of the present application proposes an image prediction method. If the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the encoder sets the value of the MIP mode parameter to indicate the use of the MIP mode and writes it into the code stream; determines the MIP mode of the current block, and determines the prediction value of the luminance component and chrominance component corresponding to the current block according to the MIP mode; writes the MIP mode of the current block into the code stream. That is to say, in the embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, the MIP mode parameter can be set and written into the code stream for transmission to the decoding side while using the MIP mode to obtain the intra-frame prediction value of the current block; the decoder parses the code stream to obtain the MIP mode parameter. If the MIP mode parameter indicates that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate whether the current block uses the MIP mode in the code stream, thereby simplifying the image prediction process, and can reduce the complexity on the basis of ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0109] Based on the above embodiments, another embodiment of the present application proposes an image prediction method, when the encoder determines to use the MIP mode to predict the intra-frame prediction value of the current block, the MIP mode parameter indicating whether the current block uses the MIP mode can be written into one or more syntax elements in the bitstream. That is, in the present application, the VVC bitstream transmits one or more syntax elements to enable or disable the MIP mode. The syntax element may be located in a data unit in a video sequence layer, a picture layer and / or a sub-picture layer, a slice / tile / brick layer, where a sub-picture refers to an area covering a portion of a picture.

[0110] Exemplarily, in the present application, the encoder may determine whether to use the MIP mode when encoding the video sequence. The entropy coding unit may encode a flag in a parameter set associated with all slices in the video sequence. Table 3 shows an embodiment of the implementation of the syntax structure in a sequence parameter set (SPS), where u(1) represents the entropy coding method that has been detailed in the VVC working draft.

[0111] Table 3

[0112] …… Descriptor sps_mip_enable_flag u(1) ……

[0113] Based on Table 3 above, when the encoder determines that the MIP mode is not applied when encoding the input video sequence, the entropy coding unit can set the sps_mip_enable_flag to 0 and write the value to the SPS (indirectly) related to the slice in the video sequence; when the encoder determines that the MIP mode is applied when encoding one or more slices in the input video sequence, the entropy coding unit can set the sps_mip_enable_flag to 1 and write the value to the SPS (indirectly) related to the slice in the video sequence.

[0114] That is to say, in the present application, after the encoder completes the setting of the value of the MIP mode parameter sps_mip_enable_flag, the MIP mode parameter can be indicated in the code stream with one or more syntax units. That is, after the encoder completes the setting of the MIP mode parameter sps_mip_enable_flag according to whether the current block uses the MIP mode, the MIP mode parameter sps_mip_enable_flag can be written into the sequence layer parameter set in the code stream.

[0115] Exemplarily, in the present application, the encoder may determine whether to use the MIP mode when encoding a picture in a video sequence or a sub-picture in a picture. The entropy coding unit may encode a flag in a parameter set associated with all slices in the picture or sub-picture. An embodiment of the implementation of the syntax structure in a picture layer parameter set (PPS) is shown in Table 4, where u(1) represents the entropy coding method that has been detailed in the VVC working draft.

[0116] Table 4

[0117] …… Descriptor pps_mip_enable_flag u(1) ……

[0118] Based on the above Table 4, when the encoder determines that the MIP mode is not applied when encoding a picture or a sub-picture, the entropy coding unit can set the pps_mip_enable_flag to 0 and write the value to the PPS associated with the slice in the picture or sub-picture; when the encoder determines that the MIP mode is applied when encoding one or more slices in the picture or sub-picture, the entropy coding unit can set the pps_mip_enable_flag to 1 and write the value to the PPS (indirectly) associated with the slice in the picture or sub-picture.

[0119] That is to say, in the present application, after the encoder completes the setting of the value of the MIP mode parameter pps_mip_enable_flag, the MIP mode parameter can be indicated in the code stream with one or more syntax units. That is, after the encoder completes the setting of the MIP mode parameter pps_mip_enable_flag according to whether the current block uses the MIP mode, the MIP mode parameter pps_mip_enable_flag can be written into the picture layer parameter set in the code stream.

[0120] Exemplarily, in the present application, the encoder may determine whether to use the MIP mode when encoding a picture in a video sequence or a sub-picture in a picture. The entropy coding unit may encode a flag in a parameter set associated with all slices in the picture or sub-picture. An embodiment of the implementation of the syntax structure in an adaptive parameter set (APS) is shown in Table 5, where u(1) represents the entropy coding method that has been detailed in the VVC working draft.

[0121] Table 5

[0122] …… Descriptor aps_mip_enable_flag u(1) ……

[0123] Based on Table 5 above, when the encoder determines that the MIP mode is not applied when encoding a picture or a sub-picture, the entropy coding unit can set the aps_mip_enable_flag to 0 and write the value to the APS associated with the slice in the picture or sub-picture; when the encoder determines that the MIP mode is applied when encoding one or more slices in the picture or sub-picture, the entropy coding unit can set the aps_mip_enable_flag to 1 and write the value to the APS (indirectly) associated with the slice in the picture or sub-picture.

[0124] That is, in the present application, after the encoder completes the setting of the value of the MIP mode parameter aps_mip_enable_flag, the MIP mode parameter can be indicated in the code stream with one or more syntax units. That is, after the encoder completes the setting of the MIP mode parameter aps_mip_enable_flag according to whether the current block uses the MIP mode, the MIP mode parameter aps_mip_enable_flag can be written into the adaptive parameter set in the code stream.

[0125] Table 6

[0126] …… Descriptor slice_mip_enable_flag u(1) ……

[0127] Exemplarily, in the present application, the encoder may determine whether to use the MIP mode when encoding the slice. The entropy coding unit may encode the flag in the slice header. An embodiment of the implementation of the syntax structure in the slice header is shown in Table 6, where u(1) represents the entropy coding method that has been detailed in the VVC working draft.

[0128] Based on the above Table 6, when the encoder determines that the MIP mode is not applied when encoding a slice, the entropy coding unit can set the slice_mip_enable_flag to 0 and write the value into the slice header; when the encoder determines that the MIP mode is applied when encoding a slice, the entropy coding unit can set the slice_mip_enable_flag to 1 and write the value into the slice header.

[0129] That is, in the present application, after the encoder completes the setting of the value of the MIP mode parameter slice_mip_enable_flag, the MIP mode parameter can be indicated in the code stream with one or more syntax units. That is, after the encoder completes the setting of the MIP mode parameter slice_mip_enable_flag according to whether the current block uses the MIP mode, the MIP mode parameter slice_mip_enable_flag can be written into the slice header information data unit in the code stream.

[0130] Exemplarily, in the present application, when encoding a tile or brick, the encoder determines whether to use the MIP mode, and the entropy coding unit can write similar MIP mode parameters into a parameter set representing the partitioning of the tile or brick of the picture or sub-picture as part thereof. Optionally, the entropy coding unit can also write similar MIP mode parameters into slice data associated with the tile or brick in the slice to indicate whether the MIP mode is used when encoding the tile or brick.

[0131] Exemplarily, in the present application, the encoder may determine to apply the MIP mode when encoding a portion of a picture or a sub-picture in a video sequence. The entropy coding unit may encode the sps_mip_enable_flag in the SPS to 1, encode the pps_mip_enable_flag in the PPS or the aps_mip_enable_flag in the APS related to the slice in the picture or sub-picture to 1, and encode the pps_mip_enable_flag in the PPS or the aps_mip_enable_flag in the APS related to other pictures or sub-pictures in the video sequence to 0. Optionally, the entropy coding unit may encode the slice_mip_enable_flag in the slice in the picture or sub-picture (or a similar MIP mode parameter for a tile or brick in the slice data) to 1, and encode the slice_mip_enable_flag in the slice in other pictures or sub-pictures (or a similar MIP mode parameter for a tile or brick in the slice data) to 0.

[0132] Exemplarily, in the present application, the encoder may also implicitly convey whether the MIP mode is used to encode the video sequence in other syntax elements (e.g., syntax elements indicating the profile / level / level (PTL) in one or more parameter sets of a bitstream or sub-bitstream). For example, the encoder sets the MIP mode to be disabled in one or more PTLs and sets the MIP mode to be enabled in other PTLs.

[0133] It can be understood that, in the present application, when the encoder transmits an indication to the bitstream that the current block is encoded using the MIP mode, the decoder can decode the bitstream using the MIP mode accordingly.

[0134] The embodiment of the present application proposes an image prediction method. If the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the encoder sets the value of the MIP mode parameter to indicate the use of the MIP mode and writes it into the code stream; determines the MIP mode of the current block, and determines the prediction value of the luminance component and chrominance component corresponding to the current block according to the MIP mode; writes the MIP mode of the current block into the code stream. That is to say, in the embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, the MIP mode parameter can be set and written into the code stream for transmission to the decoding side while using the MIP mode to obtain the intra-frame prediction value of the current block; the decoder parses the code stream to obtain the MIP mode parameter. If the MIP mode parameter indicates that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate whether the current block uses the MIP mode in the code stream, thereby simplifying the image prediction process, and can reduce the complexity on the basis of ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0135] Based on the above embodiments, an embodiment of the present application proposes an image prediction method, which is applied to a decoder. Figure 8 Schematic diagram of the implementation process of the image prediction method Figure 2 ,like Figure 8 As shown, in the present application, the method for the decoder to perform image prediction may include the following steps:

[0136] Step 201: parse the code stream to determine the MIP mode parameters of the current block.

[0137] In an embodiment of the present application, the decoder parses the bitstream to determine the MIP mode parameters of the current block, wherein the current block may represent the current block to be encoded or the current block to be decoded. Specifically, in the present application, when the decoder is decoding, the current block is the block to be decoded.

[0138] It is understandable that in the embodiment of the present application, the decoder can parse one or more syntax units in the bitstream to determine the MIP mode parameters of the current block. That is, in the present application, the MIP mode parameters can be indicated in the bitstream by one or more syntax units.

[0139] Further, in an embodiment of the present application, the syntax unit indicating the MIP mode parameters may be included in one or more data units in the following code stream: a data unit containing the current block, a slice header information data unit, an image header information data unit, an image layer parameter set, a sequence layer parameter set, and an adaptation parameter set.

[0140] It should be noted that, in the embodiments of the present application, the MIP mode parameter is used to indicate whether the current block uses the MIP mode. Specifically, if the MIP mode parameter indicates that the MIP mode is used, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block, and if the MIP mode parameter indicates that the MIP mode is not used, the decoder will not use the MIP mode to determine the intra-frame prediction value of the current block.

[0141] Further, in an embodiment of the present application, after parsing the code stream to determine the MIP mode parameters, the decoder may determine whether the current block uses the MIP mode according to the values ​​of the MIP mode parameters.

[0142] Exemplarily, in an embodiment of the present application, after the decoder determines the MIP mode parameter, if the value of the MIP mode parameter is 1, it can indicate that the current block uses the MIP mode, and the decoder can use the MIP mode to determine the intra-frame prediction value of the current block.

[0143] Exemplarily, in an embodiment of the present application, after the decoder determines the MIP mode parameter, if the value of the MIP mode parameter is 0, it can indicate that the current block does not use the MIP mode, and the decoder will not use the MIP mode to determine the intra-frame prediction value of the current block.

[0144] It should be noted that in an embodiment of the present application, since one or more data units in the code stream including the data unit containing the current block, the slice header information data unit, the image header information data unit, the image layer parameter set, the sequence layer parameter set and the adaptive parameter set can indicate the MIP mode parameters, the MIP mode parameters obtained by the decoder through parsing can be adapted thereto.

[0145] Exemplarily, in the present application, if the encoder writes the MIP mode parameter into the sequence layer parameter set, the MIP mode parameter can be indicated by sps_mip_enable_flag, so the decoder can determine the MIP mode parameter sps_mip_enable_flag after parsing the data unit of the sequence layer parameter set in the bitstream.

[0146] Exemplarily, in the present application, if the encoder writes the MIP mode parameter into the picture layer parameter set, the MIP mode parameter can be indicated by pps_mip_enable_flag, so the decoder can determine the MIP mode parameter pps_mip_enable_flag after parsing the data unit of the picture layer parameter set in the bitstream.

[0147] Exemplarily, in the present application, if the encoder writes the MIP mode parameter into an adaptive parameter set, the MIP mode parameter can be indicated by aps_mip_enable_flag, so the decoder can determine the MIP mode parameter aps_mip_enable_flag after parsing the data unit of the adaptive parameter set in the bitstream.

[0148] Exemplarily, in the present application, if the encoder writes the MIP mode parameter into the slice header information data unit, the MIP mode parameter can be indicated by slice_mip_enable_flag, so the decoder can determine the MIP mode parameter slice_mip_enable_flag after parsing the data unit of the slice header information data unit in the bitstream.

[0149] Step 202: If the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parse the bitstream, determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode.

[0150] In an embodiment of the present application, after the decoder parses the bitstream and determines the MIP mode parameters of the current block, if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the decoder can continue to parse the bitstream, determine the MIP mode of the current block, and then determine the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode.

[0151] It can be understood that in an embodiment of the present application, after the decoder parses the bitstream and determines the MIP mode parameters of the current block, if the value of the MIP mode parameter indicates that the MIP mode is not used to determine the intra-frame prediction value of the current block, the decoder will not use the MIP mode for the current block.

[0152] That is to say, in the present application, during the implementation process of decoding the current block, the decoder parses the bitstream and can not only obtain the MIP mode parameters indicating whether the current block uses the MIP mode, but also determine which mode the current block specifically uses for intra-frame prediction, for example, when using the MIP mode for intra-frame prediction, which MIP mode is specifically used.

[0153] Further, in an embodiment of the present application, in the intra-frame prediction process of VVC, for any luminance coding block, an optimal mode can be selected from the traditional mode and the MIP mode for encoding processing. Among them, the traditional mode includes 67 intra-frame prediction modes including the Planar mode numbered 0, the DC mode numbered 1, and 65 angle modes.

[0154] It should be noted that in an embodiment of the present application, when the decoder uses the MIP mode to determine the intra-frame prediction value of the current block, it can further determine the MIP mode of the current block by parsing the bit stream, and then determine the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode.

[0155] It can be understood that in the embodiment of the present application, when the decoder parses the code stream and determines the MIP mode of the current block, it can first obtain the MIP mode index number of the current block by parsing the code stream, and then after determining the size type of the current block, from the candidate MIP mode list corresponding to the size type, determine the MIP mode indicated by the MIP mode index number as the MIP mode of the current block.

[0156] Further, in an embodiment of the present application, the MIP mode index number of the current block can be used to indicate a specific MIP mode used by the current block. That is, on the encoding side, the encoder sets the MIP mode index number of the current block and writes it into the bitstream, which is then transmitted to the decoding side. The decoder obtains the MIP mode index number of the current block by parsing the bitstream, and can determine the MIP mode indicated by the MIP mode index number from the candidate MIP mode list of the current block.

[0157] It should be noted that, in an embodiment of the present application, when determining the MIP mode of the current block, the decoder may first determine the size type of the current block. Specifically, based on Table 2 above, when the decoder determines the size type of the current block, if the width and height of the current block are both equal to 4, that is, the size of the current block is 4×4, the size type of the current block can be set to the first type; if the width and height of the current block are both equal to 8, that is, the size of the current block is 8×8, or the width of the current block is equal to 8 and the height is equal to 4, that is, the size of the current block is 8×4, or the width of the current block is equal to 4 and the height is equal to 8, that is, the size of the current block is 4×8, the size type of the current block can be set to the second type; if the width and height of the current block do not meet the above conditions, that is, the size of the current block is not 4×4, 8×8, 8×4, 4×8, the size type of the current block can be set to the third type.

[0158] Further, in an embodiment of the present application, according to the size type division method proposed in the current standard, when the encoder determines the size type of the current block, if the width and height of the current block are both equal to 4, the size type of the current block can be set to the first type; if the width and height of the current block are both equal to 8, or one of the width and height of the current block is equal to 4, the size type of the current block can be set to the second type; if the width and height of the current block do not meet the aforementioned conditions, that is, the width and height of the current block are not equal to 4 or 8 at the same time, or the width and height of the current block are not equal to 4, then the size type of the current block can be set to the third type.

[0159] It can be understood that in the embodiment of the present application, for different size types, the decoder can construct different candidate MIP mode lists. Specifically, the MIP technology adds M MIP modes on the basis of 67 traditional intra-frame prediction modes, wherein the value of M is also different for different size types. The value of M may include 16, 8, and 6.

[0160] Exemplarily, in the present application, when the size type of the current block is the first type, the value of M is 16, that is, a candidate MIP mode list can be constructed according to 16 MIP modes; when the size type of the current block is the second type, the value of M is 8, that is, a candidate MIP mode list can be constructed according to 8 MIP modes; when the size type of the current block is the third type, the value of M is 6, that is, a candidate MIP mode list can be constructed according to 6 MIP modes.

[0161] Exemplarily, in an embodiment of the present application, the decoder can first read the mode number k of the MIP mode from the candidate MIP mode list, so as to obtain the corresponding matrix Ak and offset bk, and perform matrix-vector multiplication according to the above formula (1), so as to obtain the brightness component prediction value corresponding to the current block.

[0162] Step 203: Decode the current block according to the predicted value.

[0163] In an embodiment of the present application, after the decoder parses the bitstream to determine the MIP mode of the current block, and determines the predicted values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode, the decoder can decode the current block according to the predicted values ​​of the luminance component and the chrominance component.

[0164] The embodiment of the present application proposes an image prediction method, in which the decoder parses the bitstream to determine the MIP mode parameters of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the bitstream is parsed to determine the MIP mode of the current block, and the prediction values ​​of the luminance component and chrominance component corresponding to the current block are determined according to the MIP mode; according to the prediction value, the current block is decoded. That is to say, in the embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, the MIP mode parameters can be set and written into the bitstream for transmission to the decoding side while the intra-frame prediction value of the current block is obtained using the MIP mode; the decoder parses the bitstream to obtain the MIP mode parameters, and if the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate in the bitstream whether the current block uses the MIP mode, thereby simplifying the image prediction process. On the basis of ensuring the encoding and decoding performance, it can reduce the complexity, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0165] Based on the above embodiments, another embodiment of the present application proposes an image prediction method, in which the decoder parses the bitstream and obtains one or more syntax elements for indicating whether the current block uses the MIP mode to determine the prediction value of the current block. Further, in the present application, the one or more syntax elements parsed by the decoder may indicate whether the MIP mode is used when decoding a video sequence, one or more pictures, slices, tiles, or bricks. That is, in the present application, the VVC bitstream conveys one or more syntax elements to enable or disable the MIP mode. The syntax elements may be located in data units in the video sequence layer, picture layer and / or sub-picture layer, slice / tile / brick layer, where a sub-picture refers to an area covering a portion of a picture.

[0166] Exemplarily, in the present application, the decoder can obtain the MIP mode parameters from the parameter set associated with all slices in the video sequence. Specifically, the decoder can obtain the MIP mode parameters from the SPS. As shown in Table 3 above, an embodiment of the implementation of the syntax structure in the SPS is shown, where u(1) represents the entropy decoding method that has been detailed in the VVC working draft.

[0167] When the decoder determines that the value of the MIP mode parameter sps_mip_enable_flag is equal to 0, the decoder will not use the MIP mode when decoding the slice related to the SPS (indirect); when the decoder determines that the value of the MIP mode parameter sps_mip_enable_flag is equal to 1, the decoder applies the MIP mode when decoding the slice related to the SPS (indirect).

[0168] That is, in the present application, after parsing the sequence layer parameter set in the bitstream, the decoder can determine the MIP mode parameter sps_mip_enable_flag, and then determine whether the current block uses the MIP mode for decoding processing according to the value of the MIP mode parameter sps_mip_enable_flag.

[0169] Exemplarily, in the present application, the decoder can obtain the MIP mode parameters from the parameter set associated with all slices in the picture or sub-picture in the video sequence. Specifically, the decoder can obtain the MIP mode parameters from the PPS. As shown in Table 4 above, an embodiment of the implementation of the syntax structure in the PPS is shown, where u(1) represents the entropy decoding method that has been detailed in the VVC working draft.

[0170] When the decoder determines that the value of the MIP mode parameter pps_mip_enable_flag is equal to 0, the decoder will not use the MIP mode when decoding the slice associated with the PPS; when the decoder determines that the value of the MIP mode parameter pps_mip_enable_flag is equal to 1, the decoder applies the MIP mode when decoding the slice associated with the PPS.

[0171] That is, in the present application, after parsing the picture layer parameter set in the code stream, the decoder can determine the MIP mode parameter pps_mip_enable_flag, and then determine whether the current block uses the MIP mode for decoding processing according to the value of the MIP mode parameter pps_mip_enable_flag.

[0172] Exemplarily, in the present application, the decoder can obtain the MIP mode parameters from the parameter set associated with all slices in the picture or sub-picture in the video sequence. Specifically, the decoder can obtain the MIP mode parameters from the APS. As shown in Table 5 above, an embodiment of the implementation of the syntax structure in the adaptive parameter set APS is shown, where u(1) represents the entropy decoding method that has been detailed in the VVC working draft.

[0173] When the decoder determines that the value of the MIP mode parameter aps_mip_enable_flag is equal to 0, the decoder will not use the MIP mode when decoding the slices associated with the APS; when the decoder determines that the value of the MIP mode parameter aps_mip_enable_flag is equal to 1, the decoder applies the MIP mode when decoding the slices associated with the APS.

[0174] That is, in the present application, after parsing the adaptive parameter set in the bitstream, the decoder can determine the MIP mode parameter aps_mip_enable_flag, and then determine whether the current block uses the MIP mode for decoding processing according to the value of the MIP mode parameter aps_mip_enable_flag.

[0175] Exemplarily, in the present application, the decoder can obtain the MIP mode parameters from the slice header. Table 6 above shows an embodiment of the implementation of the syntax structure in the slice header, where u(1) represents the entropy decoding method that has been detailed in the VVC working draft.

[0176] When the decoder determines that the value of the MIP mode parameter slice_mip_enable_flag is equal to 0, the decoder will not use the MIP mode when decoding the slice; when the decoder determines that the value of the MIP mode parameter slice_mip_enable_flag is equal to 1, the decoder applies the MIP mode when decoding the slice.

[0177] That is, in the present application, after parsing the slice header information data unit in the code stream, the decoder can determine the MIP mode parameter slice_mip_enable_flag, and then determine whether the current block uses the MIP mode for decoding processing according to the value of the MIP mode parameter slice_mip_enable_flag.

[0178] Exemplarily, in the present application, when decoding a tile or brick, the decoder may obtain similar MIP mode parameters, as part of a parameter set for tile or brick segmentation of a picture or sub-picture, to indicate whether the tile or brick of the picture or sub-picture uses the MIP mode. Optionally, the decoder may also obtain similar MIP mode parameters from slice data associated with the tile or brick in the slice to indicate whether the MIP mode is used when encoding the tile or brick.

[0179] Exemplarily, in the present application, the decoder can obtain various MIP mode parameters from different data units in the input bitstream. The decoder can obtain sps_mip_enable_flag in SPS equal to 1, pps_mip_enable_flag in PPS or aps_mip_enable_flag in APS related to the slice in the picture or sub-picture equal to 1, and pps_mip_enable_flag in PPS or aps_mip_enable_flag in APS related to other pictures or sub-pictures equal to 0. In this case, the decoder can apply the MIP mode when decoding a part of the pictures or sub-pictures in the input bitstream, and will not apply the MIP mode when decoding other pictures or sub-pictures. Optionally, the decoder can obtain slice_mip_enable_flag (or similar MIP mode parameters for tiles or bricks in slice data) equal to 1 from the header of the slice in the picture or sub-picture, and the decoder can apply the MIP mode when decoding the slice. The decoder may also obtain from the slice header of another slice in the picture or sub-picture that slice_mip_enable_flag (or similar MIP mode parameter for a tile or brick in the slice data) is equal to 0, and the decoder shall not apply MIP mode when decoding that slice.

[0180] Exemplarily, in the present application, the decoder may be implicitly informed whether the MIP mode is used to decode the input bitstream from other syntax elements (e.g., syntax elements indicating PTLs in one or more parameter sets of a bitstream or sub-bitstream). For example, the MIP mode is set to disabled when decoding in one or more PTLs, and the MIP mode is set to enabled when decoding in other PTLs.

[0181] The embodiment of the present application proposes an image prediction method, in which the decoder parses the bitstream to determine the MIP mode parameters of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the bitstream is parsed to determine the MIP mode of the current block, and the prediction values ​​of the luminance component and chrominance component corresponding to the current block are determined according to the MIP mode; according to the prediction value, the current block is decoded. That is to say, in the embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, the MIP mode parameters can be set and written into the bitstream for transmission to the decoding side while the intra-frame prediction value of the current block is obtained using the MIP mode; the decoder parses the bitstream to obtain the MIP mode parameters, and if the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate in the bitstream whether the current block uses the MIP mode, thereby simplifying the image prediction process. On the basis of ensuring the encoding and decoding performance, it can reduce the complexity, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0182] Based on the above embodiments, in yet another embodiment of the present application, the implementation modes of the encoder and the decoder described in the above embodiments may be used to feasibly configure the MIP mode, for example, during a session negotiation process.

[0183] Exemplarily, in the first exemplary system, a transmitter including an encoder will generate a bitstream for a receiver according to the processing capability of the receiver. For example, during session negotiation, when the transmitter determines that the receiver cannot successfully enable the MIP mode to process the bitstream (or when the receiver notifies the transmitter that the receiver cannot successfully enable the MIP mode to decode the bitstream), the transmitter will generate the bitstream by disabling the MIP mode, for example, by setting sps_mip_enable_flag to be equal to 0.

[0184] Exemplarily, the second exemplary system includes a transmitter that stores a plurality of bitstreams to which the MIP mode is applied when decoding the entire or different portions of the bitstream. During session negotiation, when the transmitter determines that the receiver cannot successfully enable the MIP mode to process the bitstream (or when the receiver notifies the transmitter that the receiver cannot successfully enable the MIP mode to decode the bitstream), the transmitter will select to send a bitstream with the MIP mode disabled, such as a bitstream with sps_mip_enable_flag equal to 0.

[0185] Exemplarily, the third exemplary system is a real-time communication system, such as video conferencing, video telephony, live video streaming, etc. Unlike the first exemplary system, the receiver is not always unable to process a bitstream encoded using the MIP mode. For example, the receiver may have a battery. When the energy in the battery is below a threshold (e.g., 20% of the total power), the receiver notifies the transmitter that the receiver cannot process a bitstream encoded using the MIP mode due to the low energy. Upon receiving a request from the receiver, the transmitter generates a bitstream by disabling the MIP mode, for example, by starting a new coded video sequence (CVS) with a new SPS containing sps_mip_enable_flag equal to 0, or by generating a new PPS or APS containing a MIP enable flag (MIP mode parameter) equal to 0, or by setting the MIP enable flag in the slice header (or other similar syntax elements of a tile or brick) to equal 0. When the receiver has its battery charged, the receiver may notify the transmitter that the receiver is capable of processing a bitstream encoded using the MIP mode. In this case, the transmitter may generate the bitstream using the MIP mode and set the corresponding flag in the SPS, PPS, APS or slice header. Alternatively, the transmitter may switch between different tracks containing different bitstreams generated by different MIP mode configurations to meet the requirements from the receiver.

[0186] The embodiment of the present application proposes an image prediction method. When the encoder performs intra-frame prediction on the current block, if it determines that the current block uses the MIP mode, it can set the MIP mode parameters and write them into the bitstream to transmit to the decoding side while using the MIP mode to obtain the intra-frame prediction value of the current block; the decoder parses the bitstream to obtain the MIP mode parameters. If the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit in the bitstream to indicate whether the current block uses the MIP mode, thereby simplifying the image prediction process, and can reduce the complexity on the basis of ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0187] Based on the above embodiment, in yet another embodiment of the present application, Fig. 9 The structure of the encoder proposed in this application embodiment is shown in FIG. Figure 1 ,like Fig. 9 As shown, the encoder 300 proposed in the embodiment of the present application may include a setting part 301, a first determining part 302 and an encoding part 303.

[0188] The setting part 301 is configured to set the value of the MIP mode parameter to indicate the use of the MIP mode and write it into the bitstream if the current block uses the MIP mode to determine the intra-frame prediction value of the current block;

[0189] The first determining part 302 is configured to determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode;

[0190] The encoding part 303 is configured to write the MIP mode of the current block into a bitstream.

[0191] Furthermore, in an embodiment of the present application, the setting part 301 is also configured to set the value of the MIP mode parameter to indicate that the MIP mode is not used and write it into the bitstream if the current block does not use the MIP mode to determine the intra-frame prediction value of the current block.

[0192] Furthermore, in an embodiment of the present application, the MIP mode parameter is indicated by one or more syntax units in the bitstream.

[0193] Further, in an embodiment of the present application, the syntax unit is included in one or more data units in the following code stream: a data unit containing the current block, a slice header information data unit, an image header information data unit, an image layer parameter set, a sequence layer parameter set and an adaptation parameter set.

[0194] Further, in an embodiment of the present application, the first determining part 302 is specifically configured to determine the size type of the current block; construct the candidate MIP mode list based on the size type; and determine the MIP mode of the current block from the candidate MIP mode list.

[0195] Further, in an embodiment of the present application, the first determining part 302 is further specifically configured to construct the candidate MIP mode list according to 16 MIP modes when the size type of the current block is the first type; to construct the candidate MIP mode list according to 8 MIP modes when the size type of the current block is the second type; and to construct the candidate MIP mode list according to 6 MIP modes when the size type of the current block is the third type.

[0196] Further, in an embodiment of the present application, the first determining part 302 is further specifically configured to, when the width and height of the current block are both equal to 4, set the size type of the current block to the first type; when the width and height of the current block are both equal to 8, or the width of the current block is equal to 8 and the height is equal to 4, or the width of the current block is equal to 4 and the height is equal to 8, set the size type of the current block to the second type; when the width and height of the current block do not meet the aforementioned conditions, set the size type of the current block to the third type.

[0197] Further, in an embodiment of the present application, the first determining part 302 is further specifically configured to, when the width and height of the current block are both equal to 4, set the size type of the current block to the first type; when the width and height of the current block are both equal to 8, or one of the width and height of the current block is equal to 4, set the size type of the current block to the second type; when the width and height of the current block do not meet the aforementioned conditions, set the size type of the current block to the third type.

[0198] Fig.10 The structure of the encoder proposed in this application embodiment is shown in FIG. Figure 2 ,like Fig.10 As shown, the encoder 300 proposed in the embodiment of the present application may also include a first processor 304, a first memory 305 storing executable instructions of the first processor 304, a first communication interface 306, and a first bus 307 for connecting the first processor 304, the first memory 305 and the first communication interface 306.

[0199] Further, in an embodiment of the present application, the above-mentioned first processor 304 is used to set the value of the MIP mode parameter to indicate the use of the MIP mode and write it into the bitstream if the current block uses the MIP mode to determine the intra-frame prediction value of the current block; determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode; and write the MIP mode of the current block into the bitstream.

[0200] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.

[0201] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0202] The embodiment of the present application provides an image encoder. If the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the encoder sets the value of the MIP mode parameter to indicate the use of the MIP mode and writes it into the bitstream; determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; writes the MIP mode of the current block into the bitstream. The decoder parses the bitstream to determine the MIP mode parameter of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parses the bitstream, determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; decodes the current block according to the prediction value. That is to say, in an embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, it can set the MIP mode parameters and write them into the bitstream for transmission to the decoding side while using the MIP mode to obtain the intra-frame prediction value of the current block; the decoder parses the bitstream to obtain the MIP mode parameters, and if the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate whether the current block uses the MIP mode in the bitstream, thereby simplifying the image prediction process, and can reduce the complexity on the basis of ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0203] Based on the above embodiment, in another embodiment of the present application, Fig.11 The structure of the decoder proposed in this application embodiment is shown in FIG. Figure 1 ,like Fig.11As shown, the decoder 400 proposed in the embodiment of the present application may include a decoding part 401, a second determining part 402,

[0204] The decoding part 401 is configured to parse the code stream to determine the MIP mode parameter of the current block; and if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parse the code stream to determine the MIP mode of the current block;

[0205] The second determining part 402 is configured to determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode;

[0206] The decoding part 401 is further configured to decode the current block according to the prediction value.

[0207] Further, in an embodiment of the present application, the second determination part 402 is also configured to parse the code stream, and after determining the MIP mode parameter of the current block, if the value of the MIP mode parameter indicates that the current block does not use the MIP mode to determine the intra-frame prediction value of the current block, determine that the current block does not use the MIP mode.

[0208] Furthermore, in an embodiment of the present application, the MIP mode parameter is indicated by one or more syntax units in the bitstream.

[0209] Further, in an embodiment of the present application, the syntax unit is included in one or more data units in the following code stream: a data unit containing the current block, a slice header information data unit, an image header information data unit, an image layer parameter set, a sequence layer parameter set and an adaptation parameter set.

[0210] Further, in an embodiment of the present application, the decoding part 401 is specifically configured to parse the code stream to obtain the MIP mode index number of the current block; determine the size type of the current block; and determine the MIP mode indicated by the MIP mode index number as the MIP mode of the current block from a list of candidate MIP modes corresponding to the size type.

[0211] Further, in an embodiment of the present application, when the size type of the current block is the first type, the candidate MIP mode list is constructed according to 16 MIP modes; when the size type of the current block is the second type, the candidate MIP mode list is constructed according to 8 MIP modes; when the size type of the current block is the third type, the candidate MIP mode list is constructed according to 6 MIP modes.

[0212] Further, in an embodiment of the present application, the decoding part 401 is also specifically configured to, when the width and height of the current block are both equal to 4, set the size type of the current block to the first type; when the width and height of the current block are both equal to 8, or the width of the current block is equal to 8 and the height is equal to 4, or the width of the current block is equal to 4 and the height is equal to 8, set the size type of the current block to the second type; when the width and height of the current block do not meet the aforementioned conditions, set the size type of the current block to the third type.

[0213] Further, in an embodiment of the present application, the decoding part 401 is also specifically configured to set the size type of the current block to the first type when the width and height of the current block are both equal to 4; when the width and height of the current block are both equal to 8, or one of the width and height of the current block is equal to 4, set the size type of the current block to the second type; when the width and height of the current block do not meet the aforementioned conditions, set the size type of the current block to the third type.

[0214] Fig.12 The structure of the decoder proposed in this application embodiment is shown in FIG. Figure 2 ,like Fig.12 As shown, the decoder 400 proposed in the embodiment of the present application may also include a second processor 403, a second memory 404 storing executable instructions of the second processor 403, a second communication interface 405, and a second bus 406 for connecting the second processor 403, the second memory 404 and the second communication interface 405.

[0215] Further, in an embodiment of the present application, the above-mentioned second processor 403 is used to parse the code stream and determine the MIP mode parameter of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parse the code stream, determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; and decode the current block according to the prediction value.

[0216] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.

[0217] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0218] The embodiment of the present application provides an image decoder, which parses a bitstream to determine the MIP mode parameters of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the decoder parses the bitstream to determine the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; according to the prediction value, the current block is decoded. That is to say, in the embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, the MIP mode parameters can be set and written into the bitstream for transmission to the decoding side while the intra-frame prediction value of the current block is obtained using the MIP mode; the decoder parses the bitstream to obtain the MIP mode parameters, and if the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate in the bitstream whether the current block uses the MIP mode, thereby simplifying the image prediction process. On the basis of ensuring the encoding and decoding performance, it can reduce the complexity, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

[0219] An embodiment of the present application provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method described in the above embodiment is implemented.

[0220] Specifically, the program instructions corresponding to an image prediction method in this embodiment may be stored in a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instructions corresponding to an image prediction method in the storage medium are read or executed by an electronic device, the following steps are included:

[0221] If the current block uses the MIP mode to determine the intra prediction value of the current block, the value of the MIP mode parameter is set to indicate the use of the MIP mode and written into the bitstream;

[0222] Determine a MIP mode of the current block, and determine predicted values ​​of a luminance component and a chrominance component corresponding to the current block according to the MIP mode;

[0223] The MIP mode of the current block is written into the bitstream.

[0224] Specifically, the program instructions corresponding to an image prediction method in this embodiment may be stored in a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instructions corresponding to an image prediction method in the storage medium are read or executed by an electronic device, the following steps are also included:

[0225] Parse the bitstream and determine the MIP mode parameters of the current block;

[0226] If the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra prediction value of the current block, parse the code stream, determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode;

[0227] The current block is decoded according to the prediction value.

[0228] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0229] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0230] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0231] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0232] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

[0233] Industrial Applicability

[0234] The embodiment of the present application provides an image prediction method, an encoder, a decoder, and a storage medium. If the current block uses the MIP mode to determine the intra-frame prediction value of the current block, the encoder sets the value of the MIP mode parameter to indicate the use of the MIP mode and writes it into the bitstream; determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; writes the MIP mode of the current block into the bitstream. The decoder parses the bitstream to determine the MIP mode parameter of the current block; if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra-frame prediction value of the current block, parses the bitstream, determines the MIP mode of the current block, and determines the prediction values ​​of the luminance component and chrominance component corresponding to the current block according to the MIP mode; decodes the current block according to the prediction value. That is to say, in an embodiment of the present application, when the encoder performs intra-frame prediction on the current block, if it is determined that the current block uses the MIP mode, it can set the MIP mode parameters and write them into the bitstream for transmission to the decoding side while using the MIP mode to obtain the intra-frame prediction value of the current block; the decoder parses the bitstream to obtain the MIP mode parameters, and if the MIP mode parameters indicate that the current block uses the MIP mode, the decoder can use the MIP mode to determine the intra-frame prediction value of the current block. It can be seen that the image prediction method proposed in the present application can use the syntax unit to indicate whether the current block uses the MIP mode in the bitstream, thereby simplifying the image prediction process, and can reduce the complexity on the basis of ensuring the encoding and decoding performance, reduce the storage space and overall time required in the encoding and decoding process, and effectively improve the encoding and decoding efficiency.

Claims

1. An image prediction method, applied to an encoder, the method comprising: If the current block uses a matrix-based intra prediction MIP mode to determine the intra prediction value of the current block, the value of the MIP mode parameter is set to indicate the use of the MIP mode and written into the bitstream; Determine a MIP mode of the current block, and determine predicted values ​​of a luminance component and a chrominance component corresponding to the current block according to the MIP mode; Writing the MIP mode of the current block into a bitstream; If the current block does not use the MIP mode to determine the intra prediction value of the current block, the value of the MIP mode parameter is set to indicate that the MIP mode is not used and written into the bitstream; wherein the determining the MIP mode of the current block includes: Determine the size type of the current block; constructing a candidate MIP mode list based on the size type; The MIP mode of the current block is determined from the candidate MIP mode list.

2. The method according to claim 1, wherein: The method further comprises: Indicating the MIP mode parameters in the bitstream using one or more syntax units, The syntax unit is included in one or more data units in the following code stream: a data unit including the current block, a slice header information data unit, an image header information data unit, an image layer parameter set, a sequence layer parameter set and an adaptive parameter set.

3. The method according to claim 1, wherein: The constructing the candidate MIP mode list based on the size type comprises: When the width and height of the current block are both equal to 4, the size type of the current block is set to the first type, and the candidate MIP mode list is constructed according to 16 MIP modes; When both the width and the height of the current block are equal to 8, or one of the width and the height of the current block is equal to 4, setting the size type of the current block to the second type, and constructing the candidate MIP mode list according to the 8 MIP modes; When the width and height of the current block do not satisfy the aforementioned conditions, the size type of the current block is set to the third type, and the candidate MIP mode list is constructed according to the six MIP modes.

4. An image prediction method, applied to a decoder, the method comprising: Parse the bitstream and determine the MIP mode parameters of the current block; If the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra prediction value of the current block, parse the code stream, determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode; If the value of the MIP mode parameter indicates that the current block does not use the MIP mode to determine the intra prediction value of the current block, determine that the current block does not use the MIP mode; wherein parsing the bitstream to determine the MIP mode of the current block includes: Parsing the bitstream to obtain the MIP mode index number of the current block; Determine the size type of the current block; From the candidate MIP mode list corresponding to the size type, determine the MIP mode indicated by the MIP mode index sequence number as the MIP mode of the current block.

5. The method according to claim 4, wherein: The method further comprises: Indicating the MIP mode parameters in the bitstream using one or more syntax units, The syntax unit is included in one or more data units in the following code stream: a data unit including the current block, a slice header information data unit, an image header information data unit, an image layer parameter set, a sequence layer parameter set and an adaptive parameter set.

6. The method according to claim 4, wherein: The method further comprises: When the width and height of the current block are both equal to 4, the size type of the current block is set to the first type, and the candidate MIP mode list is constructed according to 16 MIP modes; When both the width and the height of the current block are equal to 8, or one of the width and the height of the current block is equal to 4, setting the size type of the current block to the second type, and constructing the candidate MIP mode list according to the 8 MIP modes; When the width and height of the current block do not satisfy the aforementioned conditions, the size type of the current block is set to the third type, and the candidate MIP mode list is constructed according to the six MIP modes.

7. An encoder, comprising: A setting part, a first determination part and an encoding part, The setting part is configured to set the value of the MIP mode parameter to indicate the use of the MIP mode and write it into the bitstream if the current block uses the MIP mode to determine the intra-frame prediction value of the current block; The first determining part is configured to determine the MIP mode of the current block, and determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode; The encoding part is configured to write the MIP mode of the current block into a bitstream; The setting part is further configured to, if the current block does not use the MIP mode to determine the intra-frame prediction value of the current block, set the value of the MIP mode parameter to indicate that the MIP mode is not used and write it into the bitstream, wherein the first determining part is further configured to: Determine the size type of the current block; constructing a candidate MIP mode list based on the size type; The MIP mode of the current block is determined from the candidate MIP mode list.

8. An encoder, comprising a first processor and a first memory storing instructions executable by the first processor, wherein when the instructions are executed by the first processor, the method according to any one of claims 1 to 3 is implemented.

9. A decoder, comprising: Decoding part, second determination part, The decoding part is configured to parse the bitstream and determine the MIP mode parameters of the current block; and if the value of the MIP mode parameter indicates that the current block uses the MIP mode to determine the intra prediction value of the current block, parsing the bitstream to determine the MIP mode of the current block; The second determining part is configured to determine the prediction values ​​of the luminance component and the chrominance component corresponding to the current block according to the MIP mode; The second determination part is further configured to determine that the current block does not use the MIP mode if the value of the MIP mode parameter indicates that the current block does not use the MIP mode to determine the intra prediction value of the current block, wherein the decoding part is further configured to: Parsing the bitstream to obtain the MIP mode index number of the current block; Determine the size type of the current block; From the candidate MIP mode list corresponding to the size type, determine the MIP mode indicated by the MIP mode index number as the MIP mode of the current block.

10. A decoder, comprising a second processor and a second memory storing instructions executable by the second processor, wherein when the instructions are executed by the second processor, the method according to any one of claims 4 to 6 is implemented.

11. A computer storage medium, wherein: The computer storage medium stores a computer program, which implements the method according to any one of claims 1 to 3 when executed by a first processor, or implements the method according to any one of claims 4 to 6 when executed by a second processor.