CN-122027820-A - Image display method, device, computer equipment and storage medium
Abstract
The application relates to an image display method, an image display device, computer equipment and a storage medium. The method includes the steps of responding to the fact that no available space exists in different first storage areas, scanning image data of the different first storage areas in a line mode, displaying images based on each scanned line of image data, in the scanning process, responding to the fact that any first storage area meets corresponding migration conditions, migrating the image data which are not scanned in the first storage area to a target area, responding to the fact that data migration is completed and a new compressed data block is read, writing the image data corresponding to the new compressed data block into the first storage area, conducting line scanning on the image data of the target area, displaying images based on each scanned line of image data, and returning to execute operation of scanning the image data of the different first storage areas in a line mode in response to the fact that all image data of the target area are scanned and the different first storage areas have no available storage space. The method can reduce the requirement of image display on the storage space of the SRAM.
Inventors
- Quan Yixin
- LU YAO
- YUE YAOFEI
Assignees
- 西安紫光展锐科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260325
Claims (10)
- 1. An image display method, the method comprising: In the process of displaying a target image, in response to no available space in different first storage areas, scanning image data of the different first storage areas in a line mode, and displaying images based on each scanned line of image data, wherein the image data are obtained by decompressing a read compressed data block of the target image; In the scanning process, responding to the condition that any first storage area meets the corresponding migration condition, and migrating the image data which is not scanned in the first storage area to a target area, wherein the target area is a second storage area or a first storage area which is not subjected to data migration, and the second storage area is used for storing the image data which is not scanned in the last first storage area which is subjected to data migration; responsive to completion of data migration and reading of a new compressed data block, writing image data corresponding to the new compressed data block into the first storage area; performing line scanning on the image data of the target area, and performing image display based on each scanned line of image data; And returning to execute the operation of scanning the image data of the different first storage areas in a line mode in response to the completion of the scanning of all the image data of the target area and the fact that the different first storage areas have no available storage space.
- 2. The method of claim 1, wherein the migrating the image data not scanned within the first storage region to the target region in response to any of the first storage regions satisfying a corresponding migration condition comprises: For any first storage area, responding to the first storage area meeting a corresponding migration condition, wherein the first storage area is a non-last first storage area for data migration, and migrating the image data which is not scanned in the first storage area to the first storage area which is not subjected to data migration; for any first storage area, responding to the first storage area meeting a corresponding migration condition, wherein the first storage area is the last first storage area for data migration, and image data which is not scanned in the last first storage area for data migration is migrated to a second storage area; and the finishing moment of writing the image data corresponding to the new compressed data block in the last first storage area for data migration is not later than the scanning finishing moment of all the image data in the second storage area.
- 3. The method of claim 1, wherein the ordering of the different first storage areas is the same as the ordering of image data stored in the same locations in the different first storage areas in a formed row of images, wherein the image displaying based on each scanned row of image data comprises: splicing the image data corresponding to the different first storage areas in each line of scanned image data according to the data migration records and the ordering of the different first storage areas; And displaying the spliced image data.
- 4. The method of claim 3, wherein the migrating the unscanned image data within the first storage region to the target region in response to any of the first storage regions satisfying a corresponding migration condition comprises: For a first storage area, responding to the first storage area meeting corresponding migration conditions, and migrating the image data which are not scanned in the first storage area to a first storage area which is not subjected to data migration; And for each non-first storage area, in response to the first storage area meeting a corresponding migration condition and the data migration of the previous storage area of the first storage area being completed, migrating the image data which is not scanned in the first storage area to the first storage area which is not subjected to data migration until the last first storage area is not subjected to data migration.
- 5. The method of claim 4, wherein the returning the execution of the line scan of the image data of the different first storage area in response to the complete scan of the image data of the target area with no available storage space in the different first storage area comprises: reading a new compressed data block in response to completion of the scanning of all image data of the last first storage area; And writing the image data corresponding to the new compressed data block into the tail first storage area, and returning to execute the operation of scanning the image data of the different first storage areas in a line mode in response to the completion of data writing.
- 6. The method of any of claims 1-5, wherein the line scanning the image data of the target area comprises: Determining the migration result of the image data of the scanning position required by each first storage area according to the data migration record; determining a storage address of the image data of the required scanning position in the target area according to the migration result; and reading image data corresponding to the required scanning position from the target area according to the storage address.
- 7. An image display device, the device comprising: The scanning module is used for responding to the fact that no available space exists in different first storage areas in the process of displaying the target image, scanning the image data of the different first storage areas in a line mode, and displaying the image based on each line of scanned image data, wherein the image data are obtained by decompressing a read compressed data block of the target image; The migration module is used for responding to the condition that any first storage area meets the corresponding migration condition in the scanning process, and migrating the image data which is not scanned in the first storage area to a target area, wherein the target area is a second storage area or a first storage area which is not subjected to data migration, and the second storage area is used for storing the image data which is not scanned in the last first storage area which is subjected to data migration; The writing module is used for responding to the completion of data migration and reading a new compressed data block, and writing the image data corresponding to the new compressed data block into the first storage area; and the display module is used for carrying out line scanning on the image data of the target area, carrying out image display based on each scanned line of image data and triggering the scanning module.
- 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
- 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
- 10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Description
Image display method, device, computer equipment and storage medium Technical Field The present application relates to the field of image display technologies, and in particular, to an image display method, an image display device, a computer device, and a storage medium. Background With the increasing demand for image display, in order to reduce the bandwidth of SoC (System on Chip) of multimedia devices (such as smartphones, tv set top boxes, and intelligent cabins), data sources are generally compressed into compressed data blocks and then stored, so that the compressed data blocks need to be taken out from the memory, scanned line by line, and output, so as to realize real-time image display. In the conventional technology, in order to ensure continuous output of a scanning result, ping-pong control is performed on 2 SRAMs (Static Random-Access memories) supporting storage of compressed data blocks, that is, image data obtained by decompressing a compressed data block stored in one of the SRAMs is scanned and output until all the stored images obtained by decompressing are scanned, a new compressed data block is read again, the image data obtained by decompressing the new compressed data block is written into the SRAM, and image data obtained by decompressing the compressed data block stored in the other SRAM is scanned and output, so that the cycle is performed until image display is completed. However, in the above conventional techniques, the required storage space of the SRAM is larger, and as the horizontal resolution of the displayed image is continuously increased, the demand for the storage space of the SRAM is also increased, which results in a larger occupied area of the SRAM for the display controller and affects the performance of the display controller. Disclosure of Invention Based on the above, it is necessary to provide an image display method, an image display device, a computer device and a storage medium, which can reduce the requirement of image display on the storage space of the SRAM, avoid the overlarge occupied area of the SRAM on the display controller, and reduce the influence of the SRAM on the performance of the display controller. In a first aspect, the present application provides an image display method, including: In the process of displaying the target image, in response to no available space in different first storage areas, scanning image data in different first storage areas in a line mode, and displaying the image based on each scanned line of image data, wherein the image data is obtained by decompressing a compressed data block of the read target image; In the scanning process, responding to the condition that any first storage area meets the corresponding migration condition, and migrating the image data which is not scanned in the first storage area to a target area, wherein the target area is a second storage area or a first storage area which is not subjected to data migration, and the second storage area is used for storing the image data which is not scanned in the last first storage area which is subjected to data migration; In response to the completion of the data migration and the reading of the new compressed data block, writing image data corresponding to the new compressed data block into the first storage area, and Scanning the image data of the target area in a line mode, and displaying the image based on each line of scanned image data; And returning to execute the operation of scanning the image data of the different first storage areas in a line mode in response to the completion of scanning all the image data of the target area and the fact that the different first storage areas have no available storage space. In one embodiment, the method for transferring the image data which is not scanned in the first storage area to the target area in response to any one of the first storage areas meeting the corresponding transfer condition comprises the steps of transferring the image data which is not scanned in the first storage area to the first storage area which is not subjected to data transfer in response to any one of the first storage areas meeting the corresponding transfer condition, transferring the image data which is not scanned in the last first storage area subjected to data transfer to the second storage area in response to any one of the first storage areas being the last first storage area subjected to data transfer, wherein the completion time of writing the image data corresponding to the new compressed data block in the last first storage area subjected to data transfer is no later than the scanning completion time of all the image data in the second storage area. In one embodiment, the ordering of the different first storage areas is the same as the ordering of the image data stored in the same positions in the different first storage areas in a row of the formed image, and the image display is performed based on each scanned row of