CN109743453B - Split screen display method and device - Google Patents

Split screen display method and device Download PDF

Info

Publication number
CN109743453B
CN109743453B CN201811630629.9A CN201811630629A CN109743453B CN 109743453 B CN109743453 B CN 109743453B CN 201811630629 A CN201811630629 A CN 201811630629A CN 109743453 B CN109743453 B CN 109743453B
Authority
CN
China
Prior art keywords
display
content
displayed
area
engine
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
CN201811630629.9A
Other languages
Chinese (zh)
Other versions
CN109743453A (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.)
Mobvoi Information Technology Co Ltd
Original Assignee
Mobvoi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mobvoi Information Technology Co Ltd filed Critical Mobvoi Information Technology Co Ltd
Priority to CN201811630629.9A priority Critical patent/CN109743453B/en
Publication of CN109743453A publication Critical patent/CN109743453A/en
Application granted granted Critical
Publication of CN109743453B publication Critical patent/CN109743453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a split screen display method and a split screen display device, wherein the method is applied to electronic equipment comprising at least two display engines, and comprises the following steps: obtaining content to be displayed; determining whether there is a display engine in an idle state among the at least two display engines; if yes, determining a target display engine corresponding to the content to be displayed from the display engines in the idle state; if not, determining a target display engine corresponding to the content to be displayed from the at least two display engines; and sending the content to be displayed to the target display engine so that the target display engine displays the content to be displayed in a target display area. In this way, the plurality of contents to be displayed can be processed in different display engines, and the display speed of the contents to be displayed can be improved.

Description

Split screen display method and device
Technical Field
The embodiment of the invention relates to the technical field of intelligent terminals, in particular to a split screen display method and a split screen display device.
Background
With the continuous development of the technology, the functions of the intelligent terminal are more and more diversified. When the intelligent terminal implements diversified functions, the content to be displayed of the application program corresponding to the functions of the intelligent terminal, for example, a User Interface (UI) corresponding to the application program, is often displayed on the display screen by means of the display screen of the intelligent terminal, so that a User can use the functions of the intelligent terminal.
However, sometimes a user needs to use multiple functions of the smart terminal at the same time, which requires the smart terminal to simultaneously start multiple applications, so that the user interfaces corresponding to the multiple applications are simultaneously displayed on the display screen. Therefore, the display screen needs to display a plurality of user interfaces at the same time, so that the display speed of the user interfaces is too low, and even the display errors of the user interfaces can be caused, thereby reducing the display effect of the user interfaces and influencing the user experience.
Disclosure of Invention
In view of the foregoing problems, an object of the embodiments of the present invention is to provide a method and an apparatus for split-screen display, so as to solve the problems of too slow display speed of a user interface and display errors of the user interface when a display screen displays a plurality of user interfaces at the same time.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a split-screen display method, which is applied to an electronic device including at least two display engines, where the method includes: obtaining content to be displayed; determining whether there is a display engine in an idle state among the at least two display engines; if yes, determining a target display engine corresponding to the content to be displayed from the display engines in the idle state; if not, determining a target display engine corresponding to the content to be displayed from the at least two display engines; sending the content to be displayed to the target display engine so that the target display engine displays the content to be displayed in a target display area, wherein the target display area is a display area corresponding to the content to be displayed in at least two pre-divided display areas of a display screen of the electronic device.
In a second aspect, an embodiment of the present invention provides a split-screen display apparatus, which is applied in an electronic device including at least two display engines, where the apparatus includes: a receiving module configured to obtain content to be displayed; a determination module configured to determine whether there is a display engine in an idle state among the at least two display engines; the configuration module is configured to determine a target display engine corresponding to the content to be displayed from the display engines in the idle state if the target display engine exists; if not, determining a target display engine corresponding to the content to be displayed from the at least two display engines; the sending module is configured to send the content to be displayed to the target display engine so that the target display engine displays the content to be displayed in a target display area, wherein the target display area is a display area corresponding to the content to be displayed in at least two pre-divided display areas of a display screen of the electronic device.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the steps of the split-screen display method.
In a fourth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: at least one processor; and at least one memory, bus connected with the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory so as to execute the steps of the split-screen display method.
After obtaining the content to be displayed, the split-screen display method and the split-screen display device provided by the embodiment of the invention firstly determine whether a display engine in an idle state exists in at least two display engines, then if the display engine in the idle state exists, determine a target display engine corresponding to the content to be displayed from the display engines in the idle state, if the display engine in the idle state does not exist, determine the target display engine corresponding to the content to be displayed from the at least two display engines, and finally send the content to be displayed to the target display engine so that the target display engine displays the content to be displayed in the target display area. Therefore, the target display engine corresponding to the content to be displayed is determined from the plurality of display engines, so that the plurality of content to be displayed can be processed in different display engines, a large amount of content to be displayed is prevented from being processed by a certain display engine at the same time, the display speed of the content to be displayed can be increased, and meanwhile, the display error of the content to be displayed in the display screen can be avoided.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram of a split-screen display system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a split-screen display method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a distribution of a plurality of blank display areas according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a split-screen display device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a split-screen display method, which is applied to electronic equipment comprising at least two display engines. Specifically, the electronic device may be a personal mobile device such as a smart phone and a tablet personal computer, or may also be an intelligent home device such as a smart television, and of course, the electronic device may also be another intelligent device that has a display screen and is capable of installing an application program. The specific form of the electronic device is not limited herein.
In practical application, a user needs to simultaneously display user interfaces corresponding to a plurality of application programs on a display screen of an electronic device, and then the electronic device determines display engines corresponding to the plurality of application programs from at least two display engines, and sends to-be-displayed contents corresponding to the plurality of application programs to the plurality of display engines, so that the plurality of display engines display the to-be-displayed contents on the display screen, that is, the user interfaces corresponding to the plurality of application programs are displayed on the display screen. Because a plurality of display engines respectively process a plurality of contents to be displayed in the same time, the display speed of a plurality of user interfaces can be improved, and the display errors of the plurality of user interfaces can be avoided.
It should be noted that the execution main body of the split-screen display method may be a Central Processing Unit (CPU) in the electronic device, or may be a device with data Processing capability other than the CPU, and is not limited herein.
Fig. 1 is a schematic structural diagram of a split-screen display system in an embodiment of the present invention, and referring to fig. 1, the split-screen display system 100 may include: a processor 101, a display engine 102, and a display screen 103.
Specifically, after obtaining the content to be displayed, the processor determines a target display engine corresponding to the content to be displayed from the plurality of display engines, and sends the content to be displayed to the target display engine, and the target display engine displays the content to be displayed in a target display area of the display screen.
The Display screen may be a Display screen in a Liquid Crystal Display (LCD), and is not limited herein.
The following describes in detail the split-screen display method in the embodiment of the present invention.
Fig. 2 is a schematic flow chart of a split-screen display method in an embodiment of the present invention, and referring to fig. 2, the split-screen display method may include:
s201: and obtaining the content to be displayed.
The display content refers to display data corresponding to a user interface displayed on a display screen, and the content to be displayed refers to display data corresponding to a user interface which a user needs to display on the display screen, and the display data are data in an application program.
Specifically, in the smart phone, the content to be displayed is display data corresponding to different APPs, for example: the display data of WeChat, Youkou, Taobao, and the like, and correspondingly, the display screen displays a chat interface, a video interface, a commodity interface, and the like. In a personal computer, the contents to be displayed are display data corresponding to different software, such as: the display data of the search browser, the display data of the flight video, the display data of Office software and the like are displayed on the display screen, and correspondingly, the interface of a webpage, the interface of a video, the interface of Word and the like are displayed on the display screen. The specific content of the content to be displayed is not limited herein.
It should be noted that, when a user starts an application program, the processor can receive display data corresponding to the application program, and display a user interface corresponding to the display data on the display screen.
S202: it is determined whether there is a display engine in an idle state among the at least two display engines.
Here, the at least two display engines are display engines previously provided on a Printed Circuit Board (PCB). The number of the display engines on the PCB can be set according to the number of the display areas of the display screen and can also be set according to the actual requirements of users. The specific number of display engines is not limited herein.
Illustratively, if the number of the display areas of the display screen is four, the following are respectively: display area a, display area B, display area C and display area D, then, four display engines can be preset on the PCB, which are: the display engine A, the display engine B, the display engine C and the display engine D enable the display engine A to process the content to be displayed which needs to be displayed in the display area A, the display engine B to process the content to be displayed which needs to be displayed in the display area B, the display engine C to process the content to be displayed which needs to be displayed in the display area C, and the display engine D to process the content to be displayed which needs to be displayed in the display area D.
Furthermore, if the user needs to save space on the PCB, two display engines can be preset on the PCB, respectively: the display engine a and the display engine B, in this way, the display engine a can be made to process the contents to be displayed which need to be displayed on the display area a and the display area B, and the display engine B can be made to process the contents to be displayed which need to be displayed on the display area C and the display area D.
Next, a description will be given of how to determine whether there is a display engine in an idle state from among at least two display engines.
Specifically, the processor may obtain a return value of each display engine, and determine whether the display engine corresponding to the return value is in an idle state based on the return value. If the display engine corresponding to a certain return value is determined to be in an idle state, determining that the display engine in the idle state exists in at least two display engines; and if the display engines in the idle state are not determined after all the return values are detected, determining that the display engines in the idle state do not exist in at least two display engines.
Illustratively, the at least two display engines include: display engine a, display engine B, display engine C, and display engine D. The return value is '1', which indicates that the display engine corresponding to the return value is currently in a non-idle state; the return value is "0", which indicates that the display engine corresponding to the return value is currently in an idle state.
Specifically, the processor first obtains a return value of the display engine a, and determines that the display engine a is currently in a non-idle state if the return value is identified as "1"; and continuing to acquire the return value of the display engine B, and determining that the display engine B is in an idle state when the return value is identified to be 0. At this time, it is determined that one display engine B in an idle state exists, and it is determined that there is a display engine in an idle state, which is the display engine B, among the at least two display engines, and thus, it is not necessary to continue to determine whether the display engine C and the display engine D are in an idle state. The content to be displayed is directly sent to the display engine B, so that the time for the processor to determine the display engine C and the display engine D can be saved, and the display speed of the content to be displayed can be further improved.
Or the processor respectively obtains the return values of the display engine a, the display engine B, the display engine C and the display engine D, which are respectively: "1", "0", and "1", it is determined that the display engine B and the display engine C are currently in an idle state, and it is determined that there are display engines in an idle state, namely, the display engine B and the display engine C, among the at least two display engines. In this way, all display engines in the idle state in the current electronic device may be determined so as to determine the display engine most suitable for processing the content to be displayed, for example, the configuration of the display engine C is higher than that of the display engine B, and then, it is finally determined that the display engine C processes the content to be displayed.
Finally, if it is detected that the return values of the display engine a, the display engine B, the display engine C, and the display engine D are all "1", it is determined that there is no display engine in an idle state among the at least two display engines.
S203: if yes, determining a target display engine corresponding to the content to be displayed from the display engines in the idle state; and if not, determining a target display engine corresponding to the content to be displayed from at least two display engines.
First, how to determine a target display engine corresponding to content to be displayed from among display engines in an idle state is described.
Here, the display engine in the idle state includes the following two cases:
in the first case: there is only one display engine in the idle state.
Then the one display engine in the idle state is determined as the target display engine.
In the second case: there are at least two display engines in the idle state.
Here, the display engine in the idle state has the following two cases:
the first condition is as follows: and at least two display engines in the idle state do not have a display engine corresponding to the content type of the content to be displayed.
Then, one display engine may be arbitrarily determined from the at least two display engines as a target display engine, or one display engine may be determined from the at least two display engines as a target display engine according to a predetermined condition.
Specifically, the preset condition may be to determine the highest configured display engine as the target display engine. Therefore, the content to be displayed can be sent to the display engine which is in the best current configuration and is in the idle state for processing, and the display speed and the display effect of the content to be displayed can be further improved.
Case two: and the display engines corresponding to the content types of the contents to be displayed exist in the at least two display engines in the idle state.
Then, the target display engine is determined according to the pre-stored correspondence between the content type and the display engine. The step of determining the target display engine may specifically be:
the method comprises the following steps: based on the content to be displayed, a content type of the content to be displayed is determined.
Step two: and determining a display engine corresponding to the content type of the content to be displayed from at least two display engines in an idle state according to the corresponding relation between the content type and the display engine which is stored in advance.
Step three: and determining the display engine corresponding to the content type of the content to be displayed as a target display engine.
It should be noted that, because the correspondence between the content type and the display engine is to better correspond the display engine capable of processing the content to be displayed of a certain content type to the content type, according to the correspondence, a display engine most suitable for processing the content to be displayed can be determined for the content to be displayed, and the display effect of the content to be displayed is further improved.
For example, for the content a to be displayed, the processing effect of the display engine a on the content to be displayed of the content type, for example, the content a to be displayed, is good, and the processing effect of the display engine B on the content to be displayed of the content type, for example, the content a to be displayed, is general. In the above correspondence, what the content type of the content a to be displayed corresponds to is the display engine a. When at least two display engines in idle state are display engine A and display engine B, then according to the above-mentioned corresponding relation, the display engine A is determined as the target display engine of the content A to be displayed.
At this point, the target display engine corresponding to the content to be displayed is determined from the display engines in the idle state.
Next, how to determine a target display engine corresponding to content to be displayed from among at least two display engines will be described.
Here, since there is no display engine in an idle state in the electronic device, it is necessary to determine a target display engine corresponding to the content to be displayed among all display engines of the electronic device.
Specifically, the determining the target display engine may include the following steps:
the method comprises the following steps: based on the content to be displayed, a content type of the content to be displayed is determined.
Step two: and determining a display engine corresponding to the content type of the content to be displayed from at least two display engines according to the corresponding relation between the content type and the display engine which is stored in advance.
Step three: and determining the display engine corresponding to the content type of the content to be displayed as a target display engine.
It should be noted that the step of determining the target display engine is similar to the step of determining the target display engine in the second case, except that the step of determining the target display engine is performed from at least two display engines, and the step of determining the target display engine is performed from at least two display engines in an idle state in the second case. Therefore, for the specific implementation of the above steps, reference may be made to the steps in the second case, which is not described herein again.
Here, the determination of the content type of the content to be displayed in the first step needs to be described in detail:
in general, the content types may include: instant messaging type, video type, web page type, etc. The specific category of the content type is not limited herein.
It should be noted that the contents to be displayed that are not included in the above content types, or the contents to be displayed that have a low usage rate may be all classified into other types, so that all the contents to be displayed have corresponding display areas on the display screen, and the contents to be displayed do not need to be classified with too much effort.
Specifically, the content type of the content to be displayed may be determined according to a name (name) of the content to be displayed. The content type of the content to be displayed can also be determined according to the compression mode of the content to be displayed. Of course, the content type of the content to be displayed may also be determined according to other attributes of the content to be displayed. The specific content according to which the content type of the content to be displayed is determined is not limited herein.
Specifically, in order to quickly and accurately determine the content type of the content to be displayed, the first step may include:
step A: and extracting the application identifier of the application program generating the content to be displayed from the file name of the content to be displayed.
It should be noted that the file names of the contents to be displayed all have application identifiers of application programs corresponding to the contents to be displayed. For example: com, wherein the 'weixin' is an application identifier of the application program of the WeChat, and the extracted application identifier of the 'weixin' is the application identifier of the application program of the WeChat.
And B: based on the application identification, the application type to which the application program belongs is determined.
Here, the application type corresponding to the application identifier may be determined by a correspondence relationship between the application identifier and the application type. For example, the instant chat tools such as QQ and wechat are corresponding to the instant communication type, and the favorite and the love art are corresponding to the video type, and the content type is determined to be the instant communication type according to the application identifier of "weixin". The specific division form of the correspondence between the application identifier and the application type is not limited herein.
The corresponding relation can be stored in a memory of the electronic device, and when the processor needs to use the corresponding relation, the processor can immediately acquire the corresponding relation from the memory, so that the identification efficiency of the processor on the application identifier can be improved. The corresponding relation can also be stored in a storage medium outside the electronic device, and when the processor needs to use the corresponding relation, the processor acquires the corresponding relation from the storage medium outside the electronic device through a communication device in the electronic device, so that the corresponding relation can be prevented from occupying excessive memory of the storage of the electronic device.
And C: and determining the application type of the application program as the content type of the content to be displayed.
At this point, a target display engine corresponding to the content to be displayed is determined from the at least two display engines.
Finally, it should be noted that, if there is a display engine in an idle state in at least two display engines, a target display engine is first determined from the display engines in the idle state.
It should also be noted that the display engine refers to a device capable of displaying display data on a display screen. Specifically, the display engine may be a hardware synthesizer, such as a Graphics Processing Unit (GPU). The specific form of the display engine is not limited herein.
S204: and sending the content to be displayed to the target display engine so that the target display engine displays the content to be displayed in the target display area.
Specifically, the target display engine can display the content to be displayed in the target display area. The target display area is a display area corresponding to the content to be displayed in at least two display areas which are divided in advance of a display screen of the electronic equipment.
At this point, the content to be displayed is quickly displayed in the target display area of the display screen by the target display engine.
As can be seen from the above, in the split-screen display method provided in the embodiment of the present invention, after obtaining the content to be displayed, first, it is determined whether a display engine in an idle state exists in at least two display engines, then, if the display engine in the idle state exists, a target display engine corresponding to the content to be displayed is determined from the display engines in the idle state, if the display engine in the idle state does not exist, the target display engine corresponding to the content to be displayed is determined from the at least two display engines, and finally, the processor sends the content to be displayed to the target display engine, so that the target display engine displays the content to be displayed in the target display area. Therefore, the target display engine corresponding to the content to be displayed is determined from the plurality of display engines, so that the plurality of content to be displayed can be processed in different display engines, a large amount of content to be displayed is prevented from being processed by a certain display engine at the same time, the display speed of the content to be displayed can be increased, and meanwhile, the display error of the content to be displayed in the display screen can be avoided.
Based on the foregoing embodiment, in another embodiment of the present invention, in order to further improve the display effect of the content to be displayed on the display screen, if there is no display engine in the idle state in step S203, determining, from at least two display engines, a target display engine corresponding to the content to be displayed may include:
s2031: based on the content to be displayed, a content type of the content to be displayed is determined.
For the specific manner of determining the content type of the content to be displayed, reference may be made to the specific description related to the above step one, and therefore, the description is omitted here for brevity.
S2032: and determining a display engine corresponding to the content type of the content to be displayed from at least two display engines according to the corresponding relation between the content type and the display engine which is stored in advance.
Here, the correspondence relationship between the content type and the display engine may be set according to the characteristics of the display engine, for example, a display engine capable of efficiently processing a video type is associated with the video type; or may be set by the user in the electronic device, and is not particularly limited herein.
Illustratively, the electronic device includes two display engines, respectively: the display engine A and the display engine B, wherein the display engine A has a better processing effect on the display content of the video type, and in the corresponding relation, the display engine A is the display engine A corresponding to the video type. And when the content type of the content to be displayed is determined to be the video type, determining the display engine corresponding to the content to be displayed to be a display engine A according to the corresponding relation, determining the display engine A to be a target display engine, sending the content to be displayed to the display engine A for processing, and further improving the display effect of the content to be displayed in the display screen.
S2033: and determining the display engine corresponding to the content type of the content to be displayed as a target display engine.
Thus, a target display engine corresponding to the content to be displayed is determined.
It should be noted that, unlike the method for determining the target display engine in the foregoing embodiment, in this embodiment, it is not necessary to determine whether a display engine in an idle state exists in at least two display engines, but after obtaining the content to be displayed, the target display engine is determined from the at least two display engines according to the pre-stored correspondence between the content type and the display engine, and the content to be displayed is sent to the target display engine regardless of whether the target display engine is currently in an idle state. Because the target display engine has the best effect of processing the content to be displayed and the time for determining whether the display engine in the idle state exists in at least two display engines is avoided, the display effect of the content to be displayed can be improved, and simultaneously, the display speed of the content to be displayed can also be improved.
As can be seen from the above, in the embodiment of the present invention, a target display engine corresponding to the content type of the content to be displayed is determined according to the corresponding relationship between the content type and the display engine, and then the content to be displayed is sent to the target display engine, so that the target display engine displays the content to be displayed in the target display area, and the display effect of the content to be displayed in the display screen is further improved.
Based on the foregoing embodiment, in another embodiment of the present invention, in order to enable the target display engine to accurately display the content to be displayed in the target display area, step S204 may include:
s2041: and determining the area identification of the target display area corresponding to the content to be displayed according to a preset strategy.
The preset policy may be a correspondence between a display area and an area identifier, which are pre-stored in the electronic device.
Here, the area identifier is used to indicate a display area, and the area identifiers corresponding to different display areas are different so as to distinguish the different display areas.
Specifically, the region identifier may be a number, such as "1", "2", etc., or a letter, such as "a", "b", etc., or a symbol, such as "#", "", etc. The specific form of the region identifier is not limited herein.
For example, the corresponding relationship between the display area and the area identifier may be a table, where the table includes two rows and two columns, the first column stores the display area, the second column stores the area identifier, and each row stores a different display area and the area identifier of the display area.
Specifically, the processor determines the target display area, then finds the target display area from the corresponding relationship between the display area and the area identifier, and then determines the area identifier of the target display area from the second column of the same row, so that the area identifier of the target display area can be determined.
S2042: and sending the content to be displayed and the area identification of the target display area to a target display engine.
Here, sending the content to be displayed and the area identifier of the target display area to the target display engine may be sending the area identifier of the target display area to the target display engine first, and then sending the content to be displayed to the target display engine; or packaging the content to be displayed and the area identification of the target display area and then sending the packaged content and the area identification of the target display area to the target display engine; or adding the area identifier of the target display area into the content to be displayed, and then sending the content to be displayed with the area identifier of the target display area added to the content to be displayed to the target display engine. The specific transmission form for transmitting the content to be displayed and the area identifier of the target display area to the target display engine is not limited herein.
The content to be displayed and the area identifier of the target display area are sent to the target display engine, so that the target display engine displays the content to be displayed in the target display area of the display screen according to the area identifier of the target display area, and the accuracy of displaying the content to be displayed in the target display area can be improved.
As can be seen from the above, in the embodiment of the present invention, according to a preset policy, an area identifier of a target display area corresponding to a content to be displayed is determined; and sending the content to be displayed and the area identification of the target display area to a target display engine. Therefore, the target display engine can accurately display the content to be displayed in the display area according to the area identifier of the target display area by determining the area identifier of the target display area.
Based on the foregoing embodiment, in another embodiment of the present invention, when there is a display area not displaying the display content in the display screen, in order to improve the utilization rate of the display screen, step S2041 may specifically include:
s2041 a: it is determined whether there is an empty display area of the at least two display areas where no display content is displayed.
Here, it is determined whether there is an empty display area among the at least two display areas, and the return value of each display area may be detected by acquiring the return value of each display area to determine whether there is an empty display area among the at least two display areas. In this case, it is determined whether the display area is an empty display area by obtaining the return value of the display area in the prior art, and therefore details are not described herein.
S2041 b: if the display area exists, determining the area identifier of the empty display area according to the corresponding relation between the pre-stored display area and the area identifier; and determining the area identification of the empty display area as the area identification of the target display area.
Here, the blank display area mainly includes the following two cases:
in the first case: only one empty display area exists in the display screen.
Then, the empty display area is determined as a target display area, an area identifier of the target display area, namely the area identifier of the empty display area, is determined from the corresponding relationship between the display area and the area identifier, and the area identifier of the empty display area is further sent to a target display engine, so that the content to be displayed is displayed in the empty display area, and the utilization rate of the display screen can be improved.
In the second case: there are at least two empty display areas in the display screen.
The area identification of the target display area may then be determined in two ways:
the first method is as follows: and randomly determining one empty display area from the at least two empty display areas as a target display area, and determining the area identifier of the empty display area from the corresponding relation between the display area and the area identifier as the area identifier of the target display area.
Therefore, the next content to be displayed can be continuously displayed in other empty display areas, and the display screen can display more display contents at the same time.
The second method comprises the following steps: and determining a plurality of empty display areas from the at least two empty display areas as target display areas, and determining area identifications of the plurality of empty display areas from the corresponding relation between the display areas and the area identifications as the area identifications of the target display areas.
It should be noted here that the plurality of blank display regions as the target display region are blank display regions that can be connected together and can form a rectangular region.
Exemplarily, fig. 3 is a schematic diagram of a distribution of a plurality of blank display areas in an embodiment of the present invention, and referring to fig. 3, a display area in a display screen includes: the display area 31, the display area 32, the display area 33, and the display area 34, wherein the display area 32, the display area 33, and the display area 34 are empty display areas, then the target display area may be an area formed by the display area 32 and the display area 34, and the target display area may also be an area formed by the display area 33 and the display area 34. In this way, the display area in the display screen can be utilized to the maximum extent.
As can be seen from the above, in the embodiment of the present invention, whether there is an empty display area in at least two display areas is determined, and if there is an empty display area, an area identifier of the target display area is determined from the empty display area according to a pre-stored correspondence between the display area and the area identifier. Therefore, the utilization rate of the display screen can be improved.
Based on the foregoing embodiment, in another embodiment of the present invention, in order to display the content to be displayed on the specific display area, specifically, step S2041 may include:
s2041 c: based on the content to be displayed, a content type of the content to be displayed is determined.
Here, the method for determining the content type of the content to be displayed based on the content to be displayed may refer to the method for determining the content type of the content to be displayed based on the content to be displayed in the foregoing embodiment, and therefore, details are not described herein again.
S2041 d: and determining the area identifier corresponding to the content type of the content to be displayed according to the pre-established corresponding relationship between the content type and the area identifier.
The corresponding relationship between the content type and the area identifier is preset in the electronic device, and may be preset when the electronic device leaves a factory, or may be preset in the electronic device by a user according to an actual display requirement of the user, and is not specifically limited herein.
Here, the specific correspondence that the user sets in advance the content type and the area identifier in the electronic device according to the actual display requirement of the user may be: the processor displays prompt information in the display screen, so that a user can divide at least two display areas of the display screen, for example: the user inputs '4' in the prompt message, and then the display area of the display screen is divided into 4 display areas; when the processor receives a user operation for indicating distribution information of the display area, the processor may display the divided display area and a list of candidate content types in the display screen, for example: the divided display areas can be displayed on the display area of the display screen, and each display area is provided with a candidate content type list; or a list is displayed in a display area of the display screen, wherein the first column of the list comprises an identifier of the display area, the second column of the list comprises a candidate content type list, and the identifier of each display area corresponds to one candidate content type list so that a user can match the divided display area with the content type; and finally, when the processor receives user operation for indicating the corresponding relation between the content type and the display area, determining the corresponding relation between the content type and the area identifier according to the corresponding relation between the display area and the area identifier. Therefore, the processor can display the content to be displayed on the display area required to be displayed by the user according to the personalized requirement of the user.
S2041 e: and determining the area identifier corresponding to the content type of the content to be displayed as the area identifier of the target display area.
Therefore, the area identifier of the target display area where the content to be displayed needs to be displayed can be determined, and the content to be displayed can be displayed on the specific display area.
In addition, if the target display area currently displays the display content, the target display engine may display the content to be displayed on the target display area according to the area identifier of the target display area to cover the currently displayed display content, and if there is an empty display area in the display screen, may display the currently displayed display content in the empty display area. Or generating a piece of user selection information for the user to select whether to display the currently displayed display content or the content to be displayed on the target display area. And is not particularly limited herein.
As can be seen from the above, in the embodiment of the present invention, by determining the content type of the content to be displayed, and according to the correspondence between the content type and the area identifier, the area identifier corresponding to the content to be displayed is determined, and then the content to be displayed is displayed on the display area corresponding to the determined area identifier, so that the content to be displayed can be displayed on the specific display area.
Based on the foregoing embodiment, in another embodiment of the present invention, when a plurality of contents to be displayed and area identifiers corresponding to the contents to be displayed are simultaneously sent to the target display engine, the target display engine may incorrectly correspond the plurality of contents to be displayed and the area identifiers corresponding to the contents to be displayed, so that the contents to be displayed are displayed in the incorrect display area. In order to avoid that the content to be displayed is displayed in the wrong display area, step S2042 may include:
s2042 a: and adding the area identification of the target display area into the content to be displayed.
Here, the area identifier of the target display area may be added to the frame header of the display data corresponding to the content to be displayed, so that before the target display engine parses the content to be displayed, it can be determined on which display area the content to be displayed needs to be displayed.
S2042 b: and sending the content to be displayed added with the area identification of the target display area to a target display engine.
For example, the content a to be displayed needs to be displayed in the display area corresponding to the area identifier a, and the content B to be displayed needs to be displayed in the display area corresponding to the area identifier B. At this time, the area identifier a is added into the content a to be displayed, and the area identifier B is added into the content B to be displayed, so that the content a to be displayed and the content B to be displayed are simultaneously sent to the target display engine, the target display engine can identify the area identifier a when analyzing the content a to be displayed, the area identifier a is corresponding to the content a to be displayed, the area identifier B can be identified when analyzing the content B to be displayed, and the area identifier B is corresponding to the content B to be displayed. Therefore, the target display engine can be prevented from displaying the content A to be displayed in the display area corresponding to the area identifier b, and the display accuracy of the target display engine is improved.
As can be seen from the above, in the embodiment of the present invention, the area identifier of the target display area is added to the content to be displayed, so that the area identifier and the content to be displayed are integrated, and then the content to be displayed, to which the area identifier is added, is sent to the target display engine, so that the target display engine determines the corresponding relationship between the content to be displayed and the area identifier when analyzing the content to be displayed, and then displays the content to be displayed in the display area corresponding to the area identifier, which can prevent the target display engine from corresponding the content to be displayed to the wrong area identifier, and further prevent the content to be displayed from being displayed in the wrong display area.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention further provides a split-screen display device, where an embodiment of the device corresponds to the foregoing method embodiment, and for convenience of reading, details of the foregoing method embodiment are not repeated in this device embodiment one by one, but it should be clear that the device in the embodiment of the present invention can correspondingly implement all the contents in the foregoing method embodiment.
Fig. 4 is a schematic structural diagram of a split-screen display device in an embodiment of the present invention, and referring to fig. 4, the split-screen display device 400 may include: a receiving module 401 configured to obtain content to be displayed; a determining module 402 configured to determine whether there is a display engine in an idle state among the at least two display engines; a configuration module 403 configured to determine, if any, a target display engine corresponding to the content to be displayed from the display engines in the idle state; if the target display engine does not exist, determining a target display engine corresponding to the content to be displayed from at least two display engines; the sending module 404 is configured to send the content to be displayed to the target display engine, so that the target display engine displays the content to be displayed in a target display area, where the target display area is a display area corresponding to the content to be displayed in at least two pre-divided display areas of a display screen of the electronic device.
In other embodiments of the present invention, the configuration module is configured to determine, if any, a target display engine corresponding to the content to be displayed from the display engines in the idle state; if not, determining the content type of the content to be displayed based on the content to be displayed; determining a display engine corresponding to the content type of the content to be displayed from at least two display engines according to the corresponding relation between the content type stored in advance and the display engines; and determining the display engine corresponding to the content type of the content to be displayed as a target display engine.
In other embodiments of the present invention, the sending module is configured to determine, according to a preset policy, an area identifier of a target display area corresponding to the content to be displayed; and sending the content to be displayed and the area identifier of the target display area to a target display engine so that the target display engine displays the content to be displayed in the target display area according to the area identifier of the target display area.
In other embodiments of the present invention, the transmitting module is configured to determine whether there is an empty display area in the at least two display areas where no display content is displayed; if the display area exists, determining the area identifier of the empty display area according to the corresponding relation between the pre-stored display area and the area identifier; and determining the area identification of the empty display area as the area identification of the target display area.
In other embodiments of the present invention, the sending module is configured to determine a content type of the content to be displayed based on the content to be displayed; determining an area identifier corresponding to the content type of the content to be displayed according to a pre-established corresponding relation between the content type and the area identifier; and determining the area identifier corresponding to the content type of the content to be displayed as the area identifier of the target display area.
In other embodiments of the present invention, the sending module is configured to add the area identifier of the target display area to the content to be displayed; and sending the content to be displayed added with the area identification of the target display area to a target display engine.
Since the split-screen display device described in the embodiment of the present invention is a device capable of executing the split-screen display method described in the embodiment of the present invention, based on the split-screen display method described in the embodiment of the present invention, a person skilled in the art can understand the specific implementation manner and various variations of the split-screen display device described in the embodiment of the present invention, and therefore, how to implement the split-screen display method described in the embodiment of the present invention by the split-screen display device is not described in detail herein. The device adopted by the method for implementing the split-screen display in the embodiment of the invention is within the scope of the protection of the application.
In practical application, the split-screen display device can be applied to electronic equipment. The electronic device may be implemented in various forms. For example, the electronic device described in the embodiment of the present invention may include a personal mobile device such as a smart phone and a tablet computer, and may also include a smart home device such as a smart television. Here, the embodiment of the present invention is not particularly limited.
Based on the same inventive concept, the embodiment of the invention also provides electronic equipment. Fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present invention, and referring to fig. 5, the electronic device 500 includes: at least one processor 501; and at least one memory 502, bus 503 connected to processor 501; the processor 501 and the memory 502 complete communication with each other through the bus 503; the processor 501 is configured to call program instructions in the memory 502 to perform the steps of the split-screen display method in one or more embodiments described above.
The embodiment of the invention also provides a processor, wherein the processor is used for running the program, and the split-screen display method in one or more embodiments is executed when the program runs.
The Processor may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like. The Memory may include volatile Memory in a computer readable medium, Random Access Memory (RAM), and/or nonvolatile Memory such as Read Only Memory (ROM) or Flash Memory (Flash RAM), and the Memory includes at least one Memory chip.
Based on the same inventive concept, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the steps of the split-screen display method in one or more embodiments described above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, Compact disk Read-Only Memory (CD-ROM), optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, RAM and/or non-volatile memory, such as ROM or Flash RAM. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. The computer-readable storage medium may be a ROM, a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), among other memories; or flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information and which can be accessed by a computing device; but may also be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A split screen display method is applied to an electronic device comprising at least two display engines, and comprises the following steps:
obtaining contents to be displayed, wherein the contents to be displayed are display data corresponding to different application programs;
determining whether there is a display engine in an idle state among the at least two display engines;
if yes, determining a target display engine corresponding to the content to be displayed from the display engines in the idle state; if not, determining a target display engine corresponding to the content to be displayed from the at least two display engines;
sending the content to be displayed to the target display engine so that the target display engine displays the content to be displayed in a target display area, wherein the target display area is a display area corresponding to the content to be displayed in at least two pre-divided display areas of a display screen of the electronic device.
2. The method according to claim 1, wherein the determining a target display engine corresponding to the content to be displayed from the at least two display engines comprises:
determining the content type of the content to be displayed based on the content to be displayed;
determining a display engine corresponding to the content type of the content to be displayed from the at least two display engines according to the corresponding relation between the content type stored in advance and the display engines;
and determining the display engine corresponding to the content type of the content to be displayed as the target display engine.
3. The method of claim 1, wherein sending the content to be displayed to the target display engine to cause the target display engine to display the content to be displayed in a target display area comprises:
determining an area identifier of a target display area corresponding to the content to be displayed according to a preset strategy;
and sending the content to be displayed and the area identifier of the target display area to the target display engine, so that the target display engine displays the content to be displayed in the target display area according to the area identifier of the target display area.
4. The method according to claim 3, wherein the determining, according to a preset policy, the area identifier of the target display area corresponding to the content to be displayed comprises:
determining whether there is an empty display area in the at least two display areas where no display content is displayed;
if the display area exists, determining the area identifier of the empty display area according to the corresponding relation between the pre-stored display area and the area identifier; and determining the area identification of the empty display area as the area identification of the target display area.
5. The method according to claim 3, wherein the determining, according to a preset policy, the area identifier of the target display area corresponding to the content to be displayed comprises:
determining the content type of the content to be displayed based on the content to be displayed;
determining an area identifier corresponding to the content type of the content to be displayed according to a pre-established corresponding relationship between the content type and the area identifier;
and determining the area identifier corresponding to the content type of the content to be displayed as the area identifier of the target display area.
6. The method of claim 3, wherein sending the content to be displayed and the region identifier of the target display region to the target display engine comprises:
adding the area identification of the target display area into the content to be displayed;
and sending the content to be displayed added with the area identification of the target display area to the target display engine.
7. A split screen display apparatus, applied to an electronic device including at least two display engines, the apparatus comprising:
the display device comprises a receiving module, a display module and a display module, wherein the receiving module is configured to obtain contents to be displayed, and the contents to be displayed are display data corresponding to different application programs;
a determination module configured to determine whether there is a display engine in an idle state among the at least two display engines;
the configuration module is configured to determine a target display engine corresponding to the content to be displayed from the display engines in the idle state if the target display engine exists; if not, determining a target display engine corresponding to the content to be displayed from the at least two display engines;
the sending module is configured to send the content to be displayed to the target display engine so that the target display engine displays the content to be displayed in a target display area, wherein the target display area is a display area corresponding to the content to be displayed in at least two pre-divided display areas of a display screen of the electronic device.
8. The apparatus of claim 7, wherein the configuration module is configured to determine, if any, a target display engine corresponding to the content to be displayed from the display engines in the idle state; if not, determining the content type of the content to be displayed based on the content to be displayed; determining a display engine corresponding to the content type of the content to be displayed from the at least two display engines according to the corresponding relation between the content type stored in advance and the display engines; and determining the display engine corresponding to the content type of the content to be displayed as the target display engine.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor;
and at least one memory, bus connected with the processor;
the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the steps of the split-screen display method according to any one of claims 1 to 6.
CN201811630629.9A 2018-12-29 2018-12-29 Split screen display method and device Active CN109743453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811630629.9A CN109743453B (en) 2018-12-29 2018-12-29 Split screen display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811630629.9A CN109743453B (en) 2018-12-29 2018-12-29 Split screen display method and device

Publications (2)

Publication Number Publication Date
CN109743453A CN109743453A (en) 2019-05-10
CN109743453B true CN109743453B (en) 2021-01-05

Family

ID=66362131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811630629.9A Active CN109743453B (en) 2018-12-29 2018-12-29 Split screen display method and device

Country Status (1)

Country Link
CN (1) CN109743453B (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588530A (en) * 2004-09-03 2005-03-02 威盛电子股份有限公司 Video display device and method with transparent effect
TWI322354B (en) * 2005-10-18 2010-03-21 Via Tech Inc Method and system for deferred command issuing in a computer system
WO2012050560A1 (en) * 2010-10-11 2012-04-19 Hewlett-Packard Development Company, L.P. First and second software stacks and discrete and integrated graphics processing units
CN102662639A (en) * 2012-04-10 2012-09-12 南京航空航天大学 Mapreduce-based multi-GPU (Graphic Processing Unit) cooperative computing method
CN103853512B (en) * 2012-12-03 2017-11-28 联想(北京)有限公司 A kind of method and electronic equipment for realizing split screen
CN203167030U (en) * 2013-03-23 2013-08-28 黄鑫燕 Mobile terminal having double-face screen
CN103226540B (en) * 2013-05-21 2015-08-19 中国人民解放军国防科学技术大学 Based on multi-region structured grid CFD accelerated method on the GPU of grouping multithread
US10096078B2 (en) * 2013-08-13 2018-10-09 Nvidia Corporation Multi GPU interconnect techniques
EP4006727A1 (en) * 2015-05-29 2022-06-01 INTEL Corporation Container access to graphics processing unit resources
CA2974556C (en) * 2016-08-25 2018-06-05 Sas Institute Inc. Compilation for node device gpu-based parallel processing
CN107168782A (en) * 2017-04-24 2017-09-15 复旦大学 A kind of concurrent computational system based on Spark and GPU
CN108932087B (en) * 2018-06-22 2021-01-08 中广热点云科技有限公司 Desktop split screen system for mobile equipment and implementation method thereof

Also Published As

Publication number Publication date
CN109743453A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN108228293B (en) Interface skin switching method and device
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN110222288B (en) Page display method, device and storage medium
CN106227483B (en) Display control method and mobile terminal
CN105183291A (en) Method and system for extracting information in display interface
CN104156305A (en) Application program testing method and device
CN111507063A (en) Text processing method, device and equipment and computer readable storage medium
CN108241515B (en) Application shortcut establishing method and terminal
CN108234489B (en) Live broadcast recommendation information processing method and device and terminal equipment
CN109743453B (en) Split screen display method and device
CN106599045B (en) Request sending method and device
US11468125B2 (en) Resource search method and related product
CN116483737B (en) Data processing method and device, electronic equipment and storage medium
CN112487067A (en) Method, device and storage medium for page display based on data configuration
CN112840305B (en) Font switching method and related product
CN109657317B (en) CPLD pin allocation method, system and equipment
CN105279140B (en) Text display method, server, terminal and system
CN109981873B (en) Address book permission opening method and device and electronic equipment
CN107145375B (en) Kernel loading method, device, system, user terminal and storage medium
CN109144624B (en) Method, storage medium, device and system for displaying unequal height lists in IOS
CN110837335A (en) Method and device for displaying page tag in application, terminal and storage medium
EP2884438A9 (en) Method and device for grouping contacts in social network
CN115004667B (en) Information pushing method, device, electronic equipment and computer readable medium
CN104978179B (en) Application management method and 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
GR01 Patent grant
GR01 Patent grant