Image decoding method and device
By using different prediction modes in image decoding to predict different parts of image coding blocks, the problem of low image decoding performance in the existing technology is solved, and more efficient image decoding and encoding are achieved.
Patent Information
- Application Number
- CN202111335705.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-11
AI Technical Summary
In existing image decoding methods, the prediction results of coding blocks have a greater impact on the compression efficiency of the image, resulting in low image decoding performance and low compression efficiency.
Different prediction modes are used to predict different parts of the image coding block. For example, the first prediction mode is used to predict the first part in parallel, and the second prediction mode is used to predict the second part pixel by pixel, and the appropriate prediction is selected according to the characteristics of the pixels in the prediction unit. mode to avoid pixel interpolation operations.
The image decoding performance and efficiency are improved, the accuracy and flexibility of image decoding are improved, and the computational complexity is reduced.
Smart Images

Figure CN116095308B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of image coding and decoding technology, and in particular, to an image decoding method and device. Background Art
[0002] With the rapid development of video / image services, the amount of video / image data is increasing. Transmitting video / images requires a large amount of transmission bandwidth, and storing video / images also requires a large storage space. Currently, during the transmission or storage of video / images, videos / images can be encoded to compress the amount of video / image data to achieve efficient transmission or storage of videos / images.
[0003] Taking an image as an example, an image encoder is used to encode the image to obtain a code stream and transmit the code stream, and then an image decoder is used to parse the code stream to obtain an image. Taking a coding block as an example, the image encoding process mainly includes predicting the coding block, calculating the residual value between the predicted value of the coding block and the actual value of the coding block, transforming the residual value, quantizing the transformed result, and encoding the quantized result to obtain the code stream. The image decoding process mainly includes predicting the coding block, decoding the code stream, dequantizing the decoded result, inversely transforming the inverse quantized result, calculating the sum of the predicted value of the coding block element and the residual value obtained by the inverse transformation, and thus obtaining the reconstructed value of the coding block.
[0004] During the image decoding process, the prediction result of the coding block has a great influence on the compression efficiency of the image. At present, the existing method for predicting the coding block still has low compression efficiency, which leads to low image decoding performance. Summary of the invention
[0005] The embodiments of the present application provide an image decoding method and device, which can improve image decoding performance.
[0006] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0007] In a first aspect, an embodiment of the present application provides an image decoding method, comprising: parsing a bit stream, obtaining a prediction mode of a current prediction unit and a residual value between a true value and a predicted value of the current prediction unit; the prediction mode of the current prediction unit includes at least a first prediction mode and a second prediction mode, wherein the first prediction mode is used to predict a first part of the current prediction unit, and the second prediction mode is used to predict a second part of the current prediction unit, and the first prediction mode is different from the second prediction mode; then, the first prediction mode is used to predict the first part of the current prediction unit, and the second prediction mode is used to predict the second part of the current prediction unit to obtain a predicted value of the current prediction unit; and determining a reconstructed value of the current prediction unit according to the predicted value of the current prediction unit and the residual value of the current prediction unit.
[0008] In the image decoding method provided in the embodiment of the present application, the decoding device adopts a first prediction mode to predict the first part of the current unit to be predicted, and adopts a second prediction mode to predict the second part of the current prediction unit. Compared with the prior art in which one prediction unit corresponds to one prediction mode, the technical solution provided in the embodiment of the present application divides the pixels in the prediction unit, and different prediction modes are adopted for pixels in different parts. In this way, the decoding method is more flexible, and the appropriate prediction mode is selected according to the characteristics of the pixels in the prediction unit, so that the prediction result is more accurate (that is, closer to the true value), which can improve the image decoding performance.
[0009] In a possible implementation, the pixels in the first part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit. That is, when predicting a certain pixel in the first part, there is no need to rely on the reconstructed pixels in the current prediction unit (including the first part), that is, the prediction processes of all pixels in the first part of the current prediction unit are independent of each other. In this case, the first prediction mode can be used to predict all pixels in the first part in parallel, that is, the pixels in the first part are predicted as a group. This parallel prediction mode corresponds to the first prediction mode and can also be called a group prediction mode.
[0010] The pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels within the current prediction unit, or the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels within the current prediction unit. That is to say, when predicting a certain pixel in the second part, it is necessary to rely on the reconstructed pixels outside the current prediction unit and the reconstructed pixels within the current prediction unit, or, when predicting a certain pixel in the second part, it is necessary to rely on the reconstructed pixels within the current prediction unit, that is, the prediction process of all pixels in the second part of the current prediction unit may be dependent on each other. In this case, the second prediction mode can be used to predict the pixels in the second part pixel by pixel. This pixel-by-pixel prediction mode corresponds to the second prediction mode, which can also be called a point prediction mode.
[0011] In a possible implementation, the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels in the current prediction unit, or the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels in the current prediction unit; the reconstructed pixels in the current prediction unit include the reconstructed pixels in the first part. That is, the prediction of the pixels in the second part needs to rely on the reconstructed pixels in the first part of the current prediction unit.
[0012] In a possible implementation, the current prediction unit may further include at least one other part in addition to the first part and the second part, for example, the current prediction unit also includes a third part, wherein the first part, the second part and the third part do not overlap with each other.
[0013] In a possible implementation, the pixels in the first part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit, and the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit. At this time, the first prediction mode is used to predict all the pixels in the first part in parallel, that is, the pixels in the first part are predicted as a group. This parallel prediction mode corresponds to the first prediction mode and is a group prediction mode; the second prediction mode is used to predict all the pixels in the second part in parallel, that is, the pixels in the second part can also be predicted as a group. This parallel prediction mode corresponds to the second prediction mode and is a group prediction mode. It should be noted that the first prediction mode and the second prediction mode can both be angle prediction modes, but the first prediction mode and the second prediction mode are different angle prediction modes. For example, the first prediction mode is a vertical angle prediction mode, and the second prediction mode is a horizontal angle prediction mode.
[0014] In one possible implementation, the part of the current prediction unit except the first row is divided to obtain a first part and a second part, wherein the first row of the current prediction unit can be encoded according to the original value of the first row, the first part is predicted using the above-mentioned first prediction mode (i.e., the group prediction mode), and the second part is predicted using the above-mentioned second prediction mode (i.e., the point prediction mode).
[0015] In one possible implementation, the part of the current prediction unit except the first row and the first column is divided to obtain a first part and a second part, wherein the first row and the first column of the current prediction unit are encoded with original values, the first part is predicted using the above-mentioned first prediction mode (i.e., the group prediction mode), and the second part is predicted using the above-mentioned second prediction mode (i.e., the point prediction mode).
[0016] In one possible implementation, the part of the current prediction unit except the pixel in the upper left corner is divided to obtain a first part and a second part, wherein the upper left corner pixel of the current prediction unit is encoded using the original value, the first part is predicted using the above-mentioned first prediction mode (i.e., the group prediction mode), and the second part is predicted using the above-mentioned second prediction mode (i.e., the point prediction mode).
[0017] In a possible implementation, the current prediction unit is divided into three parts, namely, the first part, the second part and the third part, wherein different parts can be predicted using the first prediction mode and / or the second prediction mode, namely, different combinations of the group prediction mode and the point prediction mode are used for prediction. For example, the first part is predicted using the vertical angle prediction mode (belonging to the first prediction mode), the second part is predicted using the horizontal angle prediction mode (belonging to the first prediction mode), and the third part is predicted using the point prediction mode.
[0018] In a possible implementation, the above-mentioned parsing of the code stream to obtain the residual value between the true value and the predicted value of the current prediction unit specifically includes: decoding the code stream of the current prediction unit to obtain the quantization coefficient of the current prediction unit; and performing inverse quantization processing on the quantization coefficient of the current prediction unit to obtain the inverse quantization coefficient of the current prediction unit; and performing inverse transformation processing on the inverse quantization coefficient of the current prediction unit according to a preset inverse transformation direction to obtain the residual value between the predicted value and the true value of the current prediction unit; when prediction is performed along the vertical direction, horizontal inverse transformation is performed in parallel, and when prediction is performed along the horizontal direction, vertical inverse transformation is performed in parallel, that is, the preset inverse transformation direction is perpendicular to the prediction direction of the current prediction unit, and the current prediction direction can be understood as a prediction angle, for example, the prediction direction can be a horizontal direction, a vertical direction, or a direction that forms an arbitrary angle with a reference direction.
[0019] In the embodiment of the present application, in the process of predicting pixels, the pixels along the prediction direction are mutually dependent, so when the predicted values along the prediction direction are transformed, the pixels in the prediction direction are also mutually dependent, that is, along the prediction direction, multiple pixels cannot be transformed in parallel. However, along the direction perpendicular to the prediction direction, the pixels are mutually dependent, so multiple pixels can be transformed in parallel along the direction perpendicular to the prediction direction, so that the decoding efficiency can be improved.
[0020] It is understandable that in the image coding process, the image to be coded is usually divided into multiple image blocks, the image blocks are predicted one by one, and then the image blocks are encoded to obtain a code stream. The image blocks in the image to be coded can also be called coding blocks.
[0021] In one example, in an embodiment of the present application, the current prediction unit may be a coding block in the image to be encoded, or the current prediction unit may be one of multiple prediction units obtained by dividing a coding block in the image to be encoded. The specific determination is based on actual conditions and is not limited in the embodiment of the present application.
[0022] In a possible implementation, the image decoding method provided in the embodiment of the present application further includes: dividing the current coding block according to a preset division method to obtain multiple prediction units of the current coding block, and the current prediction unit is any one of the multiple prediction units. The preset division method can be a combination of any one or more of the existing multiple division methods, which is selected according to actual needs. For example, it can include a vertical division method, a horizontal division method, a serial grouping method, etc., which is selected according to actual needs and is not limited by the embodiment of the present application.
[0023] In a second aspect, an embodiment of the present application provides an image decoding method, the method comprising: parsing a code stream, obtaining a prediction mode of a current prediction unit and a residual value between a prediction value of the current prediction unit and a true value; the prediction mode of the current prediction unit is an angle prediction mode, and the angle prediction mode satisfies a preset condition, the preset condition being that the number of pixels |M| between a predicted pixel point determined according to the prediction angle and a current pixel point in an image height direction is an integer, the number of pixels |N| between a predicted pixel point determined according to the prediction angle and a current pixel point in an image width direction is an integer, and |M| or |N| is the minimum value among the possible integer values, and || represents an absolute value; and predicting the current prediction unit using the prediction mode of the current prediction unit to obtain a prediction value of the current prediction unit; and determining a reconstructed value of the current prediction unit based on the prediction value of the current prediction unit and the residual value of the current prediction unit.
[0024] In the image decoding method provided by the embodiment of the present application, the decoding device can use an angle prediction mode to predict the current prediction unit, and the angle prediction mode satisfies: the number of pixels between the predicted pixel point determined according to the prediction angle and the current pixel point in the image height direction is an integer, and the number of pixels between the predicted pixel point determined according to the prediction angle and the current pixel point in the image width direction is an integer, that is, the reconstructed pixel value can be directly used as the prediction value of the pixel to be predicted, pixel interpolation operation can be avoided, the amount of calculation can be reduced, and the image decoding efficiency can be improved, thereby improving the image decoding performance.
[0025] In one possible implementation, n is an integer.
[0026] In the embodiment of the present application, when M and N also satisfy When predicting the current prediction unit, the originally complex multiplication and division operations will become simple shift operations, which can reduce the complexity of calculation.
[0027] In one implementation, when predicting the current prediction unit according to the angle prediction mode provided in the embodiment of the present application, the first two rows of reconstructed pixels of the current prediction unit can be used to predict the current prediction unit. Moreover, compared with the scheme in the prior art of predicting the pixel value of the current position based on the previous row of pixels of the current prediction position, the embodiment of the present application can avoid pixel interpolation operations when predicting the current prediction unit, thereby reducing the amount of calculation and improving image coding efficiency.
[0028] In a possible implementation, the above-mentioned parsing of the code stream to obtain the residual value between the predicted value and the true value of the current prediction unit specifically includes: decoding the code stream of the current prediction unit to obtain the quantization coefficient of the current prediction unit; and performing inverse quantization processing on the quantization coefficient of the current prediction unit to obtain the inverse quantization coefficient of the current prediction unit; and performing inverse transformation processing on the inverse quantization coefficient of the current prediction unit according to a preset inverse transformation direction to obtain the residual value between the predicted value and the true value of the current prediction unit; when prediction is performed along the vertical direction, horizontal inverse transformation is performed in parallel, and when prediction is performed along the horizontal direction, vertical inverse transformation is performed in parallel, that is, the preset inverse transformation direction is perpendicular to the prediction direction of the current prediction unit.
[0029] In the embodiment of the present application, in the process of predicting pixels, the pixels along the prediction direction are mutually dependent, so when the predicted values along the prediction direction are transformed, the pixels in the prediction direction are also mutually dependent, that is, along the prediction direction, multiple pixels cannot be transformed in parallel. However, along the direction perpendicular to the prediction direction, the pixels are mutually dependent, so multiple pixels can be transformed in parallel along the direction perpendicular to the prediction direction, so that the decoding efficiency can be improved.
[0030] In a possible implementation, the image decoding method provided in the embodiment of the present application further includes: dividing the current coding block according to a preset division method to obtain multiple prediction units of the current coding block, and the current prediction unit is any one of the multiple prediction units.
[0031] In a third aspect, an embodiment of the present application provides an image decoding device, including a parsing module, a prediction module, and a reconstruction module. The parsing module is used to parse the code stream to obtain the prediction mode of the current prediction unit and the residual value between the real value and the predicted value of the current prediction unit; the prediction mode of the current prediction unit includes at least a first prediction mode and a second prediction mode, wherein the first prediction mode is used to predict the first part of the current prediction unit, and the second prediction mode is used to predict the second part of the current prediction unit, and the first prediction mode is different from the second prediction mode; the prediction module is used to predict the first part of the current prediction unit using the first prediction mode, and predict the second part of the current prediction unit using the second prediction mode, to obtain the predicted value of the current prediction unit; the reconstruction module is used to determine the reconstructed value of the current prediction unit according to the predicted value of the current prediction unit and the residual value of the current prediction unit.
[0032] In a fourth aspect, an embodiment of the present application provides an image decoding device, comprising a parsing module, a prediction module, and a reconstruction module. The parsing module is used to parse the code stream, obtain the prediction mode of the current prediction unit and the residual value between the prediction value of the current prediction unit and the true value; the prediction mode of the current prediction unit is an angle prediction mode, and the angle prediction mode satisfies a preset condition, which is that the number of pixels |M| between the predicted pixel point determined according to the prediction angle and the current pixel point in the image height direction is an integer, the number of pixels |N| between the predicted pixel point determined according to the prediction angle and the current pixel point in the image width direction is an integer, and |M| or |N| is the minimum value of the integer value, and || represents the absolute value; the prediction module is used to predict the current prediction unit using the prediction mode of the current prediction unit to obtain the prediction value of the current prediction unit; the reconstruction module is used to determine the reconstruction value of the current prediction unit according to the prediction value of the current prediction unit and the residual value of the current prediction unit.
[0033] In a fifth aspect, an embodiment of the present application provides an image decoder, which is used to execute the image decoding method described in any one of the first aspect and the second aspect and their possible implementation methods.
[0034] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising the image decoder, communication interface and memory described in the fifth aspect; the image decoder is used to execute the image decoding method described in any one of the above-mentioned first and second aspects and their possible implementation methods.
[0035] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the image decoding method described in any one of the above-mentioned first and second aspects and their possible implementation methods.
[0036] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, executes the image decoding method described in any one of the first aspect and the second aspect and their possible implementation methods.
[0037] In a ninth aspect, an embodiment of the present application provides a chip, including a memory and a processor. The memory is used to store computer instructions. The processor is used to call and run the computer instructions from the memory, so that the electronic device performs the image decoding method described in any one of the first aspect and the second aspect and possible implementations thereof.
[0038] In a tenth aspect, an embodiment of the present application provides an image encoding and decoding system, comprising an image encoding device and an image decoding device, the image decoding device being used to receive an image code stream from the image encoding device, and to execute the image decoding method described in any one of the first aspect and the second aspect and their possible implementation methods to decode the image code stream to obtain a decoded image.
[0039] It should be understood that the beneficial effects achieved by the technical solutions of the third to tenth aspects of the embodiments of the present application and the corresponding possible implementation methods can be referred to the technical effects of the first to second aspects and their corresponding possible implementation methods mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of the architecture of a coding and decoding system provided in an embodiment of the present application;
[0041] Figure 2 A schematic block diagram of an encoder provided in an embodiment of the present application;
[0042] Figure 3 A schematic block diagram of a decoder provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of an encoding / decoding process provided in an embodiment of the present application;
[0044] Figure 5 One of the schematic diagrams of an image encoding method provided in an embodiment of the present application;
[0045] Figure 6 A schematic diagram of a coding block division method provided in an embodiment of the present application;
[0046] Figure 7 One of the schematic diagrams of an image decoding method provided in an embodiment of the present application;
[0047] Figure 8 A second schematic diagram of an image decoding method provided in an embodiment of the present application;
[0048] Fig. 9 A schematic diagram of a first part and a second part of a current prediction unit provided in an embodiment of the present application;
[0049] Fig.10 A schematic diagram of using a second prediction mode to predict the second part provided in an embodiment of the present application;
[0050] Fig.11 A schematic diagram of a prediction direction provided in an embodiment of the present application;
[0051] Fig.12 A second schematic diagram of an image encoding method provided in an embodiment of the present application;
[0052] Fig.13 A schematic diagram of a prediction angle provided in an embodiment of the present application;
[0053] Fig.14 A third schematic diagram of an image decoding method provided in an embodiment of the present application;
[0054] Fig.15 A fourth schematic diagram of an image decoding method provided in an embodiment of the present application;
[0055] Fig.16 A schematic diagram of an angle prediction mode provided in an embodiment of the present application;
[0056] Fig.17 A schematic diagram of using an angle prediction mode to predict a current prediction unit provided in an embodiment of the present application;
[0057] Fig.18 One of the structural schematic diagrams of an image decoding device provided in an embodiment of the present application;
[0058] Fig.19 The second structural diagram of an image decoding device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0060] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of the objects. For example, the first prediction mode and the second prediction mode are used to distinguish different prediction modes rather than to describe a specific order of the prediction modes.
[0061] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0062] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more. For example, multiple prediction units refer to two or more prediction units, and multiple coding blocks refer to two or more coding blocks.
[0063] The image decoding method provided in the embodiment of the present application can also be used for video decoding. It should be understood that a video includes a series of pictures, and decoding a video is essentially decoding all the pictures included in the video.
[0064] The following describes the system architecture used in the embodiments of the present application. Figure 1 , a schematic diagram of the architecture of a coding and decoding system (also referred to as a coding and decoding system) 10 used in an embodiment of the present application is given. Figure 1 As shown, the coding and decoding system 10 may include a source device 11 and a destination device 12. The source device 11 is used to encode an image, so the source device 11 may be referred to as a video encoding device. The destination device 12 is used to decode the encoded image data generated by the source device 11, so the destination device 12 may be referred to as a video decoding device.
[0065] The source device 11 and the destination device 12 may include various devices, such as desktop computers, mobile computing devices, notebook (e.g., laptop) computers, tablet computers, set-top boxes, mobile phones, televisions, cameras, display devices, digital media players, video game consoles, in-vehicle computers, wireless communication devices, etc.
[0066] In one example, Figure 1 The source device 11 and the destination device 12 may be two separate devices, or the source device 11 and the destination device 12 may be the same device, that is, the source device 11 or the corresponding function and the destination device 12 or the corresponding function may be integrated on the same device.
[0067] The source device 11 and the destination device 12 may communicate with each other, for example, the destination device 12 may receive the encoded image data from the source device 11. In one example, one or more communication media may be included between the source device 11 and the destination device 12, and the encoded image data is transmitted through the one or more communication media, and the one or more communication media may include routers, switches, base stations, or other devices that facilitate communication from the source device 11 to the destination device 12.
[0068] like Figure 1 As shown, the source device 11 includes an encoder 112. In one example, the source device 11 may also include an image preprocessor 111 and a communication interface 113. The image preprocessor 111 is used to perform preprocessing on the received image to be encoded. For example, the preprocessing performed by the image preprocessor 111 may include refurbishment, color format conversion (for example, from RGB format to YUV format), color adjustment or denoising, etc. The encoder 112 is used to receive the preprocessed image and process the preprocessed image using a related prediction mode (such as the prediction mode in each embodiment of this article) to provide encoded image data. In some embodiments, the encoder 112 can be used to perform the image encoding process in each embodiment described below. The communication interface 113 can be used to transmit the encoded image data to the destination device 12 or any other device (such as a memory) for storage or direct reconstruction. The other device can be any device for decoding or storage. The communication interface 113 can also encapsulate the encoded image data into a suitable format before transmission.
[0069] In an example, the image preprocessor 111 , the encoder 112 , and the communication interface 113 may be hardware components in the source device 11 , or may be software programs in the source device 11 , which is not limited in the embodiment of the present application.
[0070] Continue as Figure 1 As shown, the destination device 12 includes a decoder 122. In one example, the destination device 12 may also include a communication interface 121 and an image post-processor 123. The communication interface 121 may be used to receive encoded image data from the source device 11 or any other source device, such as a storage device. The communication interface 121 may also decapsulate the data transmitted by the communication interface 113 to obtain the encoded image data. The decoder 122 is used to receive the encoded image data and output the decoded image data (also referred to as reconstructed image data or reconstructed image data). In some embodiments, the decoder 122 may be used to perform the decoding process described in the various embodiments described below.
[0071] The image post-processor 123 is used to perform post-processing on the decoded image data to obtain post-processed image data. The post-processing performed by the image post-processor 123 may include: color format conversion (for example, from YUV format to RGB format), color adjustment, repair or resampling, or any other processing, and may also be used to transmit the post-processed image data to a display device for display.
[0072] Similarly, in one example, the communication interface 121, decoder 122 and image post-processor 123 may be hardware components in the destination device 12, or may be software programs in the destination device 12, which is not limited in the embodiment of the present application.
[0073] Below Figure 1 The structure of the encoder and decoder in is briefly introduced.
[0074] See also Figure 2 , Figure 2 1 is a schematic block diagram of an example of an encoder 20 for implementing an embodiment of the present application. Figure 2 In the embodiment, the encoder includes a prediction processing unit 201, a residual calculation unit 202, a transform processing unit 203, a quantization unit 204, a coding unit 205, an inverse quantization unit (also referred to as an inverse quantization unit) 206, an inverse transform processing unit (also referred to as an inverse transform processing unit 207), a reconstruction unit (or referred to as a reconstruction unit) 208, and a filter unit 209. In one example, the encoder 20 may further include a buffer and a decoded image buffer, wherein the buffer is used to cache the reconstructed image block output by the reconstruction unit 208, and the decoded image buffer is used to cache the filtered image block output by the filter unit 209.
[0075] The input of the encoder 20 is an image block of an image (which may be referred to as an image to be encoded), and the image block may also be referred to as a current image block or an image block to be encoded. The encoder 20 may also include a segmentation unit ( Figure 2 The encoder 20 is used for encoding the image to be encoded block by block, for example, performing the encoding process on each image block.
[0076] The prediction processing unit 201 is used to receive or obtain an image block (the current image block to be encoded of the current image to be encoded, which may also be referred to as the current image block, and the image block may be understood as the true value of the image block) and reconstructed image data, and predict the current image block based on the relevant data in the reconstructed image data to obtain a prediction block of the current image block. In one example, the prediction processing unit 201 may include an inter-frame prediction unit, an intra-frame prediction unit, and a mode selection unit, wherein the mode selection unit is used to select an intra-frame prediction mode or an inter-frame prediction mode. If the intra-frame prediction mode is selected, the prediction process is performed by the intra-frame prediction unit, and if the inter-frame prediction mode is selected, the prediction process is performed by the inter-frame prediction unit.
[0077] The residual calculation unit 202 is used to calculate the residual between the real value of the image block and the prediction block of the image block to obtain the residual block, for example, by subtracting the pixel value of the prediction block from the pixel value of the image block pixel by pixel.
[0078] The transform processing unit 203 is used to perform a transform, such as discrete cosine transform (DCT) or discrete sine transform (DST), on the residual block to obtain a transform coefficient in the transform domain. The transform coefficient may also be referred to as a transform residual coefficient, which may represent the residual block in the transform domain.
[0079] The quantization unit 204 is used to quantize the transform coefficients by applying scalar quantization or vector quantization to obtain quantized transform coefficients, which may also be referred to as quantized residual coefficients. The quantization process may reduce the bit depth associated with some or all of the transform coefficients. For example, an n-bit transform coefficient may be rounded down to an m-bit transform coefficient during quantization, where n is greater than m. The degree of quantization may be modified by adjusting a quantization parameter (QP). For example, for scalar quantization, different scales may be applied to achieve finer or coarser quantization. A smaller quantization step size corresponds to finer quantization, while a larger quantization step size corresponds to coarser quantization. A suitable quantization step size may be indicated by a quantization parameter (QP).
[0080] The coding unit 205 is used to encode the above-mentioned quantized residual coefficients, and the encoded image data (i.e., the encoding result of the current image block to be encoded) output in the form of an encoded bit stream can then be transmitted to a decoder, or stored, and subsequently transmitted to a decoder or used for retrieval. The coding unit 205 can also be used to encode other syntax elements of the current image block, such as encoding a prediction mode into a bit stream, etc. Coding algorithms include but are not limited to variable length coding (VLC) algorithms, context adaptive VLC (CAVLC) algorithms, arithmetic coding algorithms, context adaptive binary arithmetic coding (CABAC) algorithms, syntax-based context-adaptive binary arithmetic coding (SBAC) algorithms, and probability interval partitioning entropy (PIPE) algorithms.
[0081] The dequantization unit 206 is used to dequantize the quantized coefficients to obtain dequantized coefficients, where the dequantization is the reverse application of the quantization unit 204, for example, based on or using the same quantization step size as the quantization unit 204, and applying an inverse quantization scheme of the quantization scheme applied by the quantization unit 204. The dequantized coefficients may also be referred to as dequantized residual coefficients.
[0082] The inverse transform processing unit 207 is used to perform an inverse transform on the inverse quantized coefficients. It should be understood that the inverse transform is the reverse application of the transform processing unit 203. For example, the inverse transform may include an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST) to obtain an inverse transform block in a pixel domain (or sample domain). The inverse transform block may also be called an inverse transform inverse quantized block or an inverse transform residual block.
[0083] The reconstruction unit 208 is used to add the inverse transform block (i.e., the inverse transform residual block) to the prediction block to obtain a reconstructed block in the sample domain. The reconstruction unit 208 can be a summer, for example, adding the sample value (i.e., pixel value) of the residual block to the sample value of the prediction block. The reconstructed block output by the reconstruction unit 208 can be subsequently used to predict other image blocks, for example, in an intra-frame prediction mode.
[0084] The filter unit 209 (or simply "filter") is used to filter the reconstructed block to obtain a filtered block, so as to smoothly perform pixel conversion or improve image quality. The filter unit can be a loop filter unit, which is intended to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter or other filters, such as a bilateral filter, an adaptive loop filter (ALF), or a sharpening or smoothing filter, or a collaborative filter. In an example, the filtered block output by the filter unit 209 can be subsequently used to predict other image blocks, for example, in an inter-frame prediction mode.
[0085] Specifically, in the embodiment of the present application, the encoder 20 is used to implement the image encoding method described in the embodiments below.
[0086] See also Figure 3 , Figure 3 A schematic block diagram of an example of a decoder 30 for implementing an embodiment of the present application is shown. The decoder 30 is used to receive, for example, encoded image data (i.e., an encoded bit stream, for example, an encoded bit stream including an image block and associated syntax elements) encoded by the encoder 20 to obtain a decoded image. The decoder 30 includes a decoding unit 301, an inverse quantization unit 302, an inverse transform processing unit 303, a prediction processing unit 304, a reconstruction unit 305, and a filter unit 306. In some examples, the decoder 30 may perform substantially the same Figure 2 The decoding pass is the inverse of the encoding pass described by the encoder 20. In one example, the decoder 30 may further include a buffer and a decoded image buffer, wherein the buffer is used to cache the reconstructed image block output by the reconstruction unit 305, and the decoded image buffer is used to cache the filtered image block output by the filter unit 306.
[0087] The decoding unit 301 is used to decode the encoded image data to obtain quantized coefficients and / or decoded encoding parameters (for example, the decoded parameters may include any one or all of inter-frame prediction parameters, intra-frame prediction parameters, filter parameters and / or other syntax elements). The decoding unit 301 is also used to forward the decoded encoding parameters to the prediction processing unit 304, so that the prediction processing unit performs a prediction process according to the encoding parameters.
[0088] The function of the inverse quantization unit 302 may be the same as that of the inverse quantization unit 206 of the encoder 20 , for inverse quantizing (ie, inverse quantizing) the quantized coefficients decoded by the decoding unit 301 .
[0089] The function of the inverse transform processing unit 303 may be the same as that of the inverse transform processing unit 207 of the encoder 20, and the function of the reconstruction unit 305 (e.g., a summer) may be the same as that of the reconstruction unit 208 of the encoder 20, and is used to perform an inverse transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) on the above-mentioned quantized coefficients to obtain an inverse transform block (also referred to as an inverse transform residual block), which is the residual block of the current image block in the pixel domain.
[0090] The prediction processing unit 304 is used to receive or obtain the encoded image data (e.g., the encoded bit stream of the current image block) and the reconstructed image data. The prediction processing unit 301 can also receive or obtain prediction related parameters and / or information about the selected prediction mode (i.e., decoded encoding parameters) from, for example, the decoding unit 302, and predict the current image block based on the related data in the reconstructed image data and the decoded encoding parameters to obtain a prediction block of the current image block. In an example, the prediction processing unit 304 can include an inter-frame prediction unit, an intra-frame prediction unit, and a mode selection unit. The mode selection unit is used to select an intra-frame prediction mode or an inter-frame prediction mode. If the intra-frame prediction mode is selected, the prediction process is performed by the intra-frame prediction unit. If the inter-frame prediction mode is selected, the prediction process is performed by the inter-frame prediction unit.
[0091] The reconstruction unit 305 is used to add the inverse transform block (ie, the inverse transform residual block) to the prediction block to obtain a reconstructed block in the sample domain, for example, adding the sample values of the inverse transform residual block to the sample values of the prediction block.
[0092] The filter unit 306 is configured to filter the reconstructed block to obtain a filtered block, where the filtered block is a decoded image block.
[0093] Specifically, in the embodiment of the present application, the decoder 30 is used to implement the image decoding method described in the embodiments below.
[0094] It should be understood that in the encoder 20 and decoder 30 of the embodiment of the present application, the processing result of a certain link can also be output to the next link after further processing. For example, after the interpolation filtering, motion vector derivation or filtering and other links, the processing results of the corresponding link are further subjected to operations such as Clip or shift.
[0095] Below Figure 1 to Figure 3 Based on the coding / decoding system, encoder and decoder shown in the figure, the embodiment of the present application provides a possible coding / decoding implementation method, such as Figure 4 As shown, Figure 4A schematic diagram of an encoding / decoding process is provided for an embodiment of the present application. The encoding / decoding implementation method includes process ① to process ⑤. Process ① to process ⑤ can be executed by any one or more of the above-mentioned source device 11, decoder 200, destination device 12 or decoder 300.
[0096] Process ①: Divide a frame of image into one or more non-overlapping parallel coding units. The one or more parallel coding units have no dependencies and can be completely parallel / independently encoded and decoded, such as Figure 4 A parallel encoding unit 1 and a parallel encoding unit 2 are shown.
[0097] Process ②: Each parallel coding unit can be further divided into one or more non-overlapping independent coding units. The independent coding units may not depend on each other, but may share some parallel coding unit header information.
[0098] For example, the width of an independent coding unit is w_lcu and the height is h_lcu. If a parallel coding unit is divided into an independent coding unit, the size of the independent coding unit is exactly the same as the parallel coding unit; otherwise, the width of the independent coding unit should be greater than the height (unless it is an edge area).
[0099] Typically, the independent coding unit may be a fixed w_lcu×h_lcu, where w_lcu and h_lcu are both 2 to the power of N (N≥0), such as the size of the independent coding unit is 128×4, 64×4, 32×4, 16×4, 8×4, 32×2, 16×2 or 8×2.
[0100] As a possible example, the independent coding unit may be fixed to 128×4. If the size of the parallel coding unit is 256×8, the parallel coding unit may be equally divided into 4 independent coding units; if the size of the parallel coding unit is 288×10, the parallel coding unit is divided into: the first / second row is 2 128×4 + 1 32×4 independent coding units; the third row is 2 128×2 + 1 32×2 independent coding units.
[0101] It is worth noting that the independent coding unit can include three components of brightness Y, chrominance Cb, and chrominance Cr, or three components of red (red, R), green (green, G), and blue (blue, B), or only one of them. If the independent coding unit contains three components, the sizes of the three components can be exactly the same or different, which is related to the input format of the image.
[0102] Process ③: Each independent coding unit can be further divided into one or more non-overlapping coding units. The coding units within the independent coding unit can be interdependent, such as multiple coding units can perform mutual reference pre-coding and decoding.
[0103] If the coding unit and the independent coding unit have the same size (ie, the independent coding unit is divided into only one coding unit), the size thereof can be any size described in process ②.
[0104] If the independent coding unit is divided into multiple non-overlapping coding units, feasible division examples include: horizontal equal division (the height of the coding unit is the same as that of the independent coding unit, but the width is different, which can be 1 / 2, 1 / 4, 1 / 8, 1 / 16, etc.), vertical equal division (the width of the coding unit is the same as that of the independent coding unit, but the height is different, which can be 1 / 2, 1 / 4, 1 / 8, 1 / 16, etc.), horizontal and vertical equal division (quadtree division), etc., preferably horizontal equal division.
[0105] The width of the coding unit is w_cu and the height is h_cu, so its width should be greater than its height (unless it is an edge area). Usually, the coding unit can be a fixed w_cu x h_cu, where w_cu and h_cu are both 2N powers (N is greater than or equal to 0), such as 16x4, 8x4, 16x2, 8x2, 8x1, 4x1, etc.
[0106] As a possible example, the coding unit may be a fixed 16x4. If the size of the independent coding unit is 64x4, the independent coding unit may be equally divided into 4 coding units; if the size of the independent coding unit is 72x4, the coding unit may be divided into: 4 16x4 + 1 8x4.
[0107] It is worth noting that the coding unit can include three components of brightness Y, chrominance Cb, and chrominance Cr (or three components of red R, green G, and blue B), or only one of them. If it includes three components, the sizes of the components can be exactly the same or different, which is related to the image input format.
[0108] It is worth noting that process ③ is an optional step in the encoding and decoding method, and the encoder / decoder can encode / decode the residual coefficients (or residual values) of the independent coding units obtained in process ②.
[0109] Process ④: For the coding unit, it can be further divided into one or more non-overlapping prediction groups (Prediction Group, PG), PG can also be referred to as Group, each PG is encoded and decoded according to the selected prediction mode to obtain the prediction value of PG, which constitutes the prediction value of the entire coding unit, and the residual value of the coding unit is obtained based on the prediction value and the original value of the coding unit.
[0110] Process ⑤: Based on the residual values of the coding units, the coding units are grouped to obtain one or more non-overlapping residual blocks (RBs). The residual coefficients of each RB are encoded and decoded according to the selected mode to form a residual coefficient stream. Specifically, it can be divided into two categories: transforming the residual coefficients and not transforming them.
[0111] Among them, the selected mode of the residual coefficient encoding and decoding method in process ⑤ may include, but is not limited to any of the following: semi-fixed length coding method, exponential Golomb coding method, Golomb-Rice coding method, truncated unary code coding method, run-length coding method, direct encoding of the original residual value, etc.
[0112] For example, the encoder may directly encode the coefficients within the RB.
[0113] For another example, the encoder may also transform the residual block, such as DCT, DST, Hadamard transform, etc., and then encode the transformed coefficients.
[0114] As a possible example, when the RB is small, the encoder can directly quantize each coefficient in the RB and then perform binary encoding. If the RB is large, it can be further divided into multiple coefficient groups (coefficient groups, CG), and then each CG is uniformly quantized and then binary encoded. In some embodiments of the present application, the coefficient group (CG) and the quantization group (QG) can be the same.
[0115] The following is an exemplary explanation of the residual coefficient encoding part in a semi-fixed length coding method. First, the maximum value of the absolute value of the residual in an RB block is defined as the modified maximum value (modified maximum, mm). Secondly, the number of coding bits for the residual coefficient in the RB block is determined (the number of coding bits for the residual coefficient in the same RB block is consistent). For example, if the critical limit (CL) of the current RB block is 2 and the current residual coefficient is 1, then 2 bits are required to encode the residual coefficient 1, which is expressed as 01. If the CL of the current RB block is 7, it means encoding an 8-bit residual coefficient and a 1-bit sign bit. The determination of CL is to find the minimum M value that satisfies that all residuals of the current sub-block are within the range of [-2^(M-1), 2^(M-1)]. If both -2^(M-1) and 2^(M-1) exist, M should be increased by 1, that is, M+1 bits are required to encode all residuals of the current RB block; if only one of the two boundary values of -2^(M-1) and 2^(M-1) exists, a Trailing bit needs to be encoded to determine whether the boundary value is -2^(M-1) or 2^(M-1); if all residuals do not exist in either -2^(M-1) or 2^(M-1), there is no need to encode the Trailing bit.
[0116] In addition, for some special cases, the encoder can also directly encode the original value of the image instead of the residual value.
[0117] It should be noted that the prediction unit in the embodiment of the present application can be a coding unit obtained by division through the above process ③, or it can be a prediction group after the coding unit is further divided.
[0118] Combined with the above Figure 1 The codec system shown, Figure 2 The encoder shown and Figure 3 The schematic diagram of the decoder framework is shown, and the image encoding method and image decoding method involved in the present application are described in detail below.
[0119] First, the embodiment of the present application provides an image encoding method, which is applied to an encoding device, such as Figure 5 As shown, the image encoding method may include S401-S405.
[0120] S401 . Predict a first part of a current prediction unit using a first prediction mode, and predict a second part of the current prediction unit using a second prediction mode to obtain a prediction value of the current prediction unit.
[0121] It should be understood that the prediction mode of the current prediction unit includes at least a first prediction mode and a second prediction mode, wherein the first prediction mode is used to predict the first part of the current prediction unit, the second prediction mode is used to predict the second part of the current prediction unit, and the first prediction mode is different from the second prediction mode.
[0122] The second part is a part of the current prediction unit that does not overlap with the first part, that is, the first part and the second part do not overlap.
[0123] In an example, the second part may be a part of the current prediction unit except the first part, that is, the current prediction unit consists of the first part and the second part.
[0124] In another example, the current prediction unit may further include at least one other part in addition to the first part and the second part, for example, the current prediction unit may further include a third part, wherein the first part, the second part and the third part do not overlap with each other. In one example, the current prediction unit consists of the first part, the second part and the third part.
[0125] In a possible implementation, the pixels in the first part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit, that is, when predicting a certain pixel in the first part, there is no need to rely on the reconstructed pixels in the current prediction unit (including the first part), that is, the prediction processes of all pixels in the first part of the current prediction unit are independent of each other. In this case, the first prediction mode can be used to predict all pixels in the first part in parallel, that is, the pixels in the first part are predicted as a group. This parallel prediction mode corresponds to the first prediction mode and can also be called a group prediction mode.
[0126] In one example, based on the first prediction mode, when parallel prediction is performed on the pixels in the first part, the methods for predicting the pixels in the first part may be the same or different. For example, all pixels in the first part may be predicted using an angle prediction method, or some pixels in the first part may be predicted using an angle prediction method, and another part of the pixels may be predicted using a direct current (DC) prediction method or a bilinear interpolation (Bilinear Interpolation) prediction method.
[0127] Furthermore, in a possible implementation, the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels within the current prediction unit, or the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels within the current prediction unit. That is, when predicting a certain pixel in the second part, it is necessary to rely on the reconstructed pixels outside the current prediction unit and the reconstructed pixels within the current prediction unit, or, when predicting a certain pixel in the second part, it is necessary to rely on the reconstructed pixels within the current prediction unit, that is, the prediction process of all pixels in the second part of the current prediction unit may be dependent on each other. In this case, the second prediction mode can be used to predict the pixels in the second part pixel by pixel. This pixel-by-pixel prediction mode corresponds to the second prediction mode, which can also be called a point prediction mode.
[0128] In one example, based on the second prediction mode, when parallel prediction is performed on the pixels in the second part, the methods for predicting the pixels in the second part may be the same or different. For example, all pixels in the first part may be predicted based on the pixels above and to the left thereof, or some pixels in the second part may be predicted based on the pixels to the left and above thereof, and another part of the pixels may be predicted based on the pixels to the left, right, above, and below thereof.
[0129] It should be noted that the pixels in the second part described in the above embodiment are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels in the current prediction unit, or the pixels in the second part are predicted based on the reconstructed pixels in the current prediction unit, wherein the reconstructed pixel prediction in the current prediction unit (used to predict the pixels in the second part) includes the reconstructed pixels in the above-mentioned first part, that is, the prediction of the pixels in the second part needs to rely on the reconstructed pixels in the first part of the current prediction unit.
[0130] In a possible implementation, the pixels in the first part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit, and the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit. At this time, the first prediction mode is used to predict all the pixels in the first part in parallel, that is, the pixels in the first part are predicted as a group. This parallel prediction mode corresponds to the first prediction mode and is a group prediction mode; the second prediction mode is used to predict all the pixels in the second part in parallel, that is, the pixels in the second part can also be predicted as a group. This parallel prediction mode corresponds to the second prediction mode and is a group prediction mode. It should be noted that the first prediction mode and the second prediction mode can both be angle prediction modes, but the first prediction mode and the second prediction mode are different angle prediction modes. For example, the first prediction mode is a vertical angle prediction mode, and the second prediction mode is a horizontal angle prediction mode.
[0131] In one possible implementation, the part of the current prediction unit except the first row is divided to obtain a first part and a second part, wherein the first row of the current prediction unit can be encoded according to the original value of the first row, the first part is predicted using the above-mentioned first prediction mode (i.e., the group prediction mode), and the second part is predicted using the above-mentioned second prediction mode (i.e., the point prediction mode).
[0132] In one possible implementation, the part of the current prediction unit except the first row and the first column is divided to obtain a first part and a second part, wherein the first row and the first column of the current prediction unit are encoded with original values, the first part is predicted using the above-mentioned first prediction mode (i.e., the group prediction mode), and the second part is predicted using the above-mentioned second prediction mode (i.e., the point prediction mode).
[0133] In one possible implementation, the part of the current prediction unit except the pixel in the upper left corner is divided to obtain a first part and a second part, wherein the upper left corner pixel of the current prediction unit is encoded using the original value, the first part is predicted using the above-mentioned first prediction mode (i.e., the group prediction mode), and the second part is predicted using the above-mentioned second prediction mode (i.e., the point prediction mode).
[0134] In a possible implementation, the current prediction unit is divided into three parts, namely, the first part, the second part and the third part, wherein different parts can be predicted using the first prediction mode and / or the second prediction mode, namely, different combinations of the group prediction mode and the point prediction mode are used for prediction. For example, the first part is predicted using the vertical angle prediction mode (belonging to the first prediction mode), the second part is predicted using the horizontal angle prediction mode (belonging to the first prediction mode), and the third part is predicted using the point prediction mode.
[0135] It is understandable that in the image coding process, the image to be encoded is usually divided into multiple image blocks, the image blocks are predicted one by one, and then the image blocks are encoded to obtain a code stream. The image blocks in the image to be encoded can also be called coding blocks (ie, coding units).
[0136] In one example, in an embodiment of the present application, the current prediction unit may be a coding block in the image to be encoded, or the current prediction unit may be a prediction unit among multiple prediction units (also referred to as prediction groups) obtained by dividing a coding block in the image to be encoded. The specific determination is based on actual conditions and is not limited in the embodiment of the present application.
[0137] If the current prediction unit is one of the prediction units obtained by dividing a coding block, then before the above S401, the image coding method provided by the embodiment of the present application further includes S400.
[0138] S400: Divide the current coding block according to a preset division method to obtain multiple prediction units of the current coding block.
[0139] The current prediction unit is any one of the multiple prediction units.
[0140] In the embodiment of the present application, the preset division method can be any one or more combinations of the existing multiple division methods, which can be selected according to actual needs.
[0141] Exemplary, reference Figure 6 , the above preset division method can be Figure 6 The vertical division method shown in (a) is Figure 6 The left side of (a) shows the current coding block, and the right side shows multiple prediction units obtained after the current coding block is divided. Figure 6 The vertical division shown in (a) is a vertical asymmetric division method, according to which the number of pixels between the prediction units into which the current coding block is divided satisfies the exponent of 2.
[0142] The above preset division method can be Figure 6 The string grouping method shown in (b) is similar. Figure 6The left side of (b) shows the current coding block, and the right side shows multiple prediction units obtained after the current coding block is divided.
[0143] The above preset division method can be Figure 6 The combination of the vertical partitioning method and the string grouping method shown in (c) in FIG. Figure 6 The left side of (c) shows the current coding block, and the right side shows multiple prediction units obtained after the current coding block is divided.
[0144] In an example, the preset division method may also include a combination of a horizontal division method and other division methods. For the relevant description of the division method, reference may be made to the prior art.
[0145] S402: Determine a residual value between a predicted value and a true value of a current prediction unit.
[0146] In the embodiment of the present application, the residual value between the predicted value and the true value of the current prediction unit may be the difference between the predicted value of the current prediction unit and the true value of the current prediction unit pixel by pixel.
[0147] S403, transform the residual value between the predicted value and the true value of the current prediction unit according to a preset transformation direction to obtain the transformation residual coefficient of the current prediction unit; when the prediction is performed along the vertical direction, the horizontal transformation is performed in parallel, and when the prediction is performed along the horizontal direction, the vertical transformation is performed in parallel.
[0148] That is, the preset transformation direction is perpendicular to the prediction direction of the current prediction unit. In one example, the current prediction direction can be understood as a prediction angle, for example, the prediction direction can be a horizontal direction, a vertical direction, or a direction forming any angle with the reference direction.
[0149] In an example, when the preset transformation direction is horizontal transformation, the height of the current prediction unit is 1, that is, for an image block, after predicting a row of pixels, the residual values corresponding to the row of pixels are transformed in parallel; when the preset transformation direction is vertical transformation, the width of the current prediction unit is 1, that is, for an image block, after predicting a column of pixels, the residual values corresponding to the column of pixels are transformed in parallel.
[0150] In the embodiment of the present application, in the process of predicting pixels, the pixels along the prediction direction are mutually dependent, so when the predicted values along the prediction direction are transformed, the pixels in the prediction direction are also mutually dependent, that is, along the prediction direction, multiple pixels cannot be transformed in parallel. However, along the direction perpendicular to the prediction direction, the pixels are mutually dependent, so multiple pixels can be transformed in parallel along the direction perpendicular to the prediction direction, so that the coding efficiency can be improved.
[0151] S404: quantize the transformed residual coefficient of the current prediction unit to obtain the quantized residual coefficient of the current prediction unit.
[0152] S405: Encode the quantized residual coefficients of the current prediction unit.
[0153] In one example, in an embodiment of the present application, the encoding device also encodes some encoding parameters of the current prediction unit. The encoding parameters may also be called syntax elements. The encoding parameters may include but are not limited to prediction mode information of the current prediction unit, such as information used to indicate the above-mentioned first prediction mode and second prediction mode.
[0154] It should be noted that, in the embodiment of the present application, after the above S402, S403 may not be performed, that is, the residual value is not transformed, and the residual value is directly quantized and encoded.
[0155] For the relevant description of the details of S404-S405, reference can be made to the existing quantization processing method and encoding method, which will not be described in detail in the embodiments of the present application.
[0156] At this point, the encoding device completes the encoding of a prediction unit and obtains the code stream of the prediction unit. Afterwards, the encoding device can transmit the code stream to the decoding device or store the code stream.
[0157] In one example, after the above S402, the image encoding method provided by the present application further includes S406-S408.
[0158] S406 : Perform inverse quantization processing on the quantized residual coefficient of the current prediction unit to obtain an inverse quantization coefficient of the current prediction unit.
[0159] It should be understood that the process of the inverse quantization process is the inverse process of the above quantization process.
[0160] S407, perform inverse transformation processing on the inverse quantization coefficient of the current prediction unit according to a preset inverse transformation direction to obtain a residual value between the predicted value and the true value of the current prediction unit; when prediction is performed along the vertical direction, perform horizontal inverse transformation in parallel, and when prediction is performed along the horizontal direction, perform vertical inverse transformation in parallel.
[0161] In an example, when the preset inverse transform direction is horizontal inverse transform, the height of the current prediction unit is 1; when the preset inverse transform direction is vertical inverse transform, the width of the current prediction unit is 1.
[0162] The process of the inverse transformation processing is the inverse process of the above-mentioned transformation processing. The inverse transformation direction of the inverse transformation processing is perpendicular to the prediction direction of the current prediction unit, and the inverse transformation direction is the same as the above-mentioned transformation direction. For the relevant description of the inverse transformation direction, please refer to the detailed description of S403 in the above-mentioned embodiment, which will not be repeated here.
[0163] S408: Determine a reconstructed value of the current prediction unit according to the prediction value of the current prediction unit and the residual value of the current prediction unit.
[0164] In one example, the sum of the prediction value of the current prediction unit and the residual value of the current prediction unit is the reconstructed value of the current prediction unit.
[0165] In one example, after obtaining the reconstruction value of the current prediction unit, loop filtering may be performed on the reconstruction value to obtain the reconstruction unit of the current prediction unit.
[0166] In the embodiment of the present application, after the encoding device executes S406-S408 to obtain the reconstructed value or the reconstructed unit of the current prediction unit, the reconstructed value or the reconstructed unit is cached in a cache, and subsequently, the next prediction unit can be predicted according to the reconstructed value or the reconstructed unit of the current prediction unit.
[0167] Similarly, in the embodiment of the present application, after the above S406, S407 may not be executed, that is, the dequantized coefficient is not transformed, and the dequantized coefficient may be used as a residual value.
[0168] In the image encoding method provided in the embodiment of the present application, the encoding device adopts a first prediction mode to predict the first part of the current unit to be predicted, and adopts a second prediction mode to predict the second part of the current prediction unit. Compared with the prior art in which one prediction unit corresponds to one prediction mode, the technical solution provided in the embodiment of the present application divides the pixels in the prediction unit, and different prediction modes are adopted for pixels in different parts. In this way, the encoding method is more flexible, and the appropriate prediction mode is selected according to the characteristics of the pixels in the prediction unit, which can make the prediction result more accurate (that is, closer to the true value), and can improve the image encoding performance.
[0169] for Figure 5 In the image encoding method shown in the figure, after the encoding device completes the image encoding, the code stream is transmitted to the decoding device. Accordingly, the embodiment of the present application provides an image decoding method, which is applied to the decoding device, such as Figure 7 As shown, the image decoding method includes S601-S603.
[0170] S601, parsing a bitstream to obtain a prediction mode of a current prediction unit and a residual value between a true value and a predicted value of the current prediction unit, wherein the prediction mode of the current prediction unit includes at least a first prediction mode and a second prediction mode.
[0171] The first prediction mode is used to predict the first part of the current prediction unit, the second prediction mode is used to predict the second part of the current prediction unit, and the first prediction mode is different from the second prediction mode.
[0172] In an embodiment of the present application, after receiving the encoded image code stream from the encoding device, the decoding device parses the code stream to obtain decoding parameters, such as the prediction mode of the above-mentioned current prediction unit, and parses the code stream to obtain the residual between the true value and the predicted value of the current prediction unit.
[0173] The second part is the part of the current prediction unit that does not overlap with the first part, that is, the first part and the second part do not overlap. In one example, the second part can be the part of the current prediction unit other than the first part, that is, the current prediction unit consists of the first part and the second part.
[0174] It should be noted that the pixels in the first part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit, that is, when predicting a certain pixel in the first part, there is no need to rely on the reconstructed pixels in the current prediction unit (including the first part), that is, the prediction processes of all pixels in the first part of the current prediction unit are independent of each other. In this case, the first prediction mode can be used to predict all pixels in the first part in parallel, that is, the pixels in the first part are predicted as a group, and this prediction method can be called group prediction.
[0175] Further, it should be noted that the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels within the current prediction unit, or the pixels in the second part of the current prediction unit are predicted based on the reconstructed pixels within the current prediction unit. In other words, when predicting a certain pixel in the second part, it is necessary to rely on the reconstructed pixels outside the current prediction unit and the reconstructed pixels within the current prediction unit, or, when predicting a certain pixel in the second part, it is necessary to rely on the reconstructed pixels within the current prediction unit, that is, the prediction process of all pixels in the second part of the current prediction unit may be dependent on each other. In this case, the second prediction mode can be used to predict the pixels in the second part pixel by pixel, and this prediction method can be called point prediction.
[0176] In one example, the pixels in the second part described in the above embodiment are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels in the current prediction unit, or the pixels in the second part are predicted based on the reconstructed pixels in the current prediction unit, wherein the reconstructed pixel prediction in the current prediction unit (used to predict the pixels in the second part) includes the reconstructed pixels in the above-mentioned first part, that is, when predicting the pixels in the second part, it is necessary to rely on the reconstructed pixels in the first part of the current prediction unit.
[0177] S602: Use the first prediction mode to predict the first part of the current prediction unit, and use the second prediction mode to predict the second part of the current prediction unit to obtain a prediction value of the current prediction unit.
[0178] In an embodiment of the present application, based on the first prediction mode, the decoding device predicts the pixel values of the first part of the current prediction unit according to the decoded (reconstructed) pixels. Similarly, based on the second prediction mode, the decoding device predicts the pixels of the second part of the current prediction unit according to the decoded pixels.
[0179] It can be understood that the method of predicting the current prediction unit during image decoding is similar to the method of predicting the current prediction unit during image encoding. Therefore, for the description of other details of S602, reference can be made to the relevant description of S401 in the above embodiment, which will not be repeated here.
[0180] S603: Determine a reconstructed value of the current prediction unit according to the prediction value of the current prediction unit and the residual value of the current prediction unit.
[0181] The sum of the prediction value of the current prediction unit and the residual value of the current prediction unit is the reconstructed value of the current prediction unit.
[0182] In one example, after obtaining the reconstruction value of the current prediction unit, loop filtering may be performed on the reconstruction value to obtain the reconstruction unit of the current prediction unit.
[0183] In an embodiment of the present application, after the decoding device obtains the reconstructed value or reconstruction unit of the current prediction unit, it caches the reconstructed value or reconstruction unit in a cache, and subsequently, the next prediction unit can be predicted based on the reconstructed value or reconstruction unit of the current prediction unit.
[0184] In the embodiment of the present application, all prediction units in the image to be decoded are reconstructed according to the above-mentioned method S601-S603, so as to obtain a reconstructed image of the image to be decoded, and the reconstructed image can be displayed on a decoding device.
[0185] In one example, combining Figure 7 ,like Figure 8As shown, the parsing of the bitstream in the above S601 to obtain the residual value between the true value and the predicted value of the current prediction unit specifically includes S6011-S6013.
[0186] S6011. Decode the code stream of the current prediction unit to obtain the quantization coefficient of the current prediction unit.
[0187] S6012: Perform inverse quantization processing on the quantized coefficients of the current prediction unit to obtain inverse quantized coefficients of the current prediction unit.
[0188] S6013, perform inverse transformation processing on the inverse quantization coefficient of the current prediction unit according to the preset inverse transformation direction to obtain the residual value between the real value and the predicted value of the current prediction unit; when the prediction is performed along the vertical direction, the horizontal inverse transformation is performed in parallel, and when the prediction is performed along the horizontal direction, the vertical inverse transformation is performed in parallel.
[0189] That is, the preset inverse transform direction is perpendicular to the prediction direction of the current prediction unit. In one example, the current prediction direction can be understood as a prediction angle, for example, the prediction direction can be a horizontal direction, a vertical direction, or a direction forming any angle with the reference direction.
[0190] In an example, when the preset inverse transform direction is horizontal inverse transform, the height of the current prediction unit is 1; when the preset inverse transform direction is vertical inverse transform, the width of the current prediction unit is 1.
[0191] In the embodiment of the present application, during the prediction of pixels, the pixels along the prediction direction are mutually dependent, so when the predicted values along the prediction direction are transformed, the pixels in the prediction direction are also mutually dependent, that is, along the prediction direction, multiple pixels cannot be transformed in parallel. However, along the direction perpendicular to the prediction direction, the pixels are mutually dependent, so multiple pixels can be transformed in parallel along the direction perpendicular to the prediction direction, so that the efficiency of image reconstruction can be improved.
[0192] In an embodiment of the present application, after the decoding device parses and obtains the quantization coefficient of the current prediction unit, the process of performing inverse quantization and inverse transformation on the quantization coefficient is similar to the above-mentioned S406-S407. Therefore, the description of S6012-S6013 can refer to the relevant description of S406-S407 in the above-mentioned embodiment, which will not be repeated here.
[0193] It should be noted that, in the embodiment of the present application, after the above S6012, S6013 may not be executed, that is, the dequantized coefficients are not transformed, and the dequantized coefficients may be used as residual values.
[0194] It can be understood that, in the image decoding process, the image to be decoded is usually divided into multiple image blocks, and the image blocks are predicted one by one. The image blocks in the image to be decoded can also be called coding blocks.
[0195] In one example, in an embodiment of the present application, the current prediction unit may be a coding block in the image to be decoded, or the current prediction unit may be one of multiple prediction units obtained by dividing a coding block in the image to be decoded. The specific determination is based on actual conditions and is not limited in the embodiment of the present application.
[0196] like Figure 8 As shown, if the current prediction unit is one of the prediction units obtained after a coding block is divided, then before the above S601, the image decoding method provided by the embodiment of the present application also includes S600.
[0197] S600: Divide the current coding block according to a preset division method to obtain multiple prediction units of the current coding block.
[0198] The current prediction unit is any one of the multiple prediction units.
[0199] In the embodiment of the present application, the preset division method can be a combination of any one or more of the existing multiple division methods, for example, it can include a vertical division method, a horizontal division method, a serial grouping method, etc., which is selected according to actual needs and is not limited by the embodiment of the present application.
[0200] For more description of the division method in S600, please refer to the detailed description of S400 in the above embodiment, which will not be repeated here.
[0201] In summary, in the image decoding method provided in the embodiment of the present application, the decoding device adopts the first prediction mode to predict the first part of the current unit to be predicted, and adopts the second prediction mode to predict the second part of the current prediction unit. Compared with the prior art in which one prediction unit corresponds to one prediction mode, the technical solution provided in the embodiment of the present application divides the pixels in the prediction unit, and different prediction modes are adopted for pixels in different parts. In this way, the decoding method is more flexible, and the appropriate prediction mode is selected according to the characteristics of the pixels in the prediction unit, so that the prediction result is more accurate (that is, closer to the true value), which can improve the image decoding performance.
[0202] Exemplary, reference Fig. 9Assuming that the size of the current prediction unit is 8×4 (8 refers to the number of pixels in the image height direction, and 4 refers to the number of pixels in the image width direction), in the above-mentioned image encoding and decoding embodiments, in the process of predicting the current prediction unit, for the pixels in the first part of the current prediction unit, the first prediction mode can be used for prediction, for example, the pixels in the previous row and / or the previous column of the current prediction unit can be used as reference pixels for the pixels in the first part, and the pixels in the first part can be predicted, and all the pixels in the first part can be predicted in parallel. For example, in the first prediction mode, at least one of an angle prediction method, a direct current (DC) prediction method, and a bilinear interpolation prediction method can be used to predict the pixels in the first part. For the pixels in the second part of the current prediction unit, prediction can be performed one by one. Taking one pixel as an example, the pixel value of the pixel can be predicted based on other pixels near the pixel. For example, in the second prediction mode, at least one of an adaptive median prediction (MAP) method, an improved MAP (i.e., MMAP), and a mid-point prediction (MPP) method can be used to predict the pixels in the second part.
[0203] like Fig.10 As shown, still taking the above 8×4 current prediction unit as an example, Fig.10 The pixels marked with 1, 2, 3, ..., 16 in the figure are predicted using the second prediction mode. For example, the weighted average of the reconstructed pixels above, below, to the left, and to the right of the pixel to be predicted can be used as the pixel value of the pixel to be predicted. Fig.10 When predicting pixel 1, pixel 2, pixel 3, pixel 5, pixel 6, pixel 7, pixel 8, pixel 9, pixel 10 and pixel 11, the weighted average of the reconstructed pixels above, below, left and right are used as their predicted values.
[0204] It should be noted that, since some pixels in the second part located at the edge of the current prediction unit may not have reference pixels in at least one direction above, below, left or right, in this case, a special prediction method is required to predict these pixels. Fig.10 For pixel 4 and pixel 12 in , there is no reference pixel on the right, so the pixel value of the pixel can be predicted based on the pixels on its left, above, and below. For another example, Fig.10 For pixels 13, 14, 15, and 16, there are no reference pixels below, so the pixel value of the pixel can be predicted based on the pixels to its left, right, and above.
[0205] Combination Fig.10 It can be seen that some pixels in the second part are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels in the current prediction unit, for example, pixel 1, pixel 2, pixel 3, pixel 4, pixel 5 and pixel 13 are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels in the current prediction unit; some pixels in the second part are predicted based on the reconstructed pixels in the current prediction unit, for example, pixel 6, pixel 7, pixel 8, pixel 9, pixel 10, pixel 11, pixel 12, pixel 14, pixel 15 and pixel 16 are predicted based on the reconstructed pixels in the current prediction unit.
[0206] The above prediction process for the current prediction unit is intra-frame prediction.
[0207] Exemplary, reference Fig.11 In the above-mentioned image encoding process, when the residual value of the current prediction unit is transformed, when the pixels of the first row of the current prediction unit are predicted, it is necessary to predict based on the pixels of the previous row, that is, the prediction direction is the vertical direction. Then, the transformation of a predicted pixel value in the vertical direction depends on the pixels of the previous row. In the direction perpendicular to the prediction direction (i.e., the horizontal direction), the transformation process of each pixel is independent of each other. In this case, the predicted pixels can be transformed along the horizontal direction ( Fig. 9 The transformation process shown is a one-dimensional transformation process).
[0208] The present application also provides an image encoding method, which is applied to an encoding device, such as Fig.12 As shown, the image encoding method may include S1101-S1105.
[0209] S1101, predicting the current prediction unit using an angle prediction mode to obtain a prediction value of the current prediction unit. The angle prediction mode satisfies a preset condition, wherein the number of pixels |M| between the predicted pixel point determined according to the prediction angle and the current pixel point in the image height direction is an integer, the number of pixels |N| between the predicted pixel point determined according to the prediction angle and the current pixel point in the image width direction is an integer, and |M| or |N| is the minimum value among the possible integer values.
[0210] refer to Fig.13 , that is, the above angle prediction mode satisfies M, N are both integers; where θ represents the prediction angle, |M| represents the number of pixels between the current pixel and the predicted pixel of the current pixel in the image height direction, |N| represents the number of pixels between the current pixel and the predicted pixel of the current pixel in the image width direction, and |M| satisfies The minimum value among all the absolute values of the values or |N| satisfies The minimum value among the absolute values of all values of , || means taking the absolute value.
[0211] Furthermore, in one example, the above M and N also satisfy n is an integer.
[0212] In the embodiment of the present application, when M and N also satisfy When predicting the current prediction unit, the originally complex multiplication and division operations will become simple shift operations, which can reduce the complexity of the calculation. For example, multiplication by 8 is equivalent to shifting left by 3 units, that is, <<3.
[0213] It is understandable that in the image coding process, the image to be coded is usually divided into multiple image blocks, the image blocks are predicted one by one, and then the image blocks are encoded to obtain a code stream. The image blocks in the image to be coded can also be called coding blocks.
[0214] In one example, in an embodiment of the present application, the current prediction unit may be a coding block in the image to be encoded, or the current prediction unit may be one of multiple prediction units obtained by dividing a coding block in the image to be encoded. The specific determination is based on actual conditions and is not limited in the embodiment of the present application.
[0215] If the current prediction unit is one of the prediction units obtained by dividing a coding block, then before the above S1100, the image encoding method provided by the embodiment of the present application further includes S1100.
[0216] S1100 , dividing the current coding block according to a preset division method to obtain multiple prediction units of the current coding block.
[0217] The current prediction unit is any one of the multiple prediction units.
[0218] In the embodiment of the present application, the preset division method can be a combination of any one or more of the existing multiple division methods, for example, it can include a vertical division method, a horizontal division method, a serial grouping method, etc., which is selected according to actual needs and is not limited by the embodiment of the present application.
[0219] It should be noted that the division method in S1100 is similar to the division method in S400 in the above embodiment. For more description of S1100, the detailed description of S400 in the above embodiment can be referred to, which will not be repeated here.
[0220] S1102: Determine a residual value between a predicted value and a true value of a current prediction unit.
[0221] In the embodiment of the present application, the residual value between the predicted value and the true value of the current prediction unit may be the difference between the predicted value of the current prediction unit and the true value of the current prediction unit pixel by pixel.
[0222] S1103, transform the residual value between the predicted value and the true value of the current prediction unit according to a preset transformation direction to obtain the transformation residual coefficient of the current prediction unit; when prediction is performed along the vertical direction, horizontal transformation is performed in parallel, and when prediction is performed along the horizontal direction, vertical transformation is performed in parallel.
[0223] That is, the preset transformation direction is perpendicular to the prediction direction of the current prediction unit. In one example, the current prediction direction can be understood as a prediction angle, for example, the prediction direction can be a horizontal direction, a vertical direction, or a direction that forms an arbitrary angle with the reference direction. For a detailed description of the transformation direction, reference can be made to the description of the transformation direction in S403 above, which will not be repeated here.
[0224] In an example, when the preset transform direction is horizontal inverse transform, the height of the current prediction unit is 1; when the preset transform direction is vertical inverse transform, the width of the current prediction unit is 1.
[0225] In the embodiment of the present application, in the process of predicting pixels, the pixels along the prediction direction are mutually dependent, so when the predicted values along the prediction direction are transformed, the pixels in the prediction direction are also mutually dependent, that is, along the prediction direction, multiple pixels cannot be transformed in parallel. However, along the direction perpendicular to the prediction direction, the pixels are mutually dependent, so multiple pixels can be transformed in parallel along the direction perpendicular to the prediction direction, so that the coding efficiency can be improved.
[0226] S1104 , quantize the transformed residual coefficient of the current prediction unit to obtain a quantized residual coefficient of the current prediction unit.
[0227] S1105 . Encode the quantized residual coefficients of the current prediction unit.
[0228] In one example, in an embodiment of the present application, the encoding device also encodes some encoding parameters of the current prediction unit. The encoding parameters may also be called syntax elements. The encoding parameters may include but are not limited to prediction mode information of the current prediction unit, such as information used to indicate the above-mentioned angle prediction mode, etc.
[0229] It should be noted that, in the embodiment of the present application, after the above S1102, S1103 may not be executed, that is, the residual value is not transformed, and the residual value is directly quantized and re-encoded.
[0230] At this point, the encoding device completes the encoding of a prediction unit and obtains the code stream of the prediction unit. Afterwards, the encoding device can transmit the code stream to the decoding device or store the code stream.
[0231] In one example, after the above S1104, the image encoding method provided by the present application further includes S1106-S1108.
[0232] S1106 . Perform inverse quantization processing on the quantized residual coefficient of the current prediction unit to obtain an inverse quantization coefficient of the current prediction unit.
[0233] It should be understood that the process of the inverse quantization process is the inverse process of the above quantization process.
[0234] S1107 . Perform inverse transformation processing on the inverse quantization coefficient of the current prediction unit according to a preset inverse transformation direction to obtain a residual value between the predicted value and the true value of the current prediction unit, where the preset inverse transformation direction is perpendicular to the prediction direction of the current prediction unit.
[0235] The inverse transformation process is the inverse process of the above-mentioned transformation process. The inverse transformation direction of the inverse transformation process is perpendicular to the prediction direction of the current prediction unit, and the inverse transformation direction is the same as the above-mentioned transformation direction. For the relevant description of the inverse transformation direction, please refer to the detailed description of S1103 in the above-mentioned embodiment, which will not be repeated here.
[0236] S1108. Determine a reconstructed value of the current prediction unit according to the prediction value of the current prediction unit and the residual value of the current prediction unit.
[0237] In one example, the sum of the prediction value of the current prediction unit and the residual value of the current prediction unit is the reconstructed value of the current prediction unit.
[0238] In one example, after obtaining the reconstruction value of the current prediction unit, loop filtering may be performed on the reconstruction value to obtain the reconstruction unit of the current prediction unit.
[0239] In an embodiment of the present application, after the encoding device executes S1106-S1108 to obtain the reconstructed value or reconstruction unit of the current prediction unit, the reconstructed value or reconstruction unit is cached in a cache, and subsequently, the next prediction unit can be predicted based on the reconstructed value or reconstruction unit of the current prediction unit.
[0240] Similarly, in the embodiment of the present application, after the above S1106, S1107 may not be executed, that is, the dequantized coefficient is not transformed, and the dequantized coefficient may be used as a residual value.
[0241] In the image encoding method provided by the embodiment of the present application, the encoding device can use an angle prediction mode to predict the current prediction unit, and the angle prediction mode satisfies: the number of pixels between the predicted pixel point determined according to the prediction angle and the current pixel point in the image height direction is an integer, and the number of pixels between the predicted pixel point determined according to the prediction angle and the current pixel point in the image width direction is an integer, that is, the reconstructed pixel value can be directly used as the prediction value of the pixel to be predicted, pixel interpolation operation can be avoided, the amount of calculation can be reduced, and the image encoding efficiency can be improved, thereby improving the image encoding performance.
[0242] for Fig.12 In the image encoding method shown in the figure, after the encoding device completes the image encoding, the code stream is transmitted to the decoding device. Accordingly, the embodiment of the present application provides an image decoding method, which is applied to the decoding device, such as Fig.14 As shown, the image decoding method includes S1301-S1303.
[0243] S1301, parsing the bitstream, obtaining a prediction mode of a current prediction unit and a residual value between a true value and a predicted value of the current prediction unit, wherein the prediction mode of the current prediction unit is an angle prediction mode, and the angle prediction mode satisfies a preset condition, wherein the preset condition is that the number of pixels M between a predicted pixel point determined according to a prediction angle and a current pixel point in an image height direction is an integer, the number of pixels N between a predicted pixel point determined according to a prediction angle and a current pixel point in an image width direction is an integer, and M or N is a minimum value among possible integer values.
[0244] That is to say, the above angle prediction mode satisfies M, N are both integers; where θ represents the prediction angle, |M| represents the number of pixels between the current pixel and the predicted pixel of the current pixel in the image height direction, |N| represents the number of pixels between the current pixel and the predicted pixel of the current pixel in the image width direction, and |M| satisfies The minimum value among all the absolute values of the values or |N| satisfies The minimum value among the absolute values of all values of , || means taking the absolute value.
[0245] Furthermore, in one example, the above M and N also satisfy n is an integer.
[0246] Compared with the prior art, when the embodiment of the present application predicts the current prediction unit, since the number of pixels between the current pixel point and the predicted pixel point of the current pixel point in the image height direction is an integer, and the number of pixels between the current pixel point and the predicted pixel point of the current pixel point in the image width direction is also an integer, that is, the reconstructed pixel value can be directly used as the predicted value of the pixel to be predicted, and pixel interpolation operations can be avoided. This can reduce the amount of calculation and improve image coding efficiency.
[0247] For more detailed description of the angle prediction mode, please refer to the description of S1101, which will not be repeated here.
[0248] S1302: Use the prediction mode of the current prediction unit to predict the current prediction unit to obtain a prediction value of the current prediction unit.
[0249] It should be noted that the prediction method for the current image during the image decoding process corresponds to the prediction method for the image during the image encoding process, that is, similar. Therefore, the specific description of S1302 can refer to the detailed description of S1101 above and will not be repeated here.
[0250] S1303: Determine a reconstructed value of the current prediction unit according to the prediction value of the current prediction unit and the residual value of the current prediction unit.
[0251] The sum of the prediction value of the current prediction unit and the residual value of the current prediction unit is the reconstructed value of the current prediction unit.
[0252] In one example, after obtaining the reconstruction value of the current prediction unit, loop filtering may be performed on the reconstruction value to obtain the reconstruction unit of the current prediction unit.
[0253] In an embodiment of the present application, after the decoding device obtains the reconstructed value or reconstruction unit of the current prediction unit, it caches the reconstructed value or reconstruction unit in a cache, and subsequently, the next prediction unit can be predicted based on the reconstructed value or reconstruction unit of the current prediction unit.
[0254] In the embodiment of the present application, all prediction units in the image to be decoded are reconstructed according to the above-mentioned method S1301-S1303, so as to obtain a reconstructed image of the image to be decoded, and the reconstructed image can be displayed on a decoding device.
[0255] In one example, the parsing of the bitstream in S1301 above to obtain a residual value between a true value and a predicted value of the current prediction unit specifically includes S13011-S13011.
[0256] S13011. Decode the code stream of the current prediction unit to obtain the quantization coefficient of the current prediction unit.
[0257] S13012: Perform inverse quantization processing on the quantized coefficients of the current prediction unit to obtain inverse quantized coefficients of the current prediction unit.
[0258] S13013. Perform inverse transformation on the inverse quantization coefficients of the current prediction unit according to a preset inverse transformation direction to obtain a residual value between the true value and the predicted value of the current prediction unit; when prediction is performed along the vertical direction, perform horizontal inverse transformation in parallel, and when prediction is performed along the horizontal direction, perform vertical inverse transformation in parallel.
[0259] That is, the preset inverse transform direction is perpendicular to the prediction direction of the current prediction unit. In one example, the current prediction direction can be understood as a prediction angle, for example, the prediction direction can be a horizontal direction, a vertical direction, or a direction forming any angle with the reference direction.
[0260] In an example, when the preset inverse transform direction is horizontal inverse transform, the height of the current prediction unit is 1; when the preset inverse transform direction is vertical inverse transform, the width of the current prediction unit is 1.
[0261] In the embodiment of the present application, during the prediction of pixels, the pixels along the prediction direction are mutually dependent, so when the predicted values along the prediction direction are transformed, the pixels in the prediction direction are also mutually dependent, that is, along the prediction direction, multiple pixels cannot be transformed in parallel. However, along the direction perpendicular to the prediction direction, the pixels are mutually dependent, so multiple pixels can be transformed in parallel along the direction perpendicular to the prediction direction, so that the efficiency of image reconstruction can be improved.
[0262] In an embodiment of the present application, after the decoding device parses and obtains the quantization coefficient of the current prediction unit, the process of performing inverse quantization and inverse transformation on the quantization coefficient is similar to the above-mentioned S1106-S1107. Therefore, the description of S13011-S13013 can refer to the relevant description of S1106-S1107 in the above-mentioned embodiment, which will not be repeated here.
[0263] It should be noted that, in the embodiment of the present application, after the above S13012, S13013 may not be executed, that is, the dequantized coefficient is not transformed, and the dequantized coefficient may be used as a residual value.
[0264] It can be understood that, in the image decoding process, the image to be decoded is usually divided into multiple image blocks, and the image blocks are predicted one by one. The image blocks in the image to be decoded can also be called coding blocks.
[0265] In one example, in an embodiment of the present application, the current prediction unit may be a coding block in the image to be decoded, or the current prediction unit may be one of multiple prediction units obtained by dividing a coding block in the image to be decoded. The specific determination is based on actual conditions and is not limited in the embodiment of the present application.
[0266] Combination Fig.14 ,like Fig.15 As shown, if the current prediction unit is one of the prediction units obtained after a coding block is divided, then before the above S1301, the image decoding method provided by the embodiment of the present application also includes S1300.
[0267] S1300: Divide the current coding block according to a preset division method to obtain multiple prediction units of the current coding block.
[0268] The current prediction unit is any one of the multiple prediction units.
[0269] In the embodiment of the present application, the preset division method can be a combination of any one or more of the existing multiple division methods, for example, it can include a vertical division method, a horizontal division method, a serial grouping method, etc., which is selected according to actual needs and is not limited by the embodiment of the present application.
[0270] For more description of the division method in S1300, please refer to the detailed description of S1100 in the above embodiment, which will not be repeated here.
[0271] In summary, in the image decoding method provided in the embodiment of the present application, the decoding device can use an angle prediction mode to predict the current prediction unit, and the angle prediction mode satisfies: the number of pixels between the predicted pixel point determined according to the prediction angle and the current pixel point in the image height direction is an integer, and the number of pixels between the predicted pixel point determined according to the prediction angle and the current pixel point in the image width direction is an integer, that is, the reconstructed pixel value can be directly used as the prediction value of the pixel to be predicted, pixel interpolation operations can be avoided, the amount of calculation can be reduced, and the image encoding efficiency can be improved, thereby improving the image decoding performance.
[0272] For example, taking the current prediction unit as an 8×4 image block, Fig.16 As shown, in the above-mentioned embodiments of image encoding and decoding, when the angle prediction mode is used to predict the current prediction unit, all pixels in each row of the current prediction unit have the same prediction direction and the same motion vector, and the motion vectors of different rows are different. The motion vector can be understood as the horizontal offset from the current position to the predicted position. For example, refer to Fig.16, the prediction direction of all pixels in the first row of the current prediction unit is the same and the motion vector is the same, the prediction direction of all pixels in the first row is the same as the prediction direction of all pixels in the second row, but the motion vector is different.
[0273] Combination Fig.16 The current prediction unit shown in FIG. 1 is used to predict all pixels in the current prediction unit according to the above-mentioned angle prediction mode after determining the prediction angle (i.e., prediction direction). Assuming that the first line of the current prediction unit is the mth line of the coded image (or coding block), for Fig.16 The prediction angle shown is used to predict each row of the current prediction unit. The specific process is as follows Fig.17 shown.
[0274] from Fig.17 It can be seen from (a) that in the current prediction unit, the prediction values of all pixels in the mth row are predicted based on the reconstructed pixels in the m-2th row, and the pixel P11 in the m-2th row is used as the prediction value of the first pixel in the mth row. In this way, the prediction values of the 8 pixels in the mth row are the pixel values of the pixels P11, P12, P13, P14, P15, P16, P17, and P18 in the m-2th row. And according to this angle prediction mode, the reconstructed pixel value is directly used as the prediction value of the pixel in the mth row, that is, when predicting the pixel in the mth row, there is no need to interpolate multiple pixel values to obtain the pixel value of the mth row.
[0275] Combination Fig.17 It can be seen from (b) that in the current prediction unit, the prediction values of all pixels in the m+1th row are predicted based on the reconstructed pixels in the m-1th row, and the pixel P21 in the m-1th row is used as the prediction value of the first pixel in the m+1th row. In this way, the prediction values of the 8 pixels in the m+1th row are the pixel values of pixels P21, P22, P23, P24, P25, P26, P27, and P28 in the m-1th row. Similarly, according to this angle prediction mode, the reconstructed pixel value is directly used as the prediction value of the pixel in the m+1th row, that is, when predicting the pixels in the m+1th row, there is no need to interpolate multiple pixel values to obtain the pixel value of the mth row.
[0276] Combination Fig.17It can be seen from (c) that in the current prediction unit, the prediction values of all pixels in the m+2th row are predicted based on the reconstructed pixels in the m-2th row, and the pixel P12 in the m-2th row is used as the prediction value of the first pixel in the m+2th row. In this way, the prediction values of the 8 pixels in the m+2th row are the pixel values of pixels P12, P13, P14, P15, P16, P17, P18, and P19 in the m-2th row. Similarly, according to this angle prediction mode, the reconstructed pixel value is directly used as the prediction value of the pixel in the m+2th row, that is, when predicting the pixels in the m+2th row, there is no need to interpolate multiple pixel values to obtain the pixel value of the mth row.
[0277] Combination Fig.17 It can be seen from (d) that in the current prediction unit, the prediction values of all pixels in the m+3th row are predicted based on the reconstructed pixels in the m-1th row, and the pixel P22 in the m-1th row is used as the prediction value of the first pixel in the m+3th row. In this way, the prediction values of the 8 pixels in the m+3th row are the pixel values of pixels P22, P23, P24, P25, P26, P27, P28, and P29 in the m-1th row. Similarly, according to this angle prediction mode, the reconstructed pixel value is directly used as the prediction value of the pixel in the m+3th row, that is, when predicting the pixels in the m+3th row, there is no need to interpolate multiple pixel values to obtain the pixel value of the mth row.
[0278] Combination Fig.17 , the prediction process between each row of the current prediction unit has a certain regularity. For example, compared with the 3rd row of the current prediction unit, the motion vector of the 1st row has an offset relationship with the motion vector of the 3rd row in the image width direction (i.e., the horizontal direction), and the motion vector of the 1st row has an offset relationship with the motion vector of the 3rd row in the image height direction (i.e., the vertical direction). For example, the motion vector of the 3rd row is the result of the motion vector of the 1st row being offset by 1 pixel in the image width direction, and the motion vector of the 3rd row is the result of the motion vector of the 1st row being offset by 2 pixels in the image height direction.
[0279] In summary, when predicting the current prediction unit according to the angle prediction mode provided in the embodiment of the present application, the current prediction unit is predicted using the first two rows of reconstructed pixels of the current prediction unit. Moreover, compared with the scheme in the prior art of predicting the pixel value of the current position based on the previous row of pixels of the current prediction position, the embodiment of the present application can avoid pixel interpolation operations when predicting the current prediction unit, thereby reducing the amount of calculation and improving image coding efficiency.
[0280] Accordingly, an embodiment of the present application provides an image decoding device, which can be any image decoding device during a call. According to the above method example, the image decoding device can be divided into functional modules. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0281] In the case of dividing each functional module into corresponding functional modules, Fig.18 A possible structural diagram of the image decoding device involved in the above embodiment is shown. Fig.18 As shown, the image decoding device includes a parsing module 1701 , a prediction module 1702 and a reconstruction module 1703 .
[0282] In one embodiment, the above-mentioned parsing module 1701 is used to parse the code stream to obtain the prediction mode of the current prediction unit and the residual value between the real value and the predicted value of the current prediction unit; the prediction mode of the current prediction unit includes at least a first prediction mode and a second prediction mode, wherein the first prediction mode is used to predict the first part of the current prediction unit, and the second prediction mode is used to predict the second part of the current prediction unit, and the first prediction mode is different from the second prediction mode, for example, executing S601 in the above-mentioned method embodiment. The prediction module 1702 is used to predict the first part of the current prediction unit using the first prediction mode, and to predict the second part of the current prediction unit using the second prediction mode, to obtain the predicted value of the current prediction unit, for example, executing S602 in the above-mentioned method embodiment. The reconstruction module 1703 is used to determine the reconstructed value S603 of the current prediction unit according to the predicted value of the current prediction unit and the residual value of the current prediction unit.
[0283] In one example, the image decoding device provided by an embodiment of the present application also includes an inverse quantization module 1704 and an inverse transformation module 1705, wherein the above-mentioned analysis module 1701 is specifically used to decode the code stream of the current prediction unit to obtain the quantization coefficient of the current prediction unit, for example, executing S6011 in the above-mentioned embodiment; the inverse quantization module 1704 is used to perform inverse quantization processing on the quantization coefficient of the current prediction unit to obtain the inverse quantization coefficient of the current prediction unit; for example, executing S6012 in the above-mentioned embodiment; the inverse transformation module 1705 is used to perform inverse transformation processing on the inverse quantization coefficient of the current prediction unit according to a preset inverse transformation direction to obtain the residual value between the predicted value and the true value of the current prediction unit, and the preset inverse transformation direction is perpendicular to the prediction direction of the current prediction unit, for example, executing S6013 in the above-mentioned embodiment.
[0284] In one example, the image decoding device provided in an embodiment of the present application also includes a grouping module, which is used to divide the current coding block according to a preset division method to obtain multiple prediction units of the current coding block, and the current prediction unit is any one of the multiple prediction units, for example, executing S600 in the above embodiment.
[0285] In another embodiment, the above-mentioned parsing module 1701 is used to parse the code stream, obtain the prediction mode of the current prediction unit and the residual value between the predicted value of the current prediction unit and the true value. The prediction mode of the current prediction unit is an angle prediction mode, and the angle prediction mode satisfies a preset condition, which is that the number of pixels |M| between the predicted pixel point determined according to the prediction angle and the current pixel point in the image height direction is an integer, the number of pixels |N| between the predicted pixel point determined according to the prediction angle and the current pixel point in the image width direction is an integer, and |M| or |N| is the minimum value among the possible integer values, || represents taking the absolute value, for example, executing 1301 in the above-mentioned embodiment; the prediction module 1702 is used to predict the current prediction unit using the prediction mode of the current prediction unit to obtain the predicted value of the current prediction unit, for example, executing 1302 in the above-mentioned embodiment; the reconstruction module 1703 is used to determine the reconstructed value of the current prediction unit according to the predicted value of the current prediction unit and the residual value of the current prediction unit, for example, executing 1303 in the above-mentioned embodiment.
[0286] The above-mentioned analysis module 1701 is specifically used to decode the code stream of the current prediction unit to obtain the quantization coefficient of the current prediction unit, for example, executing S13011 in the above-mentioned embodiment; the dequantization module 1704 is used to dequantize the quantization coefficient of the current prediction unit to obtain the dequantization coefficient of the current prediction unit; for example, executing S13012 in the above-mentioned embodiment; the inverse transformation module 1705 is used to dequantize the dequantization coefficient of the current prediction unit according to a preset inverse transformation direction to obtain the residual value between the predicted value and the true value of the current prediction unit, and the preset inverse transformation direction is perpendicular to the prediction direction of the current prediction unit, for example, executing S13013 in the above-mentioned embodiment.
[0287] In an example, the grouping module is used to divide the current coding block according to a preset division method to obtain multiple prediction units of the current coding block, and the current prediction unit is any one of the multiple prediction units, for example, executing S1200 in the above embodiment.
[0288] The modules of the above-mentioned image decoding device can also be used to execute other actions in the above-mentioned method embodiment. All relevant contents of the steps involved in the above-mentioned method embodiment can be referred to the functional description of the corresponding functional modules, which will not be repeated here.
[0289] In the case of an integrated unit, Fig.19 FIG. 2 shows another possible structural diagram of the image decoding device involved in the above embodiment. Fig.19 As shown, the image decoding device provided by the embodiment of the present application may include: a processing module 1801 and a communication module 1802. The processing module 1801 can be used to control and manage the actions of the image decoding device. For example, the processing module 1801 can be used to support the image decoding device to execute S601-S603, S600, S1301-S1303 and S1300 in the above method embodiment, and / or other processes for the technology described herein. The communication module 1802 can be used to support the communication between the image decoding device and other network entities, such as communicating with an image encoding device. In one example, as Fig.19 As shown, the image decoding device may further include a storage module 1803 for storing program code and data of the image decoding device, such as storing decoded images.
[0290] The processing module 1801 may be a processor, for example, the processor may be Figure 1 The communication module 1802 may be a transceiver, a transceiver circuit or a communication interface, for example Figure 1 In the communication interface 121, the storage module 1803 can be a memory.
[0291] For more details about the modules included in the above-mentioned image decoding device to implement the above-mentioned functions, please refer to the description in the above-mentioned method embodiments, which will not be repeated here.
[0292] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) mode or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a magnetic disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).
[0293] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0294] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0295] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0296] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0297] If the integrated unit is implemented in the form of a software functional unit and 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 the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, or all or part of the technical solution. 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 described in each embodiment of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk, and other media that can store program codes.
[0298] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An image decoding method, characterized in that: include: Parse a bitstream to obtain a prediction mode of a current prediction unit and a residual value between a true value and a predicted value of the current prediction unit; the prediction mode of the current prediction unit includes at least a first prediction mode and a second prediction mode, wherein the first prediction mode is used to predict a first part of the current prediction unit, and the second prediction mode is used to predict a second part of the current prediction unit, and the first prediction mode is different from the second prediction mode; wherein pixels in the first part are predicted based on reconstructed pixels outside the current prediction unit; pixels in the second part are predicted based on reconstructed pixels outside the current prediction unit and reconstructed pixels within the current prediction unit; or pixels in the second part are predicted based on reconstructed pixels within the current prediction unit, and the reconstructed pixels within the current prediction unit include reconstructed pixels in the first part; Using the first prediction mode to predict a first part of the current prediction unit, and using the second prediction mode to predict a second part of the current prediction unit, to obtain a prediction value of the current prediction unit; A reconstructed value of the current prediction unit is determined according to the prediction value of the current prediction unit and the residual value of the current prediction unit.
2. An image encoding method, characterized in that: include: A first prediction mode is used to predict a first part of a current prediction unit, and a second prediction mode is used to predict a second part of the current prediction unit to obtain a prediction value of the current prediction unit; the first prediction mode is different from the second prediction mode; wherein pixels in the first part are predicted based on reconstructed pixels outside the current prediction unit; pixels in the second part are predicted based on reconstructed pixels outside the current prediction unit and reconstructed pixels in the current prediction unit; or pixels in the second part are predicted based on reconstructed pixels in the current prediction unit, and the reconstructed pixels in the current prediction unit include the reconstructed pixels in the first part; Determine a residual value between a predicted value and a true value of the current prediction unit; The residual value is encoded to obtain a code stream of the current prediction unit.
3. An image decoding device, characterized in that: Includes parsing module, prediction module and reconstruction module; The parsing module is used to parse the code stream to obtain the prediction mode of the current prediction unit and the residual value between the real value and the predicted value of the current prediction unit; the prediction mode of the current prediction unit includes at least a first prediction mode and a second prediction mode, wherein the first prediction mode is used to predict the first part of the current prediction unit, and the second prediction mode is used to predict the second part of the current prediction unit, and the first prediction mode is different from the second prediction mode; wherein the pixels in the first part are predicted based on the reconstructed pixels outside the current prediction unit; the pixels in the second part are predicted based on the reconstructed pixels outside the current prediction unit and the reconstructed pixels in the current prediction unit; or, the pixels in the second part are predicted based on the reconstructed pixels in the current prediction unit, and the reconstructed pixels in the current prediction unit include the reconstructed pixels in the first part; The prediction module is used to predict the first part of the current prediction unit by using the first prediction mode, and predict the second part of the current prediction unit by using the second prediction mode to obtain a prediction value of the current prediction unit; The reconstruction module is used to determine the reconstruction value of the current prediction unit according to the prediction value of the current prediction unit and the residual value of the current prediction unit.
4. An image encoding device, characterized in that Including prediction module, determination module and encoding module: The prediction module is used to predict a first part of a current prediction unit using a first prediction mode, and predict a second part of the current prediction unit using a second prediction mode, to obtain a prediction value of the current prediction unit; the first prediction mode is different from the second prediction mode; wherein the pixels in the first part are predicted based on reconstructed pixels outside the current prediction unit; the pixels in the second part are predicted based on reconstructed pixels outside the current prediction unit and reconstructed pixels in the current prediction unit; or, the pixels in the second part are predicted based on reconstructed pixels in the current prediction unit, and the reconstructed pixels in the current prediction unit include the reconstructed pixels in the first part; The determination module is used to determine the residual value between the predicted value and the true value of the current prediction unit; The encoding module is used to encode the residual value to obtain a code stream of the current prediction unit.
5. An image decoder, characterized in that: include: A decoding unit, an inverse quantization unit, an inverse transform processing unit, a prediction processing unit, a reconstruction unit, and a filter unit; The image decoder is used to execute the image decoding method according to claim 1.
6. An image encoder, characterized in that include: A prediction processing unit, a residual calculation unit, a transform processing unit, a quantization unit, an encoding unit, an inverse quantization unit, an inverse transform processing unit, a reconstruction unit and a filter unit; the image encoder is used to execute the image encoding method as described in claim 2.
7. An electronic device, characterized in that: It comprises an image decoder, an image encoder, a communication interface and a memory; the image decoder is used to execute the image decoding method as claimed in claim 1, and the image encoder is used to execute the image encoding method as claimed in claim 2.
8. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in claim 1 or 2.
Citation Information
Patent Citations
Method and Apparatus for Image Compression without Residue Signaling
CN107040785A
Image reconstruction method and device
CN111327904A
