A method for supporting partial refresh of any display area

By expanding the incompletely refreshed data block area and unifying the compression and decompression algorithm, the display problem during partial refresh in the existing technology is solved, and partial refresh of any area is achieved and system efficiency is improved.

CN112004089BActive Publication Date: 2024-10-22白华
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010924003.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-04
Publication Date
2024-10-22
Estimated Expiration
2040-09-04

AI Technical Summary

Technical Problem

Existing display systems cannot effectively support partial refresh of any display area when performing partial refresh, resulting in display problems such as blurred screens and garbled characters. Moreover, the compression and decompression process is complex, which increases the area, cost, and power consumption of the system.

Method used

By extending the incompletely refreshed original data block area into a fully refreshed data block area, and storing the corresponding data blocks in the frame buffer and the local refresh buffer, compression and decompression processing is performed to ensure that the local refresh area is Data blocks and external data blocks use the same compression and decompression algorithm to unify the processing flow.

Benefits of technology

It achieves local refresh in any area, avoids garbled characters and blurred screens in display devices, reduces system complexity, and saves the area, cost and power consumption of display driver chips or display bridge chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112004089B_ABST
    Figure CN112004089B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for supporting partial refresh of any display area, the method comprising dividing an image to be compressed into a plurality of original data blocks, compressing and storing the blocks in a frame buffer; obtaining the position and size of the local refresh area, determining whether the local refresh area contains an incompletely refreshed original data block area, and if so, receiving image data of the local refresh area, and expanding the incompletely refreshed original data block area into a completely refreshed original data block area, compressing and storing the data blocks corresponding to the unexpanded original data block area in the frame buffer, and compressing and storing the data blocks corresponding to the expanded original data block area in the local refresh buffer; reading the compressed data in the frame buffer and the local refresh buffer, performing pixel row stitching processing after decompression, and displaying the data in the display system. The present invention enables the display device to support partial refresh of any display area, and effectively avoids the problems of garbled characters and screen distortion during image display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display technology, and in particular to a method for supporting local refresh of any display area. Background Art

[0002] The display system includes a display panel and a display driver unit that drives the display panel to display an image. In the current display system, many display driver units are integrated with a frame buffer for storing a whole frame of the image to be displayed. When displaying the image, the display driver unit compresses the image sent by the video source and stores it in the frame buffer. When displaying the image, the compressed data of the image is obtained from the frame buffer and the corresponding image is displayed in the display panel after decompression. For example, a picture with a resolution of 1920×1080 is used as an example for detailed description: when the system is initialized, according to the display requirements, the original data block division of the display image to be compressed is set, and the image to be compressed is divided into M×N original data blocks according to the resolution (1920×1080) of the image to be compressed, and each data block contains P rows and Q columns of pixels. The display driver unit or the display bridge chip receives the image data to be displayed sent by the video source line by line. When the display driving unit or the display bridge chip receives each row of raw data blocks of a picture to be displayed, that is, 1×N raw data blocks, the raw data blocks are further compressed one by one through a selected compression algorithm, such as a DSC algorithm, etc., and the compressed data of each data block is stored in a corresponding storage space in the frame buffer. The compressed data in the storage space can be accessed through a spatial address, wherein the size of the compressed data is determined by the compression ratio. For example, if the compression ratio is 3:1, the size of the compressed data is one-third of the original data, and when the frame buffer stores the compressed data of all data blocks, the compressed data is continuously written in a compression order, such as the compressed data of the first row of data blocks, starting from the first compressed data, until all the compressed data of the data blocks in this row are all written into the frame buffer. After that, the data blocks of the following rows are stored until all the compressed data of the entire frame of the displayed picture are all written into the frame buffer. Through compression, the entire displayed picture can be stored in the frame buffer with a display quality close to visual losslessness, reducing the capacity demand for the frame buffer, reducing power consumption and cost.

[0003] When displaying an image, the display driving unit reads out all compressed data blocks of a data block row from the frame buffer in a manner consistent with the storage rules of compressed data in the frame buffer, decompresses each compressed data block to obtain display data, and then pieces together all display data blocks contained in the entire data block row into a complete display picture data row, the number of which is the same as the display data rows contained in the original data block, and then refreshes the display data of these rows to the display panel for display line by line.

[0004] However, the above-mentioned display system or display data path that needs to compress, store, and decompress the original display image cannot perform local refresh of any area, that is: when the entire display image data is stored in the frame buffer, if a local refresh is to be performed, the new display data in the local refresh area needs to be stored in the storage space of the frame buffer corresponding to the area, overwriting the original display data in the area, and forming a new frame of display image data with the display data stored in other storage spaces in the frame buffer. If the original data is first compressed using a compression algorithm and then stored in the frame buffer, the locally refreshed display data also needs to be compressed using the compression algorithm and stored in the corresponding position of the frame buffer. If the local refresh area includes an incompletely refreshed data block area, the compressed data obtained after compression of the display data corresponding to this part of the area is smaller than the compressed data obtained after compression of the complete data block, and the storage space corresponding to the display data of the local refresh area stores the compressed data of the previous frame of the image, and each data block corresponds to the storage space one by one. If the compressed data of the new display data in the incompletely refreshed data block area is stored in the corresponding storage space, only a part of the compressed data of the previous frame of the image stored in this space will be overwritten by the compressed data of the new display data, and the remaining part will continue to be retained. Only a part of the original compressed data will be included in this storage space, that is, the original compressed data becomes inaccurate and incomplete. During decompression, this compressed data cannot be decompressed correctly, and the obtained display data will be inaccurate, or even very different, and there will be problems with the display, such as screen distortion, garbled characters, etc. At the same time, different compression algorithms may be used for the original data and the partially refreshed data, or different configurations of the same compression algorithm may be used, and the data block area is marked and recorded. During the decompression process, the data block area needs to be specially processed, which makes data compression and decompression very complicated, and ultimately leads to a large area overhead, high cost, and high power consumption of the display driver unit or the display data path (such as a bridge chip, etc.). Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the prior art and provide a method for supporting local refresh of any display area, so that a display system or display data path that needs to compress, store, and decompress the original display image can support local refresh of any display area, avoid display artifacts, garbled characters, etc., and reduce power consumption and cost.

[0006] To achieve the above object, the present invention proposes the following technical solution: a method for supporting partial refresh of any display area, the method comprising:

[0007] S100, dividing the image to be compressed into M×N original data blocks according to the resolution of the image to be compressed, and compressing the M×N original data blocks and storing them in a frame buffer, where M and N are integers greater than or equal to 1;

[0008] S200, obtaining the position and size of the local refresh area, determining whether the local refresh area includes an incompletely refreshed original data block area, and if so, receiving image data of the local refresh area, and expanding the incompletely refreshed original data block area into a completely refreshed original data block area, further compressing the image data block corresponding to the unexpanded completely refreshed original data block area and storing it in a storage space corresponding to the original data block in the frame buffer, and compressing the image data block corresponding to the completely refreshed original data block area formed after expansion and storing it in the storage space of the local refresh buffer;

[0009] S300, reading the compressed data corresponding to the original data block area that has not been expanded and is completely refreshed in the frame buffer and the compressed data of the last refreshed display image corresponding to the original data block area that has been expanded and is completely refreshed, and reading the compressed data corresponding to the original data block area that has been expanded and is completely refreshed in the local refresh buffer, performing pixel row stitching processing after decompression and displaying on the display system.

[0010] Preferably, in step S200, the incompletely refreshed original data block area is expanded into a completely refreshed original data block area by:

[0011] According to the image data in the partially refreshed original data block area, extended refresh processing is performed on the unrefreshed pixel rows or pixel columns in the original data block area to make the incompletely refreshed original data block area become a completely refreshed original data block area.

[0012] Preferably, the extended refresh process includes:

[0013] When the pixel row of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel row to be expanded is copied to the value of the refreshed outermost pixel in the original data block area that is in the same column as the pixel;

[0014] When the pixel column of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel column to be expanded copies the value of the refreshed outermost pixel in the original data block area that is in the same row as the pixel.

[0015] Preferably, the extended refresh process includes:

[0016] Directly set the value of each pixel in the pixel row or pixel column to be expanded, and set the value of each pixel in the pixel row or pixel column to be expanded to be the same or different.

[0017] Preferably, the extended refresh process includes:

[0018] When the pixel row of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel row to be expanded is the average value of the refreshed pixels in the original data block area that are in the same column as the pixel;

[0019] When the pixel column of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel column to be expanded is the average value of the refreshed pixels in the same row as the pixel in the original data block area.

[0020] Preferably, the extended refresh process includes:

[0021] When the pixel row of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel row to be expanded is α×P, wherein α is the ratio of any two adjacent pixels refreshed in the original data block area and in the same column as the pixel to be expanded, and α is a fixed value, and P is the value of the adjacent pixels refreshed in the original data block area and in the same column as the pixel to be expanded;

[0022] When the pixel column of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel column to be expanded is α×P, wherein α is the ratio of any two adjacent pixels refreshed in the original data block area that are in the same row as the pixel to be expanded, and α is a fixed value, and P is the value of the adjacent pixels refreshed in the original data block area that are in the same row as the pixel to be expanded.

[0023] Preferably, in step S300, when pixel row stitching is performed,

[0024] For pixel row data in the original data block area in the local refresh area formed after expansion, if the pixel row is located in the original data block area that has not been expanded, the data of the pixel row can be directly obtained by reading the compressed data corresponding to the original data block area in the frame buffer and decompressing it;

[0025] If the pixel row is located in the expanded original data block area, then in the pixel row, the pixels located outside the original local refresh area can be obtained by decompressing the compressed data of the display image last refreshed in the original data block area stored in the frame buffer, and the pixels located within the original local refresh area can be obtained by decompressing the compressed data corresponding to the original data block area stored in the local refresh buffer.

[0026] Preferably, in step S300, when pixel row stitching is performed,

[0027] The pixel row data in the original data block outside the local refresh area formed after the expansion is obtained by decompressing the compressed data corresponding to the original data block area stored in the frame buffer.

[0028] Preferably, if the storage space occupied by the total number of pixels in the local refresh area is smaller than the storage space capacity of the local refresh buffer, the pixel data of the local refresh area is directly stored in the local refresh buffer, and when the pixel rows are spliced, the uncompressed pixel data in the local refresh buffer is directly read for splicing.

[0029] Preferably, within the local refresh area, if the amount of data of the pixels refreshed within the incompletely refreshed original data block area is smaller than the storage space capacity of the local refresh buffer, the data of the pixels refreshed within the incompletely refreshed original data block area are directly stored in the local refresh buffer, and when the pixel rows are spliced, the uncompressed pixel data in the local refresh buffer is directly read for splicing.

[0030] The beneficial effects of the present invention are:

[0031] (1) When performing a partial refresh of any area, the present invention adjusts the range of the partial refresh area so that the incompletely refreshed original data block area is expanded into a completely refreshable data block area, and the data blocks corresponding to the completely refreshed original data block area are stored in the storage space corresponding to the original data blocks in the frame buffer, and the data blocks corresponding to the completely refreshed original data block area formed by the expansion are compressed and stored in the partial refresh buffer. In the partial refresh mode, the compressed data in the frame buffer and the partial refresh buffer are decompressed and then spliced ​​to avoid abnormal effects such as garbled characters and screen distortion during image display on the display device.

[0032] (2) The data blocks within the local refresh area and the data blocks outside the local refresh area use exactly the same compression and decompression algorithm, without the need to add new compression and decompression algorithms and processes. This makes the system's compression and decompression algorithm processing flow completely unified under different display modes, reduces system complexity, and saves the area, cost, and power consumption of display driver chips or display bridge chips. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of a flow chart of the present invention;

[0034] Figure 2 It is a schematic diagram of a data path structure block diagram supporting partial refresh of the present invention;

[0035] Figure 3 It is a schematic diagram of image segmentation of the present invention;

[0036] Figure 4 It is a schematic diagram of the area of ​​the partially refreshed area including the original data block area that is completely refreshed;

[0037] Figure 5It is a schematic diagram of the partial refresh area including the original data block area that is not completely refreshed;

[0038] Figure 6 It is a schematic diagram of a local refresh area formed after the local refresh area is expanded;

[0039] Figure 7 It is a schematic diagram of the compressed data storage corresponding to the expansion of the local refresh area;

[0040] Figure 8 This is a schematic diagram of pixel row stitching. DETAILED DESCRIPTION

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

[0042] The present invention discloses a method for supporting local refresh of any display area, which is applicable to a display system or display data path that needs to compress, store and decompress the original display image. The method expands the incompletely refreshed original data block area into a completely refreshable data block area by adjusting the range of the local refresh area, stores the data blocks corresponding to the completely refreshed original data block area in the storage space corresponding to the original data blocks in the frame buffer, and compresses the data blocks corresponding to the completely refreshed original data block area formed by the expansion and stores them in the local refresh buffer. In the local refresh mode, the compressed data in the frame buffer and the local refresh buffer are decompressed and then spliced ​​to avoid abnormal effects such as garbled characters and screen distortion during the image display process of the display device, so that the display device can support local refresh of any display area.

[0043] Combination Figure 1 and Figure 2 As shown, a method for supporting local refresh of any display area disclosed in the present invention includes the following steps:

[0044] S100 , dividing the image to be compressed into M×N original data blocks according to the resolution of the image to be compressed, and compressing the M×N original data blocks and storing them in a frame buffer.

[0045] Specifically, when the system is initialized, the original data block division of the display image to be compressed is set according to the display requirements. The image to be compressed is divided into M×N original data blocks according to the resolution of the image to be compressed, and each data block contains P rows and Q columns of pixels, where M and N are integers greater than or equal to 1, and P and Q are integers greater than or equal to 1. In this embodiment, it is best to evenly divide the image to be compressed into data blocks of equal size, such as Figure 3 As shown, the resolution of the image to be compressed is 48×32, and the image to be compressed can be divided into 12×8 data blocks, each data block contains 4×4 pixels.

[0046] The video source, such as AP (Application Processor), transmits the image data to be displayed line by line to the display device or display bridge chip through corresponding interfaces, such as MIPI (Mobile Industry Processor Interface), DPI (Display Pixel Interface), etc. The display driver chip (DDIC) or display bridge chip in the display device receives the image data to be displayed sent by the video source line by line.

[0047] Furthermore, according to the selected compression algorithm, such as the DSC algorithm, etc., when each original data block row of a picture to be displayed is received, that is, 1×N original data blocks, these original data blocks are compressed one by one, and the size of the compressed data is determined by the compression ratio. For example, if a compression ratio of 3:1 is used for compression, the size of the compressed data of each original data block after compression is one third of the original data. Of course, a compression ratio of 4:1 can be selected for compression according to needs, or other compression ratios can be selected.

[0048] After the compression of 1×N original data blocks is completed, the compressed data corresponding to each original data block is stored in the corresponding storage space in the frame buffer. The original data block and the compressed data in the frame buffer are in a one-to-one correspondence. The compressed data of each original data block is stored in an independent storage space in the frame buffer. The compressed data of each original data block can be accessed through an independent storage space address, including writing and reading. After the compression of the current 1×N original data blocks is completed, if the next 1×N original data block row is received, the compression and storage of the next 1×N original data block can be started.

[0049] The compression and storage of the original data blocks can be performed in parallel with the reception of the image data. That is, while the currently received 1×N original data blocks are being compressed and stored, the image data of the next original data block row can be received at the same time. This parallel execution continues until the entire display image is received. After the original data blocks are compressed, they are stored in the frame buffer.

[0050] In this embodiment, when dividing the original data block area to be compressed, the size of the original data block division needs to take into account the overhead and display effect of compressing, storing, and decompressing the original data blocks, as well as the overhead of expanding the data blocks to be expanded in the local refresh area and the display effect of compression and decompression after expansion, so that the original data blocks of appropriate sizes are divided, the overhead of the system's expansion processing, compression, storage, decompression and other processes for the display image is as small as possible, and the final display effect of full-screen refresh and local refresh is as good as possible.

[0051] S200, obtaining the position and size of the local refresh area, determining whether the local refresh area includes an incompletely refreshed original data block area, and if so, receiving image data of the local refresh area, and expanding the incompletely refreshed original data block area into a completely refreshed original data block area, further compressing the image data block corresponding to the completely refreshed original data block area that has not been expanded and storing it in the storage space corresponding to the original data block in the frame buffer, and at the same time compressing the image data block corresponding to the completely refreshed original data block area formed after expansion and storing it in the storage space of the local refresh buffer.

[0052] Specifically, before the video source starts to send the display image of the partial refresh area, it must first send a command to set the location of the partial refresh area, generally the starting row and ending row and starting column and ending column of the partial refresh area, and then set the system display mode to the partial refresh mode, and then send the display image of the partial refresh area. Figure 4 As shown, the local refresh area is set to a rectangular area formed by 15 original data block areas S11~S53, and then the system refresh mode is set to the local refresh mode. After that, the video source sends a display refresh image of the local refresh area, that is, the updated image data of the original data blocks S11~S53.

[0053] Furthermore, display devices, such as mobile phone screens, can update certain information through partial refresh during use, such as the clock or signal strength in the main interface of the mobile phone, etc. This can reduce the amount of display data transmitted and reduce the power consumption of refresh. The display device or display bridge chip must first obtain the position and size of the local refresh area, determine whether the local refresh area contains an incompletely refreshed original data block area, and finally receive the image data of the local refresh area. During implementation, the AP will send a local refresh area setting command. These commands include setting the starting row and ending row of the local refresh area position and the starting column and ending column. This information can be used to determine the position of the local refresh area and the size of the local refresh area. After obtaining the position and size of the local refresh area, it is further determined whether the local refresh area contains an incompletely refreshed original data block area, and then the updated image data of the local refresh area sent by the AP is received. The local refresh area may only contain a completely refreshed original data block area, such as Figure 4 As shown, the local refresh area is a rectangular area composed of 15 original data block areas S11-S53, and all pixels in each original data block area can be completely refreshed; the local refresh area can also include an incompletely refreshed original data block area, such as Figure 5 As shown, the local refresh area is a rectangular area formed by 15 original data block areas S11~S53 that can be completely refreshed and 20 original data block areas that are partially refreshed, that is: the original data block areas S11~53 and the upper three rows of pixels of the original data block areas S11, S12, and S13, the left two columns of pixels of the original data block areas S11, S21, S31, S41, and S51, the lower two rows of pixels of the original data block areas S51, S52, and S53, and the right row of pixels of the original data block areas S13, S23, S33, S43, and S53.

[0054] For a partial refresh area that only includes a completely refreshed original data block area, there is no need to adjust the partial refresh area. The image data block corresponding to the partial refresh area is directly received, and the data block corresponding to the received partial refresh area is compressed by a corresponding compression module and a corresponding compression algorithm, such as a DSC algorithm, etc., and then stored in the storage space corresponding to the original data block area in the frame buffer after compression, overwriting the compressed data of the original data block area stored in the last refresh. Figure 4 and Figure 7As shown, the local refresh area includes 15 data blocks that can be completely refreshed, which correspond to the original data block areas S11 to S53 in the frame buffer respectively. After compression, the 15 data blocks that can be completely refreshed obtain 15 compressed data, namely C11 to C53. The 15 compressed data are respectively stored in the storage space corresponding to the frame buffer and the original data block area S11 to S53. For example, the compressed data C11 is stored in the storage space corresponding to the original data block area S11 to overwrite the compressed data stored in the storage space corresponding to the original data block area S11 during the last refresh.

[0055] In the case where the partial refresh area includes an incompletely refreshed original data block area, the image data of the partial refresh area is received, and the partial refresh area is adjusted so that the adjusted partial refresh area only includes the completely refreshed original data block area, thereby enabling all data blocks in the adjusted partial refresh area to be correctly compressed, stored, and decompressed. Adjusting the partial refresh area includes expanding the range of the partial refresh area so that the adjusted partial refresh area only includes the completely refreshed original data block area, combined with Figure 5 and Figure 6 As shown, for Figure 5 The incomplete refresh area shown in the figure is expanded by one row of pixels on its upper side, two columns of pixels on its left side, two rows of pixels on its lower side, and three rows of pixels on its right side, finally forming Figure 6 The local refresh area ABCD shown in the figure only contains the original data block area that is completely refreshed after expansion.

[0056] Furthermore, when the local refresh area is expanded, the original data block area is expanded and refreshed according to the data in the local refresh area located in the incompletely refreshed original data block area, so that the incompletely refreshed original data block area becomes a completely refreshed original data block area, that is, the pixel rows or pixel columns that have not been refreshed in the incompletely refreshed original data block area are also refreshed, so that all pixels in the incompletely refreshed original data block area can be refreshed, and the incompletely refreshed original data block area becomes a completely refreshable original data block area. Figure 5 and Figure 6 As shown, a row of pixels that have not been refreshed in the upper original data block area of ​​the incompletely refreshed original data block areas S11, S12, and S13 is refreshed, so that the upper original data block area becomes a completely refreshable original data block area. In the same way, other incompletely refreshed original data block areas are extended and refreshed, so that all pixels in the incompletely refreshed original data block areas can be refreshed.

[0057] Further, when performing extended refresh processing on an incompletely refreshed original data block area in a local refresh area, the extended refresh processing on the original data block area can be performed in the following manner: when expanding pixel rows for the incompletely refreshed original data block area, the value of each pixel in the pixel row to be expanded is copied to the value of the refreshed outermost pixel in the original data block area that is in the same column as the pixel; when expanding pixel columns, the value of each pixel in the pixel column to be expanded is copied to the value of the refreshed outermost pixel in the original data block area that is in the same row as the pixel, such as Figure 6 As shown, the pixel values ​​of the same row of pixels in the data block are the same as the columns for detailed description. The first row of pixels in the five data block areas S00-S04 are not refreshed, and the values ​​of the pixels in the second to fourth rows are P2, P3, and P4 respectively. During extended refresh, the values ​​of the pixels in the first row copy the values ​​of the pixels in the second row, and the pixels in the second row are the outermost row of pixels in the data block where the upper boundary of the local refresh area is located, and finally the values ​​of the pixel rows in the five data block areas S00-S04 are P2, P2, P3, and P4 respectively. When there are more than one row of pixel rows to be extended and refreshed, the values ​​of all the pixel rows to be extended and refreshed copy the pixel values ​​of the outermost row of the local refresh area, so that the values ​​of the pixels in the same column in the outermost pixel row of the local refresh area and the pixel row after extended refresh are the same.

[0058] Alternatively, directly set the value of each pixel in the pixel row or pixel column to be expanded. It can be set to the same value or different values. For example, all pixels in the expanded pixel row are set to full white [255, 255, 255] or black [0, 0, 0], etc., or they can be set to intermediate values. It can be set according to actual needs.

[0059] Of course, when the incompletely refreshed original data block area expands the pixel row or pixel column, the value of the pixel row or pixel column to be expanded can also be set to the average value of the row pixels or column pixels refreshed in the area, that is: when the incompletely refreshed original data block area expands the pixel row, the value of each pixel in the pixel row to be expanded is the average value of the refreshed pixels in the same column as the pixel in the original data block area; when the incompletely refreshed original data block area expands the pixel column, the value of each pixel in the pixel column to be expanded is the average value of the refreshed pixels in the same row as the pixel in the original data block area. As described above, the pixel values ​​of the middle pixels in the first to fourth rows in the five data block areas S00~S04 are (P2+P3+P4)÷3, P2, P3, P4 respectively;

[0060] Or the value of the pixel row or pixel column to be expanded is linearly expanded according to the pixel value in the region, that is: when the pixel row is expanded in the incompletely refreshed original data block region, the value of each pixel in the pixel row to be expanded is α×P, where α is the ratio of any two adjacent pixels refreshed in the original data block region and in the same column as the pixel to be expanded, and α is a fixed value, and P is the value of the adjacent pixels refreshed in the original data block region and in the same column as the pixel to be expanded; when the pixel column is expanded in the incompletely refreshed original data block region, the value of each pixel in the pixel column to be expanded is α×P, where α is the ratio of any two adjacent pixels refreshed in the original data block region and in the same row as the pixel to be expanded, and α is a fixed value, and P is the value of the adjacent pixels refreshed in the original data block region and in the same row as the pixel to be expanded. If p2 / p3≈p3 / p4≈α, the values ​​of the pixels in the expanded pixel row or pixel column are α×P2, P2, P3, P4.

[0061] In this embodiment, for the original data block area that needs to expand both the pixel row and the pixel column, the order of row expansion and column expansion can be set according to the display requirements or dynamically calculated according to the pixel value content, such as first selecting to expand the pixel row and then expanding the pixel column, or first selecting to expand the pixel column and then expanding the pixel row, so that the incompletely refreshed original data block area becomes a completely refreshed original data block area. In addition, other algorithms can also be selected during the expansion and refresh, so that the pixel value of the expanded data block is more natural and the regional display is smoother.

[0062] Further, after the partial refresh area is adjusted to include only the completely refreshed original data block area, the image data blocks in the partial refresh area are compressed and stored. For the image data blocks corresponding to the completely refreshed original data block area that has not been expanded in the partial refresh area, each image data block is compressed and stored by the corresponding compression module in the order of receiving, generally from left to right and from top to bottom, such as in combination with Figure 5 and Figure 6 As shown, after the image data corresponding to the completely refreshed original data block area S11 to S53 is compressed, the compressed data corresponding to each image data block is C11 to C53, that is, the image data block corresponding to the original data block area S11 is compressed to obtain the compressed data C11, and so on, the image data block corresponding to the original data block area S53 is compressed to obtain the compressed data C53. After obtaining the compressed data, the compressed data is directly stored in the corresponding storage space inside the frame buffer to overwrite the previous compressed data.

[0063] For the image data blocks corresponding to the completely refreshed original data block area formed by expansion in the local refresh area, each image data block is compressed by the corresponding compression module, and the corresponding compressed data is obtained and stored in the local refresh buffer, such as in combination with Figure 5 , Figure 6 and Figure 7 As shown, after the image data blocks corresponding to the original data block areas S00, S01, S02, S03, S04, S10, S14, S20, S24, S30, S34, S40, S44, S50, S54, S60, S61, S62, S63, S64 are compressed, the compressed data obtained are C00, C01, C02, C03, C04, C10, C14, C20, C24, C30, C34, C40, C44, C50, C54, C60, C61, C62, C63, C64. The above compressed data is further stored in the corresponding storage space inside the local refresh buffer.

[0064] In this embodiment, the local refresh buffer is used to store the compressed data of the image data block corresponding to the completely refreshed original data block area formed after expansion. The order of storing the compressed data is generally from left to right and from top to bottom, which is consistent with the order in which the system receives the image data. And the storage space size of the local refresh buffer is related to the number of incompletely refreshed original data block areas that need to be expanded and the specifications of each data block. Figure 5 , Figure 6 and Figure 7 As shown, each data block includes 4×4 pixels, and there are 20 original data block areas that need to be expanded and not completely refreshed, specifically S00, S01, S02, S03, S04, S10, S14, S20, S24, S30, S34, S40, S44, S50, S54, S60, S61, S62, S63, and S64. At this time, the storage space size of the local refresh buffer is 20 (blocks) × 4 (rows / blocks) × 4 (columns / rows) × 3 (bytes / pixel) ÷ 3 (compression ratio) = 320Bytes, that is, when the storage space of the local refresh buffer is 320Bytes, the local refresh mode in this area can be supported.

[0065] Furthermore, when the compression ratio remains unchanged, the smaller the size of the data block, the smaller the storage space of the local refresh buffer. For example, if the compression ratio remains unchanged and the division size of the original data block is reduced from the original 4×4 pixels to 2×2 pixels, the storage space of the frame buffer is 1536Byte, while the storage space of the local refresh buffer becomes 76×2×2×3÷3=304Byte. The storage space capacity of the local refresh buffer is approximately one-fifth of the storage space capacity of the frame buffer.

[0066] In order to support the partial refresh function of any area, the maximum storage space of the partial refresh buffer is required when the boundary of the partial refresh area falls within the outermost raw data block area of ​​the display area, that is, a row of raw data block areas at the top of the screen display area, a row of raw data block areas at the bottom, a column of raw data block areas on the left, and a column of raw data block areas on the right all need to be extended for refresh processing. Figure 6 Taking the example shown, the maximum number of original data block areas that need to be expanded and refreshed is 36. At this time, the storage space size of the local refresh buffer is 576Byte, and the storage space of the frame buffer is 12×8×4×4×3÷3=1536Byte, that is, the storage space of the local refresh buffer is approximately one-third of the storage space of the frame buffer.

[0067] S300, read the compressed data corresponding to the original data block area that has not been expanded and is completely refreshed in the frame buffer and the compressed data of the previous frame image corresponding to the original data block area that has been completely refreshed after expansion, and read the compressed data corresponding to the original data block area that has been completely refreshed after expansion in the local refresh buffer, perform pixel row stitching processing after decompression, form the image to be displayed and display it.

[0068] Specifically, when displaying an image, the display driver chip reads the corresponding compressed data from the frame buffer and the local refresh buffer, decompresses it, and performs pixel row stitching. During decompression, for the compressed data corresponding to the original data block area outside the local refresh area formed after expansion, such as Figure 6 As shown, the compressed data corresponding to the original data block area outside the partially refreshed area ABCD formed after the expansion is read from the frame buffer in a normal order and decompressed by the corresponding decompression module. Figure 6 and Figure 7 As shown, the compressed data C11-C53 corresponding to the original data block area S11-S53 are read from the frame buffer in a normal order and decompressed by the corresponding decompression module. For the completely refreshed original data block area formed after expansion, the corresponding compressed data includes two types, one is the compressed data corresponding to these original data block areas of the previous frame image stored in the frame buffer, such as compressed data F00, F01, F02, F03, F04, F10, F14, F20, F24, F30, F34, F40, F44, F50, F54, F60, F61, F62, F63, F64 (not shown in the figure), and the other is the compressed data corresponding to the expanded original data block area stored in the local refresh buffer, such as Figure 7The compressed data C00, C01, C02, C03, C04, C10, C14, C20, C24, C30, C34, C40, C44, C50, C54, C60, C61, C62, C63, and C64 shown, when decompressed, read the compressed data corresponding to the same original data block area from the frame buffer and the local refresh buffer respectively, and independently decompress them through the corresponding decompression modules to obtain two display image data corresponding to the original data block area.

[0069] In the local refresh mode, in order to obtain the correct image data, it is necessary to decompress the compressed data read from the frame buffer and the local refresh buffer and then perform pixel row stitching processing, that is, read the compressed data corresponding to the original data block area that has not been expanded and fully refreshed from the frame buffer, read the compressed data of the previous frame image corresponding to the original data block area that has been expanded and fully refreshed from the frame buffer, and read the compressed data corresponding to the original data block area that has been expanded and fully refreshed from the local refresh buffer, and decompress these compressed data and perform pixel row stitching processing. When performing pixel row stitching, the pixel row data in the original data block outside the local refresh area formed after expansion can be obtained by decompressing the compressed data corresponding to the original data block area stored in the frame buffer, combined with Figure 6 and Figure 7 As shown in FIG. 1 , the first row of pixel data in an original data area on the left side of the original data block area S00 can be obtained by decompressing the compressed data corresponding to the original data block area stored in the frame buffer. As for the pixel row data in the original data block area in the local refresh area formed after expansion, if the pixel row is located in the original data block area that has not been expanded, the data of the pixel row can be directly read from the frame buffer and decompressed to obtain the compressed data corresponding to the original data block area. Figure 7As shown, compressed data C11, C12, C13, C21, C22, C23, C31, C32, C33, C41, C42, C43, C51, C52, C53, etc. are stored in the frame buffer. When decompressing, they are directly read out and decompressed in sequence from the frame buffer, and the decompressed image data are used to piece together the final pixel row; if the pixel row is located in the expanded original data block area, then the pixel row is located outside the original local refresh area. The pixels can be obtained by decompressing the compressed data of the previous frame image stored in the original data block area corresponding to the original data block area in the frame buffer. For example, the first row of pixels in the original data block areas S00, S01, S02, S03, and S04 are located outside the original local refresh area. When the pixel rows are spliced, the pixel values ​​of the first row of pixels in these original data block areas S00, S01, S02, S03, and S04 are obtained by decompressing the compressed data corresponding to the original data block area stored in the frame buffer. The pixels located in the original local refresh area can be obtained by decompressing the compressed data corresponding to the original data block area stored in the local refresh buffer, such as the pixels in the 2nd, 3rd and 4th rows of areas S00, S01, S02, S03 and S04, and the pixels in the 1st and 2nd rows of areas S60, S61, S62, S63 and S64, which can be obtained by decompressing the compressed data corresponding to the original data block area stored in the local refresh buffer. Among them, areas S00, S04, S60 and S64 belong to the data blocks of the intersection area. In these data areas, only the pixels whose rows and columns are in the original local refresh area directly obtain the corresponding data from the local refresh buffer. The pixels within these areas all belong to the original local refresh area and need to be refreshed. Therefore, when the pixel rows are spliced, the pixel values ​​of these areas are selected from the image data obtained by decompressing the compressed data stored in the local refresh buffer. These image data are the display image data updated in the local refresh mode.

[0070] Furthermore, if Figure 8As shown, how to splice pixel rows is described in detail: for the original data block areas S00, S01, S02, S03, S04 that have been expanded before compression, the corresponding compressed data F00, F01, F02, F03, F04 and C00, C01, C02, C03, C04 are read from the frame buffer and the local refresh buffer respectively, and two sets of image data are obtained by decompression. In the image data obtained by decompressing the compressed data read from the frame buffer (FB), the display area corresponding to the shaded image data is refreshed in the partial refresh mode, but these image data are old, so they are not used when the pixel rows are stitched together, and the remaining image data does not belong to the original partial refresh area, so the display of these areas on the screen must remain unchanged, so they must be used when the pixel rows are stitched together. In the image data obtained by decompressing the compressed data read from the partial refresh buffer (PFB), the image data in the relatively dark shaded area belongs to the additional data when the data block is expanded, and does not belong to the original partial refresh area, so it is not used when the pixel rows are stitched together. The image data contained in the relatively light gray area belongs to the pixel values ​​to be updated in the original partial refresh area, and must be used when the pixel rows are stitched together. After selecting the corresponding data, it is finally stitched together into a new data block row, including 4 rows of pixels, such as Figure 8 As shown in , the gray area composed of 3 rows of pixels is the area that needs to be refreshed in this local refresh process.

[0071] In this embodiment, when the partial refresh area only includes the original data block area that is completely refreshed, the image data block corresponding to the partial refresh area can be directly compressed and directly stored in the frame buffer. When displayed, the corresponding compressed data can be directly read from the frame buffer and decompressed by the corresponding decompression module. The image data obtained after decompression by the decompression module can be directly sent to the pixel row splicing module for pixel row splicing processing. Figure 2 The data processing process is shown by the dashed line 1.

[0072] When the local refresh area contains an incompletely refreshed original data block area, it needs to be expanded through the corresponding expansion module so that the expanded local refresh area only contains the completely refreshed original data block area. The image data block corresponding to the expanded original data block area is compressed by the corresponding compression module and stored in the local refresh buffer. When displayed, the corresponding compressed data can be directly read from the local refresh buffer and decompressed by the corresponding decompression module. The image data obtained after decompression by the decompression module can be directly sent to the pixel row stitching module for pixel row stitching processing, such as Figure 2 The data processing process is shown in the dashed line 2.

[0073] When the number of completely refreshed original data block areas contained in the unexpanded local refresh area is small, the total data volume of the pixels in the local refresh area is small, and the compressed data of the image data blocks corresponding to these original data block areas occupies a small storage space, which is smaller than the storage space size of the local refresh buffer. These compressed data can be directly stored in the local refresh buffer, making system control relatively simple. Similarly, if the data volume of the pixels in the original local refresh area is smaller than the storage space size of the local refresh buffer, the image data can be directly stored in the local refresh buffer without compression. When stitching, the original data can be directly read from the local refresh buffer for stitching, without adding an additional decompression module. Figure 2 As shown by the dotted line 3 in the figure, there is no need to add an additional decompression module, which saves chip area and compression and decompression power consumption.

[0074] When the amount of data of pixels refreshed in the incompletely refreshed original data block area is smaller than the storage space capacity of the local refresh buffer, the data of pixels refreshed in the incompletely refreshed original data block area can also be directly stored in the local refresh buffer, and when the pixel rows are spliced, the uncompressed pixel data in the local refresh buffer can be directly read for splicing.

[0075] When performing a partial refresh of any area, the present invention adjusts the scope of the partial refresh area so that the incompletely refreshed original data block area is expanded into a completely refreshable data block area, and the data blocks corresponding to the completely refreshed original data block area that has not been expanded are compressed and stored in the storage space corresponding to the original data blocks in the frame buffer, and the data blocks corresponding to the completely refreshed original data block area formed by expansion are compressed and stored in the partial refresh buffer. In the partial refresh mode, the compressed data in the frame buffer and the partial refresh buffer are decompressed and then processed by pixel row splicing to form correct image data, thereby avoiding abnormal effects such as garbled characters and screen distortion during the image display process of the display device. At the same time, the data blocks in the partial refresh area and the data blocks outside the partial refresh area use exactly the same compression and decompression algorithm, without the need to add a new compression and decompression algorithm and process, so that the system's compression and decompression algorithm processing process is completely unified under different display modes, reducing system complexity and saving the area, cost and power consumption of the display driver chip or the display bridge chip.

[0076] The technical contents and technical features of the present invention have been disclosed as above. However, those skilled in the art may still make various substitutions and modifications based on the teachings and disclosures of the present invention without departing from the spirit of the present invention. Therefore, the protection scope of the present invention should not be limited to the contents disclosed in the embodiments, but should include various substitutions and modifications that do not depart from the present invention and are covered by the claims of this patent application.

Claims

1. A method for supporting partial refresh of any display area, applied to a display system or display data path for compressing, storing, and decompressing original images, characterized in that: Methods include S100, dividing the image to be compressed into M×N original data blocks according to the resolution of the image to be compressed, and compressing the M×N original data blocks and storing them in a frame buffer, where M and N are integers greater than or equal to 1; S200, obtaining the position and size of the local refresh area, determining whether the local refresh area includes an incompletely refreshed original data block area, and if so, receiving image data of the local refresh area, and expanding the incompletely refreshed original data block area into a completely refreshed original data block area, further compressing the image data block corresponding to the unexpanded completely refreshed original data block area and storing it in a storage space corresponding to the original data block in the frame buffer, and compressing the image data block corresponding to the completely refreshed original data block area formed after expansion and storing it in the storage space of the local refresh buffer; S300, reading the compressed data corresponding to the original data block area that has not been expanded and completely refreshed in the frame buffer and the compressed data of the display image that has been refreshed last time corresponding to the original data block area that has been expanded, and reading the compressed data corresponding to the original data block area that has been expanded and completely refreshed in the partial refresh buffer, performing pixel row stitching processing after decompression and displaying on the display system, when performing pixel row stitching, For pixel row data in the original data block area in the local refresh area formed after expansion, if the pixel row is located in the original data block area that has not been expanded, the data of the pixel row can be directly obtained by reading the compressed data corresponding to the original data block area in the frame buffer and decompressing it; If the pixel row is located in the expanded original data block area, then in the pixel row, the pixels located outside the original local refresh area can be obtained by decompressing the compressed data of the display image last refreshed in the original data block area stored in the frame buffer, and the pixels located within the original local refresh area can be obtained by decompressing the compressed data corresponding to the original data block area stored in the local refresh buffer.

2. The method according to claim 1, characterized in that In step S200, the incompletely refreshed original data block area is expanded into a completely refreshed original data block area in the following manner: According to the image data in the partially refreshed original data block area, extended refresh processing is performed on the unrefreshed pixel rows or pixel columns in the original data block area to make the incompletely refreshed original data block area become a completely refreshed original data block area.

3. The method according to claim 2, characterized in that The extended refresh process includes When the pixel row of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel row to be expanded is copied to the value of the refreshed outermost pixel in the original data block area that is in the same column as the pixel; When the pixel column of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel column to be expanded copies the value of the refreshed outermost pixel in the original data block area that is in the same row as the pixel.

4. The method according to claim 2, characterized in that: The extended refresh process includes Directly set the value of each pixel in the pixel row or pixel column to be expanded, and set the value of each pixel in the pixel row or pixel column to be expanded to be the same or different.

5. The method according to claim 2, characterized in that: The extended refresh process includes When the pixel row of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel row to be expanded is the average value of the refreshed pixels in the original data block area that are in the same column as the pixel; When the pixel column of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel column to be expanded is the average value of the refreshed pixels in the same row as the pixel in the original data block area.

6. The method according to claim 2, characterized in that The extended refresh process includes When the pixel row of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel row to be expanded is α×P, wherein α is the ratio of any two adjacent pixels refreshed in the original data block area and in the same column as the pixel to be expanded, and α is a fixed value, and P is the value of the adjacent pixels refreshed in the original data block area and in the same column as the pixel to be expanded; When the pixel column of the incompletely refreshed original data block area is expanded, the value of each pixel in the pixel column to be expanded is α×P, wherein α is the ratio of any two adjacent pixels refreshed in the original data block area that are in the same row as the pixel to be expanded, and α is a fixed value, and P is the value of the adjacent pixels refreshed in the original data block area that are in the same row as the pixel to be expanded.

7. The method according to claim 1, characterized in that In step S300, when pixel row stitching is performed, The pixel row data in the original data block outside the local refresh area formed after the expansion is obtained by decompressing the compressed data corresponding to the original data block area stored in the frame buffer.

8. The method according to claim 1, characterized in that If the total storage space occupied by the pixels in the local refresh area is smaller than the storage space capacity of the local refresh buffer, the pixel data of the local refresh area is directly stored in the local refresh buffer, and when the pixel rows are stitched together, the uncompressed pixel data in the local refresh buffer is directly read for stitching.

9. The method according to claim 1, characterized in that: In the local refresh area, if the amount of data of the pixels refreshed in the incompletely refreshed original data block area is smaller than the storage space capacity of the local refresh buffer, the data of the pixels refreshed in the incompletely refreshed original data block area is directly stored in the local refresh buffer, and when the pixel rows are spliced, the uncompressed pixel data in the local refresh buffer is directly read for splicing.