CN111240613A - Screen display method and device, storage medium, processor and computer equipment - Google Patents

Screen display method and device, storage medium, processor and computer equipment Download PDF

Info

Publication number
CN111240613A
CN111240613A CN201811433878.9A CN201811433878A CN111240613A CN 111240613 A CN111240613 A CN 111240613A CN 201811433878 A CN201811433878 A CN 201811433878A CN 111240613 A CN111240613 A CN 111240613A
Authority
CN
China
Prior art keywords
data
displayed
blocks
screen
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
CN201811433878.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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811433878.9A priority Critical patent/CN111240613A/en
Publication of CN111240613A publication Critical patent/CN111240613A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • 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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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

Abstract

The invention discloses a screen display method, a screen display device, a storage medium, a processor and computer equipment. Wherein, the method comprises the following steps: dividing data to be displayed on a screen into a plurality of blocks; and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, and respectively sending the data to the frame buffer area of the screen of the display equipment for the display equipment to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen. The invention solves the technical problem that the data to be displayed cannot be displayed due to the fact that the memory is too small and the data to be displayed is too large in the related technology.

Description

Screen display method and device, storage medium, processor and computer equipment
Technical Field
The invention relates to the field of screen display, in particular to a screen display method, a screen display device, a storage medium, a processor and computer equipment.
Background
In the related art, under some working conditions, a controller with low Memory is used to drive a screen with a larger size, and a larger Random-Access Memory (RAM) is required at this time. However, the image displayed by the display with a larger screen is usually a data block with a larger data volume due to higher resolution requirement and pixel requirement, and the RAM is difficult to have a larger storage capacity due to its own characteristics, so that the content to be displayed by the display cannot be written into the display device, and thus cannot be displayed.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a screen display method, a screen display device, a storage medium, a processor and computer equipment, which are used for at least solving the technical problem that data to be displayed cannot be displayed due to undersize memory and overlarge data to be displayed in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a screen display method including: dividing data to be displayed on a screen into a plurality of blocks; and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment for the display equipment to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
According to another aspect of the embodiments of the present invention, there is also provided another screen display method, including: respectively acquiring data to be displayed on a preset number of blocks in a plurality of blocks of data to be displayed on a screen from a memory, wherein the plurality of blocks are obtained by dividing the screen, and the size of the memory is smaller than that of a frame buffer area of the screen; and controlling screen display according to the received data to be displayed.
According to another aspect of the embodiments of the present invention, there is also provided a screen display device including: the dividing module is used for dividing the data to be displayed on the screen into a plurality of blocks; and the processing module is used for respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through a memory, respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment, and controlling screen display by the display equipment, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
According to another aspect of the embodiments of the present invention, there is also provided another screen display device including: the display device comprises a receiving module, a display module and a display module, wherein the receiving module is used for respectively obtaining data to be displayed on a preset number of blocks in a plurality of data to be displayed block blocks on a screen from a memory, the plurality of blocks are obtained after the screen is divided, and the size of the memory is smaller than that of a frame buffer area of the screen; and the display module is used for controlling the screen to display according to the received data to be displayed.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus where the storage medium is located is controlled to execute any one of the screen display methods described above.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to run a program, where the program executes the screen display method described in any one of the above when running.
According to another aspect of the embodiments of the present invention, there is also provided a computer device, including: a memory and a processor, the memory storing a computer program; the processor is configured to execute the computer program stored in the memory, and the computer program executes the screen display method according to any one of the above descriptions when running.
In the embodiment of the invention, the data to be displayed on the screen is divided into a plurality of blocks; the data to be displayed on the preset number of the blocks in the plurality of blocks are respectively read through the memory and are respectively sent to the frame cache region of the screen of the display device for the display of the screen controlled by the display device, wherein the size of the memory is smaller than that of the frame cache region of the screen, and the purpose of displaying larger data to be displayed by using a smaller memory is achieved by writing the blocks with the display data into the display device, so that the technical effect of effectively displaying the data to be displayed with larger data volume by using the smaller memory is achieved, and the technical problem that the data to be displayed cannot be displayed due to the fact that the memory is too small and the data to be displayed is too large in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 illustrates a hardware configuration block diagram of a computer terminal (or mobile device) for implementing a screen display method;
fig. 2 is a flowchart of a screen display method according to embodiment 1 of the present invention;
fig. 3 is a flowchart of another screen display method according to embodiment 1 of the present invention;
fig. 4 is a flowchart of another screen display method according to embodiment 1 of the present invention;
fig. 5 is a schematic diagram of a method for driving a larger screen by using a low-memory embedded platform according to an embodiment 1 of the present invention;
FIG. 6 is a flowchart of another screen display method according to embodiment 2 of the present invention;
fig. 7 is a schematic diagram of contents to be displayed on a screen according to an embodiment 2 of the present invention;
FIG. 8 is a schematic illustration of a first block of points to be rendered in accordance with an embodiment 2 of the present invention;
FIG. 9 is a schematic diagram of a second block of points to be rendered in accordance with an embodiment of the present invention as described in example 2;
FIG. 10 is a schematic diagram of a third block of points to be plotted according to an embodiment 2 of the present invention;
FIG. 11 is a schematic diagram of a fourth block of points to be rendered in accordance with an embodiment of the present invention as described in example 2;
fig. 12 is a schematic view of a screen display apparatus according to embodiment 3 of the present invention;
fig. 13 is a schematic view of another screen display apparatus according to embodiment 4 of the present invention;
fig. 14 is a block diagram of a computer terminal according to embodiment 5 of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
MCU: a microcontrol Unit (Microcontroller Unit), also called a single chip Microcomputer (single chip Microcomputer) or a single chip Microcomputer, is a chip-level computer formed by appropriately reducing the frequency and specification of a Central Processing Unit (CPU), and integrating one or more peripheral interfaces such as a memory, a counter (Timer), a USB, an a/D converter, a UART, a PLC, a DMA, and the like, or LCD driving circuits on a single chip.
RAM: the RAM of a desktop computer and a notebook computer is generally 2G to 4G, and the RAM of a tablet computer and a smart phone is generally 2G to 8G.
Flash: the Flash Memory is a Flash Memory, which is abbreviated as Flash, belongs to one of Memory devices, and is a Non-Volatile (Non-Volatile) Memory.
Framebuffer: and the frame buffer area is used for buffering the data to be displayed into the Framebuffer, and when the display equipment needs to display, the data in the Framebuffer is written into the display equipment through the Framebuffer for the display equipment to display.
Example 1
There is also provided, in accordance with an embodiment of the present invention, a method embodiment of a screen display method, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be carried out in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be carried out in an order different than that presented herein.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or mobile device) for implementing a screen display method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and memory 104 for storing data. Besides, the method can also comprise the following steps: a transmission module, a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the screen display method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the screen display method of the application program. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module is used for receiving or sending data through a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission module may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
It should be noted here that in some alternative embodiments, the computer device (or mobile device) shown in fig. 1 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or mobile device) described above.
In some applications, a controller with low memory may be used to drive a larger screen. For example, in an electronic price tag project, in order to use a low-memory MCU to drive a 7.5-inch or even higher screen, a relatively large RAM space is required for the frame buffer. For example, a 7.5 inch panel is 640 pixels wide and 384 pixels tall. The size of Framebuffer for a black and white screen is 640 x 384/8-30720 (30K) bytes. The memory required is doubled if picture rotation or line-column conversion is required, so that even if the MCU of an STM32L433CC is configured as 256K Flash and 64K RAM, it cannot drive this size screen.
In the related art, the data to be displayed may be directly transmitted to the display device serially byte by byte without using Framebuffer. The disadvantage of this approach is that there is no way to use graphical functions, e.g., display rotation, graphical overlays, etc.
Under the above operating environment, the present application provides a screen display method as shown in fig. 2. Fig. 2 is a flowchart of a screen display method according to embodiment 1 of the present invention. As shown in fig. 2, the method comprises the steps of:
step S202, dividing the data to be displayed on the screen into a plurality of blocks.
As an alternative embodiment, the execution subject of the above steps may be the above-mentioned micro control unit MCU.
As an alternative embodiment, the screen may be a screen for displaying on a display device, which may be displayed by other displays.
As an optional embodiment, since the data amount of the screen is too large, and the memory required by the display device is too small to display, the data to be displayed on the screen is divided into a plurality of blocks, and each block can be separately accommodated in the memory, so that the memory can at least store and transmit a single block at a time. The screen can be sent to the display device for multiple times without data loss.
Step S204, respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, and respectively sending the data to the frame buffer area of the screen of the display device for the display device to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
As an alternative embodiment, the execution subject of the above steps may be an MCU. Dividing the data to be displayed on the screen into a plurality of blocks, writing the data to be displayed on the plurality of blocks into the memory for a plurality of times by combining with a plurality of times of writing and erasing of the memory, and respectively sending the data to be displayed on the plurality of blocks into the display equipment by the memory so as to be displayed by the display equipment.
As an optional embodiment, the reading of the data to be displayed on the predetermined number of blocks in the plurality of blocks through the memory may be performed by reading the data to be displayed on each block one by one according to the order of the blocks. It should be noted that the predetermined number of blocks may also be the above-mentioned plurality of blocks, that is, all blocks in the plurality of blocks, that is, the predetermined number of screen blocks are the above-mentioned plurality of blocks, and according to the sequence, the plurality of blocks may constitute the screen on the display device.
As an optional embodiment, the data to be displayed on a predetermined number of blocks in the plurality of blocks may be read through the memory, or the data to be displayed on the plurality of blocks may be read according to a random sequence and sent to the display device through the memory. Similarly, the predetermined number of screen number blocks may be the plurality of blocks, and the predetermined number of screen number blocks may be received by the display device, sorted and combined, restored, and displayed.
As an optional embodiment, the data to be displayed on the predetermined number of the multiple blocks in the multiple blocks are respectively read through the memory, and the blocks may be selected from the multiple blocks according to the display requirement to read and transmit the data to be displayed, that is, the predetermined number of the blocks may be one or more blocks in the multiple blocks, so that the flexibility of use is high, and the method is suitable for more display occasions.
As an optional embodiment, when the data to be displayed on the multiple blocks are sent one by one according to the order of the blocks, the data to be displayed on the multiple blocks are sent to the display device one by one according to the order, and the display device may sort the data to be displayed according to the receiving order of the multiple blocks and then display the data on the screen.
As an optional embodiment, the data to be displayed on the multiple blocks is sent to the display device according to a random order, and after the screen device receives the data to be displayed on the multiple blocks, the order of the received data to be displayed on the multiple blocks may be adjusted, and the data to be displayed is displayed on the screen according to the adjusted order.
As an alternative embodiment, the size of the memory is smaller than the size of the frame buffer of the screen. It should be noted that the "size of the frame buffer of the screen" described herein refers to the size of the frame buffer being a memory area capable of displaying the whole screen, and this memory area is not necessarily required, and may be understood as a virtual memory area, which is not required in the embodiment of the present invention. And the problem that a large memory is needed for displaying a large screen is solved by adopting a smaller memory. Because the memory used in the embodiment of the invention is smaller than the large memory required by the large screen display, and the small memory can also display the large screen, the problem of insufficient memory in the related technology is effectively solved.
In the related art, when the size of the memory is smaller than the frame buffer, the size of the memory is smaller than the data size of the entire screen, and the entire screen data cannot be buffered in the frame buffer at one time.
In the embodiment, through the above steps, the data to be displayed on the screen is divided into a plurality of blocks; the data to be displayed on the preset number of the blocks in the plurality of blocks are respectively read through the memory and are respectively sent to the frame cache region of the screen of the display device for the display device to control the screen to display, wherein the size of the memory is smaller than that of the frame cache region of the screen, and the purpose of displaying larger data to be displayed by using a smaller memory is achieved by writing the blocks with the display data into the display device, so that the technical effect of effectively displaying the data to be displayed with larger data volume by using the display device with the smaller memory is achieved, and the technical problem that the data to be displayed cannot be displayed due to the fact that the data to be displayed is too large due to too small memory in the related technology is solved.
As an alternative embodiment, dividing the data to be displayed on the screen into a plurality of blocks includes: dividing data to be displayed on a screen into a plurality of blocks by taking the size of a memory as a unit.
As an optional embodiment, the size of the plurality of blocks is smaller than or equal to the size of the memory, so that the available memory resources can be used more fully, and the use efficiency of the memory is improved. Compared with the method for dividing the data to be displayed on the screen by using the size smaller than the memory, when the data to be displayed on the screen is divided by using the size smaller than the memory, the smaller the data amount of the blocks is, the more the number of the blocks of the data to be displayed on the screen is, the more the memory writes and erases, and the lower the data writing speed is.
As an optional embodiment, for the reason described above, the data amount of the partition should be as large as possible when allowed, and therefore, in this embodiment, the data to be displayed on the screen partition is divided into a plurality of partitions by taking the size of the memory as a unit, so as to ensure that the size of the divided partitions is equal to the size of the memory, except for the last partition left by the division, and the size of the last partition left by the division depends on whether the size of the data amount of the screen is evenly divided by the size of the memory.
As an alternative embodiment, when the size of the data amount of the screen is divisible by the size of the memory, the size of the last block of the partition is the same as the size of the memory, and the sizes of other blocks. If the size of the data size on the screen is not evenly divisible by the size of the memory, the size of the last divided block is smaller than the size of the memory and the sizes of other divided blocks. But also not in the way, the memory can perform read operation and write operation once.
Fig. 3 is a flowchart of another screen display method according to embodiment 1 of the present invention, and as an alternative embodiment, as shown in fig. 3, the reading, by a memory, data to be displayed on a predetermined number of blocks of a plurality of blocks respectively, and sending the data to be displayed to a frame buffer of a screen of a display device respectively, where the displaying for a display device to control screen display includes:
step S302, respectively reading data to be displayed on a preset number of blocks in a plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks;
step S304, respectively reading data to be displayed from a predetermined number of storage blocks corresponding to the predetermined number of blocks through the memory, and sending the data to a frame buffer area of a screen of the display device for the display device to control screen display.
As an alternative embodiment, the plurality of blocks may be divided in a controller for controlling a display screen of the display device. The memory reads data to be displayed on the plurality of blocks in a partitioning manner from the controller for partitioning the screen, and respectively sends the data to be displayed to the frame buffer area of the screen of the display device for the display device to control the screen to display.
As an optional embodiment, when the partitions are divided in a controller for controlling a display screen of a display device, and when the to-be-displayed data in the partitions are sent to the display device by using a memory, the to-be-displayed data in the partitions may be first written into a plurality of storage blocks of a cache by using the memory, and then the to-be-displayed data in the partitions in the cache are sent to frame buffer areas of the display screen by using the memory, so as to be received and displayed by the display device.
As an optional embodiment, the data to be displayed on a predetermined number of blocks in the plurality of blocks may be read through the memory, and the data to be displayed is correspondingly written into the storage blocks corresponding to the blocks; and respectively reading data to be displayed from the storage blocks with the preset number corresponding to the partitioned blocks with the preset number through the memory, and sending the data to a frame buffer area of a screen of the display equipment for the display equipment to control the screen to display.
As an alternative embodiment, when the to-be-displayed data on the plurality of blocks is written in by using the memory, the to-be-displayed data on the blocks is read in the memory each time, stored in the memory, and then written in the target position through the memory.
Fig. 4 is a flowchart of another screen display method according to embodiment 1 of the present invention, and as an alternative embodiment, as shown in fig. 4, the reading, by a memory, data to be displayed on a predetermined number of blocks of a plurality of blocks respectively, and writing the data to be displayed into a storage block corresponding to the block correspondingly includes:
step S402, sorting the blocks with the preset number according to a preset sequence;
step S404, reading the first to-be-displayed data on the sorted first block into a memory, and writing the first to-be-displayed data in the memory into a storage block corresponding to the first block;
step S406, deleting the first data to be displayed from the memory, reading the second data to be displayed on the sorted second block into the memory, writing the second data to be displayed in the memory into the storage block corresponding to the second block, and sequentially processing the data to be displayed on the blocks after the second block by using the above processing method until the data to be displayed on the blocks with the predetermined number are completely written into the corresponding storage blocks.
As an optional embodiment, before the memory is read, the plurality of blocks are sorted, and the display device may directly display the screen to be displayed according to the receiving order, which is beneficial for the display device to read and display.
As an alternative embodiment, the way of writing a plurality of blocks in the memory is the same as the above embodiment.
As an alternative embodiment, for each block, in case of involving multiple data read, write operations, the method further comprises: reading the data to be displayed before the current read-write operation into the memory from the storage blocks corresponding to the blocks; reading the data to be displayed updated at this time on the blocks; and after integrating the updated data to be displayed at this time and the data to be displayed before the reading and writing operation at this time, writing the data to be displayed into the storage blocks corresponding to the blocks.
As an alternative embodiment, when the block is two upper and lower blocks, two vertical lines "11" need to be displayed on the screen, and the vertical line on the left side respectively spans the two upper and lower blocks; that is, the left "1" is displayed first, and the right "1" is displayed on the basis of the vertical display, it should be noted that the two "1" s both span the two blocks. In the display process, for the upper and lower blocks, two data reading processes and two data writing processes are involved.
As an alternative embodiment, in the above display process, the left "1" may be displayed first, and the left "1" portion of the upper partition is read first and written into the corresponding storage block; then reading the left 1 of the lower block and writing the part into the corresponding storage block, and if the left vertical line is to be displayed, reading the data corresponding to the upper block and the lower block from the corresponding storage block through the memory and sending the data to the display device, and displaying the upper block and the lower block at the same time under the control of the display device, then successfully displaying the left 1. When "1" on the right is displayed, it is necessary to display on the basis of "1" on the left.
As an optional embodiment, when the right "1" is displayed, the data to be displayed before the current read-write operation may be read into the memory from the storage block corresponding to the block, that is, the data to be displayed on the upper and lower blocks of the left "1" that have been written into the storage block are read into the memory; reading the data to be displayed updated at this time on the blocks (namely the corresponding right side corresponds to the data to be displayed on the upper and lower blocks); after the updated data to be displayed at this time and the data to be displayed before the read-write operation at this time are integrated, the updated data to be displayed at this time are written into the storage blocks corresponding to the blocks, that is, the upper part of the left vertical line 1 and the upper part of the right vertical line 1 are stored in the storage block corresponding to the upper block, and the lower part of the left vertical line 1 and the lower part of the right vertical line 1 are stored in the storage block corresponding to the lower block, and then the corresponding data to be displayed are read from the corresponding storage blocks through the memory, and the read data to be displayed are respectively sent to the display device, and the display device controls the display, so that the right '1' is displayed on the left '1' of the display, and the right '11' is effectively displayed.
As an optional embodiment, according to the display sequence of the screen, the data to be displayed is read from the predetermined number of storage blocks corresponding to the predetermined number of blocks through the memory, and is sent to the display device.
As an optional embodiment, in the process of reading the screen data from the storage blocks to display by the display device, the data to be displayed may be read from the storage blocks of the predetermined number corresponding to the blocks of the predetermined number respectively through the memory according to the display order of the screen, and sent to the display device, and displayed by the display device, and sent according to the display order of the screen, and the display device may directly display according to the receiving order, which may be beneficial for the display device to display.
As an alternative embodiment, the memory block comprises: and (4) a flash memory storage space.
It should be noted that, in the various embodiments and the preferred embodiments, after the block corresponding to the data to be displayed is read by the memory, the read data to be displayed is stored in the storage block, and then the data to be displayed is read again by the memory from the storage block and sent to the frame buffer area of the screen of the display device. In a preferred embodiment of the present invention, another way of performing memory reading for display in blocks is further provided, for example, if the frame buffer area of the screen has a memory function, the above-mentioned storage block (e.g., flash) may not be needed, each block is directly written into the frame buffer area through the memory, and the display is performed directly after a frame is completely written.
As an optional embodiment, the reading, by the memory, data to be displayed on a predetermined number of blocks of the plurality of blocks respectively, and sending the data to the frame buffer area of the display device screen respectively, where the controlling, by the display device, the screen display may include: and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment, and if the data to be displayed received by the display equipment meets the requirement of display content, informing the display equipment to control the screen to display. The data to be displayed on the blocks are directly sent to the frame buffer area of the screen of the display device without passing through the intermediate storage device, and the display device is informed to control the screen to display under the condition that the data to be displayed received by the display device meets the requirement of the display content.
The data to be displayed on the blocks with the preset number in the blocks after being read by the memory are directly sent to the frame buffer area of the screen of the display device, so that the display function of driving a large screen by a small memory in the related technology can be solved, the use of the storage device can be reduced more economically and effectively, and the display efficiency is improved.
Fig. 5 is a schematic diagram of a method for driving a large screen by a low-memory embedded platform according to an embodiment 1 of the present invention, and as shown in fig. 5, this embodiment further provides a method for driving a large screen by a low-memory embedded platform as an optional embodiment, where the method includes the following steps:
as shown in fig. 5, the frame buffer area Framebuffer is divided into four blocks, each block is 3 × 5 — 15 bytes, the total size of the Framebuffer is 60 bytes, and the following steps are performed when the content of the 30 th byte is read:
the first step is as follows: since 30/15 is 2, the required data is located in the second block of data, but the actual RAM corresponds to the data of the first block, so the data of the RAM needs to be written into the first block space of Flash first.
The second step is that: and reading the Flash data of the second block into the RAM.
The third step: the 30 th byte of the virtual Framebuffer is the 15 th byte of RAM.
In the embodiment, Flash is used for simulating a Framebuffer function by adopting a blocking idea; and the erasing and writing times can be recorded, and a new Flash block is used for playing a protection role.
Example 2
According to an embodiment of the present invention, there is provided another method embodiment of a screen display method, and fig. 6 is a flowchart of another screen display method according to embodiment 2 of the present invention, and as shown in fig. 6, the benefit information obtaining method performs the following steps:
step S602, respectively obtaining data to be displayed on a predetermined number of blocks in a plurality of blocks of data to be displayed on a screen from a memory, where the plurality of blocks are obtained by dividing the screen, and the size of the memory is smaller than the size of a frame buffer area of the screen.
As an alternative embodiment, the main body for executing the above steps may be a display device, and the display device receives and displays the data transmitted by the frame buffer.
As an alternative embodiment, the plurality of blocks may be divided in a controller for controlling a display screen of the display device. The memory reads data to be displayed on the plurality of blocks in a partitioning manner from the controller for partitioning the screen, and sends the data to be displayed to the display device for displaying.
As an optional embodiment, the plurality of blocks divide the data to be displayed on the screen into a plurality of blocks, and may be a unit of the size of the memory, and divide the data to be displayed on the screen into a plurality of blocks. The memory can be used to the maximum extent, and the utilization rate of the memory is improved. However, if the data to be displayed on the screen is partitioned into blocks with a size smaller than the size of the memory, the smaller the data amount of the above-mentioned partitions, the larger the number of partitions of the data to be displayed on the screen, the larger the number of times the memory is written and erased, and the lower the writing speed of the screen.
As an optional embodiment, the data size of the partition should be as large as possible within an allowable range, and therefore, in this embodiment, the data to be displayed on the screen is divided into a plurality of partitions by using the size of the memory as a unit, so as to ensure that the size of the divided partitions is equal to the size of the memory, except for the last partition, the size of which depends on whether the size of the data size of the screen is evenly divided by the size of the memory.
In the related art, the size of the memory is smaller than the size of the data to be displayed on the whole screen, that is, the whole screen cannot be cached at one time, and when the memory receives a data block with a size larger than the memory of the memory, the data portion exceeding the memory is lost, which causes the loss of the screen. However, in the embodiment of the present invention, the size of the memory is smaller than the size of the frame buffer area of the screen, and the display of the large screen is driven by the small memory.
It should be noted that the "size of the frame buffer of the screen" described herein refers to the size of the frame buffer being a memory area capable of displaying the whole screen, and this memory area is not necessarily required, and may be understood as a virtual memory area, which is not required in the embodiment of the present invention. And the problem that a large memory is needed for displaying a large screen is solved by adopting a smaller memory. Because the memory used in the embodiment of the invention is smaller than the large memory required by the large screen display, and the small memory can also display the large screen, the problem of insufficient memory in the related technology is effectively solved.
And step S604, controlling screen display according to the received data to be displayed.
As an optional embodiment, when controlling the screen display according to the received tape display data, the display device may sequentially adjust the received multiple blocks according to a requirement. To meet more use requirements.
As an optional embodiment, the obtaining the data to be displayed on the predetermined number of blocks in the multiple blocks of the data to be displayed on the screen from the memory respectively may include: and receiving data to be displayed, which is read and sent by the memory from a preset number of storage blocks corresponding to the preset number of blocks respectively, wherein the data to be displayed in the preset number of storage blocks are read and written from the preset number of blocks by the memory respectively.
As an optional embodiment, when the partitions are divided in a controller for controlling a display screen of a display device, and when the to-be-displayed data in the partitions are sent to the display device by using a memory, the to-be-displayed data in the partitions may be first written into a plurality of corresponding storage blocks by using the memory, and then the to-be-displayed data in the storage blocks are sent to the display device by using the memory, so as to be received and displayed by the display device.
As an optional embodiment, the reading, by the memory, the data to be displayed on the predetermined number of blocks in the plurality of blocks may be to send the data to be displayed on the plurality of blocks one by one according to a block sequence, and it should be noted that the predetermined number of blocks may also be the indicated plurality of blocks, that is, all the blocks in the plurality of blocks, that is, the predetermined number of screen blocks are the plurality of blocks, and according to the sequence, the plurality of blocks may form the screen on the display device.
As an optional embodiment, the reading, by the memory, the data to be displayed on the predetermined number of blocks of the plurality of blocks, may also be sending the plurality of blocks to the display device in a random order, and similarly, the predetermined number of blocks may also be the plurality of blocks referred to above, that is, all the blocks of the plurality of blocks, that is, the predetermined number of screen blocks are the plurality of blocks, and after receiving the corresponding data to be displayed by the display device, the display device performs sorting and combining, restores the screen, and displays the screen.
As an optional embodiment, the data to be displayed on the predetermined number of the multiple blocks in the multiple blocks is read by the memory, and the blocks may be selected from the multiple blocks to be transmitted according to the display requirement, that is, the predetermined number of blocks is one or more of the multiple blocks, so that the flexibility of use is high, and the method is suitable for more display occasions.
As an alternative embodiment, controlling the screen display according to the received data to be displayed includes: and under the condition that the data to be displayed corresponding to the screen are all received, controlling the screen to display according to the unified display control instruction.
As an optional embodiment, after the display device receives the data to be displayed corresponding to the screen, the display speed can be effectively increased by controlling the screen display according to the unified display control instruction, and processing and sequencing on the data to be displayed are avoided.
As an alternative embodiment, the memory block comprises: and (4) a flash memory storage space.
As an alternative embodiment, controlling the screen display according to the received data to be displayed includes: under the condition that the data to be displayed on the blocks with the preset number in the plurality of data blocks to be displayed are respectively and directly sent by the memory, the display order of the data to be displayed is controlled, and the screen display is controlled.
In other words, the driving display of the small memory to the large screen is realized by correspondingly controlling the display order, and thus, an implementation manner is provided in the embodiment of the present invention.
Assuming that the total space of the Framebuffer is M, considering that the Framebuffer is divided into N blocks on average, the space of each block is M/N, only M/N RAM space is actually opened up, when full-screen data is refreshed, data of a first block is filled and sent to a screen, data of a second block is filled and sent to the screen in sequence, … …, data of a last block is filled and sent to the screen, and a screen display program is executed. This is explained below with reference to a specific example.
Fig. 7 is a diagram of contents to be displayed on a screen according to an embodiment 2 of the present invention, and as shown in fig. 7, it is assumed that Framebuffer is divided into four blocks in average, and the following contents to be displayed are as shown in fig. 7.
Fig. 8 is a schematic diagram of a first block of points to be drawn according to an embodiment 2 of the present invention, and as shown in fig. 8, it is determined whether the points are within the range of the first block according to coordinates of the drawn points, and if so, frame buffer is written, and then data of the frame buffer is sent to a screen.
Fig. 9 is a schematic diagram of a point to be drawn by the second block according to the embodiment of example 2 of the present invention, and as shown in fig. 9, it is determined whether the point is within the range of the second block according to the coordinates of the drawn point, and if so, frame buffer is written, and then the data of frame buffer is sent to the screen.
Fig. 10 is a schematic diagram of a point to be drawn by the third block according to the embodiment of example 2 of the present invention, and as shown in fig. 10, it is determined whether the point is within the range of the third block according to the coordinates of the drawn point, and if so, frame buffer is written, and then the data of frame buffer is sent to the screen.
Fig. 11 is a schematic diagram of a fourth block of points to be drawn according to an embodiment of example 2 of the present invention, and as shown in fig. 11, it is determined whether the points are within the range of the fourth block according to coordinates of the drawn points, and if so, frame buffer is written, and then data of the frame buffer is sent to a screen.
It should be noted that, the Framebuffer is divided into memory spaces of equal size by using a blocking scheme, and theoretically, any number of blocks can be divided, and for convenience in software processing, the size of the block can be set to be an integral multiple of the number of bytes occupied by one line of the screen. Assuming that the total space of the Framebuffer is M, the Framebuffer can be equally divided into N blocks, the space of each block is M/N, only M/N RAM space is actually opened up, when full-screen data is refreshed, data of a first block is filled and sent to a screen, data of a second block is filled and sent to the screen, … …, and so on, until data of a last block is filled and sent to the screen, and then a screen display program is executed.
As an optional embodiment, after the display device receives the data to be displayed corresponding to the screen, the received data to be displayed are sorted according to the display order of each data to be displayed, and the sorted data to be displayed are displayed, so that the control is convenient and errors are not easy to occur.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
According to an embodiment of the present invention, there is also provided a screen display apparatus for implementing the screen display method described above,
fig. 12 is a schematic view of a screen display apparatus according to embodiment 3 of the present invention, as shown in fig. 12, the apparatus including: a partitioning module 122 and a processing module 124, which are described in detail below.
A dividing module 122, configured to divide data to be displayed on a screen into a plurality of blocks; and the processing module 124 is connected to the dividing module 122, and configured to read data to be displayed on a predetermined number of blocks in the multiple blocks through a memory, and send the data to a frame buffer of a screen of the display device, respectively, for the display device to control screen display, where the size of the memory is smaller than the size of the frame buffer of the screen.
It should be noted here that the dividing module 122 and the processing module 124 correspond to steps S202 to S204 in embodiment 1, and the two modules are the same as the example and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the first embodiment. It should be noted that the modules described above as part of the apparatus may be run in the computer terminal 10 provided in the first embodiment.
Example 4
According to an embodiment of the present invention, there is also provided a screen display apparatus for implementing the screen display method described above,
fig. 13 is a schematic view of another screen display apparatus according to embodiment 4 of the present invention, as shown in fig. 8, the apparatus including: a receiving module 132 and a display module 134, which are described in detail below.
A receiving module 132, configured to obtain data to be displayed on a predetermined number of blocks in a plurality of blocks of data to be displayed on a screen from a memory, respectively, where the plurality of blocks are obtained by dividing the screen, and a size of the memory is smaller than a size of a frame buffer of the screen; and a display module 134, connected to the receiving module 132, for controlling screen display according to the received data to be displayed.
It should be noted here that the receiving module 132 and the displaying module 134 correspond to steps S602 to S604 in embodiment 2, and the two modules are the same as the example and the application scenario realized by the corresponding steps, but are not limited to the disclosure of the first embodiment. It should be noted that the modules described above as part of the apparatus may be run in the computer terminal 10 provided in the first embodiment.
Example 5
The embodiment of the invention can provide a computer terminal which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute program codes of the following steps in the screen display method of the application program: dividing data to be displayed on a screen into a plurality of blocks; and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, and respectively sending the data to the frame buffer area of the screen of the display equipment for the display equipment to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
Alternatively, fig. 14 is a block diagram of a computer terminal according to embodiment 5 of the present invention. As shown in fig. 14, the computer terminal 10 may include: one or more processors 142 (only one shown), memory 144, and a peripheral interface.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the screen display method and apparatus in the embodiments of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the screen display method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memories may further include a memory located remotely from the processor, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: dividing data to be displayed on a screen into a plurality of blocks; and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, and respectively sending the data to the frame buffer area of the screen of the display equipment for the display equipment to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
Optionally, the processor may further execute the program code of the following steps: dividing data to be displayed on a screen into a plurality of blocks includes: dividing data to be displayed on a screen into a plurality of blocks by taking the size of a memory as a unit.
Optionally, the processor may further execute the program code of the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to a frame buffer area of a screen of the display device, wherein the data to be displayed for the screen to be controlled by the display device comprises the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks; and respectively reading data to be displayed from the storage blocks with the preset number corresponding to the partitioned blocks with the preset number through the memory, and sending the data to a frame buffer area of a screen of the display equipment for the display equipment to control the screen to display.
Optionally, the processor may further execute the program code of the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks, wherein the storage blocks comprise: sorting a predetermined number of blocks according to a predetermined order; reading the first data to be displayed on the sorted first block into a memory, and writing the first data to be displayed in the memory into a storage block corresponding to the first block; deleting the first data to be displayed from the memory, reading the second data to be displayed on the second sorted sub-block into the memory, writing the second data to be displayed in the memory into the storage block corresponding to the second sub-block, and sequentially processing the data to be displayed on the sub-blocks after the second sub-block by adopting the processing mode until the data to be displayed on the sub-blocks with the preset number are completely written into the corresponding storage blocks.
Optionally, the processor may further execute the program code of the following steps: for each block, where multiple data read, write operations are involved, the method further comprises: reading the data to be displayed before the current read-write operation into the memory from the storage blocks corresponding to the blocks; reading the data to be displayed updated at this time on the blocks; and after integrating the updated data to be displayed at this time and the data to be displayed before the reading and writing operation at this time, writing the data to be displayed into the storage blocks corresponding to the blocks.
Optionally, the processor may further execute the program code of the following steps: and according to the display sequence of the screen, respectively reading the data to be displayed from the storage blocks with the preset number corresponding to the blocks with the preset number through the memory, and sending the data to the display equipment.
Optionally, the processor may further execute the program code of the following steps: the memory block includes: and (4) a flash memory storage space.
Optionally, the processor may further execute the program code of the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to a frame buffer area of a screen of the display device, wherein the data to be displayed for the screen to be controlled by the display device comprises the following steps: and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment, and if the data to be displayed received by the display equipment meets the requirement of display content, informing the display equipment to control the screen to display.
As an alternative embodiment, the processor may also call the information and application stored in the memory through the transmission device to execute the following steps: respectively acquiring data to be displayed on a preset number of blocks in a plurality of data to be displayed block blocks on a screen from a memory, wherein the plurality of blocks are obtained after the screen is divided, and the size of the memory is smaller than that of a frame buffer area of the screen; and controlling the screen to display according to the received data to be displayed.
Optionally, the processor may further execute the program code of the following steps: the method for respectively acquiring the data to be displayed on a preset number of blocks in a plurality of blocks of the data to be displayed on a screen from the memory comprises the following steps: and receiving data to be displayed, which is read and sent by the memory from a preset number of storage blocks corresponding to the preset number of blocks respectively, wherein the data to be displayed in the preset number of storage blocks are read and written from the preset number of blocks by the memory respectively.
Optionally, the processor may further execute the program code of the following steps: controlling screen display according to the received data to be displayed comprises: and under the condition that the data to be displayed corresponding to the screen are all received, controlling the screen to display according to the unified display control instruction.
Optionally, the processor may further execute the program code of the following steps: controlling screen display according to the received data to be displayed comprises: under the condition that the data to be displayed on the blocks with the preset number in the plurality of blocks are respectively and directly sent by the memory, the display order of each data to be displayed is controlled, and the screen display is controlled.
The embodiment of the invention provides a scheme of a screen display method. Dividing data to be displayed on a screen into a plurality of blocks; the data to be displayed on the preset number of the blocks in the plurality of blocks are respectively read through the memory and are respectively sent to the frame cache region of the screen of the display device for the display device to control the screen to display, wherein the size of the memory is smaller than that of the frame cache region of the screen, and the purpose of displaying larger data to be displayed by using a smaller memory is achieved by writing the blocks with the display data into the display device, so that the technical effect of effectively displaying the data to be displayed with larger data volume by using the display device with the smaller memory is achieved, and the technical problem that the data to be displayed cannot be displayed due to the fact that the data to be displayed is too large due to too small memory in the related technology is solved.
It can be understood by those skilled in the art that the structure shown in fig. 14 is only an illustration, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 14 is a diagram illustrating a structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 6
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the screen display method provided in the first embodiment.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: dividing data to be displayed on a screen into a plurality of blocks; and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, and respectively sending the data to the frame buffer area of the screen of the display equipment for the display equipment to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: dividing data to be displayed on a screen into a plurality of blocks includes: dividing data to be displayed on a screen into a plurality of blocks by taking the size of a memory as a unit.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to a frame buffer area of a screen of the display device, wherein the data to be displayed for the screen to be controlled by the display device comprises the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks; and respectively reading data to be displayed from the storage blocks with the preset number corresponding to the partitioned blocks with the preset number through the memory, and sending the data to a frame buffer area of a screen of the display equipment for the display equipment to control the screen to display.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks, wherein the storage blocks comprise: sorting a predetermined number of blocks according to a predetermined order; reading the first data to be displayed on the sorted first block into a memory, and writing the first data to be displayed in the memory into a storage block corresponding to the first block; deleting the first data to be displayed from the memory, reading the second data to be displayed on the second sorted sub-block into the memory, writing the second data to be displayed in the memory into the storage block corresponding to the second sub-block, and sequentially processing the data to be displayed on the sub-blocks after the second sub-block by adopting the processing mode until the data to be displayed on the sub-blocks with the preset number are completely written into the corresponding storage blocks.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: for each block, where multiple data read, write operations are involved, the method further comprises: reading the data to be displayed before the current read-write operation into the memory from the storage blocks corresponding to the blocks; reading the data to be displayed updated at this time on the blocks; and after integrating the updated data to be displayed at this time and the data to be displayed before the reading and writing operation at this time, writing the data to be displayed into the storage blocks corresponding to the blocks.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: and according to the display sequence of the screen, respectively reading the data to be displayed from the storage blocks with the preset number corresponding to the blocks with the preset number through the memory, and sending the data to the display equipment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the memory block includes: and (4) a flash memory storage space.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to a frame buffer area of a screen of the display device, wherein the data to be displayed for the screen to be controlled by the display device comprises the following steps: and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment, and if the data to be displayed received by the display equipment meets the requirement of display content, informing the display equipment to control the screen to display.
As an alternative embodiment, the storage medium may be further configured to store program code for performing the steps of: respectively acquiring data to be displayed on a preset number of blocks in a plurality of blocks of data to be displayed on a screen from a memory, wherein the plurality of blocks are obtained by dividing the screen, and the size of the memory is smaller than that of a frame buffer area of the screen; and controlling the screen to display according to the received data to be displayed.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the method for respectively acquiring the data to be displayed on a preset number of blocks in a plurality of blocks of the data to be displayed on a screen from the memory comprises the following steps: and receiving data to be displayed, which is read and sent by the memory from a preset number of storage blocks corresponding to the preset number of blocks respectively, wherein the data to be displayed in the preset number of storage blocks are read and written from the preset number of blocks by the memory respectively.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: controlling screen display according to the received data to be displayed comprises: and under the condition that the data to be displayed corresponding to the screen are all received, controlling the screen to display according to the unified display control instruction.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the memory block includes: and (4) a flash memory storage space.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: controlling screen display according to the received data to be displayed comprises: under the condition that the data to be displayed on the blocks with the preset number in the plurality of data blocks to be displayed are respectively and directly sent by the memory, the display order of the data to be displayed is controlled, and the screen display is controlled.
Example 7
The embodiment of the invention also provides the terminal equipment. The terminal device includes: a memory and a processor, the memory storing a computer program; a processor for executing a computer program stored in the memory, the computer program when running program code for performing the steps of:
dividing data to be displayed on a screen into a plurality of blocks; and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, and respectively sending the data to the frame buffer area of the screen of the display equipment for the display equipment to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
Optionally, the processor may further execute the program code of the following steps: dividing data to be displayed on a screen into a plurality of blocks includes: dividing data to be displayed on a screen into a plurality of blocks by taking the size of a memory as a unit.
Optionally, the processor may further execute the program code of the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to a frame buffer area of a screen of the display device, wherein the data to be displayed for the screen to be controlled by the display device comprises the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks; and respectively reading data to be displayed from the storage blocks with the preset number corresponding to the partitioned blocks with the preset number through the memory, and sending the data to a frame buffer area of a screen of the display equipment for the display equipment to control the screen to display.
Optionally, the processor may further execute the program code of the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks, wherein the storage blocks comprise: sorting a predetermined number of blocks according to a predetermined order; reading the first data to be displayed on the sorted first block into a memory, and writing the first data to be displayed in the memory into a storage block corresponding to the first block; deleting the first data to be displayed from the memory, reading the second data to be displayed on the second sorted sub-block into the memory, writing the second data to be displayed in the memory into the storage block corresponding to the second sub-block, and sequentially processing the data to be displayed on the sub-blocks after the second sub-block by adopting the processing mode until the data to be displayed on the sub-blocks with the preset number are completely written into the corresponding storage blocks.
Optionally, the processor may further execute the program code of the following steps: for each block, where multiple data read, write operations are involved, the method further comprises: reading the data to be displayed before the current read-write operation into the memory from the storage blocks corresponding to the blocks; reading the data to be displayed updated at this time on the blocks; and after integrating the updated data to be displayed at this time and the data to be displayed before the reading and writing operation at this time, writing the data to be displayed into the storage blocks corresponding to the blocks.
Optionally, the processor may further execute the program code of the following steps: and according to the display sequence of the screen, respectively reading the data to be displayed from the storage blocks with the preset number corresponding to the blocks with the preset number through the memory, and sending the data to the display equipment.
Optionally, the processor may further execute the program code of the following steps: the memory block includes: and (4) a flash memory storage space.
Optionally, the processor may further execute the program code of the following steps: respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to a frame buffer area of a screen of the display device, wherein the data to be displayed for the screen to be controlled by the display device comprises the following steps: and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through the memory, respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment, and if the data to be displayed received by the display equipment meets the requirement of display content, informing the display equipment to control the screen to display.
As an alternative embodiment, the processor may also call the information and application stored in the memory through the transmission device to execute the following steps: respectively acquiring data to be displayed on a preset number of blocks in a plurality of blocks of data to be displayed on a screen from a memory, wherein the plurality of blocks are obtained by dividing the screen, and the size of the memory is smaller than that of a frame buffer area of the screen; and controlling the screen to display according to the received data to be displayed.
Optionally, the processor may further execute the program code of the following steps: the method for respectively acquiring the data to be displayed on a preset number of blocks in a plurality of blocks of the data to be displayed on a screen from the memory comprises the following steps: and receiving data to be displayed, which is read and sent by the memory from a preset number of storage blocks corresponding to the preset number of blocks respectively, wherein the data to be displayed in the preset number of storage blocks are read and written from the preset number of blocks by the memory respectively.
Optionally, the processor may further execute the program code of the following steps: controlling screen display according to the received data to be displayed comprises: and under the condition that the data to be displayed corresponding to the screen are all received, controlling the screen to display according to the unified display control instruction.
Optionally, the processor may further execute the program code of the following steps: the memory block includes: and (4) a flash memory storage space.
Optionally, the processor may further execute the program code of the following steps: controlling screen display according to the received data to be displayed comprises: under the condition that the data to be displayed on the blocks with the preset number in the plurality of data blocks to be displayed are respectively and directly sent by the memory, the display order of the data to be displayed is controlled, and the screen display is controlled.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (18)

1. A screen display method, comprising:
dividing data to be displayed on a screen into a plurality of blocks;
and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment for the display equipment to control the screen to display, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
2. The method of claim 1, wherein dividing data to be displayed on a screen into a plurality of tiles comprises:
and dividing the data to be displayed on the screen into a plurality of blocks by taking the size of the memory as a unit.
3. The method according to claim 2, wherein the reading of the data to be displayed on the predetermined number of the plurality of blocks by the memory and the sending to the frame buffer of the display device screen respectively for the display device to control the screen display comprises:
respectively reading data to be displayed on a preset number of blocks in the plurality of blocks through a memory, and correspondingly writing the data to be displayed into storage blocks corresponding to the blocks;
and respectively reading data to be displayed from the storage blocks with the preset number corresponding to the partitioned blocks with the preset number through the memory, and sending the data to a frame buffer area of a screen of the display equipment for the display equipment to control the screen to display.
4. The method according to claim 3, wherein the reading the data to be displayed on a predetermined number of the plurality of blocks through the memory and correspondingly writing the data to be displayed in the storage blocks corresponding to the blocks comprises:
sorting the blocks of the preset number according to a preset sequence;
reading the first to-be-displayed data on the sorted first block into the memory, and writing the first to-be-displayed data in the memory into a storage block corresponding to the first block;
deleting the first data to be displayed from the memory, reading the second data to be displayed on the second sorted sub-block into the memory, writing the second data to be displayed in the memory into the storage block corresponding to the second sub-block, and sequentially processing the data to be displayed on the sub-blocks after the second sub-block by adopting the processing mode until the data to be displayed on the predetermined number of sub-blocks are completely written into the corresponding storage blocks.
5. The method of claim 4, wherein, for each partition, where multiple data read, write operations are involved, the method further comprises:
reading the data to be displayed before the current read-write operation into the memory from the storage blocks corresponding to the blocks;
reading the data to be displayed updated on the blocks;
and after integrating the updated data to be displayed at this time and the data to be displayed before the reading and writing operation at this time, writing the data to be displayed into the storage blocks corresponding to the blocks.
6. The method according to claim 3, wherein the data to be displayed is read from a predetermined number of storage blocks corresponding to a predetermined number of blocks respectively through the memory in accordance with a display order of the screen, and is transmitted to the display device.
7. The method of any of claims 3 to 6, wherein the memory block comprises: and (4) a flash memory storage space.
8. The method according to claim 2, wherein the reading of the data to be displayed on the predetermined number of the plurality of blocks by the memory and the sending to the frame buffer of the display device screen respectively for the display device to control the screen display comprises:
and respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through a memory, respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment, and if the data to be displayed received by the display equipment meets the requirement of display content, informing the display equipment to control the screen to display.
9. A screen display method, comprising:
respectively acquiring data to be displayed on a preset number of blocks in a plurality of blocks of data to be displayed on a screen from a memory, wherein the plurality of blocks are obtained by dividing the screen, and the size of the memory is smaller than that of a frame buffer area of the screen;
and controlling screen display according to the received data to be displayed.
10. The method of claim 9, wherein the obtaining the data to be displayed on a predetermined number of the plurality of blocks of data to be displayed on the screen from the memory comprises:
and receiving the data to be displayed, which is sent after the memory reads from the storage blocks with the preset number corresponding to the blocks with the preset number respectively, wherein the data to be displayed in the storage blocks with the preset number are written after the memory reads from the blocks with the preset number respectively.
11. The method of claim 10, wherein controlling screen display according to the received data to be displayed comprises:
and under the condition that the data to be displayed corresponding to the screen are all received, controlling the screen to display according to a uniform display control instruction.
12. The method of claim 10 or 11, wherein the memory block comprises: and (4) a flash memory storage space.
13. The method of claim 9, wherein controlling screen display according to the received data to be displayed comprises:
and under the condition that the data to be displayed on the preset number of the blocks in the plurality of data blocks to be displayed are respectively and directly sent by the memory, controlling the display sequence of each data to be displayed to control the screen display.
14. A screen display device comprising:
the dividing module is used for dividing the data to be displayed on the screen into a plurality of blocks;
and the processing module is used for respectively reading the data to be displayed on a preset number of blocks in the plurality of blocks through a memory, respectively sending the data to be displayed to a frame buffer area of a screen of the display equipment, and controlling screen display by the display equipment, wherein the size of the memory is smaller than that of the frame buffer area of the screen.
15. A screen display device comprising:
the display device comprises a receiving module, a frame buffer area and a display module, wherein the receiving module is used for respectively obtaining data to be displayed on a preset number of blocks in a plurality of blocks of data to be displayed on a screen from a memory, the plurality of blocks are obtained after the screen is divided, and the size of the memory is smaller than that of the frame buffer area of the screen;
and the display module is used for controlling the screen to display according to the received data to be displayed.
16. A storage medium comprising a stored program, wherein an apparatus in which the storage medium is located is controlled to execute the screen display method of any one of claims 1 to 13 when the program is run.
17. A processor for executing a program, wherein the program executes to perform the screen display method of any one of claims 1 to 13.
18. A computer device, comprising: a memory and a processor, wherein the processor is capable of,
the memory stores a computer program;
the processor is configured to execute the computer program stored in the memory, and the computer program executes the screen display method according to any one of claims 1 to 13 when running.
CN201811433878.9A 2018-11-28 2018-11-28 Screen display method and device, storage medium, processor and computer equipment Pending CN111240613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811433878.9A CN111240613A (en) 2018-11-28 2018-11-28 Screen display method and device, storage medium, processor and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811433878.9A CN111240613A (en) 2018-11-28 2018-11-28 Screen display method and device, storage medium, processor and computer equipment

Publications (1)

Publication Number Publication Date
CN111240613A true CN111240613A (en) 2020-06-05

Family

ID=70873939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811433878.9A Pending CN111240613A (en) 2018-11-28 2018-11-28 Screen display method and device, storage medium, processor and computer equipment

Country Status (1)

Country Link
CN (1) CN111240613A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685334A (en) * 2020-12-21 2021-04-20 联想(北京)有限公司 Method, device and storage medium for block caching of data
CN112835759A (en) * 2021-02-01 2021-05-25 百度在线网络技术(北京)有限公司 Test data processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102290033B (en) * 2010-06-17 2014-11-05 无锡中星微电子有限公司 Method and device for refreshing image
CN108363535A (en) * 2018-02-09 2018-08-03 网易(杭州)网络有限公司 Display methods, device, storage medium, processor and the terminal of picture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102290033B (en) * 2010-06-17 2014-11-05 无锡中星微电子有限公司 Method and device for refreshing image
CN108363535A (en) * 2018-02-09 2018-08-03 网易(杭州)网络有限公司 Display methods, device, storage medium, processor and the terminal of picture

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685334A (en) * 2020-12-21 2021-04-20 联想(北京)有限公司 Method, device and storage medium for block caching of data
CN112835759A (en) * 2021-02-01 2021-05-25 百度在线网络技术(北京)有限公司 Test data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11042297B2 (en) Techniques to configure a solid state drive to operate in a storage mode or a memory mode
CN102981990B (en) Data transmission method and device of terminal equipment with Androild platform
CN104704530B (en) For the mixed display frame buffer of display subsystem
US20070162643A1 (en) Fixed offset scatter/gather dma controller and method thereof
CN107624194B (en) For operating the device and method of the timing controller of display
CN103136089A (en) Method and device for process bar display
CN111240613A (en) Screen display method and device, storage medium, processor and computer equipment
CN104424122A (en) Electronic equipment and memory dividing method
CN103258173A (en) Wearable device, write-in system and write-in method for card
CN103035219A (en) Read-write method and read-write device of dot matrix type liquid crystal display (LCD)
CN108510428A (en) Picture method for drafting and Related product
CN110928935A (en) Data access command processing method, device and system
CN106293585B (en) A kind of method for caching and processing and device shown for mobile terminal
KR100782592B1 (en) Device having shared memory and method for controlling shared memory
CN105095250A (en) Page scheduling processing method and device
CN109088636A (en) A kind of data processing method, system and electronic equipment and storage medium
CN102063857B (en) Integrated circuit device and electronic device
CN111143240B (en) Image storage method, system and terminal equipment
CN111679728A (en) Data reading method and device
WO2023155698A1 (en) Data processing method, apparatus and system based on para-virtualization device
CN114995770B (en) Data processing method, device, equipment, system and readable storage medium
CN109032506A (en) A kind of memory system data compression method, system and equipment and storage medium
CN114564418A (en) Data reading and writing method, system, terminal equipment and storage medium
CN110968393B (en) Migration processing method of virtual machine, storage medium and computing device
CN107678718A (en) Compatibility processing method, mobile terminal and the storage medium of different resolution display screen

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40030118

Country of ref document: HK