A method for supporting partial refresh of any display area
By adjusting the scope of the partial refresh area to ensure that only fully refreshed data block areas are included, the display problem during partial refresh in the prior art is solved, correct compression and decompression of any area is achieved, and system complexity and cost are reduced.
Patent Information
- Application Number
- CN202010923997.3
- 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
When performing partial refresh, the existing display system cannot effectively support partial refresh of any display area, resulting in display problems such as blurry screens and garbled characters. Compression and decompression processing are complex, and the cost and power consumption are high.
By adjusting the scope of the partial refresh area so that it only contains the fully refreshed original data block area, the same compression and decompression algorithm is used, including shrinking or expanding the refresh area, to ensure that all data blocks can be compressed and decompressed correctly.
It realizes partial refresh of any display area, avoids abnormal effects such as garbled characters and blurred screens, reduces system complexity and cost, and saves storage space and power consumption.
Smart Images

Figure CN112073725B_ABST
Abstract
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 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 the following steps:
[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, and determining whether the local refresh area includes an incompletely refreshed original data block area, if so, receiving image data of the local refresh area, and adjusting the local refresh area range so that the adjusted local refresh area only includes a completely refreshed original data block area, and further compressing and storing the data block corresponding to the adjusted local refresh area in a storage space corresponding to the original data block in a frame buffer, otherwise, directly receiving the image data block corresponding to the local refresh area, compressing and storing it in a storage space corresponding to the original data block in a frame buffer;
[0009] S300, reading compressed data of a display image stored in a frame buffer, and displaying the image on a display device after decompression.
[0010] Preferably, in step S200, adjusting the local refresh area range includes reducing the local refresh area range, and reducing the local refresh area range includes
[0011] The refreshed pixel rows or pixel columns in the incompletely refreshed original data block area are discarded.
[0012] Preferably, when the proportion of pixel rows or pixel columns refreshed in an incompletely refreshed original data block area to the total pixel rows or pixel columns in the original data block area is less than or equal to a preset threshold, the pixel rows or pixel columns refreshed in the original data block area are discarded.
[0013] Preferably, in step S200, adjusting the local refresh area range includes expanding the local refresh area range, and the expanded local refresh area range includes
[0014] 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.
[0015] Preferably, the extended refresh process includes:
[0016] When the pixel row of the incompletely refreshed original data block area is expanded, the value of the pixel row to be expanded is copied to the value of the outermost pixel row of the original data block area;
[0017] When the pixel columns of the incompletely refreshed original data block area are expanded, the values of the pixel columns to be expanded are copied from the values of the outermost pixel columns of the original data block area.
[0018] or
[0019] 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.
[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 the average value of the refreshed pixels in the same column as the pixel in the original data block area;
[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 the average value of the refreshed pixels in the same row as the pixel in the original data block area.
[0023] Preferably, the extended refresh process includes:
[0024] 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;
[0025] 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.
[0026] Preferably, when the proportion of pixel rows or pixel columns refreshed in the incompletely refreshed original data block area to the total pixel rows or pixel columns in the original data block area is greater than or equal to a preset threshold, the pixel rows or pixel columns that are not refreshed in the original data block area are extended refreshed.
[0027] Preferably, in step S200, adjusting the local refresh area range includes:
[0028] For the incompletely refreshed original data block area where the boundary intersection of the local refresh area is located, if the incompletely refreshed original data block areas where the two boundaries are located are both chosen to be discarded or extended refreshed, then the pixel rows or pixel columns refreshed in the incompletely refreshed original data block area where the boundary intersection is located are discarded or extended refreshed.
[0029] Preferably, in step S200, adjusting the local refresh area range includes:
[0030] For the incompletely refreshed original data block area where the boundary intersection of the local refresh area is located, if the incompletely refreshed original data block area where one boundary is located is chosen to be discarded, and the incompletely refreshed original data block area where the other boundary is located is chosen to be extended refreshed, then the incompletely refreshed original data block area where the boundary intersection is located is chosen to be discarded and not refreshed.
[0031] The beneficial effects of the present invention are:
[0032] (1) When performing a local refresh of any area, the present invention adjusts the scope of the local refresh area so that the adjusted local refresh area only contains the original data area that is completely refreshed, so that all data blocks in the local refresh area can be correctly compressed, stored and decompressed, thereby enabling a system that needs to compress, store, decompress and process the displayed image to support the local refresh of any display area, effectively avoiding abnormal effects such as garbled characters and screen distortion during the local refresh display of the image on the display device.
[0033] (2) The present invention uses exactly the same compression and decompression algorithm for data blocks within the local refresh area and data blocks outside the local refresh area, without the need to add new compression and decompression algorithms and processes, so that the system's compression and decompression algorithm processing flow is completely unified under different display modes, thereby reducing system complexity, saving frame buffer storage space, and saving the area, cost and power consumption of display driver chips or display bridge chips. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of a flow chart of the present invention;
[0035] Figure 2 It is a schematic diagram of a data path structure block diagram supporting partial refresh of the present invention;
[0036] Figure 3 It is a schematic diagram of image segmentation of the present invention;
[0037] 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;
[0038] Figure 5 It is a schematic diagram of the partial refresh area including the original data block area that is not completely refreshed;
[0039] Figure 6 It is a schematic diagram of a local refresh area formed after the local refresh area is expanded;
[0040] Figure 7 It is a schematic diagram of a local refresh area formed after a combination of expansion and discarding of the local refresh area;
[0041] Figure 8 It is a schematic diagram of a local refresh area formed after the local refresh area removes the original data block area at the boundary interaction. DETAILED DESCRIPTION
[0042] 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.
[0043] A method for supporting local refresh of any display area disclosed in the present invention is applicable to a display system or display data path that needs to compress, store, and decompress the original display image. It adjusts the range of the local refresh area so that all data blocks in the adjusted local refresh area can be correctly compressed, stored, and decompressed, thereby avoiding abnormal effects such as garbled characters and screen distortion during image display of the display device, so that the display device can support local refresh of any display area. The present invention is applicable to the case where the display device has one local refresh area or multiple local refresh areas.
[0044] 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:
[0045] 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;
[0046] 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, where M is an integer greater than or equal to 1, and N is an integer 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 32×32, and the image to be compressed can be divided into 8×8 data blocks, each data block contains 4×4 pixels.
[0047] The video source, such as AP (Application Processor), transmits the image data to be displayed 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.
[0048] 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.
[0049] 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.
[0050] The compression and storage of the original data blocks and the reception of the image data can be executed in parallel, that is, while the 1×N original data blocks currently received 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, compressed and stored in the frame buffer.
[0051] In this embodiment, when dividing the original data block area into compressed images, the size of the original data blocks 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 as to divide the original data blocks into appropriate sizes and ensure that there is no obvious difference in the final display effect.
[0052] S200, obtain the position and size of the local refresh area, and determine whether the local refresh area includes an incompletely refreshed original data block area. If so, receive the image data of the local refresh area, and adjust the range of the local refresh area so that the adjusted local refresh area only includes the completely refreshed original data block area, and further compress the data block corresponding to the adjusted local refresh area and store it in the storage space corresponding to the original data block in the frame buffer. Otherwise, directly receive the image data block corresponding to the local refresh area, compress it and store it in the storage space corresponding to the original data block in the frame buffer.
[0053] 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 four original data block areas 1, 2, 3, and 4, 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 1, 2, 3, and 4.
[0054] 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, and 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 four original data block areas 1, 2, 3, and 4. All pixels in each original data block area can be 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 four original data block areas 1, 2, 3, 4 that can be fully refreshed and eight original data block areas A, B, C, D, E, F, G, H that are partially refreshed, that is, a rectangular area formed by the original data block areas 1, 2, 3, 4 and the three rows of pixels at the bottom of the original data block areas A, B, C, the two columns of pixels on the right side of the original data block areas A, D, E, F and a row of pixels on the upper side of the original data block areas F, G, H.
[0055] 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 partial refresh area is compressed using a corresponding compression algorithm, such as a DSC algorithm, etc., and stored in the storage space corresponding to the original data block area in the frame buffer, overwriting the compressed data of the original data block area stored in the last refresh, such as Figure 4 As shown, the partial refresh area includes four completely refreshable data blocks, which respectively correspond to the storage spaces corresponding to the original data block areas 1, 2, 3, and 4 in the frame buffer. During implementation, the four data blocks are compressed by a corresponding compression algorithm and stored in the storage space corresponding to the compressed data of the original data block areas 1, 2, 3, and 4 in the frame buffer to overwrite the compressed data corresponding to the original data block areas 1, 2, 3, and 4 stored in the frame buffer at the last refresh.
[0056] In the case where the local refresh area includes an incompletely refreshed original data block area, the image data of the local refresh area is received, and the local refresh area is adjusted so that the adjusted local refresh area only includes the completely refreshed original data block area, so that all data blocks in the adjusted local refresh area can be correctly compressed, stored and decompressed, which can effectively avoid abnormal effects such as garbled characters and screen distortion during image display on the display device. Adjusting the local refresh area includes narrowing the scope of the local refresh area so that the adjusted local refresh area only includes the completely refreshed original data block area. When narrowing the scope of the local refresh area, the data in the incompletely refreshed original data block area in the local refresh area is discarded, that is, the refreshed pixel rows or pixel columns in the incompletely refreshed original data block area are discarded, and the local refresh area is reduced to only include the completely refreshed original data block area. Figure 5 As shown, when the scope of the local refresh area is reduced, the three rows of pixel data located at the lower side of the original data block areas A, B, and C in the local refresh area are discarded, and the two columns of pixel data located on the right side of the original data block areas D, E, and F in the local refresh area are discarded, and a row of pixels located at the upper side of the original data block areas G and H in the local refresh area are discarded, so that the adjusted local refresh area only includes the four original data block areas 1, 2, 3, and 4 that can be completely refreshed.
[0057] Adjusting the local refresh area also includes expanding the range of the local refresh area so that the adjusted local refresh area only includes the completely refreshed original data block area. When expanding the range of the local refresh area, the original data block area is extended and refreshed based on the data in the local refresh area that is 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, that is, the incompletely refreshed original data block area becomes a completely refreshable original data block area. Figure 6 As shown, a row of pixels on the upper side of the incompletely refreshed original data block areas A, B, and C that have not been refreshed are refreshed, and two columns of pixels on the left side of the incompletely refreshed original data block areas A, D, E, and F that have not been refreshed are refreshed, and three rows of pixels on the lower side of the incompletely refreshed original data block areas F, G, and H are refreshed. By extending and refreshing the incompletely refreshed original data block areas, the adjusted partial refresh area only includes the completely refreshed original data block areas A, B, C, D, 1, 2, 3, 4, F, G, and H, and no longer includes the partially refreshed original data block areas.
[0058] Furthermore, 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 of 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 in the figure, the pixel values of the same row of pixels in the data block are the same as an example for detailed description. The original pixel values of the first to fourth rows in the original data block areas A, B, and C are P and 1 1 , P 2 1 , P 3 1 , P 4 1 When partial refresh is performed, the first row remains unrefreshed and the pixel value remains unchanged, while the second to fourth rows are refreshed and the new pixel values are P 2 2 , P 3 2 , P 4 2By copying the values of the outermost pixel row, the pixel values of the pixels in the first to fourth rows in the original data block areas A, B, and C are P 2 2 , P 2 2 , P 3 2 , P 4 2 ; Or 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 pixel row or pixel column of the incompletely refreshed original data block area is expanded, 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 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 same column as the pixel in the original data block area; 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. As mentioned above, the pixel values of the middle pixels in the first to fourth rows in the original data block areas A, B, and C are (P 2 2 +P 3 2 +P 4 2 )÷3, P 2 2 , P 3 2 , P 4 2 ;
[0060] Or the value of the pixel row or pixel column to be expanded is linearly expanded according to the pixel value in the area, that is: when the pixel row is expanded in the incompletely refreshed original data block area, 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 area that are 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 is expanded in the incompletely refreshed original data block area, 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 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 and in the same row as the pixel to be expanded. If p 2 2 / p 3 2 ≈p 3 2 / p 2 4 ≈α, the value of the pixel in the expanded pixel row or pixel column is α×P 2 2 , P 2 2 , P 3 2 , P 4 2 .
[0061] In this embodiment, for the original data block area that needs to expand both pixel rows and pixel columns, the order of row expansion and column expansion can be set according to display requirements or dynamically calculated according to the pixel value content, such as first choosing to expand pixel rows and then expanding pixel columns, or first choosing to expand pixel columns and then expanding pixel rows, so that the incompletely refreshed original data block area becomes a completely refreshed original data block area.
[0062] like Figure 6As shown, when adjusting the range of the local refresh area, reducing the local refresh range and expanding the local refresh range can be used in combination or separately, that is: all pixel rows or pixel columns refreshed in the incompletely refreshed original data block area in the local refresh area can be discarded, or the pixel rows or pixel columns that are not refreshed in the incompletely refreshed original data block area in the local refresh area can be expanded and refreshed, or the two can be used in combination, such as: refreshing a row of pixels that have not been refreshed on the upper side of the incompletely refreshed original data block areas A, B, and C, refreshing the two columns of pixels that have not been refreshed on the left side of the incompletely refreshed original data block areas A, D, E, and F, and at the same time, discarding a row of pixels located on the upper side of the original data block areas F, G, and H. By discarding and expanding the incompletely refreshed original data block areas, the adjusted local refresh area only includes the completely refreshed original data block areas A, B, C, D, 1, 2, E, 3, and 4, as shown in FIG. Figure 7 Or, a row of pixels that have not been refreshed on the upper side of the incompletely refreshed original data block areas B and C is refreshed, and at the same time, two columns of refreshed pixel data on the right side of the original data block areas A, D, E, and F are discarded, and a row of refreshed pixels on the upper side of the original data block areas F, G, and H are discarded. By discarding and expanding the incompletely refreshed original data block areas, the adjusted local refresh area only includes the completely refreshed original data block areas B, C, 1, 2, 3, and 4, as shown in FIG. Figure 8 shown.
[0063] Furthermore, when adjusting the range of the partial refresh area, the incompletely refreshed original data block area where the boundary of the partial refresh area is located can be directly set to be extended refresh processing, or the incompletely refreshed original data block area where the boundary of the partial refresh area is located can be directly set to be discarded processing, so that the boundary only includes the completely refreshed original data block area, such as Figure 5 As shown, taking the original data block areas A, B, and C as an example, no matter how many pixel rows are refreshed, such as 1, 2, and 3, the refreshed pixel rows in areas A, B, and C can be directly discarded, so that the adjusted local refresh area only includes the original data block areas 1 and 2 at the boundary.
[0064] Of course, dynamic adjustment can also be performed based on the proportion of refreshed pixel rows or pixel columns to the total pixel rows or pixel columns in the original data block area. If the proportion of refreshed pixel rows or pixel columns to the total pixel rows or pixel columns in the original data block area is less than or equal to a preset threshold, the refreshed pixel rows or pixel columns in the original data block area are discarded. If it is greater than the preset threshold, the pixel rows or pixel columns in the original data block area are extended and refreshed. The selection can be made based on actual needs. Figure 5As shown, the preset threshold is one-half. For the original data block areas F, G, and H, only one row of pixels on the lower side of each original data block area is refreshed, and the total number of pixel rows is 4, then the refreshed pixel rows account for one-quarter, and finally the discard processing is selected; for the original data block areas A, B, and C, a total of three rows of pixels in each original data block area are refreshed, and the total number of pixel rows is 4, then the refreshed pixel rows account for three-quarters, and finally the extended refresh processing is selected.
[0065] like Figure 7 As shown, during the process of adjusting the refresh area range, for the incompletely refreshed original data block area where the boundary intersection of the local refresh area is located, such as the original data block area A and F. If the incompletely refreshed original data block areas where the two boundaries are located are both selected for discarding, the refreshed pixel rows or pixel columns in the incompletely refreshed original data block area where the boundary intersection is located are discarded, such as the incompletely refreshed original data block areas A, B, and C where one boundary of the local refresh area is located are all selected to discard the refreshed pixel rows in the area, and the incompletely refreshed original data block areas A, D, E, and F where the other boundary is located are also selected to discard the refreshed pixel columns in the area, at this time, all refreshed pixels in the incompletely refreshed original data block area A are discarded. If the original data block areas of the incomplete refresh at the two boundaries are all selected for extended refresh processing, the pixel rows or pixel columns that are not refreshed in the original data block area of the incomplete refresh at the intersection of the boundaries are subjected to extended refresh processing, such as the original data block areas A, B, and C of the incomplete refresh at one boundary of the local refresh area are all selected for pixel rows that are not refreshed in the extended area, and the original data block areas A, D, E, and F of the incomplete refresh at the other boundary are also selected for pixel columns that are not refreshed in the extended area. At this time, the original data block area A of the incomplete refresh is subjected to extended refresh processing. If the original data block areas of the incomplete refresh at one boundary are all selected for discard processing, and the original data block areas of the incomplete refresh at the other boundary are all selected for extended refresh processing, the original data block area of the incomplete refresh at the intersection of the boundaries is finally selected for discard processing, and this original data block area is not refreshed to ensure that the final local refresh area is a rectangular area.
[0066] Step S400, reading compressed data of a display image stored in a frame buffer, and displaying the image on a display device after decompression.
[0067] Specifically, when displaying an image, the display driver chip reads the compressed data of the entire frame image in the frame buffer. The compressed data of the entire frame image is composed of the compressed data in the local refresh area and the compressed data of the last refreshed display image outside the local refresh area. The display driver chip further decompresses the compressed data of the entire frame display image and displays it on the display panel.
[0068] If the display bridge chip completes the above compression, storage, and decompression, after decompressing the compressed data of the display image, the decompressed display image will be sent to the subsequent image receiving device, such as the display bridge chip or the display driver chip of the display panel, through the corresponding interface, such as MIPI, DPI, LVDS, eDP, etc.
[0069] When performing local refresh of any area, the present invention adjusts the scope of the local refresh area so that the adjusted local refresh area does not contain the original data block area that is not completely refreshed, so that all data blocks in the local refresh area can be correctly compressed, stored and decompressed, so that the system that needs to compress, store, decompress and other processes on the displayed image can support local refresh of any display area, effectively avoiding abnormal effects such as garbled characters and screen distortion during the local refresh display of the image on the display device. At the same time, the data blocks in 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, so that the system's compression and decompression algorithm processing process is completely unified under different display modes, reducing system complexity, saving frame buffer storage space, and saving the area, cost and power consumption of display driver chips or display bridge chips.
[0070] 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: The method comprises the following steps: 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, and determining whether the local refresh area includes an incompletely refreshed original data block area. If so, receiving the image data of the local refresh area, and adjusting the local refresh area range so that the adjusted local refresh area only includes the completely refreshed original data block area, and further compressing and storing the data block corresponding to the adjusted local refresh area in the storage space corresponding to the original data block in the frame buffer; otherwise, directly receiving the image data block corresponding to the local refresh area, compressing and storing it in the storage space corresponding to the original data block in the frame buffer, and adjusting the local refresh area range includes For the incompletely refreshed original data block area where the boundary intersection of the local refresh area is located, if the incompletely refreshed original data block areas where the two boundaries are located are both selected to be discarded or extended refresh processing, then the refreshed pixel rows or pixel columns in the incompletely refreshed original data block area where the boundary intersection is located are discarded or extended refresh processing, For the incompletely refreshed original data block area where the boundary intersection of the local refresh area is located, if the incompletely refreshed original data block area where one boundary is located is all selected to be discarded, and the incompletely refreshed original data block area where the other boundary is located is all selected to be extended refreshed, then the incompletely refreshed original data block area where the boundary intersection is located is selected to be discarded and not refreshed; S300, reading compressed data of the display image stored in the frame buffer, decompressing the data and sending the data to the display system for display.
2. The method according to claim 1, characterized in that In step S200, adjusting the local refresh area range includes reducing the local refresh area range, wherein reducing the local refresh area range includes The pixel rows or pixel columns refreshed in the incompletely refreshed original data block area are discarded.
3. The method according to claim 2, characterized in that When the proportion of pixel rows or pixel columns refreshed in the incompletely refreshed original data block area to the total pixel rows or pixel columns in the original data block area is less than or equal to a preset threshold, the pixel rows or pixel columns refreshed in the original data block area are discarded.
4. The method according to claim 1, characterized in that: In step S200, adjusting the local refresh area range includes expanding the local refresh area range, and the expanded local refresh area range includes 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.
5. The method according to claim 4, 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 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; or 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.
6. The method according to claim 4, 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.
7. The method according to claim 4, 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.
8. The method according to claim 4, characterized in that When the proportion of refreshed pixel rows or pixel columns in the incompletely refreshed original data block area to the total pixel rows or pixel columns in the original data block area is greater than or equal to a preset threshold, extended refresh processing is performed on the unrefreshed pixel rows or pixel columns in the original data block area.
