CN110569008A - screen data processing method and device and electronic equipment - Google Patents

screen data processing method and device and electronic equipment Download PDF

Info

Publication number
CN110569008A
CN110569008A CN201910809040.3A CN201910809040A CN110569008A CN 110569008 A CN110569008 A CN 110569008A CN 201910809040 A CN201910809040 A CN 201910809040A CN 110569008 A CN110569008 A CN 110569008A
Authority
CN
China
Prior art keywords
data
processor
screen
screen data
display
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.)
Granted
Application number
CN201910809040.3A
Other languages
Chinese (zh)
Other versions
CN110569008B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910809040.3A priority Critical patent/CN110569008B/en
Publication of CN110569008A publication Critical patent/CN110569008A/en
Application granted granted Critical
Publication of CN110569008B publication Critical patent/CN110569008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a screen data processing method and device and electronic equipment. The method comprises the following steps: the method comprises the steps that a first processor acquires first screen data which are synchronized when a second processor transfers the authority for controlling the screen to the first processor, wherein the first screen data are partial data in complete screen data; acquiring second screen data synchronized in advance by the second processor before the permission handover, wherein the second screen data is partial data in the complete screen data; generating complete screen data based on the first screen data and the second screen data; and controlling the screen to display based on the generated complete screen data. Therefore, the data volume of the synchronized data and the time consumed by synchronization in the switching process of the processor are reduced through the mode, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.

Description

Screen data processing method and device and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a screen data processing method and apparatus, and an electronic device.
background
In some electronic devices, multiple processors may be configured to take turns to control the screen. For example, some cellular devices have one processor that controls the screen when the cellular device is in use and another processor that controls the screen when the cellular device is dormant. And each time the processors are switched, the screen data needs to be synchronized from the storage area corresponding to one processor to the storage area corresponding to the other processor. In the related data synchronization mode, the data amount required to be synchronized is large, which causes the frame loss phenomenon of the screen.
Disclosure of Invention
In view of the above problems, the present application provides a screen data processing method, an apparatus and an electronic device to improve the above problems.
In a first aspect, the present application provides a screen data processing method applied to an electronic device, where the electronic device includes a screen, a first processor and a second processor, and the first processor and the second processor are configured to control the screen display in a time-sharing manner, where the method includes: the method comprises the steps that a first processor acquires synchronous first screen data when a second processor hands over the authority for controlling the screen to the first processor, wherein the first screen data are partial data in complete screen data, the first processor is a processor used for currently controlling the screen, and the second processor is a previous processor used for controlling the screen; acquiring second screen data synchronized in advance by the second processor before the permission handover, wherein the second screen data is partial data in the complete screen data; generating complete screen data based on the first screen data and the second screen data; and controlling the screen to display the complete screen data.
in a second aspect, the present application provides a screen data processing apparatus, which runs on a first processor of an electronic device, the electronic device further includes a screen and a second processor, the first processor and the second processor are configured to control the screen display in a time-sharing manner, and the apparatus includes: the device comprises a first data acquisition unit, a second data acquisition unit and a display unit, wherein the first data acquisition unit is used for acquiring first screen data which is synchronized when a second processor hands over the authority for controlling the screen to the first processor, the first screen data is partial data in complete screen data, the first processor is used for currently controlling the screen, and the second processor is a previous processor used for controlling the screen; a data obtaining unit, configured to obtain second screen data that is synchronized in advance by the second processor before the permission handover, where the second screen data is a partial data of the complete screen data;
A screen data generating unit for generating complete screen data based on the first screen data and the second screen data; and the display control unit is used for controlling the screen to display the complete screen data.
in a third aspect, the present application provides an electronic device comprising a screen, first and second processors, and a memory; one or more programs are stored in the memory and configured to be executed by the first processor in the manner described above.
in a fourth aspect, the present application provides a computer readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed by a processor.
According to the screen data processing method and device and the electronic equipment, under the condition that each processor is used for independently controlling the screen, a first processor used for currently controlling the screen acquires first screen data synchronized by a previous second processor used for controlling the screen, the first screen data is partial data in complete screen data, second screen data synchronized by the second processor in advance before permission transfer is acquired, the second screen data is partial data in the complete screen data, and complete screen data is generated based on the first screen data and the second screen data; and controlling the screen to display based on the generated complete screen data.
therefore, by the method, in the process of switching the processors, because the second processor which controls the screen synchronizes part of the screen data to the first processor before switching in advance, when the processors are actually switched, the second processor can enable the first processor to control the screen to display based on the generated complete screen data only by synchronizing part of the screen data in the complete screen data, so that the data volume of the synchronized data in the process of switching the processors and the time consumed by synchronization are reduced, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a block diagram of an electronic device according to an embodiment of the present application;
Fig. 2 is a flowchart illustrating a screen data processing method according to an embodiment of the present application;
FIG. 3 is a diagram illustrating region division in a screen data processing method according to an embodiment of the present application;
Fig. 4 is a schematic diagram illustrating another area division in a screen data processing method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a screen data processing method according to another embodiment of the present application;
Fig. 6 is a flowchart illustrating a screen data processing method according to still another embodiment of the present application;
Fig. 7 is a flowchart illustrating a screen data processing method according to still another embodiment of the present application;
Fig. 8 is a block diagram showing a configuration of a screen data processing apparatus according to an embodiment of the present application;
fig. 9 is a block diagram showing a configuration of a screen data processing apparatus according to another embodiment of the present application;
fig. 10 is a block diagram showing a configuration of a screen data processing apparatus according to still another embodiment of the present application;
Fig. 11 is a block diagram showing a configuration of a screen data processing apparatus according to still another embodiment of the present application;
fig. 12 is a block diagram showing a configuration of an electronic device of the present application for executing a screen data processing method according to an embodiment of the present application;
Fig. 13 is a block diagram showing a configuration of another electronic device of the present application for executing a screen data processing method according to an embodiment of the present application;
Fig. 14 is a storage unit for storing or carrying program codes for implementing a screen data processing method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be appreciated that to enable the display of screen data by the screen, the screen is typically in direct signal communication with the processor. For example, taking an electronic device as an example, during a starting process of the electronic device or a process of switching from a screen-off state to a screen-on working state, the processor sends a control signal to the screen through the signal connection channel, and the screen sends a feedback signal to the processor. Upon receiving the feedback signal, the processor sends a data signal (screen data) to a driving circuit of the screen. Meanwhile, the driving circuit of the screen converts the received data signals into driving signals of the screen, and drives the screen to display data information, so that display is completed.
with the development of display control technology, in order to flexibly adapt to various display modes of a device, a plurality of processors are configured in a related display system to control one screen respectively. For example, as shown in fig. 1, the electronic device 100 shown in fig. 1 includes a first processor 110 and a second processor 120, and a screen 200, wherein the first processor 110 and the second processor 120 can respectively control the screen 200. It should be noted that the number of processors in the embodiment of the present application may be more, and is not limited to the two processors in fig. 1.
In the process of controlling a screen by a plurality of processors respectively, in order to ensure the consistency and the synchronism of the display of the screen data, when the control authority is transferred from the previous processor to the next processor, the previous processor synchronizes the screen data displayed by the current control screen to the next processor. In the research, the inventor finds that as the screen of the electronic device is larger and larger, more and more data need to be synchronized in the process of synchronizing the screen data. In the related screen data synchronization process, the screen data is composed of the pixel values of the pixels at each position of the screen, and in the specific data synchronization process, the pixel values of the pixels at each position of the screen are synchronized from one processor to another processor at one time, so that the synchronized data amount at one time is large. Taking 1920x1080 resolution 3 bytes per pixel as an example, 6.2MB of data would need to be synchronized between the two processors in an amount sufficient to cause frame loss when the processors are switched.
Therefore, the inventor proposes a screen data processing method, a device and an electronic device in the present application that can improve the above-mentioned problems. Therefore, by the method, in the process of switching the processors, because the second processor which controls the screen synchronizes part of the screen data to the first processor before switching in advance, when the processors are actually switched, the second processor can enable the first processor to control the screen to display based on the generated complete screen data only by synchronizing part of the screen data in the complete screen data, so that the data volume of the synchronized data in the process of switching the processors and the time consumed by synchronization are reduced, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a screen data processing method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a screen and a plurality of processors, and each processor is configured to control the screen individually, and the method includes:
Step S110: the method comprises the steps that a first processor obtains first screen data which are synchronized when a second processor hands over the authority for controlling the screen to the first processor, the first screen data are partial data in complete screen data, the first processor is a processor used for currently controlling the screen, and the second processor is a former processor used for controlling the screen.
It should be noted that, in the related screen data synchronization process, screen data synchronization is performed in units of pixels. In this manner, the last processor with control authority transmits data describing the pixel values, e.g., RGB values, displayed by each pixel point in the process of synchronizing the screen data to the next processor. In the embodiment of the application, the electronic device may perform modeling recognition on the content of the screen data in advance, and further classify the content displayed on the screen, for example, the content may be classified into clock data, electric quantity data, date data, and the like.
Further, some attributes, such as display position, size, display content, display subject, etc., may be configured for each classified data. It is understood that the display position refers to where the data of the category is displayed on the screen, the size is the size of the data of the category, and the display content refers to the content to be displayed to the user. For example, for the clock-like screen data, the content to be presented to the user is time, for example, the current time is 12 o' clock, and the display content is "12". For the clock-type screen data, the content to be displayed to the user is the electric quantity, for example, the current electric quantity is 98%, and the display content is "98%". Further, the display theme therein represents at least one of a font style, a font size, an icon style, and a background picture.
Based on the above, in the present embodiment, there may be at least two implementations of the first screen data. In one mode, the first screen data is data representing the display content in the complete screen data. For example, the first screen data includes the aforementioned "12" representing the current time, and may also include "98%" representing the current amount of power. Then in this manner the second screen data is the aforementioned attribute.
Alternatively, the first screen data is pixel data of an area of the full screen data where contents are automatically and dynamically changed. The area in which the content is automatically and dynamically changed may be the area in which the time is displayed, the area in which the power is displayed, or the area in which the push information is displayed. Accordingly, in this manner, the screen data of the area other than the area of the content is automatically dynamically changed to the second screen data.
it should be noted that the complete screen data is data representing the displayed content of each pixel point of the screen.
it is understood that, besides data of time, power and the like which dynamically change, other contents in the screen of the electronic device are not changed dynamically. For example, in a desktop scenario, icons on the desktop, descriptive text next to the icons, and the background of the entire desktop are typically statically present. The icon on the desktop and the description text beside the icon are usually changed after the system or the application program is updated. Similarly, the background to the desktop may be changed after the user reconfigures. In this manner, the electronic device may divide the display area of the screen in advance, so that each of the control units therein may recognize the area in which the content is automatically and dynamically changed and the area other than the area in which the content is automatically and dynamically changed, and further use screen data corresponding to the area in which the content is automatically and dynamically changed as the first screen data.
as a distinguishing method, the electronic device may establish a coordinate system with a position of a certain pixel point of the screen as an origin of coordinates, so as to divide the screen into regions by coordinates, and further distinguish a region in which the content is automatically and dynamically changed from a region other than the region in which the content is automatically and dynamically changed by the coordinates.
As indicated in the foregoing, the first processor is the processor that is currently configured to have the authority to control the screen. In order to facilitate each control unit to identify whether it is already a control unit having control authority, as a way, one control unit may add data about identifying authority transfer to the screen data in the process of synchronizing the screen data to the other control units. Optionally, the screen data synchronized in the embodiment of the present application may include two parts, one part is a data header, and the other part is a data body. The data header may store some configuration information, such as an identifier of a sending processor of the currently synchronized screen data, an identifier of a receiving processor of the currently synchronized screen data, whether to perform the permission transfer, and the like. And the screen data to be synchronized can be stored in the data body. In this way, the processor can determine whether the currently synchronized screen data is the aforementioned first screen data or the aforementioned second screen data by the content in the data header while receiving the screen data, and can know whether the transfer of the control authority has occurred currently, specifically to which processor.
Furthermore, it should be noted that each processor has a corresponding storage area for storing data. Then, for one processor to synchronize the screen data to another processor, it is understood that one particular processor transfers the screen data in its corresponding storage area to the storage area of the other processor's corresponding storage data.
Step S120: and acquiring second screen data synchronized in advance by the second processor before the permission handover, wherein the second screen data is partial data in the complete screen data.
It is understood that in order to reduce the data amount of screen data synchronized at the time of control authority transfer. The processor with the control authority synchronizes part of the screen data in the current screen data to the second processor after the data synchronization condition is met, that is, the processor with the control authority can synchronize the second screen data to other processors after the data synchronization condition is met. The synchronization here may be understood as that the processor currently having the control authority transfers the second screen data from the storage area corresponding to the processor to the storage areas corresponding to the other processors. In this manner, the first processor acquires the second screen data pre-synchronized by the second processor before the authority transfer, which can be understood as reading the second screen data pre-synchronized by the second processor before the authority transfer from the storage area corresponding to the first processor.
Step S130: generating complete screen data based on the first screen data and the second screen data.
It should be noted that in the embodiments, there are various ways to implement the first screen data and the second screen data, and then the corresponding first processor performs the process of generating the complete screen data based on the specific implementation of the first screen data and the second screen data.
optionally, in a manner that the first screen data is data representing the display content in the complete screen data, and the second screen data is the attribute, the data synchronized by the second processor in the process of synchronizing the data with the first processor is generated based on the content object. In this manner, the first processor determines the specific content of the displayed content object according to the first screen data and generates the display form of the specific content according to the second screen data in the process of generating the complete screen data. For example, if the first screen data received by the first processor includes time (content object) with specific content of 12 and the second screen data received in advance includes identification data regarding the analog clock and identification data regarding the background picture as pure black, then in this case, the first processor generates a background picture with black and displays an analog clock on the background picture, and the analog clock displays full screen data with time of 12. For another example, if the first screen data received by the first processor includes 98% of the specific content of the electric quantity (content object), and the second screen data received in advance includes the identification data about the analog battery and the identification data about the background picture as pure black, then in this case, the first processor generates a background picture as black, and displays an analog battery on the background picture, and the analog battery displays the complete screen data with the electric quantity of 98%.
It should be noted that the identification data is data for identifying the content object. For example, if the transmitted identification data is time _1, it can be identified as a mode clock, and for example, if the transmitted identification data is time _2, it can be identified as a digital clock. The data amount of the synchronized data can be reduced by transmitting the identification data instead of directly synchronizing the pixel data of the content identified thereby.
Optionally, in a manner that the first screen data is pixel data of an area in the complete screen data, where the content is to be automatically and dynamically changed, and the screen data of an area outside the area, where the content is to be automatically and dynamically changed, is the second screen data, the data synchronized between the control units is direct pixel data. Also, it is understood that the second processor performs in a coordinate manner in generating the first screen data and the second screen data. Then, in the process of generating the complete screen data, the first processor splices the pixel data according to the respective corresponding coordinate regions of the first screen data and the second screen data, so as to generate the complete screen data. For example, as shown in FIG. 3, in the screen content shown in FIG. 3, area 99 may be used to display time, power, push information, etc., while area 98 may be used to display a desktop or display an interface for a particular application. It will be appreciated that the time, power, and push information may be dynamically changing content, and the desktop or interface of a particular application may be relatively static content, then the second processor may determine region 99 as the region where the content is to be automatically dynamically changed and region 98 as a region other than the region where the content is to be automatically dynamically changed. It can be understood that, compared to the case where the pixel data corresponding to the area 99 and the area 98 are synchronized only when the control authority is transferred, and the data of the area 98 is synchronized in advance, the pixel data of the area 99 is only synchronized when the control authority is transferred, and the amount of data of the synchronization data required when the control authority is switched can be reduced.
In addition, other area division methods may be used in addition to the area division method shown in fig. 3. For example, as shown in fig. 4, if a region 97 is provided in the region 98 for displaying a time control, the region 97 may be determined as a region in which the content is automatically and dynamically changed, in this manner, the first screen data includes pixel data of the region 99 and the region 97, and the second screen data includes pixel data of the region 96.
Step S140: displaying the full screen data based on controlling the screen.
According to the screen data processing method, under the condition that the electronic equipment comprises a screen and a plurality of processors, each processor is used for independently controlling the screen, a first processor used for currently controlling the screen acquires first screen data synchronized by a second processor used for controlling the screen, the first screen data is partial data in complete screen data, second screen data synchronized by the second processor in advance before permission transfer is acquired, the second screen data is partial data in the complete screen data, and complete screen data is generated based on the first screen data and the second screen data; and controlling the screen to display based on the generated complete screen data.
Therefore, by the method, in the process of switching the processors, because the second processor which controls the screen synchronizes part of the screen data to the first processor before switching in advance, when the processors are actually switched, the second processor can enable the first processor to control the screen to display based on the generated complete screen data only by synchronizing part of the screen data in the complete screen data, so that the data volume of the synchronized data in the process of switching the processors and the time consumed by synchronization are reduced, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.
Referring to fig. 5, a screen data processing method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a screen and a plurality of processors, and each processor is configured to control the screen individually, and the method includes:
Step S210: the method comprises the steps that a first processor obtains first screen data which are synchronized when a second processor hands over the authority for controlling the screen to the first processor, the first screen data are partial data in complete screen data, the first processor is a processor used for currently controlling the screen, and the second processor is a former processor used for controlling the screen.
Step S220: and acquiring second screen data synchronized in advance by the second processor before the permission handover, wherein the second screen data is partial data in the complete screen data.
step S230: generating complete screen data based on the first screen data and the second screen data.
step S240: and controlling the screen to display based on the generated complete screen data.
Step S250: and after the first processor detects that a data synchronization condition is met, synchronizing second screen data in the screen data corresponding to the current display scene to the second processor, wherein the first screen data represent the display content of the current display scene, and the second screen data represent the display theme of the current display scene.
it should be noted that, in the display theme selection scene, the user may frequently switch the display theme so as to select a display theme required by the user. Based on the foregoing, after the display theme is updated, the processor currently having the authority to control the screen synchronizes the display theme selected by the user as the second screen data to the second processor, and the latest synchronized second screen data covers the last synchronized second screen data, so that if the continuous synchronization of the second screen data for multiple times does not contribute to the final generated screen data, but is only covered by the second screen data received later, a great waste of resources is caused.
In order to solve the problem, as a mode, after the first processor detects that a data synchronization condition is satisfied, the step of synchronizing the second screen data in the screen data corresponding to the current display scene to the second processor includes:
when the first processor detects that a data synchronization condition is met, acquiring target data, wherein the target data is partial data in second screen data in screen data corresponding to a current display scene; synchronizing the target data to the second processor and starting to detect whether a continuous transmission condition is met; and if the condition is met, synchronizing data except the target data in second screen data in the screen data corresponding to the current display scene to the second processor.
Optionally, the continuous transmission condition includes: and not detecting that the data synchronization condition is met again within a specified time after the target data is synchronized to the second processor. It can be understood that if it is not detected again that the data synchronization condition is satisfied within the specified time length, it may be determined that the user has determined the display theme required by the user, and the display theme is not switched again within a short time. Then in this case the first processor may synchronize the remaining not yet synchronized data of the data that needs to be pre-synchronized to said second processor.
Optionally, the second screen data includes font style data, font size data, icon style data, and background picture data, and the target data is data with the smallest data size among the font style data, the font size data, the icon style data, and the background picture data. It will be appreciated that synchronizing the least amount of data ahead of time may further reduce wasted data transmission resources. For example, the font style data, font size data, icon style data, and background picture data included in the second screen data are 100k, 110k, 500k, and 1MB in this order. Then the target data in this case can be determined as the font style data of 100K, because if the next selected display theme is still switched, the wasted transmission resources are the resources consumed for transmitting the 100K, whereas if the next selected display theme is directly synchronized to the second processor, the data of 100K, 110K, 500K and 1MB are wasted (i.e. the transmission resources of 1MB +500K +110K +100K 1734KB are wasted).
By one approach, the data synchronization condition includes: after the electronic equipment is started; or when a display theme of the electronic device is changed, wherein the display theme includes at least one of a font style, a font size, an icon style, and a background picture.
It should be noted that, in the multiple processors of the electronic device provided in the embodiments of the present application, the data processing capabilities of different processors may be different. The data processing capability here is understood to be the amount of data or the number of threads that can be processed per unit time. For example, if the first processor is a general-purpose processor and the second processor is a low-power processor, the data processing capability of the first processor is stronger than that of the second processor. Then, as an adaptation, when the general-purpose processor is used as the first processor, the generated first screen data synchronized to other processors (e.g., low power processors) is pixel data of an area of the complete screen data where the content is to be automatically dynamically changed. If the general-purpose processor is used as the second processor, the generated first screen data synchronized to other processors (for example, the general-purpose processor) is data representing the display content in the complete screen data, so that the data processing capability of the processor for controlling the screen authority is adapted to the amount of data to be processed in the process of switching the general-purpose processor and the low-power processor, thereby improving the overall operation effect of the electronic device.
it can be understood that, in this way that the first screen data is the data representing the display content in the complete screen data, the synchronized data is the identification data identifying the display content and the display subject, and the processor receiving the identification data identifying the display content and the display subject needs to generate the pixel data first before generating the complete screen data, so the data processing capability requirement of the processor generating the complete screen data based on the identification data identifying the display content and the display subject is relatively high. In the mode that the first screen data is pixel data of an area in the complete screen data, where the content is automatically and dynamically changed, the operation required by the processor for acquiring the control screen authority is only the splicing of the pixel data, and the data processing capability of the processor is relatively low. Therefore, the data processing capacity of the processor obtaining the authority to control the screen can be adapted to the amount of data required to be processed by the configuration mode.
according to the screen data processing method, in the process of switching the processors, because the second processor which controls the screen synchronizes partial screen data to the first processor before switching in advance, when the processors are actually switched, the second processor can enable the first processor to control the screen to display based on the generated complete screen data only by synchronizing partial screen data in the complete screen data, so that the data volume of the synchronized data and the time consumed by synchronization in the switching process of the processors are reduced, and negative effects such as frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.
Furthermore, in the screen data processing method provided in this embodiment, the first processor may also synchronize the second screen data with the second processor, so that the second screen data stored in other processors may be updated in real time, and after the first processor hands over the control right to the screen to the second processor, the second processor may also generate the screen data quickly.
Referring to fig. 6, a screen data processing method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a screen and a plurality of processors, and each processor is configured to control the screen individually, and the method includes:
Step S310: and when the electronic equipment enters a low-power-consumption mode, the second processor transfers the authority for controlling the screen to the first processor, and synchronizes first screen data to the first processor.
It should be noted that, in this embodiment, the entering of the low power consumption mode by the electronic device may be entering the low power consumption mode based on an event of automatic configuration, for example, when it is detected that the electric quantity is lower than a specified value, the entering of the low power consumption mode is triggered, or when it is detected that no application program other than the system program runs in the electronic device, the entering of the low power consumption mode is triggered. Further, the low power consumption mode may also be entered in response to a manual operation by the user.
The low power consumption mode may be a mode in which some functions are turned off (for example, a network access function is turned off), or may also be a sleep mode. Wherein in the sleep mode, the electronic device may display only the power and the time in the screen.
step S320: the method comprises the steps that a first processor obtains first screen data which are synchronized when a second processor hands over the authority for controlling the screen to the first processor, the first screen data are partial data in complete screen data, the first processor is a processor used for currently controlling the screen, and the second processor is a former processor used for controlling the screen.
Step S330: and acquiring second screen data synchronized in advance by the second processor before the permission handover, wherein the second screen data is partial data in the complete screen data.
step S340: generating complete screen data based on the first screen data and the second screen data;
Step S350: and controlling the screen to display based on the generated complete screen data.
According to the screen data processing method, in the process of switching the processors, because the second processor which controls the screen synchronizes part of the screen data to the first processor before switching in advance, when the electronic equipment enters the low power consumption mode to execute the actual switching of the processors, the second processor can enable the first processor to control the screen to display based on the generated complete screen data only by synchronizing part of the screen data in the complete screen data, so that the data volume of the synchronized data and the time consumed by synchronization in the switching process of the processors are reduced, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.
Referring to fig. 7, a screen data processing method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a screen, a first processor and a second processor, and the first processor and the second processor are configured to control the screen display in a time-sharing manner, and the method includes:
Step S410: the first processor monitors screen control permissions.
Step S420: and if the first processor monitors that the authority for controlling the screen is transferred from the second processor to the first processor, receiving screen content description information synchronized by the second processor, wherein the screen content description information represents the content to be displayed by the screen.
It is understood that the screen content description information herein is description information generated based on the displayed content object, and is different from the specific pixel value of each pixel point. For example, for the example of a display clock, the content of the corresponding screen data in the form of the screen content description information may be a clock displaying a specified pattern at a specified position, and the corresponding screen data in the form of a pixel value may be a pixel value of each specific pixel point of the clock.
Step S430: the first processor controls the screen to display based on the screen content description information.
In one way, the screen content description information may be full screen data including display content and a display theme for controlling a scene displayed on the screen when the second processor hands over the right.
Alternatively, the screen content description information may be partial data in the full screen data, such as the aforementioned first screen data. In this way, the second screen data included in the complete screen data is pre-synchronized by the second processor to the first processor before the permission handover, so that after the first processor acquires the first screen data, the complete screen data can be calculated based on the pre-synchronized second screen data, thereby controlling the screen to display the complete screen data.
it should be noted that, the display content and the concept of the display scene in the present embodiment may refer to the content in the foregoing embodiments.
According to the screen data processing method, in the process of switching the processors, the data synchronized among the processors are configured into the display content and the display scene for describing the specific content to be displayed of the screen, and the pixel value of each pixel in the screen is not required to be directly transmitted, so that the data volume of the synchronized data and the time consumed by synchronization in the process of switching the processors are reduced, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.
referring to fig. 8, a screen data processing apparatus 400 provided in an embodiment of the present application runs on a first processor of an electronic device, where the electronic device includes a screen and a plurality of processors, and each processor is configured to control the screen individually, and the apparatus 400 includes:
a first data obtaining unit 411, configured to obtain first screen data that is synchronized when a second processor transfers a right to control the screen to the first processor, where the first screen data is a partial data in complete screen data, the first processor is a processor used for currently controlling the screen, and the second processor is a previous processor used for controlling the screen.
a data obtaining unit 412, configured to obtain second screen data that is synchronized in advance by the second processor before the permission handover, where the second screen data is a partial data of the complete screen data.
a screen data generating unit 413 for generating full screen data based on the first screen data and the second screen data.
A display control unit 414, configured to control the screen to display based on the generated complete screen data.
As shown in fig. 9, the apparatus further includes:
The data synchronization unit 420 is configured to synchronize, to the second processor, second screen data in the screen data corresponding to the current display scene after the first processor detects that a data synchronization condition is met, where the first screen data represents display content of the current display scene, and the second screen data represents a display theme of the current display scene.
By one approach, the data synchronization condition includes: after the electronic equipment is started; or when a display theme of the electronic device is changed, wherein the display theme includes at least one of a font style, a font size, an icon style, and a background picture.
as one mode, the data synchronization unit 420 is specifically configured to, after detecting that a data synchronization condition is met, obtain target data, where the target data is partial data in second screen data in screen data corresponding to a current display scene; synchronizing the target data to the second processor and starting to detect whether a continuous transmission condition is met; and if the condition is met, synchronizing data except the target data in second screen data in the screen data corresponding to the current display scene to the second processor. Wherein the continuous transmission condition comprises: and not detecting that the data synchronization condition is met again within a specified time after the target data is synchronized to the second processor. The second screen data includes font style data, font size data, icon style data, and background picture data, and the target data is data with the smallest data size among the font style data, the font size data, the icon style data, and the background picture data.
as shown in fig. 10, the apparatus further includes:
the permission detection unit 430 is configured to detect a screen control permission configured by the electronic device, and when the electronic device enters a low power consumption mode, trigger the first data acquisition unit 411 to acquire first screen data synchronized when the permission for controlling the screen is handed over to the first processor by the second processor.
Referring to fig. 11, a screen data processing apparatus 500 provided in the embodiment of the present application runs on a first processing unit of an electronic device, where the electronic device includes a screen, a first processor, and a second processor, and the first processor and the second processor are configured to control the screen display in a time-sharing manner, and the apparatus 500 includes:
And the authority monitoring unit 510 is used for monitoring the screen control authority.
A data obtaining unit 520, configured to receive complete screen data synchronized by the second processor if the first processor monitors that the authority controlling the screen is handed over from the second processor to the first processor, where the complete screen data includes display content and a display theme for controlling a scene displayed by the screen when the second processor hands over the authority.
A display control unit 530 for controlling the screen to display the complete screen data.
it should be noted that the device embodiment and the method embodiment in the present application correspond to each other, and specific principles in the device embodiment may refer to the contents in the method embodiment, which is not described herein again.
An electronic device provided by the present application will be described below with reference to fig. 12.
Referring to fig. 12, based on the screen data processing method and apparatus, another electronic device 200 capable of executing the screen data processing method is further provided in the embodiment of the present application. The electronic device 200 includes one or more (only one shown) first processor 102, second processor 104, memory 106, and network module 108 coupled to each other. The memory 106 stores therein a program that can execute the content of the foregoing embodiments, and the first processor 102 and the second processor 104 can execute the program stored in the memory 106.
The first processor 102 and the second processor 104 may each include one or more cores for processing data. The first processor 102 and the second processor 104 each connect various parts within the overall electronic device 200 using various interfaces and lines, perform various functions of the electronic device 200 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 106, and calling data stored in the memory 106. Alternatively, the first processor 102 and the second processor 104 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The first processor 102 and the second processor 104 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the first processor 102 and the second processor 104, but may be implemented by a single communication chip. Wherein, optionally, the data processing capability of the first processor 102 is higher than that of the second processor 104.
The Memory 106 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 106 may be used to store instructions, programs, code sets, or instruction sets. The memory 106 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 108 is configured to receive and transmit electromagnetic waves, and implement interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 108 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 108 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 108 may interact with a base station.
it should be noted that, as shown in fig. 13, a block diagram of another electronic device is provided, in the illustrated content, the storage area corresponding to the second processor 104 is a storage area (i.e., the storage unit 1041) integrated inside itself, instead of the memory 106 in the hardware layer common to the first processor 102 as shown in fig. 10, and the respective storage areas are divided in the memory 106. In addition, the second processor 104 further includes a processing unit 1042 for executing the steps required by the second processor 104 in the foregoing embodiments.
Referring to fig. 14, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 1100 has stored therein program code that can be called by a processor to perform the method described in the above-described method embodiments.
The computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1100 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1110 may be compressed, for example, in a suitable form.
To sum up, in the case that the electronic device includes a screen and a plurality of processors, each of the processors is used for controlling the screen individually, a first processor for controlling the screen at present acquires first screen data synchronized by a previous second processor for controlling the screen, the first screen data is partial data in complete screen data, acquires second screen data synchronized by the second processor in advance before the permission handover, the second screen data is partial data in the complete screen data, and generates complete screen data based on the first screen data and the second screen data; and controlling the screen to display based on the generated complete screen data.
therefore, by the method, in the process of switching the processors, because the second processor which controls the screen synchronizes part of the screen data to the first processor before switching in advance, when the processors are actually switched, the second processor can enable the first processor to control the screen to display based on the generated complete screen data only by synchronizing part of the screen data in the complete screen data, so that the data volume of the synchronized data in the process of switching the processors and the time consumed by synchronization are reduced, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are eliminated.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A screen data processing method is applied to an electronic device, the electronic device comprises a screen, a first processor and a second processor, and the first processor and the second processor are used for controlling the screen to display in a time-sharing manner, and the method comprises the following steps:
The first processor receives first screen data which is synchronized when the second processor transfers the authority for controlling the screen to the first processor, wherein the first screen data is partial data in complete screen data;
Acquiring second screen data synchronized in advance by the second processor before the permission handover, wherein the second screen data is data except the first screen data in the complete screen data;
generating complete screen data based on the first screen data and the second screen data;
And controlling the screen to display the complete screen data.
2. the method of claim 1, further comprising:
And after the first processor detects that a data synchronization condition is met, synchronizing second screen data in the screen data corresponding to the current display scene to the second processor, wherein the first screen data represent the display content of the current display scene, and the second screen data represent the display theme of the current display scene.
3. the method of claim 2, wherein the data synchronization condition comprises:
after the electronic equipment is started; or
When a display theme of the electronic device is changed, wherein the display theme includes at least one of a font style, a font size, an icon style, and a background picture.
4. The method according to claim 2, wherein the step of synchronizing the second screen data of the screen data corresponding to the current display scene to the second processor after the first processor detects that the data synchronization condition is satisfied comprises:
When the first processor detects that a data synchronization condition is met, acquiring target data, wherein the target data is partial data in second screen data in screen data corresponding to a current display scene;
Synchronizing the target data to the second processor and starting to detect whether a continuous transmission condition is met;
And if the condition is met, synchronizing data except the target data in second screen data in the screen data corresponding to the current display scene to the second processor.
5. The method of claim 4, wherein the resume condition comprises:
And not detecting that the data synchronization condition is met again within a specified time after the target data is synchronized to the second processor.
6. The method according to claim 4, wherein the second screen data includes font style data, font size data, icon style data, and background picture data, and the target data is one of the font style data, the font size data, the icon style data, and the background picture data that is the smallest in data amount.
7. The method of any one of claims 1-6, wherein the step of the first processor obtaining first screen data that is synchronized by a second processor when transferring the right to control the screen to the first processor comprises:
when the electronic equipment enters a low power consumption mode, the second processor transfers the authority for controlling the screen to the first processor, and the first processor acquires the first screen data synchronized by the second processor.
8. A screen data processing device, run in the first processor of the electronic equipment, the said electronic equipment also includes the screen and second processor, said first processor and second processor are used for controlling the said screen display in timesharing, characterized by that, the said device includes:
the device comprises a first data acquisition unit, a second data acquisition unit and a display unit, wherein the first data acquisition unit is used for acquiring first screen data which is synchronized when a second processor hands over the authority for controlling the screen to the first processor, the first screen data is partial data in complete screen data, the first processor is used for currently controlling the screen, and the second processor is a previous processor used for controlling the screen;
A data obtaining unit, configured to obtain second screen data that is synchronized in advance by the second processor before the permission handover, where the second screen data is a partial data of the complete screen data;
A screen data generating unit for generating complete screen data based on the first screen data and the second screen data;
And the display control unit is used for controlling the screen to display the complete screen data.
9. An electronic device comprising a screen, first and second processors, and a memory;
One or more programs are stored in the memory and configured to be executed by the first processor to implement the method of any of claims 1-7.
10. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-7.
CN201910809040.3A 2019-08-29 2019-08-29 Screen data processing method and device and electronic equipment Active CN110569008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910809040.3A CN110569008B (en) 2019-08-29 2019-08-29 Screen data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910809040.3A CN110569008B (en) 2019-08-29 2019-08-29 Screen data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110569008A true CN110569008A (en) 2019-12-13
CN110569008B CN110569008B (en) 2023-05-16

Family

ID=68776780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910809040.3A Active CN110569008B (en) 2019-08-29 2019-08-29 Screen data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110569008B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694532A (en) * 2020-06-11 2020-09-22 翱捷科技(上海)有限公司 Display control method of single-chip heterogeneous system and wearable device
CN111711718A (en) * 2020-05-07 2020-09-25 华为技术有限公司 Electronic device
CN111935497A (en) * 2020-09-18 2020-11-13 武汉中科通达高新技术股份有限公司 Video stream management method and data server for traffic police system
CN115080200A (en) * 2021-03-15 2022-09-20 Oppo广东移动通信有限公司 Time calibration method and device, wearable device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017202051A1 (en) * 2016-05-23 2017-11-30 北京金山安全软件有限公司 Method and device for processing application icon, and electronic apparatus
CN108762466A (en) * 2018-04-10 2018-11-06 Oppo广东移动通信有限公司 Display methods, device, mobile terminal and storage medium
CN109144439A (en) * 2017-08-15 2019-01-04 北京仁光科技有限公司 More scene synchronous method, device, equipment and storage medium in screen plotting
CN109992230A (en) * 2019-03-27 2019-07-09 联想(北京)有限公司 Control method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017202051A1 (en) * 2016-05-23 2017-11-30 北京金山安全软件有限公司 Method and device for processing application icon, and electronic apparatus
CN109144439A (en) * 2017-08-15 2019-01-04 北京仁光科技有限公司 More scene synchronous method, device, equipment and storage medium in screen plotting
CN108762466A (en) * 2018-04-10 2018-11-06 Oppo广东移动通信有限公司 Display methods, device, mobile terminal and storage medium
CN109992230A (en) * 2019-03-27 2019-07-09 联想(北京)有限公司 Control method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘君: "基于网络的大屏幕显示系统的设计与实现", 《辽宁大学学报(自然科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711718A (en) * 2020-05-07 2020-09-25 华为技术有限公司 Electronic device
CN111694532A (en) * 2020-06-11 2020-09-22 翱捷科技(上海)有限公司 Display control method of single-chip heterogeneous system and wearable device
CN111694532B (en) * 2020-06-11 2021-06-04 翱捷科技股份有限公司 Display control method of single-chip heterogeneous system and wearable device
CN111935497A (en) * 2020-09-18 2020-11-13 武汉中科通达高新技术股份有限公司 Video stream management method and data server for traffic police system
CN115080200A (en) * 2021-03-15 2022-09-20 Oppo广东移动通信有限公司 Time calibration method and device, wearable device and storage medium

Also Published As

Publication number Publication date
CN110569008B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN110569008B (en) Screen data processing method and device and electronic equipment
CN105549858B (en) A kind of display methods and user terminal
CN110852938B (en) Display picture generation method, device and storage medium
US10228830B2 (en) Method for starting application program, terminal and non-transitory computer readable storage medium
CN107770618B (en) Image processing method, device and storage medium
CN104750450A (en) File sharing method in IM (Instant Messaging) and terminal
CN108228358B (en) Method, device, mobile terminal and storage medium for correcting vertical synchronization signal
CN110225237B (en) Image acquisition method and device and mobile terminal
CN110222288B (en) Page display method, device and storage medium
CN110798615A (en) Shooting method, shooting device, storage medium and terminal
CN112135081B (en) Mode control method and device, frame insertion chip and electronic equipment
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
EP4318238A1 (en) Image sharing methods and apparatuses, and electronic device
CN108027967B (en) Image stitching method and electronic equipment
CN112099678A (en) Text processing method and device and computer readable storage medium
CN112269886B (en) Shared image acquisition method, window sharing method and shared image acquisition device
CN110365962B (en) Color gamut conversion processing method and device and electronic equipment
CN112468870A (en) Video playing method, device, equipment and storage medium
CN113919852A (en) Product infringement judgment method and device, terminal equipment and storage medium
CN108924411B (en) Photographing control method and device
CN112532971A (en) Image processing method, image processing device, display terminal and computer readable storage medium
CN113822010A (en) Content display method, device, equipment and storage medium
CN114270297A (en) Touch screen point reporting method and device, electronic equipment and storage medium
CN111782100A (en) Method, device, terminal and storage medium for previewing background picture
CN113556716B (en) Image content sharing method and device and head-mounted display equipment

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