A display method and a display device

By extracting the representative values ​​and residual data of pixel blocks from the OLED display and performing quantization encoding optimization, the problems of image ghosting and high-resolution storage resource consumption of the OLED display are solved, achieving efficient image compression and quality assurance.

CN123182571APending Publication Date: 2026-11-27QINGDAO HI-IMAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611203917.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

OLED displays suffer from image ghosting and blurring due to response delays when displaying fast-moving images, and the surge in image data volume under high-resolution displays increases the pressure on storage resources.

Method used

By obtaining the minimum and maximum representative values ​​of pixel blocks in the current frame image, pixel-level residuals are determined, and quantization, symbol encoding, symmetric folding mapping, and lossless encoding are performed to generate a reconstructed image. Overdrive optimization is then performed in conjunction with the previous frame image to reduce data storage requirements.

Benefits of technology

It effectively improves the dynamic picture quality of OLED displays, reduces DDR memory bandwidth pressure and device power consumption, and improves image compression rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182571A_ABST
    Figure CN123182571A_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of display, and particularly relates to a display method and a display device. The method comprises: acquiring a current frame image; performing sign coding based on sign mapping of pixel-level residual error, current quantization granularity and quantized data to generate offset data; performing symmetric folding mapping on the offset data to generate folded data; performing residual data dequantization based on the pixel-level residual error, the folded data and the current quantization granularity to generate reconstructed residual data; performing lossless coding on the folded data to generate a data bit code stream; performing sign coding on the pixel-level residual error to generate a sign bit code stream; decoding the data bit code stream and the sign bit code stream, and combining the reconstructed residual data and a second difference value corresponding to each pixel block to generate a current frame reconstructed image; performing overdrive based on a decoded image of a previous frame, the current frame image and the current frame reconstructed image to generate an overdriven image; and displaying the overdriven image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of display technology, and more particularly to a display method and display device. Background Technology

[0002] With the development of science and technology, display screen technology is advancing rapidly. Currently, commonly used screens include Liquid Crystal Displays (LCDs) and Organic Light-Emitting Diode (OLEDs). In daily use of OLED screens, rapid switching of displayed content can cause objects in the image to appear blurry. This phenomenon is essentially due to the limitations of the response characteristics of OLED pixels. OLEDs achieve display by emitting light through organic light-emitting materials. During the process of a pixel lighting up, adjusting its brightness, and turning it off, there is an inherent response delay in carrier migration and the excitation of the light-emitting material. This results in image ghosting and blurring when displaying fast-moving images, as the brightness state of the previous frame's pixels has not fully switched before the next frame begins refreshing. This problem has become a key bottleneck restricting high-end visual experiences.

[0003] To overcome the blurring bottleneck in OLED dynamic displays, overdrive (OD) technology has emerged as a core optimization method for high-end OLED displays. Its core principle is to accelerate the switching speed of pixel brightness states by dynamically adjusting the driving current or voltage compensation strategy, taking advantage of the response delay characteristics of OLED pixels. OD technology requires real-time data access from the chip's built-in Double Data Rate (DDR) memory. As display resolution increases from 1920×1080 to 4K (3840×2160) and 8K (7680×4320), the amount of image data grows exponentially, leading to a surge in demand for DDR storage.

[0004] Therefore, how to improve image compression rate and reduce storage resource consumption while ensuring display quality has become an urgent problem to be solved. Summary of the Invention

[0005] To address the aforementioned technical problems, this disclosure provides a display method and a display device.

[0006] In a first aspect, this disclosure provides a display device, comprising: a communicator configured to acquire a current frame image; and a controller configured to: acquire the minimum representative value and the maximum representative value of each pixel block in the current frame image; determine a pixel-level residual based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block, wherein the current pixel block and the previous pixel block are in the same row; determine a second difference based on the minimum representative value and the maximum representative value of the current pixel block; and perform a right shift operation of the pixel-level residual by a first target bit according to the current quantization granularity to generate quantized data; wherein the number of bytes occupied by the quantized data is less than the number of bytes occupied by the pixel-level residual, and the first target bit is determined based on the current quantization granularity; and determine a second difference based on the sign of the pixel-level residual. Symbol encoding is performed on the sign mapping, current quantization granularity, and quantized data to generate offset data; symmetrical folding mapping is performed on the offset data to generate folded data; inverse quantization is performed on the residual data based on pixel-level residuals, folded data, and current quantization granularity to generate reconstructed residual data; lossless encoding is performed on the folded data to generate a data bitstream; symbol encoding is performed on the pixel-level residuals to generate a sign bitstream; the data bitstream and sign bitstream are decoded, and combined with the reconstructed residual data and second difference corresponding to each pixel block to generate the reconstructed image of the current frame; overdrive is performed based on the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame to generate the overdrive image; the overdrive image is then displayed on the monitor.

[0007] Secondly, this disclosure provides a display method, comprising: acquiring a current frame image; acquiring the minimum representative value and the maximum representative value of each pixel block in the current frame image; determining a pixel-level residual based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block respectively; wherein the current pixel block and the previous pixel block are in the same row; determining a second difference based on the minimum representative value and the maximum representative value of the current pixel block; performing a right shift operation of the pixel-level residual by a first target bit according to the current quantization granularity to generate quantized data; wherein the number of bytes occupied by the quantization data is less than the number of bytes occupied by the pixel-level residual, and the first target bit is determined based on the current quantization granularity; and determining a second difference based on the sign mapping of the pixel-level residual and the current... The quantization granularity and quantization data are symbolically encoded to generate offset data; the offset data is symmetrically folded and mapped to generate folded data; the residual data is dequantized based on the pixel-level residual, folded data, and the current quantization granularity to generate reconstructed residual data; the folded data is losslessly encoded to generate a data bitstream; the pixel-level residual is symbolically encoded to generate a sign bitstream; the data bitstream and sign bitstream are decoded, and combined with the reconstructed residual data and second difference corresponding to each pixel block to generate the reconstructed image of the current frame; the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame are overdriven to generate the overdriven image; the overdriven image is then displayed.

[0008] Thirdly, this disclosure provides a computer-readable storage medium, comprising: storing a computer program on the computer-readable storage medium, the computer program being executed by a controller using a display method as provided in any of the second aspects.

[0009] Fourthly, this disclosure provides a computer program product comprising a computer program that, when run on a computer, causes the computer to perform a display method as provided in any of the second aspects.

[0010] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on the first computer-readable storage medium. The first computer-readable storage medium may be packaged together with the controller of the electronic device, or it may be packaged separately from the controller of the electronic device; this disclosure does not impose any limitations on this.

[0011] The descriptions of the second, third, and fourth aspects in this disclosure can be referenced to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, and fourth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0012] In this disclosure, the names of the aforementioned electronic devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of this disclosure, they fall within the scope of this disclosure and its equivalents.

[0013] These or other aspects of this disclosure will become more readily apparent in the following description.

[0014] The technical solution provided in this disclosure has the following advantages compared with the prior art: The display device provided in this disclosure determines the pixel-level residual and the second difference by extracting the minimum and maximum representative values ​​of each pixel block in the current frame image. Based on the current quantization granularity, it performs shift quantization, symbol encoding, symmetric folding mapping, and dequantization processing on the pixel-level residual. Combined with lossless encoding and symbol encoding, it generates the corresponding bitstream and decodes and reconstructs the current frame image. Finally, it combines the decoded image of the previous frame, the reconstructed image of the current frame, and the current frame image to complete OLED pixel overdrive optimization. While accurately compensating for OLED pixel response delay, effectively improving the problem of motion blur in high-speed dynamic images, and ensuring high-end display quality, it significantly compresses the image data byte size and improves the image compression rate. It effectively reduces the data access pressure and storage resource occupation of the DDR data storage area during high-resolution image refresh, and solves the core contradiction of the surge in image data volume and the limited storage resources in traditional OLED overdrive technology. Attached Figure Description

[0015] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0016] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of the data flow of the display method provided in the embodiments of this disclosure; Figure 2 This is one of the flowcharts illustrating the display method provided in this embodiment of the disclosure; Figure 3 A schematic diagram of image encoding for a display method provided in an embodiment of this disclosure; Figure 4 A second schematic flowchart illustrating the display method provided in this embodiment of the disclosure; Figure 5 The third schematic flowchart of the display method provided in this embodiment of the disclosure; Figure 6 A fourth schematic flowchart illustrating the display method provided in this embodiment of the present disclosure; Figure 7 Fifth schematic flowchart of the display method provided in the embodiments of this disclosure; Figure 8 A schematic flowchart of the display method provided in this embodiment of the present disclosure is shown in Figure 6. Figure 9 Seventh schematic flowchart of the display method provided in the embodiments of this disclosure; Figure 10 A schematic diagram of the result of the display device provided in the embodiments of this disclosure; Figure 11 This is a schematic diagram of a chip system provided in an embodiment of this disclosure. Detailed Implementation

[0018] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0019] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0020] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0021] With the iterative upgrades of display technology, OLED screens have been widely used due to their superior display characteristics. However, limited by the inherent response delay of carrier migration and material excitation in organic light-emitting materials, OLED pixels suffer from response lag during brightness switching. This can easily lead to ghosting and blurring in high-speed dynamic image displays, severely impacting the visual experience of high-end displays. To improve the dynamic display effect of OLEDs, the industry generally adopts overdrive (OD) technology to accelerate pixel brightness state switching. However, the trend towards high-resolution and high-refresh-rate displays has led to a significant surge in image data volume, resulting in a substantial increase in the DDR memory bandwidth pressure, device power consumption, and hardware costs required for overdrive technology. Therefore, image compression technology needs to be introduced to optimize data transmission and storage pressure. Block truncation coding (BTC) is a commonly used and efficient image compression algorithm that can reduce the dimensionality of image data through image segmentation, feature extraction, and threshold quantization, making it suitable for high-resolution OLED image compression scenarios. However, the traditional BTC algorithm has the problem of redundant transmission of representative values ​​within blocks and does not adapt to the specific characteristics of OLED overdriven images. Its compression ratio and algorithm adaptability are limited, making it difficult to meet the industry requirements of high compression performance, low power consumption, and excellent display effect. Based on this, this disclosure proposes a display method to solve the above-mentioned technical problems.

[0022] To address the shortcomings of existing technologies, this disclosure provides a display method, comprising: acquiring a current frame image; determining the minimum and maximum representative values ​​of each pixel block in the current frame image; determining a pixel-level residual based on the minimum representative value corresponding to the current pixel block and the previous pixel block in the same row; determining a second difference based on the minimum and maximum representative values ​​of the current pixel block; performing a right shift operation of a first target bit on the pixel-level residual according to the current quantization granularity to generate quantized data with a number of bytes less than the pixel-level residual, wherein the first target bit is determined by the current quantization granularity; and performing a sign mapping operation based on the sign mapping of the pixel-level residual, the current quantization granularity, and the quantized data. The process involves encoding offset data; performing symmetrical folding mapping on the offset data to generate folded data; dequantizing the residual data based on the pixel-level residual, folded data, and current quantization granularity to generate reconstructed residual data; lossless encoding of the folded data and sign encoding of the pixel-level residual to generate corresponding data bit streams and sign bit streams; decoding of the data bit streams and sign bit streams, and combining the reconstructed residual data corresponding to each pixel block with the second difference to obtain the reconstructed image of the current frame; then, overdrive processing is performed on the decoded image of the previous frame, the original image of the current frame, and the reconstructed image of the current frame to generate the overdrive image, which is then displayed. It can be seen that, compared to the traditional block truncation coding (BTC) algorithm, the display method provided in this embodiment constructs pixel-level residuals based on the minimum representative value of adjacent pixel blocks, and effectively eliminates the data redundancy problem of representative value transmission within blocks in traditional algorithms through differentiated data processing methods such as quantization right shift, symmetrical folding mapping, and layered encoding and decoding, significantly improving image data compression rate and algorithm flexibility. Meanwhile, the display method provided in this disclosure is deeply adapted to the overdrive image characteristics of OLEDs. While ensuring the visual display quality, it effectively reduces the DDR memory bandwidth pressure on high-resolution, high-refresh-rate OLED display devices, thereby reducing device power consumption and hardware costs. Furthermore, the display method provided in this disclosure, through precise residual inverse quantization reconstruction and overdrive fusion optimization, effectively improves the image ghosting and blurring problems caused by OLED pixel response delay, significantly enhancing the display effect of dynamic OLED images. It effectively balances the display performance, power consumption, and hardware costs of high-end OLED display devices, adapting to the application needs of various high-specification OLED display terminals.

[0023] In some examples, the display method provided in this disclosure is applied before overdrive (OD), where the compressed bitstream is stored in DDR (Double Data Rate), and the bitstream is decompressed before OD as input. The specific data path is as follows: Figure 1 As shown, it includes: After acquiring the current frame image, the following steps are performed on the current frame image: obtaining the minimum and maximum representative values ​​of each pixel block in the current frame image; determining the pixel-level residual based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block; determining the second difference based on the minimum and maximum representative values ​​of the current pixel block; shifting the pixel-level residual to the right by a first target bit according to the current quantization granularity to generate quantized data; performing sign encoding based on the sign mapping of the pixel-level residual, the current quantization granularity, and the quantized data to generate offset data; performing symmetrical folding mapping on the offset data to generate folded data; performing inverse quantization on the residual data based on the pixel-level residual, the folded data, and the current quantization granularity to generate reconstructed residual data; performing lossless encoding on the folded data to generate a data bit stream; performing sign encoding on the pixel-level residual to generate a sign bit stream; decoding the data bit stream and the sign bit stream, and combining the reconstructed residual data corresponding to each pixel block and the second difference to generate the reconstructed image of the current frame, thereby completing the compression process shown in the figure. Next, the data bit stream and sign bit stream are stored in the DDR data storage area. Then, the encoded data of the previous frame is retrieved from the DDR data storage area. The encoded data of the previous frame is decompressed, such as by decoding the encoded data, to obtain the initial minimum representative value, the initial maximum representative value, the data bit stream, and the sign bit stream. Based on the initial minimum representative value, the initial maximum representative value, the data bit stream, and the sign bit stream, the decoded image of the previous frame is generated. Then, based on the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame, overdrive is performed to generate the overdrive image; the overdrive image is then displayed.

[0024] In the following embodiments, a display device is used as the execution subject of the display method provided in the embodiments of this disclosure to illustrate the method of the embodiments of this disclosure.

[0025] This disclosure provides a display method, such as... Figure 2 As shown, the display method may include S10-S22.

[0026] S10. Obtain the current frame image.

[0027] S11. Obtain the minimum and maximum representative values ​​of each pixel block in the current frame image.

[0028] In some examples, obtaining the minimum and maximum representative values ​​of each pixel block in the current frame image includes: for any pixel block in the current frame image, based on the pixel value of each pixel in the pixel block, determining the first pixel whose pixel value is less than or equal to a pixel threshold, and the second pixel whose pixel value is greater than the pixel threshold; calculating the average of the pixel values ​​of all first pixels in the pixel block, and using this average as the minimum representative value of the pixel block; calculating the average of the pixel values ​​of all second pixels in the pixel block, and using this average as the maximum representative value of the pixel block.

[0029] For example, a pixel block contains 16 pixels, and the pixel threshold is set to M (e.g., M equals 128). There are 7 pixels in the pixel block that are first pixels, with pixel values ​​of {64, 72, 80, 88, 96, 104, 112}. The average pixel value of the first pixels is 88, so the minimum representative value of the pixel block is 88. The remaining 9 pixels are second pixels, with pixel values ​​of {136, 144, 152, 160, 168, 176, 184, 192, 200}. The average pixel value of the second pixels is 168, so the maximum representative value of the pixel block is 168.

[0030] In some examples, for the first pixel block of each row in the current frame image, there is no preceding adjacent pixel block in the row with a higher decoding order, so the inverse intra-row block difference operation is not performed; the minimum representative value of the first pixel block of each row is directly stored in the encoded data and obtained directly after decoding from the DDR data storage area. The maximum representative value of the first pixel block of each row is obtained by adding the minimum representative value obtained directly and the second difference obtained from the bitstream parsing.

[0031] For all pixel blocks in the same row except the first pixel block, the encoded data no longer stores the complete minimum representative value, but only the symbol identifier, folded data, quantization granularity, and second difference. During decoding, the minimum representative value of the previous adjacent pixel block in the row that has been decoded is used as the recursive reference, and the reconstruction residual of the current block is superimposed. The minimum representative value of the current pixel block is obtained by solving the inverse difference operation of the intra-row blocks.

[0032] For example, within a row of the current frame image, PB0 is the first pixel block at the beginning of the row. The minimum representative value of PB0 is 142, obtained directly from the encoded data read from the DDR data storage area. The second difference value of PB0 is 56. The maximum representative value of PB0 is calculated to be 142 + 56 = 198. PB1 is the second pixel block in the row. Using the minimum representative value of PB0 (142) as a recursive reference, the minimum representative value of PB1 is obtained through inverse block difference operation within the row. PB2 is the third pixel block in the row. Using the minimum representative value of PB1 (142) as a recursive reference, the reconstruction residual of PB2 (-44) is superimposed to obtain the minimum representative value of PB2 (98). Combined with the second difference value of PB2 (60), the maximum representative value of PB2 is obtained as 158.

[0033] S12. Determine the pixel-level residual based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block, respectively. The current pixel block and the previous pixel block are in the same row.

[0034] In some examples, when determining the pixel-level residual based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block, if the current pixel block is the first pixel block in its row (with no other pixel blocks preceding it), then the minimum representative value of the current pixel block is used as the pixel-level residual; if the current pixel block is any of the other pixel blocks in its row except the first pixel block, then the minimum representative value of the current pixel block is calculated. ) and the minimum representative value of the previous pixel block ( The difference between ) is used as the pixel-level residual ( ). The pixel-level residual The key data for the encoding output is stored in the DDR data storage area to complete the encoding of the minimum representative value of the current pixel block. The core of this design is to utilize the correlation between the minimum representative values ​​of adjacent pixel blocks to transform the original absolute value into a residual with a smaller dynamic range, thereby significantly reducing the amount of data that needs to be stored and transmitted, and improving the overall compression efficiency.

[0035] In some implementations, during decoding, the reconstruction of the minimum representative value follows inverse differential logic and is performed strictly in the encoding order of the pixel blocks. For each pixel block to be decoded, the corresponding pixel-level residual is first read from the DDR data storage area. Simultaneously, it retrieves the minimum representative value reconstructed from the previously decoded pixel block and uses it as the reference benchmark for the current decoding, thus reducing the pixel-level residual. The minimum representative value of the current pixel block is calculated by summing the result with this reference value. Through this mechanism, the decoder can determine the minimum representative value of the current pixel block based on historical reference values ​​and pixel-level residuals. It accurately restores the minimum representative value of each pixel block.

[0036] In some examples, it is assumed that the minimum representative value has a bit width of x, is an unsigned number, and has a value range of [0, (1<<x)-1]; the pixel-level residual obtained through differential operation requires a bit width of x+1 to be fully represented. To avoid data volume expansion after encoding, it is necessary to perform bit width truncation on the pixel-level residual , truncate the bit width of the pixel-level residual to x bits, so that its value range is limited to [-(1<<(x-1)), (1<<(x-1)), and the residual obtained after truncation is denoted as .

[0037] Illustratively, when the bit width x of is 8, that is, the value range of is 0 to 255; the pixel-level residual theoretically requires a bit width of 9 bits; the pixel-level residual is truncated to an 8-bit signed number, and its value range is limited to [-128, 128). When the pixel-level residual exceeds the interval [-128, 128), the pixel-level residual is subjected to clamping processing, and the pixel-level residual within the interval [-128, 128) is directly retained and output as .

[0038] S13: Determine a second difference based on the minimum representative value and the maximum representative value of the current pixel block.

[0039] In some implementations, an indirect encoding strategy is adopted for the maximum representative value ( ), that is, the maximum representative value itself is not directly encoded, but a second difference between the minimum representative value and the maximum representative value of the current pixel block is calculated ( ), and the second difference is encoded.

[0040] In summary, the display method provided by the embodiments of the present disclosure effectively reduces the data volume output by the encoding end through differential encoding of the minimum representative value and difference encoding of the maximum representative value on the premise of ensuring complete data reconstruction, achieving a balance between compression efficiency and reconstruction accuracy. For and calculated by the encoding end, a processing method combining quantization and Huffman coding is adopted for , and a direct encoding method is adopted for to further improve the compression ratio.

[0041] S14. The pixel-level residual is right-shifted by the first target bit according to the current quantization granularity to generate quantized data. The number of bytes occupied by the quantized data is less than the number of bytes occupied by the pixel-level residual, and the first target bit is determined based on the current quantization granularity.

[0042] In some examples, for pixel-level residuals Quantization is performed, and the quantization strength is adjusted based on the current quantization granularity. Decide; A larger value indicates a stronger degree of quantization, resulting in less generated bitstream data, but also a relatively coarser image quality from the encoded reconstruction. Let the quantization data be denoted as... By analyzing pixel-level residuals Move right The digit is obtained, and the calculation formula is: .

[0043] This right shift operation is equivalent to shifting the pixel-level residual pairs... Perform integer division and discard the decimal part. For example, when the pixel-level residual... It is 18. When taking 2, shift 18 right by 2 bits to get The value is 4; the decoding end shifts the quantized result to the left. The 4-bit value is approximated by shifting it left by 2 bits to obtain 16, which has a quantization error compared to the original pixel-level residual of 18.

[0044] In some examples, the first target bit is equal to the current quantization granularity.

[0045] S15. Symbol encoding is performed based on the pixel-level residual symbol mapping, the current quantization granularity, and the quantization data to generate offset data.

[0046] In some implementations, pixel-level residuals Performing symbol mapping on residual data includes: using 1 bit for pixel-level residuals The symbol is mapped to obtain the symbol map sign; the mapping rule is: if the pixel-level residual If the value is non-negative, the sign mapping is set to 0; if the pixel-level residual... If the value is negative, the sign mapping is set to 1.

[0047] Based on symbol mapping (sign) and quantized data and the current quantization granularity Perform residual data offset calculation to obtain offset data. .

[0048] For example, take Bit width x=8, pixel-level residual The value is -42, representing the current quantization granularity. Choose 2. First, perform symbol mapping, pixel-level residuals. If the value is negative, the sign mapping is obtained as sign=1; for pixel-level residuals Perform a right shift 2-bit quantization: -42 >> 2 = -11, to obtain the quantized data. =-11; Set sign=1, =-11、 =2 Input residual data offset module, since sign is 1, execute = +(1<< The offset data is calculated. =-11+4=-7.

[0049] It should be noted that, at the pixel-level residual... In the offset operation, when the sign mapping is 1, it represents a pixel-level residual. If it is negative, the quantified data will be used. Plus Obtain the offset data; when the sign mapping (sign) is 0, it indicates that the original residual is non-negative, and the quantized data is directly processed. As offset data Residual data folding for quantized data Take the absolute value to obtain the clipped residual data that is always non-negative, and adapt it to the entropy encoding input.

[0050] S16. Perform symmetrical folding mapping on the offset data to generate folded data.

[0051] In some examples, for offset data Perform residual data folding to convert negative values ​​to positive values, resulting in folded data. This is to adapt to subsequent encoding requirements.

[0052] For example, following the example in S15 above, offset data The value is -7. After folding the residual data and taking the absolute value, the folded data is obtained. =7. The folded data output after folding processing. Always using non-negative integers serves two purposes: firstly, it eliminates the sign information of the data, as the sign information has already been carried out separately by the preceding sign mapping (sign); secondly, non-negative values ​​are more conducive to Huffman coding for statistical analysis of probability distributions, thus improving coding compression performance.

[0053] S17. Based on pixel-level residuals, folded data, and the current quantization granularity, perform inverse quantization of residual data to generate reconstructed residual data.

[0054] In some examples, based on pixel-level residuals Folded data Current quantization granularity Perform inverse quantization of the residual data to generate reconstructed residual data, including: pixel-level residual data. Corresponding symbol mapping Folded data and the current quantization granularity Perform inverse quantization on the residual data to generate reconstructed residual data. The inverse quantization process sequentially performs inverse folding and inverse quantization shifting, and then combines this with sign mapping to obtain the reconstructed residual data: First, based on the sign mapping... For folded data Perform a reverse fold to restore the offset data. For offset data Perform the inverse offset operation to recover the quantized data. ; then quantified the data Perform left shift The dequantization operation is performed; the result after dequantization and shifting is multiplied by the sign bit to obtain the reconstructed residual data. .

[0055] For example, following the example given in S16 above, suppose the symbol mapping 1, folded data =7, current quantization granularity Take 2. First, perform a reverse fold, because... Equal to 1, will Take the negative value to get the offset data. =-7; Perform the reverse offset operation. When it is 1, the offset data will be... Subtract 1<< That is, 4, to obtain quantified data. =-11; Quantize the data Shifting left by 2 bits yields a shift result of -44; multiplying this shift result by the sign bit gives the reconstructed residual data. =-44. This is the reconstructed residual data. (-44) and the original pixel-level residual There is a quantization error between (-42), which originates from the shift quantization operation in the encoding stage.

[0056] S18. Perform lossless encoding on the folded data to generate a data bitstream.

[0057] In some examples, the data will be collapsed. The quantized data is encoded to generate a data bitstream. .

[0058] In some examples, lossless coding includes Huffman coding.

[0059] In some examples, the display method provided in this disclosure provides folded data obtained after folding processing. Lossless Huffman coding is used for compressed storage. Statistical analysis shows that the folded data after quantization and offset folding... It follows a normal distribution centered at 0. Small absolute residuals have a very high probability of occurrence, while large absolute residuals have a very low probability of occurrence. Therefore, this scheme is configured with a dedicated Huffman code table adapted to the characteristics of this distribution. The specific code table is shown in Table 1.

[0060] Table 1

[0061] The encoding rule is as follows: for non-negative folded data after folding. First, codewords with corresponding absolute values ​​in the code table are matched for encoding; if data is folded... If the absolute value is greater than 4, then a 5-bit escape code 0b11111 is used as the prefix, followed by the pixel-level residual. The fixed bit-width data is encoded, balancing the high compression ratio of small residuals with the encoding integrity of large residuals.

[0062] For example, the folding data obtained in S17 above Complete the Huffman coding implementation: 1. Folding data obtained from S17 =7, the absolute value of 7 is greater than 4, which exceeds the normal range of the code table. Therefore, escape encoding is adopted. First, a 5-bit escape codeword is written: 0b11111; then the pixel-level residual is continued. The corresponding fixed-width original data is used to complete the lossless Huffman encoding of this set of folded data.

[0063] 2. Supplementary examples of conventional numerical encoding: If data is folded =0, the absolute value of 0 matches the codeword 0b0, occupying only 1 bit width; if data is folded =1, the absolute value of 1 matches the codeword 0b10, occupying a 2-bit width; if folded data =3, the absolute value of 3 matches the codeword 0b1110, occupying a 4-bit width. Compared to the fixed-width storage method, this adaptive Huffman coding method can significantly reduce the storage width of high-frequency small residual data, which fits the normal distribution characteristics of residual data, and significantly improves the overall bitstream compression efficiency while ensuring lossless encoding.

[0064] S19. Perform sign encoding on the pixel-level residuals to generate a sign bit code stream.

[0065] In some examples, the sign map `sign` is fed into the residual data sign encoding to generate a sign bit code stream. .

[0066] In some examples, symbol information is not lost, and the symbol mapping (sign) is already used as an independent bitstream. The output, the decoder will use this sign to recover the original positive and negative attributes.

[0067] In some examples, after obtaining the encoded data of the minimum representative value, the second difference, the data bit stream, and the sign bit stream corresponding to each pixel block of the current frame image, the encoded data of the minimum representative value, the second difference, the data bit stream, and the sign bit stream corresponding to each pixel block of the current frame image are cached in the DDR data storage area.

[0068] In some examples, the entire encoded bitstream of the current frame image is retained in the DDR data storage area until the next frame is encoded and overwritten, thus avoiding repeated reading of the original image from the outside and reducing bandwidth pressure.

[0069] S20. Decode the data bit stream and the sign bit stream, and combine them with the reconstruction residual data and the second difference corresponding to each pixel block to generate the reconstructed image of the current frame.

[0070] In some examples, for the data bitstream and sign bit bit stream Decoding is performed, combining the reconstructed residual data corresponding to each pixel block with the second difference. Generate the reconstructed image of the current frame, including: First, analyze the sign bit code stream. Decode the image to obtain pixel-level residuals. The corresponding symbol is sign; for the data bit stream Decode the data to obtain the folded data. The symbol "sign" is used to fold data. and the current quantization granularity The input residual inverse quantization process involves inverse folding, inverse offset, and left shift inverse quantization operations to obtain the reconstructed residual data corresponding to the pixel block, i.e., the reconstructed residual data. .

[0071] The minimum representative value is then reconstructed block by block according to the row scanning order of the pixel blocks; if the pixel block to be decoded is the first pixel block in its row, the residual data is reconstructed. The minimum representative value for the reconstruction of that pixel block is used directly; if the pixel block to be decoded is any of the other pixel blocks in the same row except for the first pixel block, then the residual data is reconstructed. The minimum representative value of the current pixel block is obtained by adding it to the minimum reconstructed representative value of the previous pixel block in the same row. Further parsing of the bitstream yields the second difference value for the current pixel block. The minimum representative value and the second difference will be reconstructed. Add them together to get the maximum reconstructed representative value of the current pixel block. Obtain the block truncation encoded bitmap mask corresponding to the pixel block, and recover the pixel values ​​of each pixel inside the pixel block based on the minimum reconstructed representative value, the maximum reconstructed representative value, and the bitmap mask; traverse and process all pixel blocks in the frame, and stitch the pixels of each pixel block together to obtain the reconstructed image of the current frame.

[0072] For example, following the example given in S17 above, the pixel blocks to be decoded are the remaining pixel blocks in the row except for the first pixel block, and the sign bit bit code stream is parsed. If sign=1 is obtained, the data bit stream is parsed. Obtain folded data =7, current quantization granularity Take 2; obtain the reconstructed residual data through residual inverse quantization. The value is -44; the minimum representative value of the reconstructed pixel block in the same row is 142, so the minimum representative value of the reconstructed current pixel block is -44 + 142 = 98; the second difference value of this pixel block is obtained by parsing. The maximum reconstructed representative value is calculated to be 98 + 60 = 158. Then, combined with the bitmap mask corresponding to the pixel block, all pixels in the block are recovered. After all pixel blocks in the frame are processed, they are stitched together to obtain the complete reconstructed image of the current frame.

[0073] In some examples, based on the pixel-level residual and the current quantization granularity, the sign bit stream containing the sign encoding corresponding to the pixel-level residual, the reconstructed residual data, and the data bit stream containing the quantized encoding of the pixel-level residual can be determined.

[0074] In some examples, such as Figure 3 As shown, based on the pixel-level residual and the current quantization granularity, the following are determined: a symbol bit stream containing the symbol encoding corresponding to the pixel-level residual, reconstructed residual data, and a data bit stream containing the quantized encoding of the pixel-level residual. This includes: right-shifting the pixel-level residual by a first target bit according to the current quantization granularity to generate quantized data; performing symbol encoding based on the symbol mapping of the pixel-level residual, the current quantization granularity, and the quantized data; generating offset data; performing symmetrical folding mapping on the offset data; generating folded data; performing inverse quantization of the residual data based on the pixel-level residual, the folded data, and the current quantization granularity; generating reconstructed residual data; performing lossless encoding on the folded data; and generating a data bit stream. Finally, the pixel-level residual is symbol-encoded to generate a symbol bit stream.

[0075] S21. Based on the decoded image of the previous frame, the image of the current frame, and the reconstructed image of the current frame, perform overdrive to generate the overdrive image.

[0076] In some examples, driven processing is performed based on the decoded image of the previous frame, the image of the current frame, and the reconstructed image of the current frame to generate a driven image, including: Overdrive calculations are performed pixel-by-pixel, setting an error threshold T and an overdrive gain coefficient k. For each pixel, the pixel error between the current frame image and the reconstructed image of the current frame is calculated. If the pixel error is less than or equal to the error threshold T, the overdrive pixel value is calculated based on the pixel values ​​of the decoded image of the previous frame, the pixel values ​​of the current frame image, and the overdrive gain coefficient k. If the pixel error is greater than the error threshold T, the overdrive pixel value is calculated based on the pixel values ​​of the decoded image of the previous frame, the pixel values ​​of the reconstructed image of the current frame, and the overdrive gain coefficient k. All pixels are traversed to obtain the complete overdrive image, which is then output to the display driver module to accelerate OLED pixel brightness transitions and improve motion blur issues in dynamic images.

[0077] For example, for any pixel, assume that the pixel value of that pixel in the decoded image of the previous frame is 80, the pixel value of that pixel in the current frame image is 160, and the pixel value of that pixel in the reconstructed image of the current frame is 158; let the overdrive gain coefficient k be 0.3, and the error threshold T be 5. Calculate the pixel error |160-158|=2. This error 2 is less than the threshold T, therefore the original image of the current frame is used in the overdrive calculation, and the overdrive pixel value is 160+0.3×(160-80)=184. After all pixels have completed the calculation, a complete overdrive image is generated and supplied to the display driver module.

[0078] S22. Display the image after the driver has been applied.

[0079] As described above, the display method provided in this embodiment extracts the minimum and maximum representative values ​​of each pixel block in the current frame image, determines the pixel-level residual by combining the minimum representative values ​​of adjacent pixel blocks in the same row, determines the second difference by combining the extreme values ​​of the pixel blocks, performs right-shift quantization, symbol encoding, symmetric folding mapping and inverse quantization processing on the pixel-level residual according to the current quantization granularity, generates reconstructed residual data, and performs lossless encoding and symbol encoding on the folded data and pixel-level residual respectively to generate corresponding bitstreams. After decoding, the reconstructed image of the current frame is obtained by combining the reconstructed residual data and the second difference. Then, the decoded image of the previous frame, the current frame image and the reconstructed image of the current frame are fused to complete the pixel overdrive optimization and output the display. This can effectively compensate for OLED pixel response delay, eliminate the blurring and ghosting problem of high-speed dynamic images, and significantly reduce the image data byte occupation and improve the image compression rate through quantization compression. It can also significantly reduce the data access pressure and resource occupation of the DDR data storage area in high-resolution scenarios. Under the premise of ensuring high-quality display effect, it effectively solves the core technical contradiction of large data volume and limited storage resources in traditional OLED overdrive technology.

[0080] In some feasible examples, combining Figure 2 ,like Figure 4 As shown, the display method provided in this embodiment of the present disclosure further includes S23-S25.

[0081] S23. Obtain the encoded data of the previous frame image stored in the double data rate memory.

[0082] In some examples, the encoded data of the previous frame image is the complete bitstream data obtained after pixel block division, representative value calculation, residual differential quantization, symbol mapping folding and entropy coding of the previous frame image. It includes the encoded data of the minimum representative value corresponding to each pixel block, the second difference, the data bit bit bitstream and the symbol bit bit bitstream. The entire process is cached in the DDR data storage area and can be directly read and called.

[0083] S24. Decode the encoded data to obtain the initial minimum representative value, the initial maximum representative value, the data bit stream, and the sign bit stream.

[0084] In some examples, the specific decoding process for decoding encoded data is as follows: entropy decoding is performed on the encoded bitstream of the encoded data to extract independent symbol bitstreams and data bitstreams. By entropy decoding of the encoded bitstream of the encoded data, the residual data and symbol identifiers of each pixel block after folding in the previous frame image are obtained. Then, through inverse folding, inverse offset, and inverse quantization operations, the minimum representative value of each pixel block is recovered. At the same time, the second difference in the encoded data is parsed, and the initial maximum representative value of each pixel block is recovered by combining it with the initial minimum representative value.

[0085] S25. Based on the initial minimum representative value, the initial maximum representative value, the data bit stream, and the symbol bit stream, generate the decoded image of the previous frame.

[0086] In some examples, following the image row scanning order, each pixel block is used to recover all pixel values ​​within each pixel block using the minimum representative value, the maximum representative value, and the block bitmap mask. All pixel blocks within the frame are traversed and pixel stitching is completed, ultimately generating a complete decoded image of the previous frame that can be used for subsequent overdrive operations.

[0087] For example, taking any pixel block in the previous frame as an example: read the encoded data of the pixel block from the DDR data storage area, decode and split it to obtain the symbol identifier sign=1 corresponding to the symbol bit bit bit stream and the folded data corresponding to the data bit bit stream. =7. Current quantization granularity =2, Second Difference =60; Assuming the minimum representative value of the preceding adjacent pixel block in the row where any pixel block is located is 142, the reconstruction residual data of any pixel block in the previous frame image is obtained by inverse quantization. 44; According to the inverse difference operation formula: ; .

[0088] in, This represents the minimum representative value of any given pixel block. This represents the minimum representative value obtained by decoding the preceding adjacent pixel block in the row where any given pixel block is located. This represents the reconstruction residual data for any given pixel block.

[0089] The minimum representative value of the pixel block is obtained by reconstruction, which is 98. Then, by adding the minimum representative value and the second difference, the maximum representative value is obtained as 98 + 60 = 158. Based on this set of minimum representative values ​​and the pixel block bitmap mask, the grayscale values ​​of all pixels in the block are recovered. The entire frame image is reconstructed block by block, and finally the complete decoded image of the previous frame is obtained, providing reference image data for subsequent inter-frame overdrive processing.

[0090] As described above, the display method provided in this embodiment acquires the current frame image, extracts the minimum and maximum representative values ​​of each pixel block, determines the pixel-level residual by combining the minimum representative values ​​of adjacent pixel blocks in the same row, determines the second difference by combining the extreme values ​​of the pixel blocks, performs right-shift quantization, symbol encoding, symmetric folding mapping, and inverse quantization processing on the pixel-level residual according to the current quantization granularity, generates reconstructed residual data, and performs lossless encoding and symbol encoding on the folded data and pixel-level residual respectively to generate corresponding bitstreams. After decoding, the reconstructed image of the current frame is obtained by combining the reconstructed residual data and the second difference. Then, the previously decoded image, the original image of the current frame, and the reconstructed image are fused to complete pixel overdrive optimization and output the display. This can effectively compensate for OLED pixel response delay, eliminate the blurring and ghosting problem of high-speed dynamic images, and significantly reduce the image data byte occupation and improve the image compression rate through quantization compression. This significantly reduces the data access pressure and resource occupation of the DDR data storage area in high-resolution scenarios. Under the premise of ensuring high-quality display effect, it effectively solves the core technical contradiction of large data volume and limited storage resources in traditional OLED overdrive technology.

[0091] In some feasible examples, combining Figure 2 ,like Figure 5 As shown, the display method provided in this embodiment of the present disclosure further includes S26-S30.

[0092] S26. Based on the actual quantization granularity of the previous pixel block, generate N candidate granularities; where N is an integer greater than or equal to 1.

[0093] In some examples, N equals 3. The candidate granularity equals... –1、 , +1; where, This indicates the actual quantization granularity of the previous pixel block.

[0094] Boundary constraints are applied to the generated candidate granularities to ensure that the candidate granularities are not less than the preset minimum quantization granularity and not greater than the preset maximum quantization granularity, thus obtaining effective candidate granularities.

[0095] S27. Shift the pixel-level residuals to the right by the second target bit according to the candidate granularity to generate N sets of reconstructed residual data and the number of pre-coding bits corresponding to each set of reconstructed residual data.

[0096] In some examples, the number of precoding bits is not obtained by encoding the reconstructed residual data. During precoding simulation, the pixel-level residuals are first quantized and folded based on candidate granularity to obtain quantized symbols (including the symbol identifier `sign`, folded data, etc.). and the current quantization granularity The process involves entropy encoding of the quantized symbols, calculating the total bit length of the bitstream, and obtaining the pre-coded bit count. Then, entropy decoding and dequantization are performed on the bitstream to generate reconstructed residual data. The pre-coded bit count characterizes the coding bit overhead; the reconstructed residual data characterizes the quantization distortion and participates in the calculation of the pre-coded residual sum. For example, when the current quantization granularity qp=1, quantization folding of the pixel-level residuals yields quantized symbols, and entropy encoding of these symbols results in a pre-coded bit count of 13 bits; after entropy decoding and dequantization, the reconstructed residual data is obtained as 42 bits.

[0097] For example, referring to the example given in S26 above, assume the pixel-level residual of the current pixel block =-42, minimum quantization granularity is 1, maximum quantization granularity is 4; actual quantization granularity of the previous pixel block. =2, N=3; generate 3 candidate granularities: -1=1、 =2、 +1=3, all of which fall within the interval [1, 4], so no clamping is needed. The effective candidate granularity set is {1, 2, 3}.

[0098] 1) Candidate Granularity =1: Shift the pixel-level residual -42 right by 1 bit to obtain the quantized data -21; after offsetting, folding, and Huffman coding, the pre-coded bit count is obtained as 13 bits; then, after inverse quantization and analog decoding, the reconstructed residual data of this group is obtained. =-42.

[0099] 2) Candidate Granularity =2: Shift the pixel-level residual -42 right by 2 bits to obtain quantized data -11; sequentially perform offset, folding, and Huffman coding to obtain 11 pre-coded bits; then perform inverse quantization and analog decoding to obtain the reconstructed residual data for this group. =-44.

[0100] 3) Candidate Granularity =3: Shift the pixel-level residual -42 right by 3 bits to obtain the quantized data -5; through offsetting, folding, and Huffman coding, the pre-coded bit count is obtained as 9 bits; then, through inverse quantization and analog decoding, the reconstructed residual data for this group is obtained. =-40.

[0101] We ultimately obtained 3 sets of data: Candidate Granularity =1: The reconstructed residual data is -42, and the number of pre-coded bits is 13; Candidate Granularity =2: The reconstructed residual data is -44, and the number of pre-coded bits is 11; Candidate Granularity =3: The reconstructed residual data is -40, and the number of pre-coded bits is 9 bits.

[0102] S28. Calculate the square of the difference between the reconstructed residual data and the pixel-level residual for each pixel to obtain the cumulative sum of the precoding residuals corresponding to the reconstructed residual data.

[0103] For example, in conjunction with the example given in S26 above, the pixel-level residual of the current pixel block =-42; Calculated for the reconstruction residual data corresponding to the three candidate granularities respectively: 1) Candidate Granularity =1: Reconstruct residual data =-42; The difference between the reconstructed residual data and the pixel-level residual is -42 - (-42) = 0, and the square of this difference is... =0; Precoded residual cumulative sum =0.

[0104] 2) Candidate Granularity =2: Reconstruct residual data =-44; The difference between the reconstructed residual data and the pixel-level residual is (-44) - (-42) = -2, and the square of this difference is... =4; Precoded residual cumulative sum =4.

[0105] 3) Candidate Granularity =3: Reconstruct residual data =-40; The difference between the reconstructed residual data and the pixel-level residual is (-40) - (-42) = 2, and the square of this difference is... =4; Precoded residual cumulative sum =4.

[0106] Summarize the three sets of precoded data output from S27 and S28 : Candidate Granularity =1: The number of precoding bits is 13 bits, and the cumulative sum of precoding residuals is 0.

[0107] Candidate Granularity =2: The number of precoding bits is 11 bits, and the cumulative sum of precoding residuals is 4.

[0108] Candidate Granularity =3: The number of precoding bits is 9 bits, and the cumulative sum of precoding residuals is 4.

[0109] S29. When there is a number of precoded bits less than the target number of bits, determine the storage level based on the current accumulated number of bits, the number of precoded bits less than the target number of bits, and the number of bits reduced.

[0110] In some examples, the target number of bits Used to limit the upper limit of bits allowed in a macroblock; the target number of bits is determined by the budget number of bits in the macroblock. The scaling factor is calculated based on the waterline level. The bucket model maps the physical waterline depth of the code control buffer to eight waterline levels (0-7), with each waterline level configured with a corresponding scaling factor. The scaling factor array is [1.8, 1.6, 1.4, 1.2, 1.0, 0.8, 0.7, 0.6]. The budget bits of the macroblock are calculated. Multiply by the scaling factor corresponding to the current waterline level to obtain the target number of bits. During the mode decision-making stage, the number of precoded bits for each prediction mode is compared with the target number of bits. Prediction modes with a precoded bit number greater than or equal to the target number of bits are directly eliminated and no longer participate in the selection of the optimal prediction mode, thereby achieving constraint control of the compression bit rate.

[0111] For example, combining the examples given in S27 and S28 above, calculate the target number of bits for the current macroblock, and the budget bits for this example macroblock. =120 bits; the waterline level index is 1, and the scaling factor corresponding to waterline level index 1 in the scaling factor array [1.8, 1.6, 1.4, 1.2, 1.0, 0.8, 0.7, 0.6] is 1.6; substituting into the calculation: = ; bit.

[0112] Compare the number of precoded bits corresponding to each candidate granularity with the target number of 192 bits: Candidate Granularity =1 corresponds to 13 bits of precoding bits, which is less than 192 bits; therefore, it is retained. Candidate granularity =2 corresponds to 11 bits of precoding bits, which is less than 192 bits; therefore, it is retained. Candidate granularity =3 corresponds to a precoding bit count of 9 bits, which is less than 192 bits, so it is retained. All three candidate granularities are retained and proceed to the subsequent optimal quantization granularity selection process based on waterline depth branching.

[0113] In some examples, the scaling factor calculation process includes determining the cumulative sum based on the sum of the current cumulative bit count, the number of precoded bits less than the target bit count, and the subtracted bit count, when there is a precoded bit count less than the target bit count. Then, based on the cumulative sum, the bit interval into which the cumulative sum falls is determined, and the theoretical coefficient corresponding to that bit interval is used as the scaling factor.

[0114] For example, the correspondence between bit intervals and theoretical coefficients is shown in Table 2.

[0115] Table 2

[0116] In some examples, this disclosure uses a bucket model as the control model for the code control buffer, equating the code control buffer to a bucket. The maximum depth of the bucket corresponds to the highest waterline, the first threshold (e.g., 8191 bits), and the lowest waterline is the second threshold (e.g., 0 bits). During encoding initialization, the waterline is set to the initial waterline, the third threshold (e.g., 1024 bits). The third threshold is greater than the second threshold and less than the first threshold. The buffer's bit levels are divided into 8 levels, represented by waterline depth grades. The waterline depth grades range from 0 to 7, and the mapping relationship between the levels and bit intervals is as follows: Waterline depth class 0: 0-1023 bits; Waterline depth class 1: 1024-2047 bits; Waterline Depth Class 2: 2048-3071 bits; Waterline depth class 3: 3072-4095 bits; Waterline depth class 4: 4096-5119 bits; Waterline depth class 5: 5120-6143 bits; Waterline depth class 6: 6144-7167 bits; Waterline depth level 7: 7168-8191 bits.

[0117] Budget bits The theoretical bitstream size allocated to a single macroblock is calculated using the following formula: ; ; ; ; .

[0118] in, Total number of pixels; The original data volume represents the total number of bits of all the original pixel sample data of the current frame image before compression encoding; This is the maximum number of bits remaining in the buffer at the start and end of encoding. This constraint is used to ensure that the buffer does not overflow during the encoding process. Number of macroblocks; The bitstream size allocated to each macroblock.

[0119] After each macroblock is encoded, the amount of water added to the bucket is the actual number of encoded bits for that macroblock. The bucket discharges a constant number of budgeted bits. The waterline bit is updated according to the following formula: ; After the waterline bit update, the corresponding storage level is mapped based on the updated waterline depth and the waterline depth level it falls into; where the storage level is equal to the waterline depth level. During encoding, the waterline bits must not exceed the highest waterline of 8191 bits to avoid buffer overflow. The bucket model allows fluctuations in the actual number of encoded bits per macroblock, which are smoothed out by the buffer to ensure that the actual compression ratio is greater than or equal to the configured compression ratio; a higher waterline depth level indicates greater encoding pressure.

[0120] It should be noted that: the waterline depth level is a state parameter of the global code control buffer; the cumulative sum used for scaling factor lookup is the internal computational cost of pixel block precoding, and the two are independent of each other and do not need to fall into the same bit range. For example, the condition "storage level ≤ 2" means that the actual bit waterline of the code control buffer falls between 0 and 3071 bits, corresponding to a waterline depth level of 0, 1, or 2.

[0121] For example, the current frame image has a width w=120, a height h=80, and a number of channels. =3, bit depth =8\); Configure compression ratio =12; Maximum number of bits in buffer =8191 bits, minimum bit size of buffer =0 bit; number of horizontal macroblocks =15, number of vertical macroblocks =10.

[0122] Calculate each parameter in sequence: =120×80×3=28800; =28800×8=230400 bits; =8191-0=8191bit; =15×10=150; = ≈100 bits.

[0123] During encoding initialization, the initial waterline bit of the bucket buffer is 1024 bits, corresponding to a waterline depth level of 1, which means the storage level is 1.

[0124] Encode the first macroblock, the number of bits actually encoded in that macroblock =120 bits, substituting into the waterline update formula, we get the new waterline bits: 1024+120-100=1044 bits. 1044 bits is in the range of 1024-2047 bits, and the waterline depth level is 1, that is, the storage level is 1.

[0125] Encoding the second macroblock, actual number of encoded bits =190 bits, the waterline bit is updated to 1044+190-100=1134 bits. 1134 bits falls into the 1024-2047 bit range, and the waterline depth level remains 1, that is, the storage level is 1.

[0126] Encoding the third macroblock, actual number of encoded bits =220 bits, the waterline bit is updated to 1134+220-100=1254 bits, the waterline depth level remains at 1, that is, the storage level is 1.

[0127] Encoding the fourth macroblock involves complex image content, resulting in a high actual number of encoded bits. =280 bits, the waterline bit is updated to 1254+280-100=1434 bits, the waterline depth level is still 1, that is, the storage level is 1.

[0128] Encoding the fifth macroblock, actual number of encoded bits =800 bits, the waterline bit is updated to 1434+800-100=2134 bits. 2134 bits fall into the range of 2048-3071 bits, the waterline depth level is updated to 2, that is, the storage level is 2, which meets the condition of storage level ≤ 2.

[0129] As the sixth macroblock is encoded, image details continue to increase, resulting in a higher actual number of encoded bits. =1500 bits, the waterline bit is updated to 2134+1500-100=3534 bits. 3534 bits fall into the 3072-4095 bit range, and the waterline depth level is updated to 3, that is, the storage level is 3, which no longer satisfies the storage level ≤ 2. At this time, the encoding pressure increases, and the mode decision needs to be biased towards the candidate granularity with a smaller number of encoded bits, reduce the actual number of encoded bits, suppress the rise of the buffer waterline, and prevent the buffer from overflowing.

[0130] Encoding the seventh macroblock using a low-bit-overhead encoding mode reduces the actual number of encoded bits to [number missing]. =60 bits, the waterline bit is updated to 3534+60-100=3494 bits, the waterline depth level remains 3, that is, the storage level is 3.

[0131] The eighth macroblock continues to use the low-bit mode for encoding, with the actual number of encoded bits... =70 bits, the waterline bit is updated to 3494+70-100=3464 bits, and the water level gradually drops.

[0132] Each time a waterline bit is obtained, it is mapped to the corresponding waterline depth level; the higher the waterline depth level, the greater the encoding pressure of the code control buffer.

[0133] It should be noted that the actual number of encoded bits It is the actual bit stream output after the optimal mode is selected by mode decision; it is different from the pre-encoded bit count: the pre-encoded bit count is the bit overhead obtained by simulation of each candidate granularity and is used for mode selection; the actual encoded bit count is the bit generated by the actual encoding after selection and is used to update the waterline of the bucket buffer.

[0134] In some examples, when there are precoded bits less than the target number of bits, the storage level is determined based on the current cumulative bit count, the number of precoded bits less than the target number of bits, and the subtracted bit count. Here, the current cumulative bit count is the sum of the precoded bits corresponding to all candidate granularities that satisfy the condition that the precoded bit count is less than the target number of bits; the subtracted bit count is a pre-configured fixed bit step size; the storage level calculation formula is: ; in, Indicates storage level, Indicates the current accumulated number of bits. Indicates the number of bits to be subtracted. This indicates the floor function.

[0135] For example, continuing from the previous embodiment, after filtering by the target number of bits, a total of 3 candidate granularities are retained, with corresponding pre-encoding bit numbers of 13 bits, 11 bits, and 9 bits, respectively; the preset number of bits to be reduced is... =10 bits. First, sum the precoded bits of the valid candidates to obtain the current accumulated bit count: =13+11+9=33bit; Substituting into the storage level calculation formula: ; = .

[0136] The calculated storage level is 2. The storage level represents the overall bit overhead of the candidate granularity. The higher the storage level value, the greater the overall bit overhead of the effective candidates and the higher the coding pressure. If the calculated storage level is less than 0, the storage level is clamped to 0.

[0137] In some examples, a macroblock is the top-level processing unit for image coding. An image is divided into several macroblocks; each macroblock is further divided into multiple pixel blocks, which are processing subunits for residual calculation and quantization granularity selection. A macroblock contains one or more pixel blocks. The bit budget, target bit count, and code control buffer waterline update of the bucket model are performed on a macroblock basis; candidate granularity generation, pixel-level residual quantization, and calculation of the pre-encoded residual cumulative sum are performed on a pixel block basis. The pixel blocks within the same macroblock are processed sequentially according to the coding order, and the candidate granularity of the current pixel block is generated based on the actual quantization granularity of the previous pixel block in the coding order.

[0138] S30. When the storage level is less than or equal to the first level, the candidate granularity corresponding to the smallest cumulative sum of precoding residuals is used as the current quantization granularity.

[0139] In some examples, the first level is a preset level threshold; when the storage level is less than or equal to the first level, it indicates that the overall bit overhead of each effective candidate granularity is at a low level, the encoding pressure is small, and the candidate granularity with the smallest distortion is selected first.

[0140] For example, referring to the example given in S29 above, the storage level is calculated to be 2, and the first level is preset to be 2; the condition that the storage level is less than or equal to the first level is met. The cumulative sums of precoding residuals corresponding to the three sets of candidate granularities are 0, 4, and 4, respectively; the minimum cumulative sum of precoding residuals is 0, and the candidate granularity corresponding to this cumulative sum of precoding residuals is... =1, therefore =1 determines the current quantization granularity of the current pixel block.

[0141] In other examples, if the storage level is 3 and the first level is 2, the judgment condition of S30 is not met, and the process proceeds to other branches to complete the selection of candidate granularity.

[0142] As described above, the display method provided in this embodiment acquires the current frame image, extracts the minimum and maximum representative values ​​of pixel blocks, obtains pixel-level residuals based on the minimum representative values ​​of adjacent pixel blocks in the same row, and determines a second difference; generates candidate granularities based on the actual quantization granularity of the previous pixel block, determines the storage level based on the number of pre-encoded bits, residual accumulation, and adaptively selects the current quantization granularity, then performs shift quantization, symbol encoding, symmetric folding mapping, and dequantization processing on the pixel-level residuals to generate a bitstream and decode it to obtain the reconstructed image of the current frame; reads the encoded data of the previous frame from the double data rate memory and decodes it to obtain the decoded image of the previous frame; combines the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame to perform overdrive before displaying. This scheme can compensate for OLED pixel response delay and improve the motion blur problem in dynamic images; it balances reconstruction error and compression efficiency with an adaptive quantization granularity strategy, improves image compression rate, optimizes data access in the DDR data storage area, reduces storage resource occupation, and solves the technical contradiction that fixed quantization granularity is difficult to balance image quality, bit rate, and storage overhead when adapting to high-resolution images using traditional OLED overdrive technology.

[0143] In some feasible examples, combining Figure 5 ,like Figure 6 As shown in the embodiments of this disclosure, the display method further includes S31.

[0144] S31. When there is a precoded bit number greater than or equal to the target bit number, the candidate granularity corresponding to the precoded bit number greater than or equal to the target bit number is eliminated.

[0145] In some examples, in conjunction with the example given in S30 above, when there is a precoded bit number greater than or equal to the target bit number, the candidate granularity corresponding to the precoded bit number greater than or equal to the target bit number is eliminated, and the eliminated candidate granularity no longer participates in subsequent storage level calculations and the selection of the current quantization granularity.

[0146] For example, the target number of bits is 192 bits; candidate granularity =1. Candidate Granularity =2. Candidate Granularity =3 corresponds to 13 bits, 2^10 bits, and 9 bits of precoding bits, respectively. Candidate granularity =2 corresponds to a precoding bit count of 210 bits that is greater than or equal to the target bit count of 192 bits, so the candidate granularity is... =2 to remove; after filtering, the remaining candidate granularity =1. Candidate Granularity =3 Two sets of effective candidate granularities are used for subsequent processes.

[0147] In some examples, if the number of precoded bits for all candidate granularities is greater than or equal to the target number of bits, all candidate granularities are eliminated; this can trigger fallback logic to select a reference quantization granularity as the current quantization granularity for the current pixel block, thus avoiding the situation where no candidates are available.

[0148] As described above, the display method provided in this embodiment acquires the current frame image, extracts the minimum and maximum representative values ​​of pixel blocks, obtains pixel-level residuals based on the minimum representative values ​​of adjacent pixel blocks in the same row, and determines a second difference; generates candidate granularities based on the actual quantization granularity of the previous pixel block, eliminates candidate granularities greater than or equal to the target number of bits, determines the storage level based on the pre-encoding bit count and residual accumulation of the remaining candidate granularities, adaptively selects the current quantization granularity, and then performs shift quantization, symbol encoding, symmetric folding mapping, and dequantization processing on the pixel-level residuals to generate a bitstream and decode it to obtain the reconstructed image of the current frame; reads the encoded data of the previous frame from the double data rate memory and decodes it to obtain the decoded image of the previous frame, and performs overdrive and display after combining the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame. This solution can compensate for OLED pixel response delay and improve motion blur in dynamic images. By using an adaptive quantization granularity screening mechanism to pre-eliminate candidate solutions with high bit overhead, it balances reconstruction error and compression efficiency, improves image compression rate, optimizes data access in the DDR data storage area, reduces storage resource consumption, and solves the technical contradiction that fixed quantization granularity is difficult to balance image quality, bit rate and storage overhead when adapting to high-resolution images using traditional OLED overdrive technology.

[0149] In some feasible examples, combining Figure 5 ,like Figure 7 As shown, the display method provided in this embodiment of the present disclosure further includes S32 and S33.

[0150] S32. When the storage level is greater than the first level and less than or equal to the second level, determine the rate-distortion cost corresponding to each set of reconstructed residual data based on the number of precoded bits and the cumulative sum of precoded residuals corresponding to each set of reconstructed residual data.

[0151] In some examples, rate-distortion cost R represents the rate-distortion cost. This represents the cumulative sum of precoded residuals. The preset empirical coefficient, This represents the number of precoded bits.

[0152] S33. The candidate granularity corresponding to the minimum rate distortion cost is taken as the current quantization granularity.

[0153] In some examples, based on the example given in S31 above, the first level is preset to 2, the second level to 7, and the experience coefficient... =1.7; The current storage level is 5, which meets the condition that the storage level is greater than the first level and less than or equal to the second level. Effective candidate granularity. =1. Candidate Granularity =2. Candidate Granularity The cumulative sums of the precoding residuals corresponding to =3 are 0, 4, and 4, respectively, and the corresponding number of precoding bits are 13 bits, 11 bits, and 9 bits, respectively.

[0154] Substitute the values ​​into the formula to calculate the rate distortion cost for each group: =0 + 1.7 × 13 = 22.1; =4 + 1.7 × 11 = 22.7; =4 + 1.7 × 9 = 19.3.

[0155] The obtained rate-distortion costs were 22.1, 22.7, and 19.3, respectively; the minimum rate-distortion cost was 19.3, corresponding to a candidate granularity of qp=3. The candidate granularity was then... =3 is determined as the current quantization granularity of the current pixel block.

[0156] If the storage level is higher than the second level, then enter the high-pressure branch and select the candidate granularity with the smallest number of precoded bits as the current quantization granularity.

[0157] As described above, the display method provided in this embodiment acquires the current frame image, extracts the minimum and maximum representative values ​​of pixel blocks, obtains pixel-level residuals based on the minimum representative values ​​of adjacent pixel blocks in the same row, and determines a second difference; generates candidate granularities based on the actual quantization granularity of the previous pixel block, eliminates candidate granularities greater than or equal to the target number of bits, determines the storage level based on the number of pre-coded bits and the cumulative sum of residuals, selects the candidate granularity with the smallest cumulative sum of pre-coded residuals when the storage level is less than or equal to the first level, and determines the current quantization granularity based on the pass rate distortion cost when the storage level is greater than the first level and less than or equal to the second level; performs shift quantization, symbol encoding, symmetric folding mapping, and dequantization processing on the pixel-level residuals to generate a bitstream and decode it to obtain the reconstructed image of the current frame; reads the encoded data of the previous frame from the double data rate memory and decodes it to obtain the decoded image of the previous frame, and displays it after performing overdrive by combining the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame. This solution can compensate for OLED pixel response delay and improve motion blur in dynamic images. It adopts a hierarchical adaptive quantization granularity selection strategy, which combines bit overhead constraints and rate distortion evaluation to select the optimal granularity. This effectively balances reconstruction error and compression efficiency, improves image compression rate, reduces access pressure and storage occupation of DDR data storage area, and solves the technical contradiction that fixed quantization granularity is difficult to balance image quality, bit rate and storage overhead when adapting to high-resolution images using traditional OLED overdrive technology.

[0158] In some feasible examples, combining Figure 5 ,like Figure 8 As shown in the embodiments of this disclosure, the display method further includes S34.

[0159] S34. When the storage level is greater than the first level and the storage level is greater than the second level, the candidate granularity corresponding to the smallest number of precoded bits shall be used as the current quantization granularity.

[0160] In some examples, referring to the example given in S33 above, the first level is preset to 2 and the second level to 7; the current storage level is 8, which is greater than both the first and second levels, resulting in high encoding pressure, thus prioritizing control of encoding bit overhead. Effective candidate granularity. =1. Candidate Granularity =2. Candidate Granularity The precoding bit counts corresponding to =3 are 13 bits, 11 bits, and 9 bits, respectively; the minimum precoding bit count is 9 bits, and its corresponding candidate granularity is... =3, therefore the candidate granularity is... =3 is determined as the current quantization granularity of the current pixel block.

[0161] In some examples, if no valid candidate granularity is found after pre-filtering, the actual quantization granularity of the previous pixel block is selected. This serves as the current quantization granularity for the current pixel block, preventing the process from having no output.

[0162] As described above, the display method provided in this embodiment acquires the current frame image, extracts the minimum and maximum representative values ​​of pixel blocks, obtains pixel-level residuals based on the minimum representative values ​​of adjacent pixel blocks in the same row, and determines a second difference; generates candidate granularities based on the actual quantization granularity of the previous pixel block, eliminates candidate granularities greater than or equal to the target number of bits, and determines the storage level based on the number of pre-coded bits and the cumulative sum of residuals: when the storage level is less than or equal to the first level, selects the candidate granularity with the smallest cumulative sum of pre-coded residuals; when the storage level is greater than the first level but less than or equal to the second level, preferentially determines the candidate granularity based on the rate-distortion cost; when the storage level is higher than the second level, selects the candidate granularity with the smallest number of pre-coded bits, thereby adaptively determining the current quantization granularity; performs shift quantization, symbol encoding, symmetric folding mapping, and dequantization processing on the pixel-level residuals to generate a bitstream and decode it to obtain the current frame reconstructed image; reads the previous frame encoded data from the double data rate memory and decodes it to obtain the previous frame decoded image; and displays the image after performing overdrive by combining the previous frame decoded image, the current frame image, and the current frame reconstructed image. This solution can compensate for OLED pixel response delay and improve motion blur in dynamic images. It adopts a hierarchical adaptive quantization granularity selection strategy, selects the optimal granularity according to different storage levels, takes into account the reconstruction image quality and bit overhead, improves the image compression rate, reduces the access pressure and storage occupation of the DDR data storage area, and solves the technical contradiction that the fixed quantization granularity of traditional OLED overdrive technology is difficult to balance image quality, bit rate and storage overhead when adapting to high-resolution images.

[0163] In some feasible examples, combining Figure 2 ,like Figure 9 As shown, the above S11 can be implemented by the following S110 and S111.

[0164] S110. Obtain the pixel component values ​​of each pixel in each pixel block of the current frame image in each color channel. The color channel includes any one of the red, green, and blue color channels.

[0165] S111. When all pixel component values ​​are greater than the component threshold of the corresponding color channel, remove all pixels whose pixel component values ​​are greater than the component threshold of the corresponding color channel, and determine the minimum representative value and the maximum representative value based on the remaining pixels in the pixel block.

[0166] For example, a pixel block is 3×3 in size and contains 9 pixels; the pixel component values ​​of the R, G, and B color channels of each pixel in the pixel block are read; a preset skip threshold is set, and the channel thresholds corresponding to the OD conditions are configured: R channel threshold. G channel threshold B channel threshold Taking a pixel P within this block as an example, the components of pixel P are R=220, G=215, and B=210; the preset skip threshold is 200. =200, =200, =200. The R, G, and B components of this pixel are all greater than the skip threshold, and the R component is greater than... The G component is greater than Component B is greater than This satisfies the OD condition for skipping compression. The pixel P is marked as 0 in the mapping table, indicating that the pixel skips compression.

[0167] Another pixel Q within the same block has components R=120, G=130, and B=110. It does not meet the condition that all components are greater than the skip threshold, so skip compression is not performed. Based on pixel characteristics, it is classified as a minor class. The pixel Q is marked as 10; the pixel S components within the block have R=60, G=55, and B=70, which do not meet the condition for skipping compression and are therefore classified as a major category. Pixel S is marked as 11.

[0168] Statistical analysis within this 3×3 pixel block Mark, will Pixels P marked as 0 that meet the OD skipping condition are discarded. After discarding skipped pixels, the remaining pixels in this pixel block include subclass pixels Q marked as 10, subclass pixels S marked as 11, and the remaining pixels to be compressed. The channel components of all remaining pixels are read, and the maximum and minimum values ​​of the remaining pixel R channel components are calculated to be 120 and 60, respectively; the maximum and minimum values ​​of the G channel components are 130 and 55, respectively; and the maximum and minimum values ​​of the B channel components are 110 and 70, respectively. The maximum value of each channel is used as the maximum representative value, and the minimum value of each channel is used as the minimum representative value for subsequent BTC block compression encoding. The decoding end parses the block marker bits. , Pixels with a value of 0 directly reuse the original component value. The algorithm employs small-class and large-class decompression logic for pixels of 10 and 11 respectively. It improves the accuracy of RV calculation by removing skipped pixels and then calculating the representative value. It can adapt to bolder block partitioning strategies, macroscopically improves the compression ratio, and achieves BTC compression that combines the overdrive OD characteristics of OLED, which is different from traditional BTC compression algorithms that have not been adapted to OD.

[0169] As described above, the display method provided in this embodiment acquires the current frame image, extracts the pixel component values ​​of each color channel of the pixel block, removes pixels whose pixel component values ​​all exceed the threshold of the corresponding channel component, determines the minimum representative value and maximum representative value of the pixel block based on the remaining pixels, obtains the pixel-level residual based on the minimum representative value of adjacent pixel blocks in the same row and determines the second difference value, generates candidate granularity based on the actual quantization granularity of the previous pixel block, removes candidate granularities that are greater than or equal to the target number of bits, and determines the storage level based on the number of precoded bits and the cumulative residual sum: when the storage level is less than or equal to the first level, the precoded residual sum is selected. The algorithm calculates the minimum candidate granularity. When the storage level is greater than the first level but less than or equal to the second level, the candidate granularity is selected based on the pass rate distortion cost. When the storage level is higher than the second level, the candidate granularity with the smallest pre-encoded bit count is selected. The current quantization granularity is adaptively determined. Shift quantization, symbol encoding, symmetric folding mapping, and dequantization are performed on the pixel-level residuals to generate a bitstream and decode it to obtain the reconstructed image of the current frame. The encoded data of the previous frame is read from the double data rate memory and decoded to obtain the decoded image of the previous frame. The previous frame decoded image, the current frame image, and the current frame reconstructed image are combined and overdriven before display. This scheme can compensate for OLED pixel response delay and improve the motion blur problem in dynamic images. By eliminating high-brightness over-limit pixels to optimize the accuracy of representative value calculation, and with a hierarchical adaptive quantization granularity selection strategy, the optimal granularity is selected according to the differences in storage levels, balancing the reconstructed image quality and bit overhead, improving the image compression rate, reducing the access pressure and storage occupation of the DDR data storage area, and solving the technical contradiction that the fixed quantization granularity of traditional OLED overdrive technology cannot balance image quality, bit rate, and storage overhead when adapting to high-resolution images.

[0170] The foregoing primarily describes the solutions provided by the embodiments of this disclosure from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0171] This disclosure embodiment can divide an electronic device into functional modules based on the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing unit. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this disclosure embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0172] like Figure 10 As shown, an embodiment of this disclosure provides a schematic diagram of a display device, including a communicator 101, a controller 102, and a display 103.

[0173] The communicator 101 is configured to acquire the current frame image; the controller 102 is configured to: acquire the minimum and maximum representative values ​​of each pixel block in the current frame image; determine the pixel-level residual based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block, wherein the current pixel block and the previous pixel block are in the same row; determine the second difference based on the minimum and maximum representative values ​​of the current pixel block; perform a right shift operation of the pixel-level residual by a first target bit according to the current quantization granularity to generate quantized data; wherein the number of bytes occupied by the quantization data is less than the number of bytes occupied by the pixel-level residual, and the first target bit is determined based on the current quantization granularity; and perform a right shift operation of the pixel-level residual by a first target bit according to the current quantization granularity. Granularity and quantization data are symbolically encoded to generate offset data; the offset data is symmetrically folded and mapped to generate folded data; the residual data is dequantized based on pixel-level residuals, folded data, and the current quantization granularity to generate reconstructed residual data; the folded data is losslessly encoded to generate a data bitstream; the pixel-level residuals are symbolically encoded to generate a sign bitstream; the data bitstream and sign bitstream are decoded, and combined with the reconstructed residual data and second difference corresponding to each pixel block, the reconstructed image of the current frame is generated; the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame are overdriven to generate an overdriven image; the display 103 is controlled to display the overdriven image.

[0174] In some implementable examples, controller 102 is also configured to: acquire encoded data of the previous frame image stored in a double data rate memory; decode the encoded data to obtain an initial minimum representative value, an initial maximum representative value, a data bit stream, and a sign bit stream; and generate a decoded image of the previous frame based on the initial minimum representative value, the initial maximum representative value, the data bit stream, and the sign bit stream.

[0175] In some implementable examples, controller 102 is further configured to: generate N candidate granularities based on the actual quantization granularity of the previous pixel block, where N is an integer greater than or equal to 1; perform a right shift operation of the pixel-level residuals by a second target bit according to the candidate granularities to generate N sets of reconstructed residual data and the number of precoding bits corresponding to each set of reconstructed residual data; calculate the square of the difference between the reconstructed residual data and the pixel-level residuals pixel by pixel to obtain the cumulative sum of precoding residuals corresponding to the reconstructed residual data; when there is a number of precoding bits less than the target number of bits, determine the storage level based on the current cumulative number of bits, the number of precoding bits less than the target number of bits, and the number of bits subtracted; when the storage level is less than or equal to the first level, take the candidate granularity corresponding to the smallest cumulative sum of precoding residuals as the current quantization granularity.

[0176] In some implementable examples, controller 102 is also configured to discard candidate granularities corresponding to precoded bits that are greater than or equal to the target number of bits when there is a precoded bit number greater than or equal to the target number of bits.

[0177] In some implementable examples, controller 102 is also configured to: determine the rate-distortion cost corresponding to each set of reconstructed residual data based on the number of precoded bits and the cumulative sum of precoded residuals corresponding to each set of reconstructed residual data when the storage level is greater than the first level and the storage level is less than or equal to the second level; and take the candidate granularity corresponding to the minimum rate-distortion cost as the current quantization granularity.

[0178] In some implementable examples, controller 102 is also configured to use the candidate granularity corresponding to the smallest number of precoded bits as the current quantization granularity when the storage level is greater than the first level and the storage level is greater than the second level.

[0179] In some implementable examples, when the controller 102 performs the process of obtaining the minimum and maximum representative values ​​of each pixel block in the current frame image, it is further configured to: obtain the pixel component values ​​of each pixel contained in each pixel block in the current frame image in each color channel; wherein, the color channel includes any one of the color channels red channel, green channel, and blue channel; when all pixel component values ​​are greater than the component threshold of the corresponding color channel, all pixels whose pixel component values ​​are greater than the component threshold of the corresponding color channel are removed, and the minimum and maximum representative values ​​are determined based on the remaining pixels in the pixel block.

[0180] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and their functions will not be repeated here.

[0181] Of course, the display device provided in this embodiment includes, but is not limited to, the modules described above. For example, the display device may also include a memory 104. The memory 104 may be used to store the program code of the display device, and may also be used to store data generated by the display device during operation, such as data in write requests.

[0182] like Figure 11 As shown, this disclosure also provides a chip system that can be applied to the display device in the foregoing embodiments. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 can be the processor in the aforementioned display device. The processor 1501 and the interface circuit 1502 can be interconnected via a circuit. The processor 1501 can receive and execute computer instructions from the memory of the aforementioned display device through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the display device can perform the various steps performed by the display device in the foregoing embodiments. Of course, the chip system may also include other discrete devices, and this disclosure does not specifically limit this.

[0183] This disclosure also provides a computer-readable storage medium for storing computer instructions for operating the aforementioned display device.

[0184] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A display device, characterized in that, include: The communicator is configured to acquire the current frame image; The controller is configured as follows: Obtain the minimum and maximum representative values ​​of each pixel block in the current frame image; Pixel-level residuals are determined based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block, respectively; wherein the current pixel block and the previous pixel block are in the same row; The second difference is determined based on the minimum and maximum representative values ​​of the current pixel block; The pixel-level residual is right-shifted by a first target bit according to the current quantization granularity to generate quantized data; wherein the number of bytes occupied by the quantized data is less than the number of bytes occupied by the pixel-level residual, and the first target bit is determined based on the current quantization granularity; Symbol encoding is performed based on the symbol mapping of the pixel-level residual, the current quantization granularity, and the quantization data to generate offset data; The offset data is symmetrically folded and mapped to generate folded data; Based on the pixel-level residual, the folded data, and the current quantization granularity, the residual data is dequantized to generate reconstructed residual data; The folded data is losslessly encoded to generate a data bitstream; The pixel-level residuals are symbolically encoded to generate a symbol bit stream; The data bit stream and the symbol bit stream are decoded, and the reconstructed residual data corresponding to each pixel block and the second difference are combined to generate the reconstructed image of the current frame. Based on the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame, an overdriven image is generated. The display is controlled to show the overdriven image.

2. The display device according to claim 1, characterized in that, The controller is also configured to: Retrieve the encoded data of the previous frame of image stored in the Double Data Rate memory; The encoded data is decoded to obtain the initial minimum representative value, the initial maximum representative value, the data bit code stream, and the sign bit code stream; Based on the initial minimum representative value, the initial maximum representative value, the data bit stream, and the symbol bit stream, the decoded image of the previous frame is generated.

3. The display device according to claim 1, characterized in that, The controller is also configured to: Based on the actual quantization granularity of the previous pixel block, N candidate granularities are generated; where N is an integer greater than or equal to 1. The pixel-level residuals are shifted right by the second target bit according to the candidate granularity to generate N sets of reconstructed residual data and the number of pre-coding bits corresponding to each set of reconstructed residual data; The square of the difference between the reconstructed residual data and the pixel-level residual is calculated pixel by pixel to obtain the cumulative sum of the precoding residuals corresponding to the reconstructed residual data; When there is a number of precoded bits less than the target number of bits, the storage level is determined based on the current accumulated number of bits, the number of precoded bits less than the target number of bits, and the number of bits subtracted. When the storage level is less than or equal to the first level, the candidate granularity corresponding to the smallest cumulative sum of precoding residuals is taken as the current quantization granularity.

4. The display device according to claim 3, characterized in that, The controller is also configured to: If there is a precoded bit number greater than or equal to the target bit number, the candidate granularity corresponding to the precoded bit number greater than or equal to the target bit number is eliminated.

5. The display device according to claim 3, characterized in that, The controller is also configured to: When the storage level is greater than the first level and the storage level is less than or equal to the second level, the rate-distortion cost corresponding to each group of reconstructed residual data is determined based on the number of precoded bits corresponding to each group of reconstructed residual data and the cumulative sum of the precoded residuals. The candidate granularity corresponding to the minimum rate-distortion cost is taken as the current quantization granularity.

6. The display device according to claim 3, characterized in that, The controller is also configured to: When the storage level is greater than the first level and the storage level is greater than the second level, the candidate granularity corresponding to the smallest number of precoded bits is taken as the current quantization granularity.

7. The display device according to claim 1, characterized in that, When the controller performs the process of obtaining the minimum and maximum representative values ​​of each pixel block in the current frame image, it is further configured to: Obtain the pixel component values ​​of each pixel in each pixel block in the current frame image in each color channel; wherein, the color channel includes any one of the color channels red channel, green channel, and blue channel; When all the pixel component values ​​are greater than the component threshold of the corresponding color channel, all pixels whose pixel component values ​​are greater than the component threshold of the corresponding color channel are removed, and the minimum representative value and the maximum representative value are determined based on the remaining pixels in the pixel block.

8. A display method, characterized in that, include: Get the current frame image; Obtain the minimum and maximum representative values ​​of each pixel block in the current frame image; Pixel-level residuals are determined based on the minimum representative values ​​corresponding to the current pixel block and the previous pixel block, respectively; wherein the current pixel block and the previous pixel block are in the same row; The second difference is determined based on the minimum and maximum representative values ​​of the current pixel block; The pixel-level residual is right-shifted by a first target bit according to the current quantization granularity to generate quantized data; wherein the number of bytes occupied by the quantized data is less than the number of bytes occupied by the pixel-level residual, and the first target bit is determined based on the current quantization granularity; Symbol encoding is performed based on the symbol mapping of the pixel-level residual, the current quantization granularity, and the quantization data to generate offset data; The offset data is symmetrically folded and mapped to generate folded data; Based on the pixel-level residual, the folded data, and the current quantization granularity, the residual data is dequantized to generate reconstructed residual data; The folded data is losslessly encoded to generate a data bitstream; The pixel-level residuals are symbolically encoded to generate a symbol bit stream; The data bit stream and the symbol bit stream are decoded, and the reconstructed residual data corresponding to each pixel block and the second difference are combined to generate the reconstructed image of the current frame. Based on the decoded image of the previous frame, the current frame image, and the reconstructed image of the current frame, an overdriven image is generated. The overdriven image is displayed.

9. The display method according to claim 8, characterized in that, The method further includes: Retrieve the encoded data of the previous frame of image stored in the Double Data Rate memory; The encoded data is decoded to obtain the initial minimum representative value, the initial maximum representative value, the data bit code stream, and the sign bit code stream; Based on the initial minimum representative value, the initial maximum representative value, the data bit stream, and the symbol bit stream, the decoded image of the previous frame is generated.

10. The display method according to claim 8, characterized in that, The method further includes: Based on the actual quantization granularity of the previous pixel block, N candidate granularities are generated; where N is an integer greater than or equal to 1. The pixel-level residuals are shifted right by the second target bit according to the candidate granularity to generate N sets of reconstructed residual data and the number of pre-coding bits corresponding to each set of reconstructed residual data; The square of the difference between the reconstructed residual data and the pixel-level residual is calculated pixel by pixel to obtain the cumulative sum of the precoding residuals corresponding to the reconstructed residual data; When there is a number of precoded bits less than the target number of bits, the storage level is determined based on the current accumulated number of bits, the number of precoded bits less than the target number of bits, and the number of bits subtracted. When the storage level is less than or equal to the first level, the candidate granularity corresponding to the smallest cumulative sum of precoding residuals is taken as the current quantization granularity.