hottub.patents
US 12,388,987 B2#3470022 Most CitedActiveUnited States (USPTO)Utility

Precoding encoding method and encoder for QP adjustment

0Forward Citations (#3470022 Global)
0.0/yrCitation Velocity (#3470022 Global)
0.00Citation PageRank (#3470022 Global)
16Prior Art Cited
19Claims (2 Indep. · 17 Dep.)
12Drawings / Sheets

Abstract

An encoding method and an encoder are provided to improve image compression performance. An embodiment of the encoding method determines an encoding quantization parameter, QP, and precodes a to-be-encoded block using the encoding QP to obtain encoding result information. The encoding QP is then adjusted based on the encoding result information, and then real encoding is performed on the to-be-encoded block by using an adjusted encoding QP. An embodiment of the encoder includes a bit rate control module to determine a first QP, and a precoding module to precode a to-be-encoded block using the QP to obtain precoding result information. The encoder further includes another bit rate control module to adjust the QP based on the precoding result information to obtain a second QP, and a real encoding module to encode the to-be-encoded block using the second QP.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 0.

Claims (19 — 2 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    An encoding method, comprising: determining a first encoding quantization parameter QP; precoding a to-be-encoded block by using the first encoding QP to obtain precoding result information; adjusting the first encoding QP based on the precoding result information to obtain a second encoding QP; and performing encoding on the to-be-encoded block by using the second encoding QP.

  2. Claim 2Depends on #1

    The method according to claim 1, wherein precoding the to-be-encoded block comprises: precoding the to-be-encoded block by using the first encoding QP in each of a plurality of prediction modes to obtain precoding result information corresponding to each prediction mode; before adjusting the first encoding QP based on the precoding result information, the method further comprises: selecting an optimal prediction mode from the plurality of prediction modes; adjusting the first encoding QP comprises: adjusting the first encoding QP based on encoding result information corresponding to the optimal prediction mode to obtain the second encoding QP; and performing encoding on the to-be-encoded block comprises: performing encoding on the to-be-encoded block by using the second encoding QP in the optimal prediction mode.

  3. Claim 3Depends on #2

    The method according to claim 2, wherein before determining the first encoding QP, the method further comprises: selecting at least one optimal spatial-domain prediction mode from a plurality of spatial-domain prediction modes, and selecting at least one optimal frequency domain prediction mode from a plurality of frequency domain prediction modes, wherein the at least one optimal spatial-domain prediction mode has a smallest encoding cost in the plurality of spatial-domain prediction modes, the at least one optimal frequency domain prediction mode has a smallest encoding cost in the plurality of frequency domain prediction modes, and the different optimal spatial-domain prediction modes and the optimal frequency domain prediction modes correspond to different prediction reference directions and/or different prediction value calculation methods; and precoding the to-be-encoded block comprises: performing spatial-domain precoding on the to-be-encoded block by using the first encoding QP in the at least one optimal spatial-domain prediction mode; and performing frequency domain precoding on the to-be-encoded block by using the first encoding QP in the at least one optimal frequency domain prediction mode.

  4. Claim 4Depends on #1

    The method according to claim 1, wherein when precoding the to-be-encoded block by using the first encoding QP, the method further comprises: performing pixel reconstruction on the to-be-encoded block to obtain a reconstructed pixel of the to-be-encoded block in a precoding phase; and after precoding the to-be-encoded block, the method further comprises: precoding a next coding block of the to-be-encoded block with reference to the reconstructed pixel of the to-be-encoded block in the precoding phase.

  5. Claim 5Depends on #1

    The method according to claim 1, wherein precoding the to-be-encoded block comprises: predicting the to-be-encoded block to obtain residual information; quantizing the residual information by using the first encoding QP; and calculating an encoding cost based on the quantized residual information, wherein the to-be-encoded block is precoded by using the first encoding QP after the residual information is quantized by using the first encoding QP.

  6. Claim 6Depends on #1

    The method according to claim 1, wherein precoding the to-be-encoded block comprises: precoding the to-be-encoded block by using at least a reconstructed pixel of a previous coding block of the to-be-encoded block in a precoding phase as a prediction reference value and by using the first encoding QP, wherein the previous coding block and the to-be-encoded block are adjacent in an encoding time sequence, and an encoding time period of the previous coding block is earlier than an encoding time period of the to-be-encoded block.

  7. Claim 7Depends on #1

    The method according to claim 1, wherein determining the first encoding QP comprises: determining the first encoding QP based on a texture complexity of the to-be-encoded block and/or a fullness status of a bitstream buffer.

  8. Claim 8Depends on #7

    The method according to claim 7, wherein determining the first encoding QP includes increasing the first encoding QP to accommodate increasing texture complexity and/or increasing the first encoding QP to accommodate a fuller bitstream buffer.

  9. Claim 9Depends on #1

    The method according to claim 1, wherein the precoding result information comprises at least one of the following: a quantity of encoded bits of the to-be-encoded block obtained by using the first encoding QP, an encoding distortion magnitude of the to-be-encoded block obtained by using the first encoding QP, an encoding rate-distortion cost of the to-be-encoded block obtained by using the first encoding QP, a prediction residual of the to-be-encoded block, and the texture complexity of the to-be-encoded block.

  10. Claim 10Depends on #9

    The method according to claim 9, wherein encoding result information comprises the quantity of encoded bits of the to-be-encoded block obtained by using the first encoding QP; and adjusting the first encoding QP based on the precoding result information comprises: decreasing the first encoding QP when the quantity of encoded bits is less than a target quantity of bits; or increasing the first encoding QP when the quantity of encoded bits is greater than the target quantity of bits, wherein the target quantity of bits depends on a fullness status of a bitstream buffer and a quantity of output bits of the bitstream buffer.

  11. Claim 11Independent Claim

    An encoder, comprising: a first bit rate control module, configured to determine a first encoding quantization parameter QP; a precoding module, configured to precode the to-be-encoded block by using the first encoding QP to obtain precoding result information; a second bit rate control module, configured to adjust the first encoding QP based on the precoding result information to obtain a second encoding QP; and an encoding module, configured to perform real encoding on the to-be-encoded block by using the second encoding QP.

  12. Claim 12Depends on #11

    The encoder according to claim 11, wherein the precoding module is configured to: precode the to-be-encoded block by using the first encoding QP in each of a plurality of prediction modes to obtain precoding result information corresponding to each prediction mode; the encoder further comprises: a selection module, configured to select an optimal prediction mode from the plurality of prediction modes; the second bit rate control module is configured to: adjust the first encoding QP based on encoding result information corresponding to the optimal prediction mode to obtain the second encoding QP; and the encoding module is configured to perform encoding on the to-be-encoded block by using the second encoding QP in the optimal prediction mode.

  13. Claim 13Depends on #12

    The encoder according to claim 12, wherein the encoder further comprises: a pre-analysis module, configured to select at least one optimal spatial-domain prediction mode from a plurality of spatial-domain prediction modes, and select at least one optimal frequency domain prediction mode from a plurality of frequency domain prediction modes, wherein the at least one optimal spatial-domain prediction mode has a smallest encoding cost in the plurality of spatial-domain prediction modes, the at least one optimal frequency domain prediction mode has a smallest encoding cost in the plurality of frequency domain prediction modes, and different prediction modes correspond to the different optimal spatial-domain prediction modes and the optimal frequency domain prediction reference directions and/or different prediction value calculation methods; and the precoding module is configured to: perform spatial-domain precoding on the to-be-encoded block by using the first encoding QP in the at least one optimal spatial-domain prediction mode; and perform frequency domain precoding on the to-be-encoded block by using the first encoding QP in the at least one optimal frequency domain prediction mode.

  14. Claim 14Depends on #11

    The encoder according to claim 11, further comprising a pixel reconstruction module, configured to: when the precoding module precodes the to-be-encoded block by using the first encoding QP, perform a pixel reconstruction on the to-be-encoded block to obtain a reconstructed pixel of the to-be-encoded block in a precoding phase; and the precoding module is further configured to precode a next coding block of the to-be-encoded block with reference to the reconstructed pixel of the to-be-encoded block in the precoding phase.

  15. Claim 15Depends on #11

    The encoder according to claim 11, wherein the precoding module comprises: a prediction unit, configured to predict the to-be-encoded block to obtain residual information; a quantization unit, configured to quantize the residual information by using the first encoding QP; and a cost calculation unit, configured to calculate an encoding cost based on the quantized residual information, wherein the to-be-encoded block is precoded by using the first encoding QP after the residual information is quantized by using the first encoding QP.

  16. Claim 16Depends on #11

    The encoder according to claim 11, wherein the precoding module is configured to precode the to-be-encoded block by using at least a reconstructed pixel of a previous coding block of the to-be-encoded block in a precoding phase as a prediction reference value and by using the first encoding QP, wherein the previous coding block and the to-be-encoded block are adjacent in an encoding time sequence, and an encoding time period of the previous coding block is earlier than an encoding time period of the to-be-encoded block.

  17. Claim 17Depends on #11

    The encoder according to claim 11, wherein the first bit rate control module is configured to determining the first encoding QP based on a texture complexity of the to-be-encoded block and/or a fullness status of a bitstream buffer.

  18. Claim 18Depends on #11

    The encoder according claim 11, wherein the precoding result information comprises at least one of the following: a quantity of encoded bits of the to-be-encoded block obtained by using the first encoding QP, an encoding distortion magnitude of the to-be-encoded block obtained by using the first encoding QP, an encoding rate-distortion cost of the to-be-encoded block obtained by using the first encoding QP, a prediction residual of the to-be-encoded block, and the texture complexity of the to-be-encoded block.

  19. Claim 19Depends on #18

    The encoder according to claim 18, wherein the encoding result information comprises the quantity of encoded bits of the to-be-encoded block obtained by using the first encoding QP; and the second bit rate control module is configured to adjust the first encoding QP based on the precoding result information by: decreasing the first encoding QP when the quantity of encoded bits is less than a target quantity of bits; or increasing the first encoding QP when the quantity of encoded bits is greater than the target quantity of bits, wherein the target quantity of bits depends on a fullness status of a bitstream buffer and a quantity of output bits of the bitstream buffer.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2020/138963, filed on Dec. 24, 2020, which claims priority to Chinese Patent Application No. 201911409793.1, filed on Dec. 31, 2019. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the image processing field, and in particular, to an encoding method and an encoder. BACKGROUND Video image applications have, in recent years, been improved in a plurality of dimensions (such as resolution and frame rate), which has resulted in a significant rise in the amount of data processed by video processing systems. The bandwidth, power consumption, and costs of the video processing system have greatly increased. To effectively reduce the bandwidth, the power consumption, and the costs of the video processing system, a compression technology is applied to the video processing system. The compression technology can effectively reduce the memory and bandwidth requirements of the video processing system, and reduce the cost of the video processing system. Compared with lossless compression, lossy compression without affecting image quality usually has a higher compression rate, and can reduce more memory and bandwidth use. Therefore, it is very important to optimize a compression architecture and increase compression efficiency without affecting image quality. There are many types of compression architectures in the conventional technology. Compression performance of these architectures is not high, and still needs to be optimized. SUMMARY Embodiments of this application provide an encoding method and an encoder, to improve image compression performance. According to a first aspect, an embodiment of this application provides an encoding method, including: determining a first encoding quantization parameter (QP); precoding the to-be-encoded block by using the first enco

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.