CN113190311A - Image display method, image display device, storage medium and electronic equipment - Google Patents

Image display method, image display device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113190311A
CN113190311A CN202110466685.9A CN202110466685A CN113190311A CN 113190311 A CN113190311 A CN 113190311A CN 202110466685 A CN202110466685 A CN 202110466685A CN 113190311 A CN113190311 A CN 113190311A
Authority
CN
China
Prior art keywords
display
image
cache
image data
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110466685.9A
Other languages
Chinese (zh)
Inventor
刁德峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Moyoung Technology Co ltd
Original Assignee
Shenzhen Moyoung Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Moyoung Technology Co ltd filed Critical Shenzhen Moyoung Technology Co ltd
Priority to CN202110466685.9A priority Critical patent/CN113190311A/en
Publication of CN113190311A publication Critical patent/CN113190311A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an image display method, an image display device, a storage medium and an electronic device. The method comprises the following steps that a system divides a memory into a first display cache and a second display cache; when the first display cache reads the image data, the second display cache writes the image data into the display; when the image data of the first display cache is written into the display, the second display cache reads the image data; and repeating the reading and writing steps of the first display buffer and the second display buffer in the process until the image data are written into the display, and displaying the image. The system distributes the memory into two display caches, alternately reads and writes data through the double display caches, is simple and flexible to use, convenient to expand and high in adaptability, maximizes the utilization rate of hardware, and guarantees the system operation smoothness under the screen refreshing under the condition of small memory and low memory.

Description

Image display method, image display device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of embedded image processing, and in particular, to an image display method, an image display apparatus, a storage medium, and an electronic device.
Background
On various resource shortage type equipment with small memory, low interface speed and limited code space, a single-frame or double-frame complete screen is used for caching images, the memory consumption is huge, the requirement on hardware interface speed is high, modules are huge and complex, the usability is poor, and therefore the system operation smoothness is poor under the condition of screen refreshing, and the overall use experience of the equipment is poor.
Disclosure of Invention
The invention provides an image display method, an image display device, a storage medium and electronic equipment, which effectively solve the problem of poor system operation smoothness under the condition of refreshing small image cache in an equipment memory.
In order to achieve the above object, according to one aspect of the present application, there is provided an image display method including the steps of:
A. the system divides the memory into a first display cache and a second display cache;
B. when the first display cache reads the image data, the second display cache writes the image data into a display;
C. when the image data of the first display cache is written into the display, the second display cache reads the image data;
D. step B, C is repeated until image data is written to the display and an image is displayed.
Furthermore, the size of the first display buffer and the second display buffer is display line width and single maximum display line number and single pixel byte data.
Further, when the single maximum display line number cannot be divided by the screen line number of the display, the number of the read and write data lines is the remaining line number.
According to a second aspect, an embodiment of the present invention provides an image display apparatus including:
the processing module divides the memory into a first display cache and a second display cache by the system;
when the first display cache reads the image data, the second display cache writes the image data into a display;
when the image data of the first display cache is written into the display, the second display cache reads the image data;
and repeating the reading and writing steps of the first display buffer and the second display buffer in the above process until the image data is written into the display, and displaying the image.
Furthermore, the size of the first display buffer and the second display buffer is display line width and single maximum display line number and single pixel byte data.
Further, when the single maximum display line number cannot be divided by the screen line number of the display, the number of the read and write data lines is the remaining line number.
According to a third aspect, embodiments of the present invention provide a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the image display method according to any one of the first aspect above.
According to a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the image display method according to any one of the first aspect.
The invention has the beneficial effects that: according to the image display method, the image display device, the storage medium and the electronic equipment, the system distributes the memory into the two display caches, and the data are read and written alternately through the double display caches, so that the use is simple and flexible, the expansion is convenient, the adaptability is strong, the hardware utilization rate is maximized, and the system operation smoothness under the screen refreshing is ensured under the condition of small memory and low memory.
Drawings
FIG. 1 is a flow chart of an image display method provided by the present invention;
FIG. 2 is a schematic diagram of an image display device according to the present invention;
fig. 3 is a schematic structural diagram of an image display electronic device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, according to a first aspect of the present invention, an image displaying method includes the following steps:
s101: the system divides the memory into a first display cache and a second display cache;
s102: when the first display cache reads the image data, the second display cache writes the image data into the display;
s103: when the image data of the first display cache is written into the display, the second display cache reads the image data;
s104: and repeating the steps S102 and S103 until the image data is written into the display, and displaying the image.
The invention is further illustrated by the following specific examples; the system divides the size of the available memory into a first display cache and a second display cache, wherein the size of the first display cache and the second display cache is the display line width W x the single maximum display line number h x the single pixel byte data P;
when the first display cache reads image data, wherein the size of the read data is display line width W and single maximum display line number (reading is 1 to h lines) and single pixel byte data P, the second display cache writes the image data into a display, and the data written into the second display cache is display line width 0 and single maximum display line number 0 and single pixel byte data 0;
after the first display cache reads the image data and the second display cache writes the image data, the image data of the first display cache is written into the display, the second display cache reads the image data, and the second display cache reads the data with the size of display line width W x the maximum display line number (the reading is h +1 to h + h lines) per pixel byte data P;
the first display cache and the second display cache repeat the alternating reading and writing steps until the image data are written into the display, wherein when the maximum display line number H of a single time cannot completely divide the screen line number H of the display, the number of the reading and writing data lines is the number of the remaining lines, the image data are completely written into the display, and the first display cache and the second display cache alternately read and write the image data through the distribution of the system to the memory, so that the maximum hardware utilization rate is improved, the consumption of the system memory is reduced, the image display is completed under the condition of low memory, and the fluency of an operating system is ensured at the same time.
Referring to fig. 2, according to a second aspect of the present invention, an image display apparatus includes:
the processing module 21 divides the memory into a first display cache and a second display cache by the system;
the display module 22, when the first display buffer reads the image data, the second display buffer writes the image data into the display;
when the image data of the first display cache is written into the display, the second display cache reads the image data;
and repeating the reading and writing steps of the first display buffer and the second display buffer in the process until the image data are written into the display, and displaying the image.
The sizes of the first display buffer and the second display buffer are display line width and single maximum display line number and single pixel byte data.
When the maximum display line number of a single time cannot divide the screen line number of the display completely, the read and write data line number is the residual line number.
In a third aspect, the present invention provides a storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the image display method is implemented.
Referring to fig. 3, according to a fourth aspect, the embodiment of the present invention provides an electronic device, which includes a processor 31, a memory 32, a display device 33, and a computer program stored in the memory 32 and executable on the processor 31, wherein the processor 31 implements the image display method described above when executing the program, and writes a processed image in the display device 33.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (8)

1. An image display method, comprising the steps of:
A. the system divides the memory into a first display cache and a second display cache;
B. when the first display cache reads the image data, the second display cache writes the image data into a display;
C. when the image data of the first display cache is written into the display, the second display cache reads the image data;
D. step B, C is repeated until image data is written to the display and an image is displayed.
2. An image display method according to claim 1, wherein the first display buffer and the second display buffer are sized to display line width by maximum display line number at a time and single pixel byte data.
3. An image display method as claimed in claim 2, wherein when the single maximum number of display lines is not divisible by the number of screen lines of the display, the number of read and write data lines is the remaining number of lines.
4. An image display apparatus, comprising:
the processing module divides the memory into a first display cache and a second display cache by the system;
the display module is used for writing the image data into the display by the second display cache when the first display cache reads the image data;
when the image data of the first display cache is written into the display, the second display cache reads the image data;
and repeating the reading and writing steps of the first display buffer and the second display buffer in the above process until the image data is written into the display, and displaying the image.
5. An image display device according to claim 4, wherein the first display buffer and the second display buffer are sized to display line width per maximum number of display lines per single byte of pixel data.
6. The image display device according to claim 5, wherein when the single maximum number of display lines is not divisible by the number of screen lines of the display, the number of read and write data lines is the remaining number of lines.
7. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the image display method of any of claims 1 to 3.
8. An electronic device comprising a processor and a memory, wherein the processor is electrically connected to the memory, wherein the memory is used for storing instructions and data, and wherein the processor is used for executing the steps of the image display method according to any one of claims 1 to 3.
CN202110466685.9A 2021-04-28 2021-04-28 Image display method, image display device, storage medium and electronic equipment Pending CN113190311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110466685.9A CN113190311A (en) 2021-04-28 2021-04-28 Image display method, image display device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466685.9A CN113190311A (en) 2021-04-28 2021-04-28 Image display method, image display device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113190311A true CN113190311A (en) 2021-07-30

Family

ID=76979876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110466685.9A Pending CN113190311A (en) 2021-04-28 2021-04-28 Image display method, image display device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113190311A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10043459B1 (en) * 2016-06-01 2018-08-07 Amazon Technologies, Inc. Display timing controller with single-frame buffer memory
CN109685712A (en) * 2017-10-18 2019-04-26 阿里巴巴集团控股有限公司 Image buffer storage and application method and device, terminal
CN112486606A (en) * 2020-11-19 2021-03-12 湖南麒麟信安科技股份有限公司 Cloud desktop display optimization method and system based on Android system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10043459B1 (en) * 2016-06-01 2018-08-07 Amazon Technologies, Inc. Display timing controller with single-frame buffer memory
CN109685712A (en) * 2017-10-18 2019-04-26 阿里巴巴集团控股有限公司 Image buffer storage and application method and device, terminal
CN112486606A (en) * 2020-11-19 2021-03-12 湖南麒麟信安科技股份有限公司 Cloud desktop display optimization method and system based on Android system

Similar Documents

Publication Publication Date Title
US10013731B2 (en) Maximizing parallel processing in graphics processors
CN103034467B (en) Method for displaying image, device and mobile terminal
US4688190A (en) High speed frame buffer refresh apparatus and method
US10061537B2 (en) Data reordering using buffers and memory
CN102654827B (en) First-in first-out buffer and data caching method
US20060061581A1 (en) Sparse refresh of display
CN108492243B (en) Image rotation device, system and method based on block processing
CN107886466B (en) Image processing unit system of graphic processor
CN112804532A (en) Image data acquisition method, system and related device
US7831780B2 (en) Operating system supplemental disk caching system and method
CN100378793C (en) Liquid crystal display displaying method and system
US20090295811A1 (en) Rendering module for bidimensional graphics
CN113190311A (en) Image display method, image display device, storage medium and electronic equipment
CN109189505B (en) Method and system for reducing storage space occupied by object serialization
US9715715B2 (en) Efficient cache preloading
US20220188380A1 (en) Data processing method and apparatus applied to graphics processing unit, and electronic device
CN107169917B (en) Device for vector graphics processor to finish real-time drawing of graphics image without DDR
US11972504B2 (en) Method and system for overlapping sliding window segmentation of image based on FPGA
CN114359029B (en) Image processing method, image processing apparatus, image processing system, and storage medium
CN104102594A (en) System and method for controlling caching, reading and writing of image data
CN102682419B (en) Method and device for generating dynamic segment comparison table for vector graphics
US8780128B2 (en) Contiguously packed data
CN115809207B (en) Address marking method and device in Cache, graphic processing system and electronic equipment
US11755502B2 (en) Methods of controlling power consumption, boards, electronic devices and storage media
CN108399595A (en) A kind of realization device and method of image processing algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 518000 1st, 2nd, 4th, 5th and 6th floors of Qiufen (10A) Building, Taihua wutong Industrial Park, Sanwei Community, Hangcheng Street, Bao'an District, Shenzhen, Guangdong

Applicant after: Shenzhen Moyang Technology Co.,Ltd.

Address before: 518000 3 storey of 6B, Wutong Industrial Park, Guangdong, Baoan District, Shenzhen. In Hangcheng street, Hangkong Road, 3 / F, building B, Fengze building, Nanchang Huafeng Second Industrial Park, there is a business place engaged in production and business activities

Applicant before: SHENZHEN MOYOUNG TECHNOLOGY CO.,LTD.

Country or region before: China

CB02 Change of applicant information