Coding method, decoding method, and electronic device

By embedding the difference prediction mode in the intra prediction mode and using preset mode indication information, the problem of poor prediction results caused by the consistency of different sub-block prediction modes in the coding unit is solved, and the accuracy and compression of intra prediction are improved. performance.

WO2024188145A1PCT designated stage expired Publication Date: 2024-09-19HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080496
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-03-07
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

In the existing technology, using the same intra prediction mode for different sub-blocks in a coding unit may result in poor prediction effects of some sub-blocks, affecting compression performance.

Method used

The difference prediction mode is nested in any intra prediction mode, and preset mode indication information is added to indicate the intra prediction mode of each sub-block, thereby improving the flexibility and prediction accuracy of the coding unit.

Benefits of technology

Through finer-grained prediction, the accuracy of intra prediction and compression performance are improved, and bit stream overhead is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080496_19092024_PF_FP_ABST
    Figure CN2024080496_19092024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a coding method, a decoding method, and an electronic device. The decoding method comprises: entropy-decoding from a bitstream preset mode indication information of the current sub-block and a first coding length corresponding to a predicted residual; on the basis of the first coding length, entropy-decoding a quantized predicted residual from the bitstream; on the basis of the preset mode indication information, determining whether to replace with a difference prediction mode an intra prediction mode corresponding to a CU to which the current sub-block belongs; if so, performing difference prediction on the current sub-block, so as to obtain a predicted value, on the basis of a preset constraint method for the first coding length, determining a first quantization parameter, and on the basis of the first quantization parameter, performing inverse quantization on the quantized predicted residual, so as to obtain the predicted residual; if not, on the basis of the intra prediction mode corresponding to the CU, performing intra prediction, so as to obtain a predicted value, and on the basis of a second quantization parameter corresponding to the CU, performing inverse quantization on the quantized predicted residual, so as to obtain the predicted residual; and adding the predicted residual to the predicted value, so as to obtain a reconstructed block. Thus, the accuracy of intra prediction can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Coding and decoding method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 13, 2023, with application number 202310280913.2 and application name “Encoding and Decoding Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of coding and decoding, and in particular to a coding and decoding method and electronic device. Background Art

[0003] The encoding process typically includes operations such as prediction, quantization, and entropy coding. Prediction is often used to remove redundant information from images or videos to facilitate compression; therefore, improving prediction accuracy is one way to improve compression performance.

[0004] Since a coding unit may contain sub-blocks with different content characteristics (such as different texture directions), if the same intra prediction mode is used for all sub-blocks in the coding unit, the prediction effect of some sub-blocks may be poor.

[0005] Summary of the Invention

[0006] In order to solve the above technical problems, the present application provides a coding and decoding method and electronic device. The method can improve the accuracy of intra-frame prediction and thus improve compression performance.

[0007] In a first aspect, an embodiment of the present application provides a decoding method, the method comprising: first, receiving a bit stream, entropy decoding the preset mode indication information of the current sub-block and the first encoding code length corresponding to the prediction residual of the current sub-block from the bit stream; then, based on the first encoding code length, entropy decoding the quantized prediction residual of the current sub-block from the bit stream; thereafter, for the current sub-block, judging whether to use the difference prediction mode to replace the intra prediction mode corresponding to the coding unit CU to which the current sub-block belongs based on the preset mode indication information of the current sub-block; if so, performing difference prediction on the current sub-block to obtain to the prediction value of the current sub-block; based on the preset constraint method for the first encoding code length, determine the first quantization parameter; dequantize the quantized prediction residual based on the first quantization parameter to obtain the prediction residual of the current sub-block; if not, perform intra-frame prediction based on the intra-frame prediction mode corresponding to the CU to obtain the prediction value of the current sub-block; dequantize the quantized prediction residual based on the second quantization parameter corresponding to the CU to obtain the prediction residual of the current sub-block; then, add the prediction residual of the current sub-block to the prediction value of the current sub-block to obtain a reconstructed block of the current sub-block.

[0008] Specifically, a differential prediction mode (also known as a DP prediction mode) is nested within any intra-frame prediction mode (except the differential prediction mode), and preset mode indication information is added to indicate the intra-frame prediction mode for each sub-block. This increases the flexibility of coding unit prediction, enables finer-grained prediction, and improves prediction accuracy, thereby improving compression performance. Furthermore, DP prediction is based on the original values ​​of the pixels within the sub-block (pixels can also be called samples). The correlation between pixels within the same sub-block is higher than the correlation between pixels in different sub-blocks. This can further improve prediction accuracy and compression performance.

[0009] Exemplarily, the preset mode indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode.

[0010] Exemplarily, the reconstructed blocks of multiple sub-blocks may be concatenated into a reconstructed block of a CU.

[0011] Exemplarily, the preset mode indication information may be a syntax element newly added in this application.

[0012] Exemplarily, the second quantization parameter corresponding to the current CU may be determined based on complexity information of the current CU and the number of coded bits of the previous CU.

[0013] For example, the number of coded bits of the previous CU can be obtained by entropy decoding the bitstream of the previous CU. The complexity information of the current CU can be obtained by entropy decoding the bitstream of the current CU.

[0014] Exemplarily, the complexity information may be a complexity level. Exemplarily, the complexity level of the current CU may be determined based on the texture complexity level of the current CU and the IBC (Intrablock Copy) complexity level of the current CU; for example, the minimum value of the texture complexity level of the current CU and the IBC complexity level of the current CU may be determined as the complexity level of the current CU.

[0015] Exemplarily, performing DP prediction on the current sub-block to obtain a prediction value of the current sub-block may include: using a difference prediction value obtained based on entropy decoding from a bitstream as a prediction value of the current sub-block; wherein the difference prediction value is determined by the encoder for the current sub-block based on DP prediction and written into the bitstream.

[0016] According to a first aspect, a first quantization parameter is determined based on a preset constraint mode for a first encoding code length, including: when the preset constraint mode is the first constraint mode, the first quantization parameter is determined based on a target encoding rate of the current sub-block obtained from entropy decoding of the bitstream, the bit depth of the image to which the current sub-block belongs, and a second encoding code length corresponding to a predicted value of the current sub-block; when the preset constraint mode is the second constraint mode, the second quantization parameter is used as the first quantization parameter; when the preset constraint mode is the third constraint mode, a truncation range of the prediction residual of the current sub-block is determined and the first quantization parameter is determined based on the truncation range. In this way, the constraint mode for the first encoding code length can be flexibly set to meet the needs of various scenarios.

[0017] According to the first aspect, or any implementation method of the first aspect above, the preset mode indication information includes: first indication information and second indication information; for the current sub-block, based on the preset mode indication information of the current sub-block, determine whether to use the difference prediction mode to replace the intra-frame prediction mode corresponding to the coding unit CU to which the current sub-block belongs, including: based on the first indication information, determine whether the CU includes a sub-block whose prediction mode is the difference prediction mode; when it is determined that the CU includes a sub-block whose prediction mode is the difference prediction mode, for the current sub-block, determine whether to use the difference prediction mode to replace the intra-frame prediction mode corresponding to the CU based on the second indication information.

[0018] In this way, when all sub-blocks contained in the entire CU are intra-predicted based on the intra-prediction mode corresponding to the CU, only the first indication information of the CU needs to be written into the bitstream; that is, compared with the preset mode indication information only including the second indication information, when the preset mode indication information includes the first indication information and the second indication information, the number of bits occupied by the preset mode indication information in the bitstream can be reduced, thereby reducing the bitstream overhead.

[0019] According to the first aspect, or any implementation of the first aspect above, the other intra prediction mode is an intra block copy (IBC) mode, and the preset mode indication information is a block vector BV. In this way, no additional information needs to be added to the bitstream, thereby reducing bitrate overhead.

[0020] In a second aspect, an embodiment of the present application provides a coding method, which includes: first, obtaining a coding unit CU and dividing the CU into multiple sub-blocks; then, for the current sub-block, determining whether to use a difference prediction mode to replace the intra-frame prediction mode corresponding to the CU; if so, setting the preset mode indication information of the current sub-block to the first preset information, and performing difference prediction to determine the prediction value of the current sub-block; determining the prediction value of the current sub-block and the prediction residual of the current sub-block; determining a first quantization parameter based on a preset constraint method of a first encoding code length, the first encoding code length corresponding to the prediction residual of the current sub-block; and quantize the prediction residual of the block; perform entropy encoding on the quantized prediction residual of the current sub-block to obtain a bit stream of the current sub-block; if not, set the preset mode indication information of the current sub-block to the second preset information, and perform intra-frame prediction corresponding to the CU to determine the prediction value of the current sub-block; determine the prediction value of the current sub-block and the prediction residual of the current sub-block; quantize the prediction residual of the current sub-block based on the second quantization parameter corresponding to the CU; then, perform entropy encoding on the quantized prediction residual of the current sub-block to obtain a bit stream of the current sub-block; and then, write the preset mode indication information and the first encoding code length corresponding to the prediction residual of the current sub-block into the bit stream.

[0021] Exemplarily, setting the preset mode indication information of the current sub-block to the first preset information may include:

[0022] In one possible manner, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the first preset information includes a first preset value and a second preset value; setting the preset mode indication information of the current sub-block to the first preset information includes: setting the second indication information to the first preset information; wherein the second indication information set to the first preset value is used to indicate that the prediction mode of the current sub-block is the DP prediction mode; setting the first indication information to the second preset value; wherein the first indication information set to the second preset value is used to indicate that the CU includes a sub-block whose prediction mode is the DP prediction mode.

[0023] In one possible manner, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the first preset information includes a first preset value and a second preset value; setting the preset mode indication information of the current sub-block to the first preset information includes: setting the second indication information to the first preset value; wherein the second indication information set to the first preset value is used to indicate that the prediction mode of the current sub-block is the DP prediction mode; determining the irrelevance of pixels in the current sub-block; when the second indication information is the first preset value and the irrelevance of pixels in the current sub-block is equal to the preset correlation value, setting the first indication information to the second preset value; wherein the first indication information set to the second preset value is used to indicate that the CU includes a sub-block whose prediction mode is the DP prediction mode.

[0024] In one possible manner, the preset mode indication information only includes the second indication information; thus, setting the preset mode indication information of the current sub-block to the first preset information may include: setting the second indication information of the current sub-block to the first preset value.

[0025] Exemplarily, setting the preset mode indication information of the current sub-block to the second preset information may include:

[0026] In one possible manner, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the second preset information includes a third preset value and a fourth preset value; setting the preset mode indication information of the current sub-block to the second preset information includes: setting the second indication information to the third preset value; wherein the second indication information set to the third preset value is used to indicate that the prediction mode of the current sub-block is the intra-frame prediction mode corresponding to the CU; setting the first indication information to the fourth preset value; wherein the first indication information set to the fourth preset value is used to indicate that the CU does not include a sub-block whose prediction mode is the DP prediction mode.

[0027] In one possible manner, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the second preset information includes a third preset value and a fourth preset value; setting the preset mode indication information of the current sub-block to the second preset information includes: setting the second indication information to the third preset value; wherein the second indication information set to the third preset value is used to indicate that the prediction mode of the current sub-block is the intra-frame prediction mode corresponding to the CU; determining the irrelevance of pixels in the current sub-block; when the second indication information is the second preset value, and / or the irrelevance of pixels in the current sub-block does not meet the irrelevance condition, setting the first indication information to the fourth preset value; wherein the first indication information set to the fourth preset value is used to indicate that the CU does not include a sub-block whose prediction mode is the DP prediction mode.

[0028] In one possible manner, the preset mode indication information only includes the second indication information; thus, setting the preset mode indication information of the current sub-block to the second preset information may include: setting the second indication information of the current sub-block to a third preset value.

[0029] The first preset value, the second preset value, the third preset value, and the fourth preset value can be set as needed, and this application does not impose any restrictions thereon. It should be noted that the third preset value is different from the first preset value; for example, if the first preset value is 1, the third preset value can be 0. The fourth preset value is different from the second preset value; for example, if the second preset value is 1, the fourth preset value can be 0.

[0030] Among them, when the sub-blocks contained in the entire CU are intra-frame predicted based on the intra-frame prediction mode corresponding to the CU, if the preset mode indication information only includes the second indication information, it is necessary to write the second indication information of each sub-block in the bitstream; and if the preset mode indication information includes the first indication information and the second indication information, it is only necessary to write the first indication information of the CU in the bitstream; that is, compared with the preset mode indication information being the first indication information, when the preset mode indication information includes the first indication information and the second indication information, the number of bits occupied by the preset mode indication information in the bitstream can be reduced, thereby reducing the bitstream overhead.

[0031] According to a second aspect, when determining to use a differential prediction mode instead of an intra prediction mode corresponding to a CU for a current sub-block, the method further includes: truncating a prediction residual of the current sub-block; and quantizing the prediction residual of the current sub-block based on a first quantization parameter, including quantizing the truncated prediction residual of the current sub-block based on the first quantization parameter. In this way, the number of bits occupied by the prediction reference of the current sub-block in the bitstream can be reduced, thereby reducing bitrate overhead.

[0032] According to the second aspect, or any implementation method of the above second aspect, the prediction residual of the current sub-block is truncated, including: determining a truncation range based on the target encoding rate of the current sub-block, the bit depth of the image where the current sub-block is located, and the second encoding code length corresponding to the prediction value of the current sub-block; based on the truncation range, truncating the prediction residual of the current sub-block.

[0033] According to the second aspect, or any implementation method of the above second aspect, a first quantization parameter is determined based on a preset constraint method of the first encoding code length, including: when the preset constraint method is the first constraint method, the first quantization parameter is determined based on the target encoding rate of the current sub-block, the bit depth of the image to which the current sub-block belongs, and the second encoding code length corresponding to the predicted value of the current sub-block; when the preset constraint method is the second constraint method, the second quantization parameter is used as the first quantization parameter; when the preset constraint method is the third constraint method, the first quantization parameter is determined based on the truncation range of the prediction residual of the current sub-block.

[0034] According to the second aspect, or any implementation of the second aspect above, the method further includes: writing the target encoding rate of the current sub-block, the bit depth of the image where the current sub-block is located, and the second encoding code length corresponding to the predicted value of the current sub-block into the bit stream of the current sub-block; so that the decoder can determine the first quantization parameter.

[0035] According to the second aspect, or any implementation method of the above second aspect, for the current sub-block, it is determined whether to use the difference prediction mode to replace the intra-frame prediction mode corresponding to the CU, including: determining the flatness of the current sub-block; and judging whether to use the difference prediction mode to replace the intra-frame prediction mode corresponding to the CU based on the flatness of the current sub-block.

[0036] According to the second aspect, or any implementation of the second aspect, determining the flatness of the current sub-block includes: determining the flatness of the current sub-block based on original values ​​of pixels in the current sub-block.

[0037] According to the second aspect, or any implementation of the second aspect above, the other intra prediction mode is a block copy intra prediction IBC mode, and the preset mode indication information is a block vector BV;

[0038] Among them, the BV set to the first preset information is used to indicate that the prediction mode of the current sub-block is the difference prediction mode; the BV set to the second preset information is used to indicate that the prediction mode of the current sub-block is the IBC mode, and the second preset information is the vector absolute value offset value between the current sub-block and the reference block, and the reference block is determined based on the IBC prediction.

[0039] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0040] In a third aspect, the present application provides a decoding method, which includes: receiving a bit stream; entropy decoding a block vector BV of a current sub-block from the bit stream, and the prediction mode of the coding unit CU to which the current sub-block belongs is a block copy intra-frame prediction IBC mode; for the current sub-block, judging whether to use a difference prediction mode instead of the IBC mode based on the BV of the current sub-block; if so, using the difference prediction value entropy decoded from the bit stream as the prediction value of the current sub-block; if not, performing IBC prediction on the current sub-block based on the BV of the current sub-block to obtain a prediction value of the current sub-block; and reconstructing the current sub-block based on the prediction value of the current sub-block to obtain a reconstructed block of the current sub-block.

[0041] That is to say, BV can not only be the vector absolute value offset between the sub-block and the corresponding reference block, but can also be used to indicate that the prediction mode is other intra-frame prediction modes; since the block vector BV is an existing syntax element in the bitstream for the CU (Coding Unit) whose prediction mode is IBC mode, this application nests the DP prediction mode in the IBC mode without increasing the bit rate or the search area for IBC prediction. Secondly, it can also increase the flexibility of coding unit prediction, achieve more fine-grained prediction, improve prediction accuracy, and thus improve compression performance.

[0042] In addition, DP prediction is based on the original values ​​of the pixels within the sub-block (pixels can also be called samples). The correlation between pixels within the same sub-block is higher than the correlation between pixels in different sub-blocks; thus, the accuracy of the prediction can be further improved, and the compression performance can be improved.

[0043] In a fourth aspect, the present application provides a coding method, which includes: obtaining a coding unit CU and dividing the CU into multiple sub-blocks, the prediction mode of the CU is a block copy intra-frame prediction IBC mode; for the current sub-block, determining whether to use a difference prediction mode instead of the IBC mode; if so, setting the BV of the current sub-block to the first preset information, and setting the prediction value of the current sub-block to the first prediction value; wherein the BV set to the first preset information is used to indicate that the prediction mode of the current sub-block is a difference prediction mode, and the first prediction value is a difference prediction value determined based on the difference prediction; if not, setting the current sub-block to the first preset information. The block vector BV of the block is set to the second preset information, and the prediction value of the current sub-block is set to the second prediction value; wherein the BV set to the second preset information is used to indicate that the prediction mode of the current sub-block is the IBC mode, the second preset information is the vector absolute value offset value between the current sub-block and the reference block, and the reference block and the second prediction value are determined based on the IBC prediction; the current sub-block is encoded based on the prediction value of the current sub-block to obtain a bit stream of the current sub-block; the BV of the current sub-block is written into the bit stream of the current sub-block, and when it is determined to adopt the difference prediction mode instead of the IBC mode, the difference prediction value is written into the bit stream.

[0044] According to the fourth aspect, for the current sub-block, determining whether to use the DP prediction mode instead of the IBC mode includes: determining the flatness of the current sub-block; for the current sub-block, determining whether to use the DP prediction mode instead of the IBC mode based on the flatness of the current sub-block and second preset information.

[0045] Exemplarily, for the current sub-block, whether to use the DP prediction mode instead of the IBC mode is determined based on the flatness of the current sub-block and the second preset information, including: determining whether the second preset information is greater than a threshold and whether the flatness of the current sub-block is equal to 0; if the second preset information is greater than the threshold and the flatness of the current sub-block is equal to 0, then determining to use the DP prediction mode instead of the IBC mode for the current sub-block; if the second preset information is less than or equal to the threshold, and / or the flatness of the current sub-block is not equal to 0, then determining not to use the DP prediction mode instead of the IBC mode for the current sub-block.

[0046] According to the fourth aspect, or any implementation of the fourth aspect, determining the flatness of the current sub-block includes: determining the flatness of the current sub-block based on original values ​​of pixels in the current sub-block.

[0047] The fourth aspect and any implementation of the fourth aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0048] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the decoding method in the first aspect or any possible implementation of the first aspect, and / or execute the decoding method in the third aspect or any possible implementation of the third aspect.

[0049] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0050] The fifth aspect and any implementation of the fifth aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0051] In a sixth aspect, an embodiment of the present application provides an electronic device comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the decoding method in the second aspect or any possible implementation of the second aspect, and / or, execute the encoding method in the fourth aspect or any possible implementation of the fourth aspect.

[0052] The sixth aspect and any implementation of the sixth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0053] The sixth aspect and any implementation of the sixth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can be referred to the technical effects corresponding to the fourth aspect and any implementation of the fourth aspect, and will not be repeated here.

[0054] In the seventh aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the decoding method in the first aspect or any possible implementation of the first aspect, and / or executes the decoding method in the third aspect or any possible implementation of the third aspect.

[0055] The seventh aspect and any implementation of the seventh aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the seventh aspect and any implementation of the seventh aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0056] The seventh aspect and any implementation of the seventh aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the seventh aspect and any implementation of the seventh aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0057] In an eighth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the decoding method in the second aspect or any possible implementation of the second aspect, and / or executes the encoding method in the fourth aspect or any possible implementation of the fourth aspect.

[0058] The eighth aspect and any implementation of the eighth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the eighth aspect and any implementation of the eighth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0059] The eighth aspect and any implementation of the eighth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the eighth aspect and any implementation of the eighth aspect can be referred to the technical effects corresponding to the fourth aspect and any implementation of the fourth aspect, and will not be repeated here.

[0060] In the ninth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the decoding method in the first aspect or any possible implementation of the first aspect, and / or executes the decoding method in the third aspect or any possible implementation of the third aspect.

[0061] The ninth aspect and any implementation of the ninth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the ninth aspect and any implementation of the ninth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0062] The ninth aspect and any implementation of the ninth aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the ninth aspect and any implementation of the ninth aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0063] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the decoding method in the second aspect or any possible implementation of the second aspect, and / or executes the encoding method in the fourth aspect or any possible implementation of the fourth aspect.

[0064] The tenth aspect and any implementation of the tenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the tenth aspect and any implementation of the tenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0065] The tenth aspect and any implementation of the tenth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the tenth aspect and any implementation of the tenth aspect can be referred to the technical effects corresponding to the fourth aspect and any implementation of the fourth aspect, and will not be repeated here.

[0066] In the eleventh aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the decoding method in the first aspect or any possible implementation of the first aspect, and / or executes the decoding method in the third aspect or any possible implementation of the third aspect.

[0067] The eleventh aspect and any implementation of the eleventh aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the eleventh aspect and any implementation of the eleventh aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here.

[0068] The eleventh aspect and any implementation of the eleventh aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the eleventh aspect and any implementation of the eleventh aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.

[0069] In the twelfth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the decoding method in the second aspect or any possible implementation of the second aspect, and / or executes the encoding method in the fourth aspect or any possible implementation of the fourth aspect.

[0070] The twelfth aspect and any implementation of the twelfth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the twelfth aspect and any implementation of the twelfth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0071] The twelfth aspect and any implementation of the twelfth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the twelfth aspect and any implementation of the twelfth aspect can be referred to the technical effects corresponding to the above-mentioned fourth aspect and any implementation of the fourth aspect, and will not be repeated here.

[0072] In aspect 13, an embodiment of the present application provides a device for storing a bitstream, the device comprising: a receiver and at least one storage medium, the receiver being used to receive the bitstream; the at least one storage medium being used to store the bitstream; the bitstream being generated according to the second aspect and any one of the implementation methods of the second aspect, and / or generated according to the fourth aspect and any one of the implementation methods of the fourth aspect.

[0073] The thirteenth aspect and any implementation of the thirteenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the thirteenth aspect and any implementation of the thirteenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0074] The thirteenth aspect and any implementation of the thirteenth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the thirteenth aspect and any implementation of the thirteenth aspect can be referred to the technical effects corresponding to the above-mentioned fourth aspect and any implementation of the fourth aspect, and will not be repeated here.

[0075] In the fourteenth aspect, an embodiment of the present application provides a device for transmitting a bit stream, the device comprising: a transmitter and at least one storage medium, the at least one storage medium being used to store a bit stream, the bit stream being generated according to the second aspect and any one of the implementation methods of the second aspect, and / or generated according to the fourth aspect and any one of the implementation methods of the fourth aspect; the transmitter being used to obtain the bit stream from the storage medium and send the bit stream to an end-side device through a transmission medium.

[0076] The fourteenth aspect and any implementation of the fourteenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fourteenth aspect and any implementation of the fourteenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0077] The fourteenth aspect and any implementation of the fourteenth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the fourteenth aspect and any implementation of the fourteenth aspect can be referred to the technical effects corresponding to the above-mentioned fourth aspect and any implementation of the fourth aspect, and will not be repeated here.

[0078] In aspect 15, an embodiment of the present application provides a system for distributing bitstreams, the system comprising: at least one storage medium for storing at least one bitstream, the at least one bitstream being generated according to the second aspect and any one of the implementation methods of the second aspect, and / or generated according to the fourth aspect and any one of the implementation methods of the fourth aspect, a streaming media device for obtaining a target bitstream from the at least one storage medium and sending the target bitstream to an end-side device, wherein the streaming media device comprises a content server or a content distribution server.

[0079] The fifteenth aspect and any implementation of the fifteenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fifteenth aspect and any implementation of the fifteenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0080] The fifteenth aspect and any implementation of the fifteenth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the fifteenth aspect and any implementation of the fifteenth aspect can be referred to the technical effects corresponding to the fourth aspect and any implementation of the fourth aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] FIG1a is a schematic diagram of an exemplary application scenario;

[0082] FIG1b is a schematic diagram showing the structure of an encoder and a decoder;

[0083] FIG2a is a schematic diagram of an exemplary encoding process;

[0084] FIG2 b is a schematic diagram illustrating an exemplary encoding process;

[0085] FIG3a is a schematic diagram illustrating an exemplary decoding process;

[0086] FIG3 b is a schematic diagram illustrating an exemplary decoding process;

[0087] FIG4a is a schematic diagram illustrating an exemplary encoding process;

[0088] FIG4 b is a schematic diagram illustrating an exemplary encoding process;

[0089] FIG4 c is a schematic diagram showing an exemplary search area for IBC prediction;

[0090] FIG5a is a schematic diagram illustrating an exemplary decoding process;

[0091] FIG5 b is a schematic diagram illustrating an exemplary decoding process;

[0092] FIG6 is a schematic structural diagram of an exemplary device. DETAILED DESCRIPTION

[0093] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0094] The term "and / or" in this article is merely a description of the association relationship between 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.

[0095] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0096] In the embodiments of this 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 this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0097] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0098] The encoding and decoding method of the present application can be applied to various video service scenarios, such as video conferencing scenarios, video call scenarios, online education scenarios, remote tutoring scenarios, low-latency live broadcast scenarios, cloud gaming scenarios, wireless screen projection scenarios, and wireless extended screen scenarios, etc. The embodiments of the present application do not limit this.

[0099] FIG1a is a schematic diagram showing an exemplary application scenario.

[0100] Referring to Figure 1a, illustratively, the first device may include a video acquisition module, an encoding module (or encoder), and a sending module. Exemplarily, the encoding module may be a software module or a hardware module, which is not limited in this embodiment of the present application. It should be understood that Figure 1a is only an example of the first device. In other embodiments of the present application, the first device may have more modules than those shown in Figure 1a, which is not limited in this embodiment of the present application.

[0101] Referring to Figure 1a, illustratively, the second device may include a display module, a decoding module (or decoder), and a receiving module. Exemplarily, the decoding module may be a software module or a hardware module, which is not limited in this embodiment of the present application. It should be understood that Figure 1a is only an example of a second device, and the second device in other embodiments of the present application may have more modules than shown in Figure 1a, which is not limited in this embodiment of the present application.

[0102] Continuing with FIG1a , illustratively, after the video capture module of the first device captures raw video data, the process of sending the captured raw video data to the second device for display is as follows: the video capture module can output the captured raw video data to the encoding module; then, the encoding module can encode the raw video data to obtain a bitstream (wherein the bitstream can also be referred to as a bitstream or codestream), and output the encoded bitstream to the sending module; then, the sending module can send the bitstream to the second device. Subsequently, the receiving module of the second device can receive the bitstream; then, the bitstream can be output to the decoding module; then, the decoding module can decode the bitstream to obtain reconstructed video data, and output the reconstructed video data to the display module, which then displays the reconstructed video data.

[0103] Exemplarily, the first device includes but is not limited to: a server, a PC (Personal Computer), a laptop, a tablet computer, a mobile phone, and a watch.

[0104] Exemplarily, the second device includes but is not limited to: a PC, a laptop, a tablet computer, a mobile phone, and a watch.

[0105] For example, in a video conferencing scenario, the first device may be a PC or a laptop, and the second device may be a PC or a laptop.

[0106] For example, in an online education scenario, the first device may be a PC or a laptop, and the second device may be a tablet.

[0107] For example, in a cloud gaming scenario, the first device may be a server, and the second device may be a tablet, a PC, a laptop, or a mobile phone.

[0108] It should be understood that the present application can also be applied to scenarios for image encoding and decoding, and the present application does not limit this.

[0109] FIG1b is a schematic diagram showing the structures of an encoder and a decoder.

[0110] Referring to FIG1b (1), the encoder may include a prediction module, a quantization module, and an entropy coding module. The prediction module may be used for coding prediction (e.g., inter-frame prediction, intra-frame prediction); the quantization module may perform quantization based on a quantization parameter; and the entropy coding module may be used for entropy coding (e.g., arithmetic coding, Huffman coding, etc.). Exemplarily, after the image to be coded is input to the encoder, the encoder sequentially inputs the image to be coded into the prediction module, the quantization module, and the entropy coding module for processing, and outputs a bit stream.

[0111] It should be understood that the encoder of the present application may include more modules than those shown in FIG1b(1). For example, the encoder may also include a bit rate control module (which adjusts the output bit rate by changing the encoding quantization parameters, encoding mode, etc.), etc. The present application does not impose any restrictions on this.

[0112] Referring to Figure 1b(2), the decoder may include a prediction module, an inverse quantization module, and an entropy decoding module. The entropy decoding module is used for entropy decoding; the inverse quantization module is used for inverse quantization based on quantization parameters; and the prediction module is used for decoding prediction. After the bitstream is input to the decoder, it is processed sequentially by the entropy decoding module, the inverse quantization module, and the prediction module to output a reconstructed image.

[0113] It should be understood that the decoder of the present application may include more modules than those shown in FIG1b(2). For example, the decoder may also include a rate control module (for determining quantization parameters), etc. This application does not impose any restrictions on this.

[0114] The following describes the encoding and decoding process (i.e., the intra-frame encoding process and the intra-frame decoding process) by taking the prediction module in FIG. 1 b ( 2 ) for intra-frame prediction as an example.

[0115] In order to solve the problem that the existing technology uses the same intra-frame prediction mode to predict different sub-blocks in the same coding unit, resulting in poor prediction results for some sub-blocks, this application proposes a coding and decoding method for coding units whose prediction mode is any intra-frame prediction mode. One of its concepts is to nest the difference prediction mode (also known as the DP prediction mode) in any intra-frame prediction mode (except the difference prediction mode), and add preset mode indication information to indicate the intra-frame prediction mode of each sub-block; in this way, the flexibility of coding unit prediction can be increased, more fine-grained prediction can be achieved, and the accuracy of prediction can be improved, thereby improving compression performance. In addition, DP prediction is based on the original value of the pixel points (pixel points can also be called samples) within the sub-block. The correlation between the pixels within the same sub-block is higher than the correlation between the pixels of different sub-blocks; thus, the accuracy of prediction can be further improved, and the compression performance can be improved.

[0116] The encoding and decoding method of the present application is described below by taking encoding and decoding an image as an example.

[0117] FIG2 a is a schematic diagram showing an exemplary encoding process.

[0118] Referring to Figure 2a, illustratively, after an image to be encoded is input into an encoder, the encoder may divide the image to be encoded into multiple coding units (CUs), such as CU1, CU2, etc. Subsequently, prediction, quantization, and entropy coding operations are sequentially performed on CU1 to obtain a bitstream for CU1; prediction, quantization, and entropy coding operations are sequentially performed on CU2 to obtain a bitstream for CU2; and so on. After encoding all CUs of the image to be encoded, the bitstreams of all CUs are concatenated to obtain the bitstream for the image to be encoded.

[0119] For example, the encoder can divide each CU into multiple sub-blocks, and then perform prediction, quantization, and entropy coding operations on each sub-block in sequence to obtain the bit stream of each sub-block; after completing the encoding of all sub-blocks in the CU, the bit streams of the sub-blocks are concatenated to obtain the bit stream of the CU.

[0120] In the process of encoding each sub-block in a CU, when the prediction mode of the sub-block is the DP prediction mode, a first quantization parameter can be determined based on the constraint of the encoding code length (the encoding code length corresponding to the prediction residual of the sub-block); then quantization is performed based on the first quantization parameter. When the prediction mode of the sub-block is the intra-frame prediction mode corresponding to the CU, the complexity information (such as the complexity level) of the current CU can be first determined based on the image content of the current CU. Then, based on the number of coded bits of the previous CU and the complexity level of the current CU, rate control is performed (i.e., based on the analysis of the number of coded bits of the previous CU and the complexity level of the current CU, the output bit rate is adjusted by changing the encoding quantization parameter, encoding mode, etc.) to obtain a second quantization parameter. Thereafter, quantization can be performed based on the second quantization parameter determined by rate control. In this case, the encoder can also write the complexity information of the CU into the CU bitstream so that the decoder can obtain the complexity information of the CU from the bitstream and determine the second quantization parameter required for inverse quantization.

[0121] During the encoding process for CU1, for a sub-block whose prediction mode is the intra-frame prediction mode corresponding to CU1, the second quantization parameter is a preset quantization parameter.

[0122] The following takes a CU as an example to illustrate the encoding process.

[0123] FIG2 b is a schematic diagram illustrating an exemplary encoding process.

[0124] S201 , obtaining a coding unit CU and dividing the CU into multiple sub-blocks.

[0125] Exemplarily, the intra-frame prediction mode corresponding to the CU obtained in this application can be any intra-frame prediction mode other than the DP prediction mode; for example, the intra-frame prediction mode (Intrablock copy, IBC) mode, the vertical prediction mode, the angular prediction mode and the direct current (DC) prediction mode, etc., which are not limited in this application.

[0126] For example, after the encoder obtains a CU, it can divide the CU into multiple sub-blocks. This application does not limit the number of sub-blocks or the size of the sub-blocks. For example, the decoder can divide the CU into multiple sub-blocks of the same size.

[0127] The following description is made by taking a sub-block as an example.

[0128] S202 : For the current sub-block, determine whether to use the difference prediction mode to replace the intra prediction mode corresponding to the CU.

[0129] Exemplarily, first, the flatness of the current sub-block may be determined; then, based on the flatness of the current sub-block, it may be determined whether to use the DP prediction mode to replace the intra prediction mode corresponding to the CU.

[0130] Exemplarily, the flatness of the current sub-block may be determined based on original values ​​of pixels in the current sub-block.

[0131] In one possible approach, the process of determining the flatness of the current sub-block may be as follows: first, the difference between the original value of each pixel in the current sub-block and the average of the original values ​​of all pixels in the current sub-block may be calculated to obtain a plurality of difference values; then, the absolute values ​​of the plurality of difference values ​​may be added together to obtain the flatness of the current sub-block.

[0132] For example, a flatness threshold TH1 can be pre-set; where TH1 = X0 * (1 << (BitDepth – 8)) × the number of pixels in the sub-block, BitDepth is the bit depth of the image in which the current sub-block is located, and X0 represents the difference between the original values ​​of two adjacent pixels. X0 can be set as required, for example, X0 = 2, and this application does not impose any restrictions on this.

[0133] Next, the flatness of the current sub-block can be compared with the flatness threshold TH1. When the flatness of the current sub-block is less than the flatness threshold TH1, for the current sub-block, it is determined not to use the DP prediction mode to replace the intra-frame prediction mode corresponding to the CU; when the flatness of the current sub-block is greater than or equal to the flatness threshold TH1, for the current sub-block, it is determined to use the DP prediction mode to replace the intra-frame prediction mode corresponding to the CU.

[0134] For example, if it is determined that the DP prediction mode is used to replace the intra-frame prediction mode corresponding to the CU for the current sub-block, the following S203 to S208 can be executed: If it is determined that the DP prediction mode is not used to replace the intra-frame prediction mode corresponding to the CU for the current sub-block, the following S209 to S213 can be executed.

[0135] S203: Set the preset mode indication information of the current sub-block as first preset information.

[0136] Exemplarily, when it is determined to adopt the DP prediction mode to replace the intra prediction mode corresponding to the CU, the preset mode indication information of the current sub-block may be set to the first preset information.

[0137] The preset mode indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode. The preset mode indication information set as the first preset information is used to indicate that the prediction mode of the sub-block is the DP prediction mode.

[0138] In one possible embodiment, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the first preset information includes a first preset value and a second preset value; setting the preset mode indication information of the current sub-block to the first preset information may include: setting the second indication information to the first preset value; wherein the second indication information set to the first preset value is used to indicate that the prediction mode of the current sub-block is the DP prediction mode; setting the first indication information to the second preset value; wherein the first indication information set to the second preset value is used to indicate that the CU includes a sub-block whose prediction mode is the DP prediction mode.

[0139] Among them, the first preset value and the second preset value can be set according to needs, and this application does not limit this; for example, the first preset value is 1, and the second preset value is 1.

[0140] In one possible manner, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the first preset information includes a first preset value and a second preset value; setting the preset mode indication information of the current sub-block to the first preset information includes: setting the second indication information to the first preset value; wherein the second indication information set to the first preset value is used to indicate that the prediction mode of the current sub-block is the DP prediction mode; determining the irrelevance of pixels in the current sub-block; when the second indication information is the first preset value and the irrelevance of pixels in the current sub-block is equal to the preset correlation value, setting the first indication information to the second preset value; wherein the first indication information set to the second preset value is used to indicate that the CU includes a sub-block whose prediction mode is the DP prediction mode.

[0141] In one possible approach, the process of calculating the uncorrelation of pixels in the current sub-block may be as follows:

[0142] First, the vertical correlation, RelevanV, of the current sub-block is calculated. Specifically, the difference between the original value of each pixel in the current sub-block and the reconstructed value of the corresponding first reference pixel is calculated to obtain multiple difference values. The sum of the absolute values ​​of the multiple difference values ​​is used as the vertical correlation, RelevanV, of the current sub-block. The first reference pixel may be the pixel at the same abscissa (also called horizontal coordinate) in the previous row of the current sub-block in the CU to which the current sub-block belongs.

[0143] Next, the horizontal correlation (RelevanH) of the current sub-block is calculated. Specifically, the difference between the original value of each pixel in the current sub-block and the original value of the corresponding second reference pixel is calculated to obtain multiple difference values. The sum of the absolute values ​​of the multiple difference values ​​is used as the horizontal correlation (RelevanH) of the current sub-block. The second reference pixel may be the pixel at the same ordinate (also called vertical coordinate) to the left of the current sub-block in the current sub-block CU.

[0144] Then, the irrelevance CompSbRelevant of the pixels in the current sub-block is determined based on the vertical relevance RelevanV and the horizontal relevance RelevanH of the current sub-block. In one possible approach, the minimum value of the vertical relevance RelevanV and the horizontal relevance RelevanH of the current sub-block can be selected as the irrelevance CompSbRelevant of the pixels in the current sub-block.

[0145] For example, if the uncorrelation CompSbRelevant of the pixels in the current sub-block is less than the correlation threshold TH2, the uncorrelation CompSbRelevant of the pixels in the current sub-block is set to 0; where TH2 = X1 × (1 << (BitDepth – 8)) × the number of pixels in the sub-block; X1 is used to represent the difference between the original values ​​of two adjacent pixels and can be set as required, for example, X1 = 4; this application does not impose any restrictions on this. Wherein, "0" can also be replaced by other values.

[0146] If the irrelevance CompSbRelevant of the pixels in the current sub-block is greater than the irrelevance threshold TH3, the irrelevance CompSbRelevant of the pixels in the current sub-block can be set to 2 (i.e., the preset relevance value); where TH3 = X2 × (1 << (BitDepth – 8)) × the number of pixels in the sub-block; X2 is used to represent the difference between the original values ​​of two adjacent pixels and can be set as required, for example, X2 = 12; this is not limited in this application. Wherein, "2" can also be replaced by other values.

[0147] Otherwise, the irrelevance degree CompSbRelevant of the pixels in the current sub-block is set to 1. Here, "1" may also be replaced by other values.

[0148] In one possible manner, the preset mode indication information only includes the second indication information; thus, setting the preset mode indication information of the current sub-block to the first preset information may include: setting the second indication information of the current sub-block to the first preset value.

[0149] S204: Perform DP prediction to determine a prediction value of the current sub-block.

[0150] Exemplarily, DP prediction may be performed on the current sub-block to determine a prediction value of the current sub-block.

[0151] In one possible approach, the process of performing DP prediction on the current sub-block to determine the predicted value of the current sub-block may include: calculating the mean of the original values ​​of all pixels in the current sub-block, and using the mean as the predicted value of the current sub-block (also referred to as the differential predicted value).

[0152] In one possible approach, performing DP prediction on the current sub-block to determine the predicted value of the current sub-block may include taking the original value of any pixel in the current sub-block as the predicted value of the current sub-block (also referred to as a differential predicted value).

[0153] It should be understood that the present application does not limit the manner in which the DP prediction determines the prediction value.

[0154] It should be noted that this application does not limit the execution order of S203 and S204.

[0155] S205: Determine a prediction residual between the prediction value of the current sub-block and the current sub-block.

[0156] Exemplarily, the prediction residual of the current sub-block may be obtained by calculating the difference between the predicted value of the current sub-block and the current sub-block.

[0157] S206: Determine a first quantization parameter based on a preset constraint of the first encoding code length.

[0158] The first encoding code length corresponds to the prediction residual of the current sub-block.

[0159] Exemplarily, the first encoding code length may be constrained so as to adjust the reconstruction quality and code rate in real time according to requirements and channel status.

[0160] In one possible approach, the preset constraint for the first encoding code length may be by adjusting a quantization parameter constraint (which may be referred to as a first constraint approach). In this case, the first quantization parameter may be determined based on a target encoding rate for the current sub-block, a bit depth of an image in which the current sub-block resides, and a second encoding code length (i.e., an encoding code length corresponding to a predicted value of the current sub-block).

[0161] For example, the target encoding rate of the current sub-block is 8, the bit depth of the image where the current sub-block is located is 8, and the second encoding code length is 8; then the first quantization parameter can be set to 3.

[0162] In one possible approach, when the second encoding code length is equal to the bit depth of the image containing the current sub-block, only the bit depth of the image containing the current sub-block and the target encoding rate of the current sub-block can be written into the bitstream. In this way, during the decoding process, the bit depth of the image containing the current sub-block can be reused as the second encoding code length, facilitating the decoding end's determination of the first quantization parameter.

[0163] In one possible approach, when the second encoding code length is not equal to the bit depth of the image where the current sub-block is located, the second encoding code length, the bit depth of the image where the current sub-block is located, and the target encoding rate of the current sub-block can be written into the bit stream; so that the decoding end can determine the first quantization parameter.

[0164] S207: quantize the prediction residual of the current sub-block based on the first quantization parameter.

[0165] Exemplarily, for the current sub-block, when it is determined to adopt the DP prediction mode to replace the intra prediction mode corresponding to the CU, the prediction residual of the current sub-block may be quantized based on the first quantization parameter.

[0166] S208 : Perform entropy coding on the quantized prediction residual of the current sub-block to obtain a bit stream of the current sub-block.

[0167] Then, entropy coding may be performed on the quantized prediction residual of the current sub-block to obtain a bit stream of the current sub-block.

[0168] S209: Set the preset mode indication information of the current sub-block to second preset information.

[0169] In one possible manner, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the second preset information includes a third preset value and a fourth preset value; setting the preset mode indication information of the current sub-block to the second preset information includes: setting the second indication information to the third preset value; wherein the second indication information set to the third preset value is used to indicate that the prediction mode of the current sub-block is the intra-frame prediction mode corresponding to the CU; setting the first indication information to the fourth preset value; wherein the first indication information set to the fourth preset value is used to indicate that the CU does not include a sub-block whose prediction mode is the DP prediction mode. For details, please refer to the above description and will not be repeated here.

[0170] In one possible manner, the preset mode indication information includes first indication information and second indication information, the first indication information is used to indicate whether the CU includes a sub-block whose prediction mode is the DP prediction mode, and the second indication information is used to indicate whether the prediction mode of the sub-block is the DP prediction mode; the second preset information includes a third preset value and a fourth preset value; setting the preset mode indication information of the current sub-block to the second preset information includes: setting the second indication information to the third preset value; wherein the second indication information set to the third preset value is used to indicate that the prediction mode of the current sub-block is the intra-frame prediction mode corresponding to the CU; determining the irrelevance of pixels in the current sub-block; when the second indication information is the third preset value, and / or the irrelevance of pixels in the current sub-block does not meet the irrelevance condition, setting the first indication information to the fourth preset value; wherein the first indication information set to the fourth preset value is used to indicate that the CU does not include a sub-block whose prediction mode is the DP prediction mode.

[0171] In one possible manner, the preset mode indication information only includes the second indication information; thus, setting the preset mode indication information of the current sub-block to the second preset information may include: setting the second indication information of the current sub-block to a third preset value.

[0172] The third and fourth preset values ​​can be set as needed, and this application does not impose any restrictions thereon. It should be noted that the third preset value is different from the first preset value; for example, if the first preset value is 1, the third preset value can be 0. The fourth preset value is different from the second preset value; for example, if the second preset value is 1, the fourth preset value can be 0.

[0173] Among them, when the sub-blocks contained in the entire CU are intra-frame predicted based on the intra-frame prediction mode corresponding to the CU, if the preset mode indication information only includes the second indication information, it is necessary to write the second indication information of each sub-block in the bitstream; and if the preset mode indication information includes the first indication information and the second indication information, it is only necessary to write the first indication information of the CU in the bitstream; that is, compared with the preset mode indication information being the second indication information, when the preset mode indication information includes the first indication information and the second indication information, the number of bits occupied by the preset mode indication information in the bitstream can be reduced, thereby reducing the bitstream overhead.

[0174] S210 , performing intra prediction corresponding to the CU to determine a prediction value of the current sub-block.

[0175] Exemplarily, based on the intra prediction mode corresponding to the CU, intra prediction corresponding to the CU is performed on the current sub-block to determine a prediction value of the current sub-block.

[0176] It should be noted that this application does not limit the execution order of S209 and S210.

[0177] S211 , determining a prediction residual between a prediction value of the current sub-block and the current sub-block.

[0178] S212: quantize the prediction residual of the current sub-block based on the second quantization parameter corresponding to the CU.

[0179] Exemplarily, the second quantization parameter corresponding to the CU can be determined based on the complexity information of the current CU and the number of coding bits of the previous CU; then, based on the second quantization parameter, the prediction value of the current sub-block and the prediction residual between the current sub-blocks are quantized.

[0180] In one possible approach, the complexity information of the current CU to which the current sub-block belongs may be a complexity level. Exemplarily, the complexity level of the current CU may be determined based on the texture complexity level of the current CU and the IBC complexity level of the current CU. For example, the minimum value of the texture complexity level of the current CU and the IBC complexity level of the current CU may be determined as the complexity level of the current CU.

[0181] S213 , performing entropy coding on the quantized prediction residual of the current sub-block to obtain a bit stream of the current sub-block.

[0182] Exemplarily, entropy coding may be performed on the quantized prediction reference to obtain a bit stream of the current sub-block.

[0183] S214: Write the first encoding code length and the preset mode indication information into the bit stream.

[0184] Exemplarily, the preset mode indication information is added to the bitstream as a new syntax element, so that the decoder can know the prediction mode of the current sub-block.

[0185] Exemplarily, no matter whether the DP prediction mode is used to replace the intra prediction mode corresponding to the CU, the first encoding code length is written into the bitstream.

[0186] For example, when the prediction value of the current sub-block is determined based on the DP prediction, since the prediction value of the current sub-block is determined based on the original value of the pixel point in the current sub-block, the prediction value of the current sub-block (i.e., the difference prediction value) can be written into the bitstream.

[0187] Exemplarily, when the prediction value of the current sub-block is determined based on the intra prediction corresponding to the CU, it is not necessary to write the prediction value of the current sub-block into the bitstream.

[0188] Exemplarily, the bit streams of multiple sub-blocks included in a CU may be concatenated into the bit stream of the CU.

[0189] Optionally, for the current sub-block, when it is determined to adopt the DP prediction mode instead of the intra prediction mode corresponding to the CU, the prediction residual of the current sub-block may be truncated before quantizing the prediction residual of the current sub-block (ie, before executing S207 ).

[0190] For example, the prediction residual truncation range can be set based on the target encoding rate of the current sub-block, the bit depth of the image containing the current sub-block, and the second encoding code length corresponding to the predicted value of the current sub-block. The prediction residual truncation range is (X4, X3), where X3 is the upper limit of the prediction residual and X4 is the lower limit of the prediction residual, with X3 being greater than or equal to X4. The prediction residual of the current sub-block is then truncated based on the truncation range.

[0191] Exemplarily, based on the truncation range, the process of truncating the prediction residual of the current sub-block can be as follows: for each pixel point of the current sub-block, if the prediction residual of the pixel point is greater than the prediction residual upper limit X3, the prediction residual of the pixel point is set to X3; if the prediction residual of the pixel point is less than the prediction residual lower limit X4, the prediction residual of the pixel point is set to X4; if the prediction residual of the pixel point is between X4 and X3, the prediction residual of the pixel point is not adjusted.

[0192] For example, when the prediction residual is truncated, one possible approach is to preset a constraint on the first encoding code length of the prediction residual by adjusting the truncation range constraint of the prediction residual (which may be referred to as a second constraint). For example, the prediction residual lower limit X4 is set to -15, and the prediction residual upper limit X3 is set to 16. In this case, the second quantization parameter corresponding to the CU can be used as the first quantization parameter.

[0193] For example, when the prediction residual is truncated, one possible approach is to preset a constraint on the first encoding code length of the prediction residual by adjusting a quantization parameter and a truncation range constraint for the prediction residual (which may be referred to as a third constraint). In this case, the first quantization parameter of the current sub-block may be set based on the prediction residual truncation range and the bit depth of the image in which the current sub-block resides. For example, the prediction residual lower limit X4 is set to -3, the prediction residual upper limit X3 is set to 4, and the first quantization parameter is set to 0.

[0194] Exemplarily, when the prediction mode corresponding to the CU is the IBC mode, the preset mode indication information can be a block vector (BlockVector, BV); in this way, the bit rate overhead can be reduced. In this case, the BV set as the first preset information is used to indicate that the prediction mode of the current sub-block is the difference prediction mode; the BV set as the second preset information is used to indicate that the prediction mode of the current sub-block is the IBC mode, and the second preset information is the vector absolute value offset between the current sub-block and the reference block, and the reference block is determined based on the IBC prediction.

[0195] FIG3 a is a schematic diagram illustrating an exemplary decoding process.

[0196] Referring to Figure 3a, for example, after CU1's bitstream is input to the decoder, the decoder can sequentially perform entropy decoding, dequantization, and prediction operations to output a reconstructed image of CU1. Next, after CU2's bitstream is input to the decoder, the decoder can sequentially perform entropy decoding, dequantization, and prediction operations to output a reconstructed image of CU2. This continues in this manner until all CUs of the same image are decoded, and the reconstructed images of all CUs can be spliced ​​together to form a complete image.

[0197] In the process of decoding each sub-block in the CU, when the prediction mode of the sub-block is the DP prediction mode, a first quantization parameter can be determined based on the constraint of the decoding code length (the decoding code length of the prediction residual of the sub-block); then, inverse quantization is performed based on the first quantization parameter. When the prediction mode of the sub-block is the intra-frame prediction mode corresponding to the CU, rate control can be performed based on the complexity level of the current CU obtained from entropy decoding in the bitstream (such as the complexity level) and the number of decoded bits of the previous CU (that is, based on the analysis of the number of decoded bits of the previous CU and the complexity level of the current CU, the output bit rate is adjusted by changing the decoding quantization parameter, decoding mode, etc.) to obtain a second quantization parameter. Thereafter, inverse quantization can be performed based on the second quantization parameter determined by rate control.

[0198] During the decoding process for CU1, for a sub-block whose prediction mode is the intra-frame prediction mode corresponding to CU1, the second quantization parameter is a preset quantization parameter.

[0199] FIG3 b is a schematic diagram illustrating an exemplary decoding process.

[0200] S301, receiving a bit stream.

[0201] S302 , entropy decoding is performed from a bit stream to obtain preset mode indication information of the current sub-block and a first encoding code length corresponding to the prediction residual of the current sub-block.

[0202] S303 : Obtain a quantized prediction residual of the current sub-block from the bit stream by entropy decoding based on the first encoding code length.

[0203] S304 : For the current sub-block, determine, based on the preset mode indication information of the current sub-block, whether to use the difference prediction mode to replace the intra prediction mode corresponding to the CU to which the current sub-block belongs.

[0204] Exemplarily, by determining whether the preset mode indication information of the current sub-block is the first preset information, it can be determined whether to use the differential prediction mode to replace the intra-frame prediction mode corresponding to the CU for the current sub-block based on the preset mode indication information of the current sub-block. When the preset mode indication information of the current sub-block is the first preset information, it can be determined that the differential prediction mode is used to replace the intra-frame prediction mode corresponding to the CU for the current sub-block, that is, the prediction mode of the current sub-block is the DP prediction mode; at this time, S305 can be executed. When the preset mode indication information of the current sub-block is not the first preset information, that is, the preset mode indication information of the current sub-block is the second preset information, it can be determined that the differential prediction mode is not used to replace the intra-frame prediction mode corresponding to the CU for the current sub-block, that is, the prediction mode of the current sub-block is the intra-frame prediction mode corresponding to the CU to which the current sub-block belongs; at this time, S308 can be executed.

[0205] S305 , performing DP prediction on the current sub-block to obtain a predicted value of the current sub-block.

[0206] Exemplarily, a differential prediction value may be obtained from entropy decoding in the bitstream, and then the differential prediction value may be used as the prediction value of the current sub-block.

[0207] S306: Determine a first quantization parameter based on a preset constraint method for the first encoding code length.

[0208] Exemplarily, the decoder may entropy decode the target encoding rate of the current sub-block, the bit depth of the image to which the current sub-block belongs, and the second encoding code length corresponding to the predicted value of the current sub-block from the bitstream. When the preset constraint mode for the first encoding code length is the first constraint mode, the first quantization parameter may be determined based on the target encoding rate of the current sub-block, the bit depth of the image to which the current sub-block belongs, and the second encoding code length.

[0209] Exemplarily, the decoder may obtain the target encoding rate of the current sub-block and the bit depth of the image to which the current sub-block belongs from entropy decoding of the bitstream; in this case, the bit depth of the image to which the current sub-block belongs may be used as the second encoding code length corresponding to the predicted value of the current sub-block. When the preset constraint mode for the first encoding code length is the first constraint mode, the first quantization parameter may be determined based on the target encoding rate of the current sub-block, the bit depth of the image to which the current sub-block belongs, and the second encoding code length.

[0210] For example, the target encoding rate of the current sub-block is 8, the bit depth of the image where the current sub-block is located is 8, and the second encoding code length is 8; then the first quantization parameter may be 3.

[0211] Exemplarily, when the encoder truncates the prediction residual of the current sub-block, if the preset constraint mode for the first encoding code length is the second constraint mode, the second quantization parameter corresponding to the CU can be used as the first quantization parameter. If the preset constraint mode for the first encoding code length is the third constraint mode, the truncation range of the prediction residual can be first determined based on the target encoding rate of the current sub-block, the bit depth of the image where the current sub-block is located, and the second encoding code length corresponding to the predicted value of the current sub-block; then, the first quantization parameter can be determined based on the truncation range of the prediction residual and the bit depth of the image where the current sub-block is located.

[0212] S307 : Dequantize the quantized prediction residual based on the first quantization parameter to obtain a prediction residual of the current sub-block.

[0213] S308 : Perform intra prediction based on the intra prediction mode corresponding to the CU to obtain a prediction value of the current sub-block.

[0214] Exemplarily, for the current sub-block, when determining the intra-frame prediction mode corresponding to the CU that is not replaced by the DP prediction mode, intra-frame prediction can be performed based on the intra-frame prediction mode corresponding to the coding unit CU to which the current sub-block belongs to obtain the prediction value of the current sub-block.

[0215] S309 : Dequantize the quantized prediction residual based on the second quantization parameter corresponding to the CU to obtain a prediction residual of the current sub-block.

[0216] The method for generating the second quantization parameter may refer to the description of the above embodiment and will not be repeated here.

[0217] S310 , adding the prediction residual of the current sub-block to the prediction value of the current sub-block to obtain a reconstructed block of the current sub-block.

[0218] For example, when the encoder truncates the prediction residual of the current sub-block, the prediction residual of the current sub-block in S310 is actually the truncated prediction residual (it should be understood that the truncated prediction residual determined by the decoder is different from the truncated prediction residual determined by the encoder).

[0219] For example, when the encoder does not truncate the prediction residual of the current sub-block, the prediction residual of the current sub-block in S310 is actually the untruncated prediction residual (it should be understood that the untruncated prediction residual determined by the decoder is different from the untruncated prediction residual determined by the encoder).

[0220] Exemplarily, the reconstructed blocks of the multiple sub-blocks included in the CU can be spliced ​​into a reconstructed image of the CU.

[0221] FIG4 a is a schematic diagram showing an exemplary encoding process.

[0222] Referring to Figure 4a, illustratively, after an image to be encoded is input into an encoder, the encoder may divide the image into multiple coding units (CUs), such as CU1, CU2, etc. Next, prediction, quantization, and entropy coding operations are sequentially performed on CU1 to obtain a bitstream for CU1; prediction, quantization, and entropy coding operations are sequentially performed on CU2 to obtain a bitstream for CU2; and so on. After encoding all CUs of the image to be encoded, the bitstreams of all CUs are concatenated to obtain the bitstream for the image to be encoded.

[0223] In the process of encoding CU1, quantization can be performed according to preset quantization parameters. In the process of encoding other subsequent CUs, the complexity information (such as complexity level) of the current CU can be determined based on the image content of the current CU. Then, based on the number of coding bits of the previous CU and the complexity level of the current CU, rate control is performed (that is, based on the analysis of the number of coding bits of the previous CU and the complexity level of the current CU, the output bit rate is adjusted by changing the coding quantization parameters, coding mode, etc.) to obtain the quantization parameters. Afterwards, the quantization module can perform quantization based on the quantization parameters determined by the rate control. In the process of encoding other subsequent CUs, the complexity information of the current CU can be determined based on the image content of the current CU. Then, based on the number of coding bits of the previous CU and the complexity level of the current CU, the rate control is performed (that is, based on the analysis of the number of coding bits of the previous CU and the complexity level of the current CU, the output bit rate is adjusted by changing the coding quantization parameters, coding mode, etc.) to obtain the quantization parameters. Afterwards, the quantization module can perform quantization based on the quantization parameters determined by the rate control. In the process of encoding other subsequent CUs, the complexity information of the CU can be written into the bit stream of the CU so that the decoder can obtain the complexity information of the CU from the bit stream to determine the quantization parameters required for inverse quantization.

[0224] The following describes the encoding process by taking a CU in the IBC prediction mode as an example.

[0225] FIG4 b is a schematic diagram illustrating an exemplary encoding process.

[0226] S401 , obtaining a coding unit CU and dividing the CU into multiple sub-blocks, where the prediction mode of the CU is the IBC mode.

[0227] For example, for a CU whose prediction mode is IBC mode, the encoder may divide the CU into multiple sub-blocks; this application does not limit the number of sub-blocks or the size of the sub-blocks. For example, the decoder may divide the CU into multiple sub-blocks of the same size.

[0228] The following description is made by taking a sub-block as an example.

[0229] S402 : For the current sub-block, determine whether to use the DP prediction mode instead of the IBC mode.

[0230] For example, for the current sub-block, it can be determined whether to still use the IBC mode for intra-frame prediction or to use the DP prediction mode for intra-frame prediction, that is, whether to use the DP prediction mode to replace the IBC mode.

[0231] In one possible manner, S402 may include the following S4021 to S4022:

[0232] S4021: Determine the flatness of the current sub-block.

[0233] In one possible approach, the difference between the original values ​​of all non-top-left corner pixels in the current sub-block and the original value of the top-left corner pixel can be calculated to obtain multiple difference values. The absolute values ​​of these multiple difference values ​​are then added together to obtain the first intermediate information. For example, in Figure 4c, the top-left corner pixel in the current sub-block is "1," and the non-top-left corner pixels are "2," "3," and "4."

[0234] In one possible approach, the difference between the original value of each pixel in the current sub-block and the average original value of all pixels in the current sub-block can be calculated to obtain multiple differences; the absolute values ​​of these multiple differences are added to obtain the first intermediate information.

[0235] For example, when the first intermediate information is less than the flatness threshold TH4, the flatness of the current sub-block can be set to 0; otherwise, the flatness of the current sub-block can be set to 2. Here, TH4 = X6 × (1 << (BitDepth – 8)) × the number of pixels in the sub-block. X6 represents the difference between the original values ​​of two adjacent pixels and can be set as needed, for example, X6 = 2.

[0236] S4022 : Based on the flatness of the current sub-block and the second preset information, determine whether to adopt the DP prediction mode instead of the IBC mode.

[0237] Exemplarily, IBC prediction may be performed on the current sub-block to determine a reference block; then, the sum of absolute errors between the current sub-block and the reference block is calculated to obtain SDA_IBC.

[0238] Exemplarily, the IBC preset is to use the area to the left of the current sub-block as a search area, search for a reference block matching the current sub-block in the search area, and determine the prediction value of the current sub-block based on the reconstructed value of the reference block matching the current sub-block. Exemplarily, the reconstructed value of the reference block matching the current sub-block can be used as the prediction value of the current sub-block.

[0239] 4c , illustratively, the size of each sub-block in FIG4c is 2*2; the gray sub-block is the encoded sub-block, the white sub-block is the uncoded sub-block, and the sub-block in the dotted box is the current sub-block; wherein, the area to the left of the current sub-block can be used as the search area.

[0240] Exemplarily, the search area may include n candidate reference blocks (n can be set as required and is not limited in this application). The vector absolute value offset between the first candidate reference block and the current sub-block can be set to X1 (the first candidate reference block can be referred to as the candidate reference block corresponding to X1); the vector absolute value offset between the second candidate reference block and the current sub-block can be set to X2 (the second candidate reference block can be referred to as the candidate reference block corresponding to X2); and so on, the vector absolute value offset between the nth candidate reference block and the current sub-block can be set to Xn (the nth candidate reference block can be referred to as the candidate reference block corresponding to Xn). It should be understood that the n values ​​of X1 to Xn can be set as required, and X1 to Xn are all different. For example, X1=1, X2=2, ..., Xn=n.

[0241] For example, the sum of absolute errors between the candidate reference block corresponding to X1 and the current sub-block can be calculated to obtain SDA_X1; the sum of absolute errors between the candidate reference block corresponding to X2 and the current sub-block can be calculated to obtain SDA_X2; ...; and the sum of absolute errors between the candidate reference block corresponding to Xn and the current sub-block can be calculated to obtain SDA_Xn. Then, based on SDA_X1, SDA_X2, ..., SDA_Xn, second preset information can be selected from the range of X1 to Xn. Specifically, SDA_X1, SDA_X2, ..., SDA_Xn can be compared and the candidate reference block with the smallest sum of absolute errors can be selected as the reference block. Assuming that SDA_Xm of the mth (m∈[1,n], where m is an integer) candidate reference block is the smallest, then Xm is selected from the range of X1 to Xn as the second preset information, that is, the second preset information = Xm.

[0242] Exemplarily, it is determined whether the second preset information is greater than a threshold value and whether the flatness of the current sub-block is equal to 0. When the second preset information is greater than the threshold value and the flatness of the current sub-block is equal to 0, it is determined that the DP prediction mode is used instead of the IBC mode for the current sub-block. If the second preset information is less than or equal to the threshold value and / or the flatness of the current sub-block is not equal to 0, it is determined not to use the DP prediction mode instead of the IBC mode for the current sub-block.

[0243] The threshold value may refer to the upper limit of the prediction residual of the sub-block under IBC prediction, and TH5 may be used; where TH5 = X7 × (1 << (BitDepth – 8)) × the number of pixels in the sub-block. X7 represents the upper limit of the distance between the predicted value and the original value of each pixel in the sub-block; the specific setting can be determined as required and is not limited by this application.

[0244] Exemplarily, for the current sub-block, when it is determined that the DP prediction mode is to be used instead of the IBC mode, S403 may be executed; for the current sub-block, when it is determined that the DP prediction mode is not to be used instead of the IBC mode, S405 may be executed.

[0245] S403: Set the BV of the current sub-block to first preset information.

[0246] Exemplarily, for the current sub-block, when it is determined to use the DP prediction mode instead of the IBC mode, the BV of the current sub-block can be set to the first preset information; in this case, the BV set to the first preset information can be used to indicate that the prediction mode of the current sub-block is the DP prediction mode.

[0247] S404: Set the prediction value of the current sub-block as the first prediction value.

[0248] For example, when it is determined that the DP prediction mode is used instead of the IBC mode for the current sub-block, DP prediction can be performed on the current sub-block to obtain a first prediction value (also called a difference prediction value). Detailed descriptions can be made in the above text and will not be repeated here.

[0249] It should be noted that this application does not limit the execution order of S403 and S404.

[0250] S405 : Set the block vector BV of the current sub-block to second preset information.

[0251] For example, when it is determined that the DP prediction mode is not to be used instead of the IBC mode for the current sub-block, the vector absolute value offset between the current sub-block and the reference block (which can be represented by the second preset information) can be used as the BV of the current sub-block. The reference block is determined by performing IBC prediction on the current sub-block. In this case, the BV set as the second preset information can be used to indicate that the prediction mode of the current sub-block is the IBC mode.

[0252] The second preset information may be obtained by calculating the absolute value of the difference between the horizontal coordinate of the current sub-block and the horizontal coordinate of the reference block.

[0253] S406: Set the prediction value of the current sub-block as the second prediction value.

[0254] For example, if it is determined that the DP prediction mode is not to be used instead of the IBC mode for the current sub-block, the prediction value of the current sub-block can be set to the second prediction value. In step S402 , the candidate reference block with the smallest sum of absolute errors is selected from SDA_X1, SDA_X2, ..., SDA_Xn as the reference block. Next, the reconstructed value of the reference block can be determined as the second prediction value.

[0255] It should be noted that the second preset information is different from the first preset information.

[0256] It should be noted that this application does not limit the execution order of S405 and S406.

[0257] S407 : Encode the current sub-block based on the prediction value of the current sub-block to obtain a bit stream of the current sub-block.

[0258] Exemplarily, a prediction residual between the prediction value of the current sub-block and the current sub-block may be calculated; then, the prediction residual may be quantized based on a quantization parameter; thereafter, the quantized prediction residual may be entropy encoded to obtain a bit stream of the current sub-block.

[0259] S408 , writing the BV of the current sub-block into the bitstream.

[0260] S409 , when it is determined that the DP prediction mode is adopted instead of the IBC mode, the differential prediction value is written into the bitstream.

[0261] Exemplarily, in order to enable the decoding end to determine the prediction mode of the current sub-block, the BV of the current sub-block may be written into the bitstream.

[0262] For example, when the prediction value of the current sub-block is determined based on the DP prediction, since the prediction value of the current sub-block is determined based on the original value of the pixel point in the current sub-block, the prediction value of the current sub-block (i.e., the difference prediction value) can be written into the bitstream.

[0263] Exemplarily, when the prediction value of the current sub-block is determined based on the intra prediction corresponding to the CU, it is not necessary to write the prediction value of the current sub-block into the bitstream.

[0264] Exemplarily, the bit streams of multiple sub-blocks included in a CU may be concatenated into the bit stream of the CU.

[0265] FIG5a is a schematic diagram showing an exemplary decoding process.

[0266] Referring to Figure 5a, for example, after CU1's bitstream is input to the decoder, the decoder can sequentially perform entropy decoding, dequantization, and prediction operations to output a reconstructed image of CU1. Next, after CU2's bitstream is input to the encoder, the decoder can sequentially perform entropy decoding, dequantization, and prediction operations to output a reconstructed image of CU2. This continues in this manner until all CUs of the same image are decoded, and the reconstructed images of all CUs can be spliced ​​together to form a complete image.

[0267] Among them, in the process of decoding CU1, inverse quantization can be performed according to the preset quantization parameter; in the process of decoding other subsequent CUs, the code rate control can be performed based on the complexity information (such as complexity level) obtained by entropy decoding from the bit stream of the current CU and the number of coding bits of the previous CU to determine the quantization parameter; thereafter, the inverse quantization module can perform inverse quantization based on the quantization parameter determined by the code rate control.

[0268] The decoding process is described below by taking a sub-block of a CU in the IBC prediction mode as an example.

[0269] FIG5 b is a schematic diagram illustrating an exemplary decoding process, wherein the decoding process of FIG5 b corresponds to the encoding process of FIG4 b .

[0270] S501: Receive a bit stream.

[0271] S502 , parsing the BV of the current sub-block from the bit stream, where the intra prediction mode of the coding unit CU to which the current sub-block belongs is the block copy intra prediction IBC mode.

[0272] Exemplarily, the encoder writes the BV of the current sub-block into the bitstream, and then, after receiving the bitstream, the decoder can parse (ie, perform entropy decoding) the BV of the current sub-block from the bitstream.

[0273] S503 : For the current sub-block, determine whether to use the difference prediction mode instead of the IBC mode based on the BV of the current sub-block.

[0274] For example, since the encoder nests the DP coding mode in the IBC mode, after the decoder parses the BV of the current sub-block from the bit stream, it can determine whether the prediction mode of the current sub-block is the IBC mode or the DP prediction mode based on the BV of the current sub-block; that is, for the current sub-block, determine whether to use DP prediction instead of IBC prediction.

[0275] Exemplarily, it is possible to determine whether to use DP prediction instead of IBC prediction for the current sub-block by determining that the BV of the current sub-block is the first preset information. If the BV of the current sub-block is the first preset information, it can be determined that the prediction mode of the current sub-block is the DP prediction mode, that is, for the current sub-block, it is determined that DP prediction is used instead of IBC prediction. If the BV of the current sub-block is not the first preset information, it can be determined that the BV of the current sub-block is the second preset information. In this case, it can be determined that the prediction mode of the current sub-block is the IBC mode, that is, for the current sub-block, it is determined not to use DP prediction instead of IBC prediction.

[0276] S504: Use the difference prediction value obtained by entropy decoding from the bit stream as the prediction value of the current sub-block.

[0277] Exemplarily, if the BV of the current sub-block is the first preset information, DP prediction can be performed on the current sub-block to obtain a prediction value of the current sub-block. Specifically, a difference prediction value can be obtained by entropy decoding from the bitstream, and then the difference prediction value can be used as the prediction value of the current sub-block.

[0278] S505 , performing IBC prediction on the current sub-block based on the BV of the current sub-block to obtain a predicted value of the current sub-block.

[0279] Exemplarily, if the BV of the current sub-block is the second preset information, IBC prediction may be performed on the current sub-block based on the second preset information to obtain a predicted value of the current sub-block.

[0280] Exemplarily, a reference block of the current subblock may be determined from decoded subblocks based on the position coordinates of the current subblock and the second preset information; and a reconstructed value of the reference block of the current subblock may be used as a prediction value of the current subblock.

[0281] S506 : Reconstruct the current sub-block based on the predicted value of the current sub-block to obtain a reconstructed block of the current sub-block.

[0282] For example, after receiving the bitstream, the decoder can parse (i.e., entropy decode) the bitstream to obtain a quantized prediction residual. The quantized prediction residual is then dequantized to obtain a prediction residual for the current sub-block. The prediction value for the current sub-block is then added to the prediction residual for the current sub-block to obtain a reconstructed block for the current sub-block.

[0283] Exemplarily, the reconstructed blocks of the multiple sub-blocks included in the CU can be spliced ​​into a reconstructed image of the CU.

[0284] In this way, encoding and decoding are performed according to the encoding method in the embodiment of Figure 4b and the decoding method in Figure 5b, which will not increase the bit rate or the search area, and can also increase the flexibility of coding unit prediction, achieve finer-grained prediction, improve prediction accuracy, and thus improve compression efficiency.

[0285] It should be understood that when the prediction mode of the CU is the IBC mode, in the encoding and decoding process of the sub-block whose prediction mode is the DP prediction mode in the CU, the first quantization parameter can also be determined in accordance with the method in the above embodiment; then quantization or inverse quantization is performed based on the first quantization parameter; this application does not limit the method of determining the quantization parameter in the encoding and decoding process when the prediction mode of the CU is the IBC mode.

[0286] In an example, FIG6 shows a schematic block diagram of an apparatus 600 according to an embodiment of the present application. The apparatus 600 may include: a processor 601 and a transceiver / transceiver pin 602 , and optionally, a memory 603 .

[0287] The various components of the device 600 are coupled together via a bus 604, wherein the bus 604 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for the sake of clarity, all buses are referred to as bus 604 in the figure.

[0288] Optionally, the memory 603 may be used to store instructions in the aforementioned method embodiment. The processor 601 may be used to execute the instructions in the memory 603 and control the receiving pin to receive a signal and control the transmitting pin to send a signal.

[0289] The apparatus 600 may be the electronic device or a chip of the electronic device in the above method embodiment.

[0290] Exemplarily, the electronic device may be a terminal device or a server.

[0291] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0292] The present application also provides a chip comprising one or more interface circuits and one or more processors. The one or more processors receive or send data via the one or more interface circuits. When the one or more processors execute computer instructions, the electronic device implements the encoding and decoding methods described in the above embodiments in the above-mentioned method steps. The interface circuit is a transceiver / transceiver pin 602.

[0293] This embodiment further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the encoding and decoding method in the above-mentioned embodiment.

[0294] This embodiment further provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer executes the above-mentioned related steps to implement the encoding and decoding method in the above-mentioned embodiment.

[0295] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the encoding and decoding methods in the above-mentioned method embodiments.

[0296] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0297] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

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

[0299] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0300] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0301] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0302] 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 readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0303] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

[0304] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, a storage medium can also be a component of a processor. The processor and the storage medium can be located in an ASIC.

[0305] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0306] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A decoding method, characterized in that: The method comprises: Receive a bit stream, and entropy decode from the bit stream to obtain preset mode indication information of a current sub-block and a first encoding code length corresponding to a prediction residual of the current sub-block; Based on the first encoding code length, entropy decoding the quantized prediction residual of the current sub-block from the bit stream; For the current sub-block, based on the preset mode indication information of the current sub-block, determining whether to use the difference prediction mode to replace the intra prediction mode corresponding to the coding unit CU to which the current sub-block belongs; If so, performing difference prediction on the current sub-block to obtain a prediction value of the current sub-block; determining a first quantization parameter based on a preset constraint mode for the first encoding code length; and dequantizing the quantized prediction residual based on the first quantization parameter to obtain a prediction residual of the current sub-block; If not, performing intra-frame prediction based on the intra-frame prediction mode corresponding to the CU to obtain a prediction value of the current sub-block; dequantizing the quantized prediction residual based on the second quantization parameter corresponding to the CU to obtain a prediction residual of the current sub-block; The prediction residual of the current sub-block is added to the prediction value of the current sub-block to obtain a reconstructed block of the current sub-block.

2. The method according to claim 1, characterized in that The determining the first quantization parameter based on a preset constraint mode for the first encoding code length includes: When the preset constraint mode is the first constraint mode, determining the first quantization parameter based on a target encoding bit rate of the current sub-block obtained by entropy decoding from the bit stream, a bit depth of an image to which the current sub-block belongs, and a second encoding code length corresponding to a predicted value of the current sub-block; When the preset constraint mode is the second constraint mode, using the second quantization parameter as the first quantization parameter; When the preset constraint mode is the third constraint mode, a truncation range of the prediction residual of the current sub-block is determined, and the first quantization parameter is determined based on the truncation range.

3. The method according to claim 1 or 2, characterized in that: The preset mode indication information includes: first indication information and second indication information; the determining, for the current sub-block, based on the preset mode indication information of the current sub-block, whether to use the difference prediction mode to replace the intra prediction mode corresponding to the coding unit CU to which the current sub-block belongs, includes: Based on the first indication information, determining whether the CU includes a sub-block whose prediction mode is a difference prediction mode; When it is determined that the CU includes a subblock whose prediction mode is a difference prediction mode, for the current subblock, it is determined based on the second indication information whether to use the difference prediction mode to replace the intra prediction mode corresponding to the CU.

4. The method according to claim 1 or 2, characterized in that: The other intra prediction mode is a block copy intra prediction IBC mode, and the preset mode indication information is a block vector BV.

5. A coding method, characterized in that: The method comprises: Obtain a coding unit CU and divide the CU into a plurality of sub-blocks; For the current sub-block, determine whether to use the difference prediction mode to replace the intra prediction mode corresponding to the CU; If yes, setting the preset mode indication information of the current sub-block to the first preset information, and performing the difference prediction to determine the prediction value of the current sub-block; determining the prediction value of the current sub-block and the prediction residual of the current sub-block; determining a first quantization parameter based on a preset constraint mode of a first encoding code length, the first encoding code length corresponding to the prediction residual of the current sub-block; quantizing the prediction residual of the current sub-block based on the first quantization parameter; performing entropy coding on the quantized prediction residual of the current sub-block to obtain a bit stream of the current sub-block; If not, setting the preset mode indication information of the current sub-block to the second preset information, and performing intra-frame prediction corresponding to the CU to determine a prediction value of the current sub-block; determining a prediction value of the current sub-block and a prediction residual of the current sub-block; quantizing the prediction residual of the current sub-block based on a second quantization parameter corresponding to the CU; and entropy encoding the quantized prediction residual of the current sub-block to obtain a bit stream of the current sub-block; The preset mode indication information and a first encoding code length corresponding to the prediction residual of the current sub-block are written into the bit stream.

6. The method according to claim 5, characterized in that When determining, for the current sub-block, to use the difference prediction mode to replace the intra prediction mode corresponding to the CU, the method further includes: Truncating the prediction residual of the current sub-block; The quantizing the prediction residual of the current sub-block based on the first quantization parameter includes: The truncated prediction residual of the current sub-block is quantized based on the first quantization parameter.

7. The method according to claim 6, characterized in that The truncating the prediction residual of the current sub-block includes: Determine a truncation range based on a target encoding rate of the current sub-block, a bit depth of an image where the current sub-block is located, and a second encoding code length corresponding to a predicted value of the current sub-block; Based on the truncation range, the prediction residual of the current sub-block is truncated.

8. The method according to any one of claims 5 to 7, characterized in that: The determining of the first quantization parameter based on the preset constraint mode of the first encoding code length includes: When the preset constraint mode is the first constraint mode, determining the first quantization parameter based on a target encoding bit rate of the current sub-block, a bit depth of an image to which the current sub-block belongs, and a second encoding code length corresponding to a predicted value of the current sub-block; When the preset constraint mode is the second constraint mode, using the second quantization parameter as the first quantization parameter; When the preset constraint mode is the third constraint mode, the first quantization parameter is determined based on a truncation range of the prediction residual of the current sub-block.

9. The method according to claim 7 or 8, characterized in that: The method further comprises: The target encoding rate of the current sub-block, the bit depth of the image where the current sub-block is located, and the second encoding code length corresponding to the prediction value of the current sub-block are written into the bit stream of the current sub-block.

10. The method according to any one of claims 5 to 9, characterized in that: The determining, for the current sub-block, whether to use the difference prediction mode to replace the intra prediction mode corresponding to the CU includes: Determining the flatness of the current sub-block; According to the flatness of the current sub-block, it is determined whether to use the difference prediction mode to replace the intra prediction mode corresponding to the CU.

11. The method according to claim 10, characterized in that The determining the flatness of the current sub-block includes: The flatness of the current sub-block is determined based on original values ​​of pixels in the current sub-block.

12. The method according to any one of claims 5 to 11, characterized in that The other intra prediction mode is a block copy intra prediction IBC mode, and the preset mode indication information is a block vector BV; Among them, the BV set to the first preset information is used to indicate that the prediction mode of the current sub-block is the difference prediction mode; the BV set to the second preset information is used to indicate that the prediction mode of the current sub-block is the IBC mode, and the second preset information is the vector absolute value offset value between the current sub-block and the reference block, and the reference block is determined based on the IBC prediction.

13. A decoding method, characterized in that: The method comprises: receiving a bit stream; Obtaining a block vector BV of a current sub-block by entropy decoding from the bit stream, wherein the prediction mode of a coding unit CU to which the current sub-block belongs is a block copy intra prediction IBC mode; For the current sub-block, judging whether to adopt the difference prediction mode to replace the IBC mode based on the BV of the current sub-block; If yes, using the difference prediction value obtained by entropy decoding from the bit stream as the prediction value of the current sub-block; If not, performing IBC prediction on the current sub-block based on the BV of the current sub-block to obtain a predicted value of the current sub-block; The current sub-block is reconstructed based on the prediction value of the current sub-block to obtain a reconstructed block of the current sub-block.

14. A coding method, characterized in that: The method comprises: Obtain a coding unit CU and divide the CU into a plurality of sub-blocks, wherein the prediction mode of the CU is a block copy intra prediction IBC mode; For the current sub-block, determining whether to adopt the difference prediction mode to replace the IBC mode; If yes, the block vector BV of the current sub-block is set to the first preset information, and the prediction value of the current sub-block is set to the first prediction value; the BV set to the first preset information is used to indicate that the prediction mode of the current sub-block is the difference prediction mode, and the first prediction value is a difference prediction value determined based on the difference prediction; If not, the BV of the current sub-block is set to the second preset information, and the prediction value of the current sub-block is set to the second prediction value; the BV set to the second preset information is used to indicate that the prediction mode of the current sub-block is the IBC mode, the second preset information is the vector absolute value offset value between the current sub-block and the reference block, and the reference block and the second prediction value are determined based on the IBC prediction; Encoding the current sub-block based on the prediction value of the current sub-block to obtain a bit stream of the current sub-block; The BV of the current sub-block is written into a bitstream of the current sub-block, and when it is determined to adopt the differential prediction mode instead of the IBC mode, the differential prediction value is written into the bitstream.

15. The method according to claim 14, characterized in that The determining, for the current sub-block, whether to use the difference prediction mode to replace the IBC mode includes: Determining the flatness of the current sub-block; For the current sub-block, based on the flatness of the current sub-block and the second preset information, it is determined whether to adopt the difference prediction mode to replace the IBC mode.

16. The method according to claim 15, characterized in that The determining the flatness of the current sub-block includes: The flatness of the current sub-block is determined based on original values ​​of pixels in the current sub-block.

17. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the decoding method according to any one of claims 1 to 4, or executes the decoding method according to claim 13.

18. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the encoding method according to any one of claims 5 to 12, or executes the encoding method according to any one of claims 14 to 16.

19. A chip, characterized in that: It comprises one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the decoding method as described in any one of claims 1 to 4, or executes the decoding method as described in claim 13.

20. A chip, characterized in that: The electronic device comprises one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the encoding method as described in any one of claims 5 to 12, or executes the encoding method as described in any one of claims 14 to 16.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the method according to any one of claims 1 to 16.

22. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed by a computer or a processor, the steps of the method according to any one of claims 1 to 16 are performed.

23. A device for storing a bit stream, characterized in that: The device comprises: a receiver and at least one storage medium, The receiver is used to receive a bit stream; The at least one storage medium is used to store the bit stream; The bit stream is generated according to the encoding method according to any one of claims 5 to 12, or the encoding method according to any one of claims 14 to 16.

24. A device for transmitting a bit stream, characterized in that: The device comprises: a transmitter and at least one storage medium, The at least one storage medium is used to store a bit stream, wherein the bit stream is generated according to the encoding method according to any one of claims 5 to 12, or the encoding method according to any one of claims 14 to 16; The transmitter is used to obtain the bit stream from the storage medium and send the bit stream to the terminal side device through a transmission medium.

25. A system for distributing a bit stream, characterized in that The system comprises: At least one storage medium for storing at least one bit stream, wherein the at least one bit stream is generated according to the encoding method according to any one of claims 5 to 12, or the encoding method according to any one of claims 14 to 16; The streaming media device is used to obtain a target bit stream from the at least one storage medium and send the target bit stream to a terminal side device, wherein the streaming media device includes a content server or a content distribution server.

Citation Information

Patent Citations

  • Encoding and decoding method and electronic equipment

    CN118646873A

  • Block statistical characteristic-based block matching rule and block statistical characteristic-based intra-frame encoding mode selection method

    CN101895739A

  • Method and Apparatus for Image Compression without Residue Signaling

    CN107040785A

  • An AVS2 intra-frame mode selection fast algorithm and an implementation device

    CN109922337A

  • Image coding device, control method of same, and program

    JP2020141378A