CN110569008B - 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
CN110569008B
CN110569008B CN201910809040.3A CN201910809040A CN110569008B CN 110569008 B CN110569008 B CN 110569008B CN 201910809040 A CN201910809040 A CN 201910809040A CN 110569008 B CN110569008 B CN 110569008B
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.)
Active
Application number
CN201910809040.3A
Other languages
Chinese (zh)
Other versions
CN110569008A (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

Images

Classifications

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

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 synchronized by a second processor when the right of controlling the screen is handed over to the first processor, wherein the first screen data are part of data in complete screen data; acquiring second screen data which are synchronized in advance by the second processor before the permission handover, wherein the second screen data are part of the whole 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 quantity of the synchronous data and the time consumed by the synchronization in the switching process of the processor are reduced, and the negative effects of frame loss and the like caused by single synchronization of a large amount of screen data are also eliminated.

Description

Screen data processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method and an apparatus for processing screen data, and an electronic device.
Background
In some electronic devices, it may be configured that the screen is controlled by a plurality of processors in turn. For example, some cell phone devices have one processor controlling the screen while the cell phone is in use and another processor controlling the screen while the cell phone is dormant. And each time a processor is switched, it is necessary to synchronize screen data from a memory area corresponding to one processor to a memory area corresponding to another processor. In the related data synchronization mode, the required data volume of synchronization is large, and the frame loss phenomenon of the screen can be caused.
Disclosure of Invention
In view of the above problems, the present application proposes a screen data processing method, apparatus and electronic device, so as 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, where the first processor and the second processor are configured to time-share control the screen display, and the method includes: the method comprises the steps that a first processor acquires first screen data synchronized when a second processor transfers the right of controlling the screen to the first processor, wherein the first screen data are part of data in complete screen data, the first processor is a processor for controlling the screen currently, and the second processor is a previous processor for controlling the screen; acquiring second screen data which are synchronized in advance by the second processor before the permission handover, wherein the second screen data are part of the whole 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, running on a first processor of an electronic device, where the electronic device further includes a screen and a second processor, where the first processor and the second processor are configured to time-share control the screen display, and the apparatus includes: a first data obtaining unit, configured to obtain first screen data synchronized when a second processor hands over a right to control the screen to the first processor, where the first screen data is part of data in complete screen data, the first processor is a processor for currently controlling the screen, and the second processor is a previous processor for controlling the screen; a data acquisition unit, configured to acquire second screen data that is synchronized in advance by the second processor before the permission handover, where the second screen data is part of the complete screen data;
a screen data generating unit configured to generate 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 program code, when executed by a processor, performs the method described above.
In the case that the electronic device 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 part data in complete screen data, acquires second screen data pre-synchronized by the second processor before the permission handover, 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, in the process of switching the processors, the second processor which controls the screen synchronizes part of the screen data to the first processor before switching, and further, when the processors are actually switched, the second processor only synchronizes part of the screen data in the whole screen data, so that the first processor controls the screen to display based on the generated whole screen data, thereby reducing the data quantity of the synchronized data and the time consumed by synchronization in the switching process of the processors, and eliminating negative effects such as frame loss caused by synchronizing a large amount of screen data for a single time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a block diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a flowchart of a screen data processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating region division in a screen data processing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram showing another area division in a screen data processing method according to an embodiment of the present application;
FIG. 5 is a flowchart of a screen data processing method according to another embodiment of the present application;
FIG. 6 is a flowchart of a screen data processing method according to still another embodiment of the present application;
FIG. 7 is a flowchart of a screen data processing method according to 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 structure of a screen data processing apparatus according to another embodiment of the present application;
fig. 10 is a block diagram showing a structure of a screen data processing apparatus according to still another embodiment of the present application;
fig. 11 is a block diagram showing a structure of a screen data processing apparatus according to still another embodiment of the present application;
fig. 12 shows a block diagram of a structure of an electronic device of the present application for performing a screen data processing method according to an embodiment of the present application;
fig. 13 shows a block diagram of another electronic device of the present application for performing 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 the screen data processing method according to the embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It will be appreciated that in order to enable the display of screen-to-screen data, the screen is typically signally connected directly to the processor. For example, taking an electronic device as an example, during a startup process of the electronic device or a process of switching from a screen off state to a screen on state, the processor sends a control signal to the screen through the signal connection channel, and at the same time, the screen sends a feedback signal to the processor. After receiving the feedback signal, the processor sends a data signal (screen data) to the 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, where the first processor 110 and the second processor 120 can control the screen 200 respectively. It should be noted that the number of processors in the embodiment of the present application may be further greater, and is not limited to only two processors in fig. 1.
In the process that the plurality of processors respectively control one screen, in order to ensure the consistency and the synchronism of the display of the screen data, when the control authority is transferred from the last processor to the next processor, the last processor can synchronously display the screen data of the current control screen to the next processor. The inventors have found in research that, as the screen size of the electronic device is larger, more data is needed to synchronize screen data. In the related screen data synchronization process, the screen data is formed by pixel values of pixels at each position of the screen, so that 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, and thus, the amount of data synchronized at a time is large. Taking 1920x1080 resolution of 3 bytes per pixel as an example, 6.2MB of data needs to be synchronized between the two processors, and this amount of data is sufficient to create a frame loss phenomenon when switching processors.
Therefore, the inventor proposes a screen data processing method, a device and an electronic apparatus which can improve the above problems in the present application. Therefore, in the process of switching the processors, the second processor which controls the screen synchronizes part of the screen data to the first processor before switching, and further, when the processors are actually switched, the second processor only synchronizes part of the screen data in the whole screen data, so that the first processor controls the screen to display based on the generated whole screen data, thereby reducing the data quantity of the synchronized data and the time consumed by synchronization in the switching process of the processors, and eliminating negative effects such as frame loss caused by synchronizing a large amount of screen data for a single time.
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, each processor is configured to individually control the screen, and the method includes:
step S110: the method comprises the steps that a first processor acquires first screen data synchronized when a second processor transfers the right of controlling the screen to the first processor, wherein the first screen data are part of data in complete screen data, the first processor is a processor for controlling the screen currently, and the second processor is a previous processor for controlling the screen.
In the related screen data synchronization process, screen data synchronization is performed in units of pixels. In this way, the last processor with control authority, during the synchronization of the screen data to the next processor, transmits data describing the pixel values, for example RGB values, displayed by each pixel point. In contrast, in the embodiment of the present application, the electronic device performs modeling recognition on the content of the screen data in advance, so as to classify the content displayed on the screen, for example, may be classified into clock data, power data, date data, and the like.
Further, some attributes such as display position, size, display content, display subject, and the like 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, and the size is the size of the data of the category, and the display content refers to the content of the data of the category to be presented to the user. For example, for clock-like screen data, the content to be presented to the user is time, for example, the current time is 12 points, and the display content is "12". For clock-like 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 characterizes at least one of a font style, a font size, an icon style, and a background picture.
Then, based on the foregoing, in the embodiment of the present application, there may be at least two implementations of the first screen data. In one mode, the first screen data is data characterizing the display content in the complete screen data. For example, the first screen data includes the aforementioned "12" characterizing the current time, and may also include "98%" characterizing the current power. In this way, the second screen data is the aforementioned attribute.
Alternatively, the first screen data is pixel data of an area in the complete screen data where the content is automatically and dynamically changed. The area in which the content is automatically and dynamically changed may be the aforementioned area in which the time is displayed, the area in which the amount of electricity is displayed, or the area in which the push information is displayed. Accordingly, in this embodiment, screen data of an area other than the area in which the content is automatically and dynamically changed is the second screen data.
It should be noted that, the complete screen data is data representing the content displayed by each pixel of the screen.
It will be appreciated that the screen of the electronic device is typically not dynamically changed except for data that dynamically changes time, power, etc. For example, in a desktop scene, icons on the desktop, descriptive text next to the icons, and the background of the entire desktop are typically static. The icons on the desktop and the descriptive text beside the icons are usually changed correspondingly after the system or the application program is updated. Similarly, the background to the desktop is changed after the user reconfigures. In this way, the electronic device may divide the display area of the screen in advance, so that each control unit in the display area may identify an area where the content is automatically and dynamically changed and an area other than the area where the content is automatically and dynamically changed, and further take the screen data corresponding to the area where 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 regions where contents are automatically and dynamically changed from regions other than the regions where contents are automatically and dynamically changed by coordinates.
As described above, the first processor is a processor currently configured to have the right to control the screen. Then in order to facilitate each control unit to identify whether it is already a control unit with control rights, as a way, one control unit may add data about the transfer of identification rights to the screen data during synchronization of the screen data to the other control units. Alternatively, the screen data synchronized in the embodiments of the present application may include two parts, one part being a data header and the other part being a data body. The data header may store some configuration information, such as an identification of a transmitting processor of the screen data currently synchronized, an identification of a receiving processor of the screen data currently synchronized, whether to perform rights transfer, and the like. While in the data body the screen data to be synchronized can be stored. In this way it is possible for the processor to determine, by means of the content in the data header, at the same time as the screen data, whether the currently synchronized screen data is the aforementioned first screen data or the aforementioned second screen data, and also to know whether a transfer of control rights has currently taken place, in particular to which processor.
It should be noted that, for each processor, there is a corresponding storage area for storing data. Then synchronizing screen data to another processor for one processor may be understood as one particular processor transferring screen data in its corresponding memory area to the memory area of the other processor corresponding to the stored data.
Step S120: and acquiring second screen data which are synchronized in advance by the second processor before the permission is handed over, wherein the second screen data are part of the whole screen data.
It can be appreciated that in order to reduce the data amount of screen data synchronized at the time of control authority transfer. And the processor with the control authority can synchronize part of the screen data in the part of the current screen data to the second processor after meeting the data synchronization condition, namely the processor can synchronize the second screen data to other processors after meeting the data synchronization condition. The synchronization is understood to mean that the processor currently having control authority transfers the second screen data from the storage area corresponding to itself to the storage area corresponding to the other processor. In this way, the first processor acquires the second screen data that the second processor previously synchronized before the rights are handed over, which can be understood as reading out the second screen data that the second processor previously synchronized before the rights are handed over from the storage area to which the first processor corresponds.
Step S130: complete screen data is generated based on the first screen data and the second screen data.
It should be noted that, in the embodiment, the implementation of the first screen data and the second screen data may take many forms, 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 the manner that the first screen data is data characterizing the display content in the complete screen data and the second screen data is the attribute described above, the data synchronized by the second processor in synchronizing the data to 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 from the first screen data and generates the display form of the specific content from the second screen data in the course of generating the complete screen data. For example, the first screen data received by the first processor includes a specific content of time (content object) of 12, and the second screen data received in advance includes identification data on an analog clock and identification data on a background picture of solid black, in which case the first processor generates a background picture of black and displays an analog clock on the background picture, and the analog clock displays complete screen data of time 12. For another example, 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 identification data on the analog battery and identification data on the background picture that is solid black, in which case the first processor generates a background picture that is black and displays an analog battery on the background picture, and the analog battery displays complete screen data of 98% of the electric quantity.
The identification data is data for identifying the content object. For example, if the transmitted identification data is time_1, it may be identified as a mode clock, and for another example, if the transmitted identification data is time_2, it may be identified as a digital clock. The amount of data synchronized can be reduced by transmitting the identification data instead of directly synchronizing the pixel data of the content it identifies.
Optionally, in the manner that the first screen data is the pixel data of the area where the content is automatically and dynamically changed in the complete screen data, the screen data of the area other than the area where the content is automatically and dynamically changed is the second screen data, the data synchronized between the control units is the 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. The first processor performs the stitching of the pixel data according to the coordinate areas corresponding to the first screen data and the second screen data in the process of generating the complete 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 pertains to dynamically changing content, and that the desktop or interface of a particular application may be relatively static content, the second processor may determine region 99 as being the region where the content is automatically dynamically changed, and region 98 as being a region other than the region where the content is automatically dynamically changed. It is to be understood that, when the control authority is transferred, only the pixel data of the region 99 is synchronized, and the amount of data required for the synchronization data when the control authority is switched can be reduced, compared with the case where the pixel data corresponding to the region 99 and the region 98 are synchronized in advance when the control authority is transferred.
In addition, there may be other region division methods other than the region division method shown in fig. 3. For example, as shown in fig. 4, if the area 97 is configured in the area 98 for displaying a time control, then the area 97 may also be determined as an area where the content is automatically changed dynamically, in which way the first screen data includes the pixel data of the area 99 and the area 97, and the second screen data includes the pixel data of the area 96.
Step S140: the full screen data is displayed based on controlling the screen.
In the screen data processing method, when the electronic device 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 previous second processor used for controlling the screen, the first screen data is partial data in complete screen data, acquires second screen data pre-synchronized by the second processor before the permission handover, the second screen data is partial data in the complete screen data, and then 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, in the process of switching the processors, the second processor which controls the screen synchronizes part of the screen data to the first processor before switching, and further, when the processors are actually switched, the second processor only synchronizes part of the screen data in the whole screen data, so that the first processor controls the screen to display based on the generated whole screen data, thereby reducing the data quantity of the synchronized data and the time consumed by synchronization in the switching process of the processors, and eliminating negative effects such as frame loss caused by synchronizing a large amount of screen data for a single time.
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, each processor is configured to individually control the screen, and the method includes:
step S210: the method comprises the steps that a first processor acquires first screen data synchronized when a second processor transfers the right of controlling the screen to the first processor, wherein the first screen data are part of data in complete screen data, the first processor is a processor for controlling the screen currently, and the second processor is a previous processor for controlling the screen.
Step S220: and acquiring second screen data which are synchronized in advance by the second processor before the permission is handed over, wherein the second screen data are part of the whole screen data.
Step S230: complete screen data is generated 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 the data synchronization condition is met, synchronizing second screen data in screen data corresponding to the current display scene to the second processor, wherein the first screen data represents the display content of the current display scene, and the second screen data represents the display theme of the current display scene.
In the display theme selection scenario, the user frequently switches 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 right to control the screen synchronizes the display theme selected by the user as the second screen data to the second processor, and the last synchronized second screen data will cover the last synchronized second screen data, so if the second screen data is continuously synchronized multiple times, the second screen data will not contribute to the final generation of the completed screen data, but only will be covered by the second screen data received later, which will cause great resource waste.
In order to improve the problem, as one mode, the step of synchronizing the second screen data in 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 includes:
when the first processor detects that the data synchronization condition is met, acquiring target data, wherein the target data is part of 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 requirement of synchronizing the data except the target data in the second screen data in the screen data corresponding to the current display scene is met, synchronizing the data except the target data to the second processor.
Wherein, optionally, the continuous transmission condition includes: and failing to detect that the data synchronization condition is met again within a specified time period after the target data is synchronized to the second processor. It can be understood that if the satisfaction of the data synchronization condition is not detected again within the specified duration, it can be determined that the user has determined the display theme required by the user, and the switching of the display theme is not performed again within a short time. In this case the first processor may synchronize the remaining data not yet synchronized among the data requiring pre-synchronization to the second processor.
Further, optionally, 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, font size data, icon style data, and background picture data, which has the smallest data amount. It will be appreciated that synchronizing the data with the smallest amount of data can 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 sequentially 100k, 110k, 500k, and 1MB in size. The target data may in this case be determined to be font style data of 100k, since if the currently selected display theme is still switched, the wasted transmission resources, i.e. the resources consumed for transmitting this 100k, whereas if all data of 100k, 110k, 500k and 1MB are synchronized directly to the second processor, and if the currently selected display theme is still switched, more transmission resources are wasted (i.e. 1MB +500k +110k +100k = 1734KB transmission resources are wasted).
As one way, 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, among 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. Data processing capability is understood herein as the amount of data or 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 greater than that of the second processor. Then, as an adaptation manner, when the general-purpose processor is used as the first processor, the generated first screen data synchronized to the other processors (e.g., low power consumption processors) is pixel data of an area where the content is automatically dynamically changed in the complete screen data. If the general processor is used as the second processor, the generated first screen data synchronized with other processors (for example, the general processor) is the data representing the display content in the whole screen data, so that the authority of the control screen is adapted to the data processing capacity of the processor for obtaining the authority of the control screen and the data quantity required to be processed in the mutual switching process of the general processor and the low-power consumption processor, and the overall operation effect of the electronic equipment is further improved.
It will be appreciated that in the manner in which the first screen data is the data characterizing the display content in the complete screen data, the synchronized data is the indicative data identifying the display content and the display subject, and the complete screen data may be generated only after the pixel data is generated for the processor receiving the indicative data identifying the display content and the display subject, so that the data processing capability requirement for the processor generating the complete screen data based on the indicative data identifying the display content and the display subject is relatively high. In the case where the first screen data is the pixel data of the region where the content is automatically and dynamically changed in the whole screen data, the operation required for the processor that acquires the right to control the screen is simply the stitching of the pixel data, and the data processing capacity of the processor is relatively low. Therefore, the data processing capacity of the processor that obtains the authority of the control screen can be adapted to the amount of data that needs to be processed by the aforementioned configuration.
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 processors are actually switched, the second processor only synchronizes part of the screen data in the whole screen data, so that the first processor controls the screen to display based on the generated whole screen data, the data quantity 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 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 synchronizes the second screen data with the second processor, so that the second screen data stored in the other processors can be updated in real time, and further, after the first processor transfers the control authority to the screen to the second processor, the second processor can also generate the screen data quickly.
Referring to fig. 6, an embodiment of the present application provides a screen data processing method applied to an electronic device, where the electronic device includes a screen and a plurality of processors, each processor is configured to individually control the screen, and the method includes:
step S310: when the electronic device enters a low power consumption mode, the second processor hands over the right to control the screen to the first processor and synchronizes the first screen data to the first processor.
It should be noted that, in this embodiment, the electronic device entering the low power consumption mode may be entering the low power consumption mode based on an event configured by automation, for example, when detecting that the electric quantity is lower than a specified value, triggering the entering the low power consumption mode, or when detecting that no application program other than a system program is running in the electronic device, triggering the entering the low power consumption mode. Furthermore, the low power consumption mode may also be entered in response to a manual operation by a user.
The low power mode may be a mode in which some functions are turned off (e.g., network access functions are turned off), or may be a sleep mode. Wherein in the sleep mode, the electronic device may only display power and time in the screen.
Step S320: the method comprises the steps that a first processor acquires first screen data synchronized when a second processor transfers the right of controlling the screen to the first processor, wherein the first screen data are part of data in complete screen data, the first processor is a processor for controlling the screen currently, and the second processor is a previous processor for controlling the screen.
Step S330: and acquiring second screen data which are synchronized in advance by the second processor before the permission is handed over, wherein the second screen data are part of the whole 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 screen data to the first processor before switching in advance, when the electronic equipment enters a low-power mode to execute actual switching of the processors, the second processor only synchronizes part of screen data in the whole screen data, so that the first processor controls the screen to display based on the generated whole screen data, and negative effects such as 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 time-share control the screen display, and the method includes:
step S410: the first processor monitors screen control rights.
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 characterizes the content to be displayed by the screen.
It will be appreciated that the screen content description information herein is description information generated based on the displayed content object, and is different from the pixel value of each specific pixel point. For example, in the example of a display clock, the content of the screen data in the form of the corresponding screen content description information may be "clock displaying a specified pattern at a specified position", and the screen data in the form of the corresponding pixel value may be the pixel value of each pixel point specified by this clock.
Step S430: the first processor controls the screen to display based on screen content description information.
As one way, the screen content description information may be complete screen data including display content and a display theme that control a scene displayed by the screen when the second processor hands over the right.
Alternatively, the screen content description information may be part of the complete screen data, such as the first screen data described above. 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 is handed over, so that after the first processor acquires the first screen data, the first processor can calculate the complete screen data based on the pre-synchronized second screen data, thereby controlling the screen to display the complete screen data.
Note that, the concept of the display content and the display scene in the present embodiment may refer to the content in the foregoing embodiment.
According to the screen data processing method, in the process of switching the processors, the synchronous data among the processors are configured to describe the display content and the display scene of the specific display content of the screen, and further the pixel value of each pixel in the screen is not required to be directly transmitted, so that the data quantity of the synchronous 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 synchronizing a large amount of screen data once are eliminated.
Referring to fig. 8, in an apparatus 400 for processing screen data provided in an embodiment of the present application, the apparatus 400 is configured to run 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 individually control the screen, and the apparatus 400 includes:
a first data obtaining unit 411, configured to obtain first screen data synchronized when a second processor hands over a right to control the screen to the first processor, where the first screen data is part of data in the complete screen data, the first processor is a processor for currently controlling the screen, and the second processor is a previous processor for controlling the screen.
And a data obtaining unit 412, configured to obtain second screen data that is pre-synchronized by the second processor before the rights are handed over, where the second screen data is part of the complete screen data.
A screen data generating unit 413 for generating complete screen data based on the first screen data and the second screen data.
And 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:
and the data synchronization unit 420 is configured to synchronize, when the first processor detects that the data synchronization condition is met, second screen data in the screen data corresponding to the current display scene to the second processor, 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.
As one way, 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 a way, the data synchronization unit 420 is specifically configured to obtain, when the first processor detects that the data synchronization condition is met, target data, where the target data is part of data in the second screen data in the screen data corresponding to the 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 requirement of synchronizing the data except the target data in the second screen data in the screen data corresponding to the current display scene is met, synchronizing the data except the target data to the second processor. Wherein, the continuous transmission condition includes: and failing to detect that the data synchronization condition is met again within a specified time period after the target data is synchronized to the second processor. The second screen data comprises font style data, font size data, icon style data and background picture data, and the target data is the data with the smallest data quantity in 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:
and 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 by the second processor when the permission to control the screen is handed over to the first processor.
Referring to fig. 11, a screen data processing apparatus 500 provided in an embodiment of the present application is operated in 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 to display in a time-sharing manner, where the apparatus 500 includes:
and a right monitoring unit 510 for monitoring screen control rights.
And the data obtaining unit 520 is configured to receive complete screen data synchronized by the second processor, where the complete screen data includes display content and display theme of a scene displayed by the screen when the second processor hands over the right, if the first processor monitors that the right to control the screen is handed over from the second processor to the first processor.
And a display control unit 530 for controlling the screen to display the complete screen data.
It should be noted that, in the present application, the device embodiment and the foregoing method embodiment correspond to each other, and specific principles in the device embodiment may refer to the content in the foregoing method embodiment, which is not described herein again.
An electronic device provided in the present application will be described with reference to fig. 12.
Referring to fig. 12, based on the above-mentioned screen data processing method and apparatus, another electronic device 200 capable of executing the above-mentioned screen data processing method is further provided in the embodiments of the present application. The electronic device 200 includes one or more (only one is shown) first processors 102, second processors 104, memory 106, and network modules 108 coupled to one another. The memory 106 stores therein a program capable of executing the contents of the foregoing embodiments, and the first processor 102 and the second processor 104 can execute the program stored in the memory 106.
Wherein 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 portions of the overall electronic device 200 using various interfaces and lines to 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 invoking data stored in the memory 106. Alternatively, the first processor 102 and the second processor 104 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The first processor 102 and the second processor 104 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modems may not be integrated into the first processor 102 and the second processor 104 and may be implemented by a single communication chip. Wherein, optionally, the data processing capability of the first processor 102 is higher than the data processing capability of the second processor 104.
The Memory 106 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). 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 (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the terminal 100 in use (such as phonebook, audio-video data, chat-record data), etc.
The network module 108 is configured to receive and transmit electromagnetic waves, and to implement mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices, such as an audio playback 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 the like. The network module 108 may communicate with various networks such as the Internet, intranets, wireless networks, or with other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 108 may interact with base stations.
It should be noted that, as shown in fig. 13, there is provided a block diagram of another electronic device, in which, in the content shown in the figure, the storage area corresponding to the second processor 104 is one storage area (i.e., the storage unit 1041) integrated therein, instead of the memory 106 which is common to the first processor 102 in one hardware level 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 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 invoked by a processor to perform the methods described in the method embodiments above.
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. Optionally, computer readable storage medium 1100 includes non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 1100 has storage space for program code 810 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 1110 may be compressed, for example, in a suitable form.
In summary, in the case that the electronic device includes a screen and a plurality of processors, where each processor is configured to control the screen separately, a first processor configured to currently control the screen acquires first screen data synchronized by a previous second processor configured to control the screen, where the first screen data is part of data in complete screen data, and acquires second screen data synchronized in advance by the second processor before the permission handover, where the second screen data is part of data in the complete screen data, and then 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, in the process of switching the processors, the second processor which controls the screen synchronizes part of the screen data to the first processor before switching, and further, when the processors are actually switched, the second processor only synchronizes part of the screen data in the whole screen data, so that the first processor controls the screen to display based on the generated whole screen data, thereby reducing the data quantity of the synchronized data and the time consumed by synchronization in the switching process of the processors, and eliminating negative effects such as frame loss caused by synchronizing a large amount of screen data for a single time.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, one of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. A screen data processing method applied to an electronic device, wherein 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 mode, and the method is characterized by comprising the following steps:
the first processor receives first screen data synchronized by the second processor when the right to control the screen is handed over to the first processor, wherein the first screen data is part of the whole screen data;
acquiring second screen data which are synchronized in advance by the second processor before the permission handover, wherein the second screen data are 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;
controlling the screen to display the complete screen data;
and after the first processor detects that the data synchronization condition is met, synchronizing second screen data in screen data corresponding to the current display scene to the second processor, wherein the first screen data represents the display content of the current display scene, and the second screen data represents the display theme of the current display scene.
2. The method of claim 1, wherein the data synchronization condition comprises:
after the electronic equipment is started; or alternatively
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.
3. The method according to claim 1, wherein the step of synchronizing the second screen data of the screen data corresponding to the current display scene to the second processor when the first processor detects that the data synchronization condition is satisfied comprises:
when the first processor detects that the data synchronization condition is met, acquiring target data, wherein the target data is part of 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 requirement of synchronizing the data except the target data in the second screen data in the screen data corresponding to the current display scene is met, synchronizing the data except the target data to the second processor.
4. A method according to claim 3, wherein the retransmission condition comprises:
and failing to detect that the data synchronization condition is met again within a specified time period after the target data is synchronized to the second processor.
5. A method according to claim 3, 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, font size data, icon style data, and background picture data having the smallest data amount.
6. The method of any of claims 1-5, wherein the step of the first processor obtaining first screen data synchronized by a second processor when handing over rights to control the screen to the first processor comprises:
when the electronic equipment enters a low-power consumption mode, the second processor transfers the right of controlling the screen to the first processor, and the first processor acquires first screen data synchronized by the second processor.
7. A screen data processing apparatus, which is operated on a first processor of an electronic device, the electronic device further comprising a screen and a second processor, the first processor and the second processor being configured to time-share control the screen display, the apparatus comprising:
a first data obtaining unit, configured to obtain first screen data synchronized when a second processor hands over a right to control the screen to the first processor, where the first screen data is part of data in complete screen data, the first processor is a processor for currently controlling the screen, and the second processor is a previous processor for controlling the screen;
a data acquisition unit, configured to acquire second screen data that is synchronized in advance by the second processor before the permission handover, where the second screen data is part of the complete screen data;
a screen data generating unit configured to generate complete screen data based on the first screen data and the second screen data;
a display control unit for controlling the screen to display the complete screen data;
and the data synchronization unit is used for synchronizing second screen data in the screen data corresponding to the current display scene to the second processor after the first processor detects that the data synchronization condition is met, wherein the first screen data represents the display content of the current display scene, and the second screen data represents the display theme of the current display scene.
8. An electronic device comprising a screen, a first processor, a second processor, 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-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, wherein the program code, when being executed by a processor, performs the method of any of claims 1-6.
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 CN110569008A (en) 2019-12-13
CN110569008B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711718B (en) * 2020-05-07 2021-11-19 荣耀终端有限公司 Electronic device
CN111694532B (en) * 2020-06-11 2021-06-04 翱捷科技股份有限公司 Display control method of single-chip heterogeneous system and wearable device
CN111935497B (en) * 2020-09-18 2021-01-12 武汉中科通达高新技术股份有限公司 Video stream management method and data server for traffic police system

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
基于网络的大屏幕显示系统的设计与实现;刘君;《辽宁大学学报(自然科学版)》;20100515(第02期);全文 *

Also Published As

Publication number Publication date
CN110569008A (en) 2019-12-13

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
US9899002B2 (en) Information processing methods for displaying parts of an object on multiple electronic devices
CN110852938B (en) Display picture generation method, device and storage medium
CN112004086A (en) Video data processing method and device
CN108228358B (en) Method, device, mobile terminal and storage medium for correcting vertical synchronization signal
CN109213462B (en) Android horizontal and vertical screen data synchronization method and device, terminal and readable medium
CN110798615A (en) Shooting method, shooting device, storage medium and terminal
CN113986002A (en) Frame processing method, device and storage medium
CN112057842B (en) Frame rate control method and device and electronic equipment
CN110389696A (en) Method, apparatus, electronic equipment and the storage medium of screen colour gamut control
CN111813490A (en) Method and device for processing interpolation frame
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
CN115934314A (en) Application running method and related equipment
CN111045732A (en) Data processing method, chip, device and storage medium
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
CN108920122B (en) Screen display method, device, terminal and computer readable storage medium
CN108881999B (en) Screen capture processing method and system
CN112532971A (en) Image processing method, image processing device, display terminal and computer readable storage medium
CN114270297A (en) Touch screen point reporting method and device, electronic equipment and storage medium
WO2023138235A1 (en) Theme switching method and apparatus, and device, storage medium and program product
CN113556716B (en) Image content sharing method and device and head-mounted display equipment
CN104866287B (en) Method and device for generating function bar

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