CN108614674B - Display method and device - Google Patents

Display method and device Download PDF

Info

Publication number
CN108614674B
CN108614674B CN201611129240.7A CN201611129240A CN108614674B CN 108614674 B CN108614674 B CN 108614674B CN 201611129240 A CN201611129240 A CN 201611129240A CN 108614674 B CN108614674 B CN 108614674B
Authority
CN
China
Prior art keywords
data
storage space
memory
displayed
copied
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.)
Active
Application number
CN201611129240.7A
Other languages
Chinese (zh)
Other versions
CN108614674A (en
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.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp 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 Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN201611129240.7A priority Critical patent/CN108614674B/en
Publication of CN108614674A publication Critical patent/CN108614674A/en
Application granted granted Critical
Publication of CN108614674B publication Critical patent/CN108614674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The embodiment of the invention provides a display method and a display device, wherein the method comprises the following steps: acquiring data to be displayed; when a first storage space required by data to be displayed is larger than the remaining storage space of the display memory, determining the data to be copied in a preset memory corresponding to the display memory according to the first storage space and the remaining storage space, wherein the data in the preset memory is the same as the data in the display memory, the data to be copied is current data which needs to be displayed except the data to be displayed in the display screen, the data to be copied is stored from an initial storage position of the display memory, the data to be displayed is stored in a storage space adjacent to the data to be copied in the display memory, and the data in the display memory is displayed in the display screen. For improving the efficiency of displaying data.

Description

Display method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a display method and a display device.
Background
At present, in various operating systems such as Linux operating system and VxWorks operating system, a Frame Buffer (Frame Buffer) mechanism is usually adopted to display data information in a screen.
In the Frame Buffer mechanism, data to be displayed in a display screen is written into a video memory, and the data is displayed on the display screen through the video memory. The size of the video memory is generally equal to the size of data of one screen of the display screen, and different storage spaces in the video memory are used for storing data corresponding to different lines in the display screen, for example, the storage spaces corresponding to addresses 1 to 2 in the video memory are used for storing data displayed in a first line in the screen, and the storage spaces corresponding to addresses 2 to 3 are used for storing data displayed in a second line in the screen. In the prior art, when new data needs to be displayed on a screen and a storage space occupied by the new data is larger than a remaining space of a display memory, data corresponding to the first N rows of the display screen in the display memory needs to be deleted, and a storage position of the remaining data in the display memory is updated, so that the remaining data can be displayed from the first row of the display screen; and then, storing the new data into the residual storage space of the video memory, and redisplaying the data in the video memory on the display screen.
However, in the prior art, in the process of updating the storage location of the remaining data in the video memory, the processor needs to copy the remaining data in the video memory and store the remaining data in the preset location of the video memory. Because the operation speed of the processor on the data in the video memory is low, the speed of updating the storage position of the residual data in the video memory by the processor is low, and the efficiency of displaying the data is low.
Disclosure of Invention
The embodiment of the invention provides a display method and device, which are used for improving the efficiency of displaying data.
In a first aspect, an embodiment of the present invention provides a display method, which is applied to a display device based on a Frame Buffer mechanism, where the method includes:
acquiring data to be displayed;
when a first storage space required by the data to be displayed is larger than a residual storage space of a display memory, determining the data to be copied in a preset memory corresponding to the display memory according to the first storage space and the residual storage space, wherein the data in the preset memory is the same as the data in the display memory, and the data to be copied is current data which needs to be displayed except the data to be displayed in a display screen;
and starting to store the data to be copied from the initial storage position of the video memory, storing the data to be displayed in the storage space adjacent to the data to be copied in the video memory, and displaying the data in the video memory in the display screen.
In a possible implementation manner, when the first storage space required by the data to be displayed is less than or equal to the remaining storage space of the video memory, the method further includes:
storing the data to be displayed in the preset memory and the video memory;
and displaying the data to be displayed in a display screen.
In another possible implementation manner, after storing the data to be copied from the displayed starting storage space, the method further includes:
starting to store the data to be copied from the initial storage position of the preset memory;
and storing the data to be displayed in a storage space adjacent to the data to be copied in the preset memory.
In another possible implementation, the acquiring data to be displayed includes:
receiving data input by a user through input equipment, and determining the data input by the user as the data to be displayed;
alternatively, the first and second electrodes may be,
and receiving a data acquisition instruction input by a user, and acquiring the data to be displayed according to the data acquisition instruction.
In another possible implementation manner, determining data to be copied in a preset memory corresponding to the video memory according to the first storage space and the remaining storage space includes:
determining a copy starting storage position in the preset memory according to the first storage space and the residual storage space, wherein the storage space between the starting storage position of the preset memory and the copy starting storage position is equal to the difference between the first storage space and the residual storage space;
and determining all data starting from the copy starting storage position in the preset memory as the data to be copied.
In another possible implementation manner, before storing the data to be copied from the starting storage location of the video memory, the method further includes:
copying data from the initial storage position of the video memory to the initial copying storage position to a preset cache;
and deleting all data in the video memory.
In a second aspect, an embodiment of the present invention provides a display apparatus, including an obtaining module, a determining module, a storing module, and a displaying module, wherein,
the acquisition module is used for acquiring data to be displayed;
the determining module is used for determining data to be copied in a preset memory corresponding to the video memory according to the first storage space and the residual storage space when the first storage space required by the data to be displayed is larger than the residual storage space of the video memory, wherein the data in the preset memory is the same as the data in the video memory, and the data to be copied is current data which needs to be displayed except the data to be displayed in a display screen;
the storage module is used for storing the data to be copied from an initial storage position of the video memory and storing the data to be displayed in a storage space adjacent to the data to be copied in the video memory;
the display module is used for displaying the data in the video memory in the display screen.
In a possible implementation manner, when the first storage space required by the data to be displayed is less than or equal to the remaining storage space of the video memory, the storage module is further configured to store the data to be displayed in the preset memory and the video memory;
the display module is further used for displaying the data to be displayed in a display screen.
In another possible implementation, the storage module is further configured to:
after the storage module starts to store the data to be copied from the displayed initial storage space, the data to be copied is stored from the initial storage position of the preset memory, and the data to be displayed is stored in the storage space adjacent to the data to be copied in the preset memory.
In another possible implementation manner, the obtaining module is specifically configured to:
receiving data input by a user through input equipment, and determining the data input by the user as the data to be displayed;
alternatively, the first and second electrodes may be,
and receiving a data acquisition instruction input by a user, and acquiring the data to be displayed according to the data acquisition instruction.
In another possible implementation manner, the determining module is specifically configured to:
determining a copy starting storage position in the preset memory according to the first storage space and the residual storage space, wherein the storage space between the starting storage position of the preset memory and the copy starting storage position is equal to the difference between the first storage space and the residual storage space;
and determining all data starting from the copy starting storage position in the preset memory as the data to be copied.
In another possible embodiment, the apparatus further comprises a deletion module, wherein,
the storage module is further configured to copy, to a preset cache, data from the starting storage location of the video memory to the copying starting storage location before the storage module starts to store the data to be copied from the starting storage location of the video memory;
and the deleting module is used for deleting all data in the video memory.
According to the display method and the display device provided by the embodiment of the invention, the preset memory is divided in the memory, and the data stored in the preset memory and the data stored in the display memory are the same. In the process of displaying the data to be displayed, when the storage space required by the data to be displayed is larger than the remaining storage space of the display memory, determining the data to be copied in the preset memory, copying the data to be copied from the preset memory, storing the copied data to be copied from the initial storage position of the display, storing the data to be displayed in the storage space adjacent to the data to be copied in the display memory, and displaying the data in the display memory in the display screen. In the process, the display device can rapidly operate the preset memory, so that the speed of updating the data in the display memory can be increased, and the efficiency of displaying the data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a display method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a video memory and a display screen provided in an embodiment of the present invention;
FIG. 3 is a flow chart of a display method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a display memory, a preset memory, and a display screen according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a display device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a display device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
Fig. 1 is a schematic view of an application scenario of a display method according to an embodiment of the present invention. Referring to fig. 1, the display device includes a display screen 101, a display memory 102, a preset memory 103, and a processor 104. The display screen 101 may be a computer display screen, and the operating system corresponding to the display screen 101 may be a Linux operating system, a VxWorks operating system, and the like. The size of the display memory 102 is generally equal to the size of one screen of data of the display screen 101. The preset memory 103 is a preset storage area partitioned in the memory, the size of the preset memory 103 is generally the same as that of the display memory, and the data stored in the preset memory 103 is the same as that stored in the display memory 102.
In the actual application process, the processor 104 stores the data to be displayed in the video memory 102 and the preset memory 103 synchronously, and displays the data to be displayed in the display screen 101 through the video memory 102. When the storage location of the data in the video memory 102 needs to be updated, the processor 104 copies part of the data in the preset memory 103 to the video memory 102. The processor 104 can quickly operate the data in the preset memory 103, so that the processor 104 can quickly copy the data to be copied from the preset memory 103 to the display memory 102, so as to update the storage location of the data in the display memory 102, thereby improving the efficiency of displaying the data in the display screen.
In order to facilitate understanding of the present application, the correspondence between the data in the video memory and the display data in the display screen in the present application will be described in detail below with reference to fig. 2.
Fig. 2 is a schematic structural diagram of a video memory and a display screen provided in an embodiment of the present invention. Please refer to fig. 2, which includes a display screen 101 and a display memory 102. N lines of data may be displayed in the display screen 101. The storage space of the display memory 102 may be divided into N sub-storage spaces, and each sub-storage space corresponds to one line of data in the display screen 101. For example, the data in the memory space corresponding to addresses 1 to 2 in the display memory 102 corresponds to the first line of data in the display screen 101, and the data in the memory space corresponding to addresses 2 to 3 in the display memory 102 corresponds to the second line of data in the display screen 101.
The technical means shown in the present application will be described in detail below with reference to specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a flowchart illustrating a display method according to an embodiment of the present invention. Referring to fig. 3, the method may include:
s301, obtaining data to be displayed.
The execution main body of the method in the embodiment of the invention can be a display device, and the display device can be arranged in the processor. Alternatively, the display device may be implemented by software and/or hardware.
Alternatively, the data to be displayed may be data input by a user through an input device. Alternatively, the input device may be a keyboard or the like.
Optionally, the data to be displayed may also be data obtained according to a data obtaining instruction input by a user. Optionally, the user may input a command line through the input device, the display screen calls a preset interface function according to the command line input by the user, and obtains data corresponding to the command line through the preset interface function. For example, in a VxWorks operating system, after a user inputs a command line "ipconfig" and clicks enter, a display device determines a preset interface function corresponding to the command line, and acquires an Internet Protocol (IP) address of the host according to the interface function corresponding to the command line.
S302, judging whether the first storage space required by the data to be displayed is larger than the residual storage space of the video memory.
If so, S303-S304 are performed. If not, S305 is executed.
The size of the display memory is equal to the size of one screen of data in the display screen, and different storage spaces in the display memory are used for storing data corresponding to different lines in the display screen. Optionally, the size of the video memory may be related to the resolution of the display screen and the color depth of the screen, for example, assuming that the resolution of the screen is 1024 × 768 and the screen has a color depth of 16 bits (2 bytes), the size of one screen of data is: 1024 × 768 × 2 ═ 1572864B ═ 1.5M.
After the display device obtains the data to be displayed, the display device obtains a first storage space required by the data to be displayed and a residual storage space of the video memory. Optionally, the display device may determine the first storage space required for storing the data to be displayed according to the size of the data to be displayed, the number of "carriage return characters" included in the data to be displayed, and the initial display position of the data to be displayed in the display screen.
Optionally, since the size of the preset memory is the same as the size of the display memory, and the data stored in the preset memory is the same as the data stored in the display memory, the remaining storage space in the preset memory is the same as the remaining storage space in the display memory. When the display device needs to acquire the remaining storage space of the video memory, in order to increase the acquisition speed, the display device may acquire the remaining storage of the preset memory, and determine the remaining storage space of the preset memory as the remaining storage space of the video memory.
The display device judges whether the first storage space is larger than the remaining storage space of the video memory, if so, the data to be displayed can be stored only if the data in the video memory needs to be copied. If not, the data to be displayed can be stored without copying the data in the display memory.
And S303, determining data to be copied in a preset memory corresponding to the video memory according to the first storage space and the residual storage space.
The data to be copied is current data which needs to be displayed in addition to the data to be displayed in the display screen, wherein the data to be copied is a part of the data which is currently displayed in the display screen, and the data to be copied is also displayed in the display screen after the data to be displayed is displayed in the display screen.
Optionally, the display device may determine, according to the first storage space and the remaining storage space, a copy start storage location in a preset memory, and determine all data starting from the copy start storage location in the preset memory as data to be copied. And the storage space from the initial storage position of the preset memory to the copy initial storage position is equal to the difference between the first storage space and the residual storage space.
For example, assuming that the storage space of the video memory is 30kb, the storage space of the video memory is divided into 30 sub-storage spaces, each sub-storage space corresponds to one line in the display screen, and the 30 sub-storage spaces are respectively marked as sub-storage space 1-sub-storage space 30 according to the sequence of addresses from low to high. Assuming that the first storage space is 5kb and the remaining storage space is 2kb, data are stored in the sub-storage space 1-28 of the video memory at this time.
If the difference between the first storage space and the remaining storage space is 3kb, the initial storage location is determined as the initial storage location of the sub-storage space 4, and the data in the sub-storage space 4-the sub-storage space 28 is determined as the data to be copied.
S304, storing the data to be copied from the initial storage position of the video memory, storing the data to be displayed in the storage space adjacent to the data to be copied in the video memory, and displaying the data in the video memory in the display screen.
And after the display device determines to obtain the data to be copied, the display device starts to store the data to be copied from the initial storage position of the video memory. Optionally, when the data to be copied is stored, the data to be copied may be directly overwritten on the previously stored data in the display memory, or the data stored in the display memory may be deleted first, and the data to be copied is stored in the display memory.
After the data to be copied is stored from the initial storage position of the video memory, the video memory does not include the data from the initial storage position to the copy initial storage position, and in order to avoid that a user needs to view the data, before the data to be copied is stored from the initial storage position of the video memory, the data from the initial storage position to the copy initial storage position of the video memory can be copied to a preset cache.
And after the data to be copied is stored in the video memory, storing the data to be displayed in the residual storage space of the video memory. And after the data to be displayed are stored in the display memory, displaying the data in the display memory in a display screen.
Meanwhile, in order to ensure that the data in the preset memory is the same as the data in the display memory, the data to be copied is stored from the initial storage position of the preset memory, and the data to be displayed is stored in the storage space adjacent to the data to be copied in the preset memory.
S305, storing the data to be displayed in a preset memory and a display memory, and displaying the data to be displayed in a display screen.
And when the first storage space required by the data to be displayed is smaller than or equal to the residual storage space of the video memory, the data to be displayed can be directly written into the preset memory and the residual storage space of the video memory, and the data to be displayed is displayed in the display screen through the video memory. Therefore, the data in the preset memory and the data in the display memory can be ensured to be the same.
Next, the method shown in the embodiment of fig. 3 is described in detail by referring to a schematic structural diagram of the display memory, the preset memory, and the display screen shown in fig. 4 through a specific example.
Fig. 4 is a schematic structural diagram of a display memory, a preset memory, and a display screen according to an embodiment of the present invention. Referring to fig. 4, the display device includes display screens 401-1 to 401-2, video memories 402-1 to 402-3, and preset memories 403-1 to 403-3.
Assuming that the sizes of the video memory and the preset memory are the same, the sizes of the video memory and the preset memory are both 9kb, the storage spaces of the video memory and the preset memory are divided into 9 sub-storage spaces, and each sub-storage control corresponds to 1 kb. Assuming that 9 lines of data can be displayed on the display screen, each sub-memory space in the display memory corresponds to one line of the display screen.
At time 1, assume that the data in the display is as shown in display 401-1, with the first 8 rows of the display each displaying data. Correspondingly, the storage space corresponding to the address 1-address 9 in the video memory 402-1 and the preset memory 403-1 stores corresponding data, and the remaining storage space of the video memory is 1 kb.
At the time 2, assuming that the data to be displayed needs to be displayed on the display screen, the size of the storage space required by the display device to acquire the data to be displayed is 2kb, which is larger than the remaining storage space (1kb) of the display memory. The display device determines the copy initial storage position to be the position corresponding to the address 2 according to the storage space (2kb) required by the data to be displayed and the residual storage space (1kb) of the video memory, wherein the size of the storage control between the address 2 and the address 1 is equal to the difference between the storage space required by the data to be displayed and the residual storage space.
The display device copies the data in the addresses 2-9 in the preset memory to the addresses 1-8 in the display memory, and the display device also copies the data in the addresses 2-9 in the preset memory to the addresses 1-8 in the preset memory. After the copying is completed, the data in the video memory is shown as the video memory 402-2, and the data in the preset memory is shown as the preset memory 403-2.
After copying the data to be copied, the display device writes the data to be displayed into the video memory and the address 8-10 of the preset memory, the data in the video memory after the data is written is shown as the video memory 402-3, and the data in the preset memory after the data is written is shown as the preset memory 402-3.
After the data to be displayed is written into the display memory, the data in the display memory 402-3 is displayed in the display screen, and at this time, the content displayed in the display screen is as shown in the display screen 401-2.
According to the display method provided by the embodiment of the invention, the preset memory is divided in the memory, and the data stored in the preset memory and the data stored in the display memory are the same. In the process of displaying the data to be displayed, when the storage space required by the data to be displayed is larger than the remaining storage space of the display memory, determining the data to be copied in the preset memory, copying the data to be copied from the preset memory, storing the copied data to be copied from the initial storage position of the display memory, storing the data to be displayed in the storage space adjacent to the data to be copied in the display memory, and displaying the data in the display memory on the display screen. In the process, the display device can rapidly operate the preset memory, so that the speed of updating the data in the display memory can be increased, and the efficiency of displaying the data is improved.
Fig. 5 is a first schematic structural diagram of a display device according to an embodiment of the present invention. Referring to fig. 5, the apparatus may include an obtaining module 11, a determining module 12, a storing module 13 and a displaying module 14, wherein,
the obtaining module 11 is configured to obtain data to be displayed;
the determining module 12 is configured to determine, when a first storage space required by the data to be displayed is larger than a remaining storage space of a video memory, to-be-copied data in a preset memory corresponding to the video memory according to the first storage space and the remaining storage space, where the data in the preset memory is the same as the data in the video memory, and the to-be-copied data is current data that needs to be displayed in a display screen except for the data to be displayed;
the storage module 13 is configured to store the data to be copied from an initial storage location of the video memory, and store the data to be displayed in a storage space adjacent to the data to be copied in the video memory;
the display module 14 is configured to display the data in the video memory in the display screen.
The display device provided by the embodiment of the present invention can implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In a possible implementation manner, when the first storage space required by the data to be displayed is less than or equal to the remaining storage space of the video memory, the storage module 13 is further configured to store the data to be displayed in the preset memory and the video memory;
the display module 14 is further configured to display the data to be displayed in a display screen.
In another possible embodiment, the storage module 13 is further configured to:
after the storage module starts to store the data to be copied from the displayed initial storage space, the data to be copied is stored from the initial storage position of the preset memory, and the data to be displayed is stored in the storage space adjacent to the data to be copied in the preset memory.
In another possible implementation, the obtaining module 11 is specifically configured to:
receiving data input by a user through input equipment, and determining the data input by the user as the data to be displayed;
alternatively, the first and second electrodes may be,
and receiving a data acquisition instruction input by a user, and acquiring the data to be displayed according to the data acquisition instruction.
In another possible implementation, the determining module 12 is specifically configured to:
determining a copy starting storage position in the preset memory according to the first storage space and the residual storage space, wherein the storage space between the starting storage position of the preset memory and the copy starting storage position is equal to the difference between the first storage space and the residual storage space;
and determining all data starting from the copy starting storage position in the preset memory as the data to be copied.
Fig. 6 is a schematic structural diagram of a display device according to an embodiment of the present invention. On the basis of the embodiment shown in fig. 5, please refer to fig. 6, the apparatus further comprises a deleting module 15, wherein,
the storage module 13 is further configured to copy, to a preset cache, data from the starting storage location of the video memory to the copying starting storage location before the storage module starts to store the data to be copied from the starting storage location of the video memory;
the deleting module 15 is configured to delete all data in the video memory.
The display device provided by the embodiment of the present invention can implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A display method is applied to a display device based on a Frame Buffer mechanism, and the method comprises the following steps:
acquiring data to be displayed;
when a first storage space required by the data to be displayed is larger than a remaining storage space of a display memory, determining the data to be copied in a preset memory corresponding to the display memory according to the first storage space and the remaining storage space, wherein the data in the preset memory and the data in the display memory are the same and are synchronously stored data to be displayed, and the data to be copied is current data which needs to be displayed except the data to be displayed in a display screen;
and starting to store the data to be copied from the initial storage position of the video memory, storing the data to be displayed in the storage space adjacent to the data to be copied in the video memory, and displaying the data in the video memory in the display screen.
2. The method according to claim 1, wherein when the first storage space required by the data to be displayed is less than or equal to the remaining storage space of the video memory, the method further comprises:
storing the data to be displayed in the preset memory and the video memory;
and displaying the data to be displayed in a display screen.
3. The method according to claim 1, further comprising, after storing the data to be copied from the displayed starting storage space:
starting to store the data to be copied from the initial storage position of the preset memory;
and storing the data to be displayed in a storage space adjacent to the data to be copied in the preset memory.
4. The method according to any one of claims 1 to 3, wherein determining data to be copied in a preset memory corresponding to the video memory according to the first storage space and the remaining storage space comprises:
determining a copy starting storage position in the preset memory according to the first storage space and the residual storage space, wherein the storage space between the starting storage position of the preset memory and the copy starting storage position is equal to the difference between the first storage space and the residual storage space;
and determining all data starting from the copy starting storage position in the preset memory as the data to be copied.
5. The method according to claim 4, before storing the data to be copied from the starting storage location of the video memory, further comprising:
copying data from the initial storage position of the video memory to the initial copying storage position to a preset cache;
and deleting all data in the video memory.
6. A display device is characterized by comprising an acquisition module, a determination module, a storage module and a display module, wherein,
the acquisition module is used for acquiring data to be displayed;
the determining module is used for determining data to be copied in a preset memory corresponding to the video memory according to the first storage space and the residual storage space when the first storage space required by the data to be displayed is larger than the residual storage space of the video memory, the data in the preset memory and the data in the video memory are the same and are the data to be displayed which are synchronously stored, and the data to be copied is the current data which needs to be displayed except the data to be displayed in a display screen;
the storage module is used for storing the data to be copied from an initial storage position of the video memory and storing the data to be displayed in a storage space adjacent to the data to be copied in the video memory;
the display module is used for displaying the data in the video memory in the display screen.
7. The apparatus according to claim 6, wherein when the first storage space required by the data to be displayed is less than or equal to the remaining storage space of the video memory, the storage module is further configured to store the data to be displayed in the preset memory and the video memory;
the display module is further used for displaying the data to be displayed in a display screen.
8. The apparatus of claim 6, wherein the storage module is further configured to:
after the storage module starts to store the data to be copied from the displayed initial storage space, the data to be copied is stored from the initial storage position of the preset memory, and the data to be displayed is stored in the storage space adjacent to the data to be copied in the preset memory.
9. The apparatus according to any one of claims 6 to 8, wherein the determining module is specifically configured to:
determining a copy starting storage position in the preset memory according to the first storage space and the residual storage space, wherein the storage space between the starting storage position of the preset memory and the copy starting storage position is equal to the difference between the first storage space and the residual storage space;
and determining all data starting from the copy starting storage position in the preset memory as the data to be copied.
10. The apparatus of claim 9, further comprising a deletion module, wherein,
the storage module is further configured to copy, to a preset cache, data from the starting storage location of the video memory to the copying starting storage location before the storage module starts to store the data to be copied from the starting storage location of the video memory;
and the deleting module is used for deleting all data in the video memory.
CN201611129240.7A 2016-12-09 2016-12-09 Display method and device Active CN108614674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611129240.7A CN108614674B (en) 2016-12-09 2016-12-09 Display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611129240.7A CN108614674B (en) 2016-12-09 2016-12-09 Display method and device

Publications (2)

Publication Number Publication Date
CN108614674A CN108614674A (en) 2018-10-02
CN108614674B true CN108614674B (en) 2021-04-30

Family

ID=63657285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611129240.7A Active CN108614674B (en) 2016-12-09 2016-12-09 Display method and device

Country Status (1)

Country Link
CN (1) CN108614674B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5706034A (en) * 1990-07-27 1998-01-06 Hitachi, Ltd. Graphic processing apparatus and method
CN1968420A (en) * 2005-11-14 2007-05-23 联发科技股份有限公司 Methods of image processing for video encoder and decoder
CN101059949A (en) * 2007-04-03 2007-10-24 广东威创日新电子有限公司 Mass image data compression, storage and display method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8555099B2 (en) * 2006-05-30 2013-10-08 Ati Technologies Ulc Device having multiple graphics subsystems and reduced power consumption mode, software and methods
JP2009169071A (en) * 2008-01-16 2009-07-30 Sony Corp Display device
CN102855196B (en) * 2011-06-28 2017-07-25 上海聚力传媒技术有限公司 A kind of method, device and equipment for being used to new display unit is presented
CN103455292B (en) * 2012-05-28 2016-09-21 展讯通信(上海)有限公司 Business datum display processing method and device, subscriber equipment
CN103035219B (en) * 2012-12-25 2015-10-28 广东威创视讯科技股份有限公司 The reading/writing method of dot matrix type liquid crystal display and device
CN104536658B (en) * 2014-12-12 2017-12-29 天津三星通信技术研究有限公司 The apparatus and method of snapshot picture are generated in the terminal
CN106095366B (en) * 2016-06-07 2019-01-15 北京小鸟看看科技有限公司 A kind of method, apparatus and virtual reality device shortening picture delay

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5706034A (en) * 1990-07-27 1998-01-06 Hitachi, Ltd. Graphic processing apparatus and method
CN1968420A (en) * 2005-11-14 2007-05-23 联发科技股份有限公司 Methods of image processing for video encoder and decoder
CN101059949A (en) * 2007-04-03 2007-10-24 广东威创日新电子有限公司 Mass image data compression, storage and display method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
eDRAM-based Tiered-Reliability Memory with applications to low-power frame buffers;K. Cho et al.;《2014 IEEE/ACM International Symposium on Low Power Electronics and Design (ISLPED)》;20140813;全文 *
应用动态生成树的GPU显存数据复用优化;李亮 等;《西安交通大学学报》;20131031;第47卷(第10期);全文 *

Also Published As

Publication number Publication date
CN108614674A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN109542382B (en) Display method of handwriting input content, electronic equipment and computer storage medium
CN106547624B (en) Android-based picture loading method and device
JP6888019B2 (en) Memory access command transfer descriptor
US20050012753A1 (en) Systems and methods for compositing graphics overlays without altering the primary display image and presenting them to the display on-demand
CN107608588B (en) Display layer, display method, display system and operating system
CN106648602B (en) Page loading method
CN108614674B (en) Display method and device
CN113705156A (en) Character processing method and device
TWI554975B (en) Graphic remoting system with masked dma and graphic processing method
CN111258434A (en) Method, device, equipment and storage medium for inserting pictures into chat interface
CN107506119B (en) Picture display method, device, equipment and storage medium
CN111414104A (en) Electronic map local display method and device
JPH0646378B2 (en) Computer display
CN108073338A (en) Cursor display method and system
CN110825991A (en) Picture processing method and picture processing device
CN111292392A (en) Unity-based image display method, apparatus, device and medium
US11886893B2 (en) Method and device for capturing screen and terminal
JP5613249B2 (en) Image generating apparatus and method
CN110223369B (en) Frame buffer write-back method and device of TBR architecture and computer storage medium
CN117237508A (en) Pixel texture value loading method, device, equipment and storage medium
JP5669199B2 (en) Image drawing apparatus, image drawing method, and program
JP2001084354A (en) Image processor, image management method therefor and computer readable storage medium
US20200410917A1 (en) Electronic Display Device And Electronic Display Method
CN117666849A (en) Top display method and device, electronic equipment and readable storage medium
JPH08123651A (en) Multiwindow display device

Legal Events

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

Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant after: Loongson Zhongke Technology Co.,Ltd.

Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant before: LOONGSON TECHNOLOGY Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant