WO2022199299A1 - Display method and apparatus, and electronic device and storage medium - Google Patents

Display method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2022199299A1
WO2022199299A1 PCT/CN2022/077053 CN2022077053W WO2022199299A1 WO 2022199299 A1 WO2022199299 A1 WO 2022199299A1 CN 2022077053 W CN2022077053 W CN 2022077053W WO 2022199299 A1 WO2022199299 A1 WO 2022199299A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
electronic device
screen
brightness parameter
display
Prior art date
Application number
PCT/CN2022/077053
Other languages
French (fr)
Chinese (zh)
Inventor
罗恒勇
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022199299A1 publication Critical patent/WO2022199299A1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the technical field of electronic devices, and more particularly, to a display method, apparatus, electronic device, and storage medium.
  • the present application proposes a display method, apparatus, electronic device and storage medium to improve the above problems.
  • an embodiment of the present application provides a display method, which is applied to an electronic device, the electronic device includes at least a first system and a second system, and the method includes: if the system in a running state is controlled by the first system The system is switched to the second system, and the brightness parameter corresponding to the first system is obtained; the brightness parameter is sent to the second system, so that the second system controls the screen of the electronic device according to the Brightness parameters are displayed.
  • an embodiment of the present application provides a display method, which is applied to an electronic device, where the electronic device includes at least a first processor and a second processor, the first processor is used to run a first system, the The second processor is configured to run the second system, and the method includes: if the system in the running state is switched from the first system to the second system, the first processor acquires the brightness corresponding to the first system parameter; the first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
  • an embodiment of the present application provides a display method, which is applied to an electronic device, where the electronic device at least includes a first processor and a second processor, the first processor is used to run a first system, the The second processor is configured to run the second system, and the method includes: the second processor receives a brightness parameter corresponding to the first system, and the brightness parameter is that if the system in the running state is switched by the first system When it is the second system, the first processor obtains; the second processor controls the screen of the electronic device to display according to the brightness parameter.
  • an embodiment of the present application provides a display device that runs on an electronic device, where the electronic device includes at least a first system and a second system, and the device includes: a data acquisition module, which is used for a display device in a running state. The system is switched from the first system to the second system, and the brightness parameter corresponding to the first system is obtained; the display module is used to send the brightness parameter to the second system, so that the second system The system controls the screen of the electronic device to display according to the brightness parameter.
  • an embodiment of the present application provides an electronic device, the electronic device includes at least a first processor and a second processor, the first processor is used for running the first system, and the second processor is used for Running the second system, the first processor is configured to: if the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system; send the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
  • an embodiment of the present application provides an electronic device, the electronic device includes at least a first processor and a second processor, the first processor is used for running the first system, and the second processor is used for Running the second system, the second processor is configured to: receive a brightness parameter corresponding to the first system, where the brightness parameter is when the system in the running state is switched from the first system to the second system, The first processor obtains and controls the screen of the electronic device to display according to the brightness parameter.
  • embodiments of the present application provide an electronic device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and Configured to be executed by the one or more processors, the one or more application programs are configured to execute the display method provided by the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the display provided in the first aspect above method.
  • FIG. 1 shows a flowchart of a display method provided by an embodiment of the present application.
  • FIG. 2 shows an example diagram of brightness display of a screen before and after system switching provided by an embodiment of the present application.
  • FIG. 3 shows a flowchart of a display method provided by another embodiment of the present application.
  • FIG. 4 shows an example diagram of picture data displayed on a screen before and after system switching provided by an embodiment of the present application.
  • FIG. 5 shows a flowchart of a display method provided by another embodiment of the present application.
  • FIG. 6 shows a schematic diagram of a hardware framework of an electronic device provided by an embodiment of the present application.
  • FIG. 7 shows another schematic diagram of a hardware framework of an electronic device provided by an embodiment of the present application.
  • FIG. 8 shows a flowchart of a display method provided by yet another embodiment of the present application.
  • FIG. 9 shows a flowchart of a display method provided by yet another embodiment of the present application.
  • FIG. 10 shows a flowchart of a display method provided by yet another embodiment of the present application.
  • FIG. 11 shows a structural block diagram of a display device provided by an embodiment of the present application.
  • FIG. 12 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 13 shows a structural block diagram of another electronic device provided by an embodiment of the present application.
  • FIG. 14 shows a structural block diagram of another electronic device provided by an embodiment of the present application.
  • FIG. 15 shows a structural block diagram of still another electronic device provided by an embodiment of the present application.
  • FIG. 16 shows a storage unit for storing or carrying a program code for implementing a display method according to an embodiment of the present application according to an embodiment of the present application.
  • the requirements for various performance indicators of the operating system in the smart device are also higher, and it is also possible to set dual systems on the smart device.
  • the display characteristics (such as screen brightness, etc.) of the smart device are often switched accordingly, which affects the user's visual experience to a certain extent.
  • the inventor found that the brightness parameters corresponding to the first system can be obtained by switching the system in the running state from the first system to the second system, and then the brightness parameters can be sent to the second system, so that the second system can The screen of the control electronic device is displayed according to the brightness parameter.
  • the above method realizes that the screen brightness of the device is displayed the same before and after the system is switched, and the user's visual experience is improved.
  • the inventor proposes a display method, device, electronic device, and storage medium that can make the screen brightness of the device display consistent before and after system switching, and improve the user's visual experience.
  • the electronic device in this embodiment of the present application may be a mobile phone, a smart watch, a tablet computer, a notebook computer, a handheld computer, a wearable device (such as a smart watch), a virtual reality (VR) device, an augmented reality (AR) device ) equipment, wireless terminals in industrial control, wireless terminals in unmanned driving, and wireless terminals in smart homes, etc.
  • the specific type of equipment may not be limited.
  • the method provided in this embodiment may further include the following process: storing the brightness parameter in a memory; sending a data acquisition instruction to the second system to instruct the second system to retrieve data from the The brightness parameter is acquired in the memory, and the screen of the electronic device is controlled to display according to the brightness parameter.
  • the method provided by this embodiment may further include the following process: acquiring picture data corresponding to the first system; comparing to obtain differential image data; sending the differential image data to the second system, so that the second system updates the specified screen data according to the differential image data, and updates the updated screen data to display.
  • the method provided in this embodiment may further include the following process: when the screen of the electronic device is in the off-screen state for a preset time period, triggering the system in the running state to be switched from the first system for the second system.
  • the method provided in this embodiment may further include the following process: when the screen of the electronic device is in the off-screen state for a preset duration, and the screen state of the electronic device is changed from the off-screen state by the off-screen state When the state is switched to the bright screen state, the system in the running state is triggered to switch from the first system to the second system.
  • the method provided in this embodiment may further include the following process: when the screen of the electronic device is in the off-screen state for a preset period of time and it is detected that a message notification of a specific application is received, triggering The system in the running state is switched from the first system to the second system.
  • the method provided in this embodiment may further include the following process: the first processor stops controlling the display controller, and sends a display controller takeover instruction to the second processor,
  • the display controller takeover instruction is used to instruct the second processor to start controlling the display controller, so that the display controller controls the screen of the electronic device to be displayed according to the brightness parameter.
  • the method provided in this embodiment may further include the following process: the first processor controls to turn off the first display controller, and notifies the second processor to turn on the second display controller the controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter.
  • the method provided in this embodiment may further include the following process: the first processor acquires picture data corresponding to the first system; the first processor compares the picture data with the previous Synchronized to the designated picture data of the second system for comparison, to obtain differential image data; the first processor sends the differential image data to the second processor, so that the second processor The difference image data updates the specified screen data, and displays the updated screen data.
  • the method provided in this embodiment may further include the following process: the first processor sends the brightness parameter to the second processor through a hardware communication link.
  • the method provided in this embodiment may further include the following process: the second processor receives differential image data, where the differential image data is a picture corresponding to the first system by the first processor The data is obtained by comparing the specified picture data with the last synchronization to the second system; the second processor updates the specified picture data according to the differential image data, and displays the updated picture data.
  • the method provided in this embodiment may further include the following process: in response to a display controller takeover instruction sent by the first processor, the second processor starts to control the display controller, so that The display controller controls the screen of the electronic device to display according to the brightness parameter.
  • the method provided in this embodiment may further include the following process: in response to a display controller takeover instruction sent by the first processor, the second processor starts the second display controller to The second display controller is made to control the screen of the electronic device to be displayed according to the brightness parameter, and the display controller takes over the instruction for instructing the second processor to turn on the second display controller.
  • FIG. 1 a flowchart of a display method provided by an embodiment of the present application is shown.
  • This embodiment provides a display method, which can be applied to a display device 700 as shown in FIG. 11 and an electronic device equipped with the display device 700.
  • the electronic device includes at least a first system and a second system, wherein the first system The power consumption of one system is higher than the power consumption of the second system.
  • the first system and the second system in this embodiment are run by the same processor, the first system and the second system are respectively configured with applications with different functions, and the first system and the second system interact with each other , complete the function of electronic equipment.
  • the first system and the second system share a display device (ie, share one display device).
  • the first system and the second system in this embodiment may be run by the same processor, and the method includes:
  • Step S110 If the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system.
  • the system in the running state may be understood as a system responsible for data processing, wherein the data processing may include processing at least one of application data and sensor data.
  • a system switch may be triggered. For example, it may be triggered to switch the system in the running state from the first system to the second system.
  • the value of the preset duration may not be limited, for example, it may be a value such as 10 seconds, 15 seconds, 20 seconds, or 30 seconds.
  • the duration that the screen of the electronic device is in the off-screen state can be detected in real time, and when it is detected that the screen of the electronic device is in the off-screen state for a preset duration, the system in the running state can be triggered from the first The system is switched to the second system.
  • the running state when it is detected that the screen of the electronic device is in the off-screen state for a preset time period, and the screen state of the electronic device is switched from the off-screen state to the bright-screen state, the running state can be triggered.
  • the system is switched from the first system to the second system.
  • the system in the running state is triggered to switch from the first system to the second system.
  • the specific function key may include an on/off key or a Home key of the electronic device.
  • the screen is triggered to switch from the off-screen state to the bright-screen state
  • the system in the running state is triggered to switch from the first system to the second system.
  • the specific application may include an instant messaging application
  • the message notification of the specific application may be a message notification of the instant messaging application, or an incoming phone call.
  • the brightness parameter represents the current brightness value of the screen of the electronic device.
  • the electronic device can obtain the brightness parameter corresponding to the first system when the system in the running state is switched from the first system to the second system to obtain the brightness parameter corresponding to the first system. Synchronize the brightness parameter to the second system.
  • Step S120 Send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
  • the acquired brightness parameters of the first system can be stored in the memory of the electronic device, and a data acquisition instruction is sent to the second system to instruct the second system to acquire the brightness parameters of the first system from the memory, And control the screen of the electronic device to display according to the brightness parameter, so that the display brightness of the screen of the electronic device does not change before and after the system switching.
  • FIG. 2 an example diagram of brightness display of the screen before and after system switching provided by this embodiment is shown.
  • the left side of FIG. 2 is a picture corresponding to the first system, and its brightness value is r
  • the right side of FIG. 2 is a picture corresponding to the second system.
  • the brightness value of the picture corresponding to the second system can be the same as the brightness value of the picture corresponding to the first system, that is, at this time
  • the brightness value of the picture corresponding to the second system is also r, and at this time, the content of the picture corresponding to the second system and the content of the picture corresponding to the first system may be the same or different.
  • the acquired brightness parameters of the first system can also be stored locally, and a data acquisition instruction can be sent to the second system to instruct the second system to read the brightness parameters of the first system locally, and control the brightness parameters of the electronic device.
  • the screen displays according to the brightness parameter.
  • the display method provided in this embodiment if the system in the running state is switched from the first system to the second system, the brightness parameters corresponding to the first system are obtained, and then the brightness parameters are sent to the second system, so that the second system controls The screen of the electronic device is displayed according to the brightness parameter.
  • this solution makes the screen brightness of the electronic device when the second system is in the running state, and the electronic device when the first system is in the running state.
  • the brightness of the device screen is consistent, so that the system switching can be completed without the user's sight perception, which improves the user's visual experience.
  • FIG. 3 shows a flowchart of a display method provided by another embodiment of the present application.
  • This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first system and a second system. Two systems, the first system and the second system in this embodiment are run by the same processor.
  • the method includes:
  • Step S210 If the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system.
  • Step S220 Send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
  • Step S230 Acquire picture data corresponding to the first system.
  • the electronic device may acquire screen data corresponding to the first system.
  • the standby screen of the electronic device when the system in the running state is the first system can be determined as the screen data corresponding to the first system, or the screen data corresponding to the first system can be determined.
  • the system in the running state is the first system
  • the screen state of the electronic device is switched from the screen-on state to the screen-off state
  • the last frame displayed is determined as the screen data corresponding to the first system
  • the screen data corresponding to the first system is determined.
  • the specific type may not be limited.
  • the system in the running state is the first system
  • the processor can still perform data interaction with the first system, and the display controller of the electronic device suspends rendering the picture data corresponding to the first system.
  • the picture data corresponding to the first system can be obtained, and store the picture data corresponding to the first system in the memory of the electronic device. Therefore, as a way, the picture data corresponding to the first system can be acquired (read) from the memory.
  • the screen data corresponding to the first system can be acquired.
  • Step S240 Compare the picture data with the designated picture data that was synchronized to the second system last time to obtain differential image data.
  • the electronic device can synchronize the screen data corresponding to the first system to the second system multiple times.
  • the screen data synchronized to the second system by the electronic device before and after the power failure can be different, and the electronic device can synchronize the historical screen data.
  • the screen data of the second system is synchronized for storage.
  • the differential image data represents the difference between the currently acquired image data corresponding to the first system and the image data synchronized to the second system last time, and the difference may specifically include the currently acquired image corresponding to the first system A set consisting of coordinates with different color values (eg, RGB values) between the data and the picture data last synchronized to the second system.
  • the specified picture data represents the picture data that the first system synchronized to the second system last time.
  • the currently obtained picture data corresponding to the first system and the picture data synchronized to the second system last time are composed of several pixels.
  • the first system corresponds to The RGB value of the picture data may be different from the RGB value of the picture data synchronized to the second system last time.
  • the RGB value of the currently obtained picture data corresponding to the first system can be compared with the RGB value of the corresponding coordinate position in the specified picture data synchronized to the second system on a coordinate-by-coordinate basis, and two For the position coordinates of different RGB values in the picture data, the number of the position coordinates may be one or more, and the coordinate set composed of the position coordinates with different RGB values in the two picture data is used as the differential image data.
  • Step S250 Send the difference image data to the second system, so that the second system updates the specified screen data according to the difference image data, and displays the updated screen data.
  • the differential image data can be directly sent to the second system without sending the overall picture data corresponding to the first system to the second system, so that the second system can The content of the specified screen data is updated, and the updated screen data is displayed.
  • the data transmission quantity can be reduced and the network transmission bandwidth can be saved.
  • FIG. 4 an example diagram of picture data displayed on the screen before and after system switching provided by this embodiment is shown.
  • the leftmost part of FIG. 4 represents the standby screen displayed on the screen of the electronic device when the system in the running state is the first system, and when the first system sleeps or turns off the screen, the standby screen displayed on the screen switches to the one in the middle of FIG. 4 .
  • the system in the running state is switched from the first system to the second system, and the screen displayed on the screen of the electronic device is still the standby screen,
  • the images displayed on the screen of the electronic device before and after the system switching are made consistent, which avoids the user from producing bad visual experience due to frequent switching of images.
  • the display method provided in this embodiment realizes that the screen brightness of the device is displayed in a consistent manner before and after system switching, thereby improving the user's visual experience.
  • the difference image data obtained by comparing the picture data corresponding to the first system with the specified picture data synchronized to the second system last time is sent to the second system, and the second system updates the specified picture data according to the difference image data , and display the updated screen data.
  • the images displayed on the screen of the electronic device before and after the system switching are consistent, which avoids the user from producing bad visual experience due to frequent switching of images; meanwhile, the quantity of data transmission is reduced, and the network transmission bandwidth is saved.
  • FIG. 5 shows a flowchart of a display method provided by another embodiment of the present application.
  • This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and A second processor, where the first processor is used to run the first system, and the second processor is used to run the second system, that is, the first system and the second system in this embodiment are run by different processors.
  • the method includes:
  • Step S310 If the system in the running state is switched from the first system to the second system, the first processor acquires the brightness parameter corresponding to the first system.
  • the first processor can obtain the brightness parameter corresponding to the first system, wherein the principle and specific details of obtaining the brightness parameter corresponding to the first system
  • the principle and specific details of obtaining the brightness parameter corresponding to the first system For the implementation process, reference may be made to the descriptions in the foregoing embodiments, which are not repeated here.
  • Step S320 The first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
  • the first processor may send the brightness parameter to the second processor through a hardware communication link (such as an SPI (Serial Peripheral Interface, serial peripheral interface) bus).
  • a hardware communication link such as an SPI (Serial Peripheral Interface, serial peripheral interface) bus.
  • a part of the memory of the electronic device can be opened up as a sub-memory for storing data received by the second processor, so that the second processor can directly The required data is retrieved from the sub-memory without the need for the second processor to acquire data from the memory of the electronic device after the first processor sends a data acquisition instruction to the second processor.
  • the second processor can store the brightness parameter in the sub-memory, so that when the system switching is completed, the second processor can read the brightness parameter value from the sub-memory, and control the electronic The screen of the device is displayed according to the brightness parameter value, so that the brightness of the screen of the electronic device is displayed the same before and after the system switching.
  • the electronic device may include a display controller.
  • FIG. 6 a schematic diagram of a hardware framework of an electronic device provided by an embodiment of the present application is shown. As shown in FIG. 6 , the electronic device in this embodiment may include a first processor, a second processor, a display controller, and a display device.
  • the first processor when the first processor sends the brightness parameter to the second processor, the first processor can stop controlling the display controller (that is, the first processor is still connected to the display controller, but The first processor no longer controls the display controller), and sends a display controller takeover instruction to the second processor, the display controller takeover instruction is used to instruct the second processor to start controlling the display controller, so that the display controller controls The display device of the electronic device (ie, the screen of the electronic device) displays according to the brightness parameter received by the second processor.
  • the electronic device may also include at least two display controllers.
  • the electronic device may include at least a first display controller and a second display controller.
  • FIG. 7 another schematic diagram of a hardware framework of the electronic device provided by the embodiment of the present application is shown.
  • the electronic device in this embodiment may include a first processor, a second processor, a first display controller, a second display controller, and a display device.
  • the first processor when the first processor sends the brightness parameter to the second processor, the first processor can control to turn off the first display controller (that is, the first processor cuts off the connection with the first display controller) ), and notify the second processor to turn on the second display controller, so that the second display controller controls the display device of the electronic device (ie the screen of the electronic device) to display according to the brightness parameter received by the second processor.
  • the first processor acquires the brightness parameter corresponding to the first system, and then sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
  • FIG. 8 shows a flowchart of a display method provided by another embodiment of the present application.
  • This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and a second processor, where the first processor is used to run the first system, the second processor is used to run the second system, and the method includes:
  • Step S410 If the system in the running state is switched from the first system to the second system, the first processor acquires the brightness parameter corresponding to the first system.
  • Step S420 The first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
  • Step S430 the first processor acquires the picture data corresponding to the first system.
  • two areas may be opened up from the memory of the electronic device, which are respectively used to store the data received by the first processor and the data received by the second processor.
  • the sub-memory for storing data received by the first processor may be referred to as the first memory
  • the first memory corresponds to the first system
  • the sub-memory for storing data received by the second processor may be referred to as the first memory is the second memory
  • the second memory corresponds to the second system.
  • the first processor can store the picture data in the first memory corresponding to the first system, so as to facilitate the next synchronization to the picture data of the second system
  • the picture data that is historically synchronized to the second system can be directly obtained from the first memory.
  • Step S440 The first processor compares the picture data with the specified picture data that was synchronized to the second system last time, to obtain differential image data.
  • Step S450 The first processor sends the differential image data to the second processor, so that the second processor updates the specified screen data according to the differential image data, and updates the The following screen data is displayed.
  • the first processor may send the differential image data to the second processor via a hardware communication link.
  • the second processor After the second processor receives the differential image data, it can directly use the differential image data to update the content of the specified screen data synchronized by the first system last time, that is, use the currently acquired screen data corresponding to the first system and the last time Synchronize the difference between the designated screen data to the second system, fill in the designated screen data, obtain the complete screen data, and display the updated screen data.
  • the updated screen data can be stored in the in the second memory corresponding to the second system.
  • the embodiments of the present application are described by taking the electronic device including dual systems as an example.
  • the electronic device may also be configured with more systems.
  • the electronic device may also include three systems and multiple systems.
  • the image display method provided by the embodiment is suitable for the situation that the electronic device includes three systems or multiple systems. Specifically, before and after system switching, the implementation principle and implementation process of making the images displayed on the screen of the electronic device consistent will not be repeated here.
  • the electronic device in addition to at least the first processor and the second processor, may also include three or more processors. In this way, different processors are used to run different systems. And the power consumption corresponding to different processors is different. When the currently running system is switched from a system with relatively high power consumption to a system with relatively low power consumption, it can be realized that the screen displayed on the screen of the electronic device is consistent before and after the system switching, thereby providing convenience for users to view data. There are no examples here.
  • the display method provided in this embodiment realizes that the screen brightness of the device is displayed in a consistent manner before and after system switching, thereby improving the user's visual experience.
  • the difference image data obtained after the first processor compares the picture data corresponding to the first system with the specified picture data synchronized to the second system last time is sent to the second processor, and the second processor is made to make the difference image according to the difference image data.
  • Data updates the specified screen data and displays the updated screen data. So that the screen brightness of the device is consistent before and after the system switching, and the screen displayed on the screen of the electronic device is also consistent before and after the system switching, which avoids the user having a bad visual experience due to frequent switching of the screen; At the same time, data transmission is reduced. number, saving network transmission bandwidth.
  • FIG. 9 shows a flowchart of a display method provided by still another embodiment of the present application.
  • This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and a second processor, where the first processor is used to run the first system, the second processor is used to run the second system, and the method includes:
  • Step S510 The second processor receives the brightness parameter corresponding to the first system, and the brightness parameter is that if the system in the running state is switched from the first system to the second system, the first system obtained by the processor.
  • Step S520 The second processor controls the screen of the electronic device to display according to the brightness parameter.
  • the electronic device may include a display controller, and in this manner, the second processor may respond to the display controller takeover instruction sent by the first processor and start to control the display controller, so that the display controller controls
  • the display device of the electronic device ie, the screen of the electronic device
  • the electronic device may also include at least two display controllers, for example, may include at least a first display controller and a second display controller.
  • the second processor can respond to the display controller takeover instruction sent by the first processor and turn on the second display controller, so that the second display controller controls the display device of the electronic device (ie the screen of the electronic device). ) to display according to the brightness parameter, wherein the display controller takes over the instruction for instructing the second processor to turn on the second display controller.
  • the display method provided in this embodiment realizes that the screen brightness of the device is displayed in a consistent manner before and after system switching, thereby improving the user's visual experience.
  • FIG. 10 shows a flowchart of a display method provided by another embodiment of the present application.
  • This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and a second processor, where the first processor is used to run the first system, the second processor is used to run the second system, and the method includes:
  • Step S610 the second processor receives the brightness parameter corresponding to the first system, the brightness parameter is that if the system in the running state is switched from the first system to the second system, the first system obtained by the processor.
  • Step S620 The second processor controls the screen of the electronic device to display according to the brightness parameter.
  • Step S630 the second processor receives the differential image data, and the differential image data is processed by the first processor by synchronizing the picture data corresponding to the first system with the specified picture data synchronized to the second system last time. compare.
  • Step S640 The second processor updates the specified picture data according to the differential image data, and displays the updated picture data.
  • the display method provided in this embodiment realizes that the screen brightness of the device is displayed the same before and after the system switching, and at the same time, the screen displayed on the screen of the electronic device is also the same before and after the system switching, which avoids the screen brightness jumping before and after the system switching.
  • the user has a bad visual experience due to frequent screen switching; at the same time, the amount of data transmission is reduced and the network transmission bandwidth is saved.
  • FIG. 11 is a structural block diagram of a display device provided by an embodiment of the present application.
  • This embodiment provides a display device 700 that can run on an electronic device, and the electronic device includes at least a first system and a second system,
  • the apparatus 700 includes: a data acquisition module 710 and a display module 720:
  • the data acquisition module 710 is configured to acquire brightness parameters corresponding to the first system if the system in the running state is switched from the first system to the second system.
  • the system in the running state may be triggered to switch from the first system to the second system. For example, as soon as the screen of the electronic device is in the off-screen state for a preset duration, the system in the running state is triggered to switch from the first system to the second system; it can also be that the screen of the electronic device is off-screen When the duration of the state reaches a preset duration, and the screen of the electronic device lights up again, the system in the running state is triggered to switch from the first system to the second system.
  • the screen of the electronic device is in the off-screen state for a preset time, and when a message notification of a specific application is detected, the system in the running state is triggered to switch from the first system to the second system. system.
  • the data acquisition module 710 may also be configured to acquire screen data corresponding to the first system if the system in the running state is switched from the first system to the second system.
  • the apparatus 700 may further include a data comparison module, configured to compare the picture data with the specified picture data synchronized to the second system last time to obtain differential image data.
  • the display module 720 is configured to send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
  • the display module 720 may be specifically configured to store the brightness parameter in the memory; send a data acquisition instruction to the second system to instruct the second system to acquire the brightness parameter from the memory , and control the screen of the electronic device to display according to the brightness parameter.
  • the display module 720 may be configured to send the differential image data to the second system, so that the second system updates the specified screen data according to the differential image data, and updates the updated image data.
  • the following screen data is displayed.
  • the electronic device in this embodiment may further include at least a first processor and a second processor, where the first processor is used to run the first system, and the second processor is used to run the second system.
  • the data acquisition module 710 can be configured to acquire the brightness corresponding to the first system by the first processor if the system in the running state is switched from the first system to the second system parameter; in this way, the display module 720 can be configured to send the brightness parameter to the second processor by the first processor, so that the second processor can control the brightness of the electronic device.
  • the screen displays according to the brightness parameter.
  • the display module 720 may specifically be used by the first processor to send the brightness parameter to the second processor through a hardware communication link.
  • the data acquisition module 710 may also be configured to acquire, by the first processor, screen data corresponding to the first system if the system in the running state is switched from the first system to the second system .
  • the data comparison module may be used by the first processor to compare the picture data with the specified picture data that was synchronized to the second system last time, to obtain differential image data.
  • the display module 720 can also be used for the first processor to send the difference image data to the second processor, so that the second processor can perform the processing on the specified picture data according to the difference image data. Update and display the updated screen data.
  • the apparatus 700 in this embodiment may further include a display control module.
  • the electronic device may further include a display controller, and the display control module in this implementation manner may be used by the first processor to stop controlling the display controller and report to the second The processor sends a display controller takeover instruction, the display controller takeover instruction is used to instruct the second processor to start controlling the display controller, so that the display controller controls the screen of the electronic device according to the Brightness parameters are displayed.
  • the electronic device may further include at least a first display controller and a second display controller, and the display control module in this implementation manner may be used by the first processor to control the closing of the first display controller. a display controller, and notifying the second processor to turn on the second display controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter.
  • the data acquisition module 710 can be used by the second processor to receive the brightness parameter corresponding to the first system, where the brightness parameter is if the system in the running state is switched by the first system When it is the second system, the first processor can obtain it; in this way, the display module 720 can be used by the second processor to control the screen of the electronic device to display according to the brightness parameter .
  • the electronic device may further include a display controller.
  • the display module 720 may be specifically configured to respond to the display controller takeover instruction sent by the first processor, and the second processor starts to control the display controller, so that the display controller controls the screen of the electronic device to display according to the brightness parameter.
  • the electronic device may at least further include a first display controller and a second display controller.
  • the display module 720 may be specifically configured to respond to the display controller takeover instruction sent by the first processor, the The second processor turns on the second display controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter, and the display controller takes over the instruction for instructing the second display controller The processor turns on the second display controller.
  • the data acquisition module 710 can also be used for the second processor to receive differential image data, where the differential image data is obtained by the first processor by synchronizing the picture data corresponding to the first system with the last image data to the second processor. It is obtained by comparing the specified screen data of the second system.
  • the display module 720 can be used for the second processor to update the specified picture data according to the differential image data, and to display the updated picture data.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • the embodiments of the present application further provide an electronic device 100 that can execute the aforementioned display method.
  • the electronic device 100 may include a memory 102 and one or more (only one shown in the figure) processors 104 coupled to each other, and the memory 102 and the processors 104 are connected by a communication line.
  • the memory 102 stores programs that can execute the contents of the foregoing embodiments, and the processor 104 can execute the programs stored in the memory 102 .
  • the processor 104 may include one or more processing cores.
  • the processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 102, and calling the data stored in the memory 102.
  • the processor 104 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 104 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used for rendering and drawing of the display content
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 104, and is implemented by a communication chip alone.
  • the memory 102 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM). Memory 102 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 102 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 playback function, an image playback function, etc.) , instructions for implementing the foregoing embodiments, and the like.
  • the display device may be stored in the memory 102 .
  • the displayed device may be the aforementioned device 700 .
  • the storage data area may also store data (such as phone book, audio and video data, chat record data) created by the electronic device 100 during use.
  • the electronic device 100 may include at least a memory 102 , a first processor 1041 and a second processor 1042 .
  • the first processor 1041 is used for running the first system
  • the second processor 1042 is used for running the first system. to run the second system.
  • the first processor 1041 is used to: if the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system; send the brightness parameter to the second processor 1042, so that the second processor 1042 controls the screen of the electronic device to display according to the brightness parameter.
  • the second processor 1042 is configured to: receive the brightness parameter corresponding to the first system, the brightness parameter obtained by the first processor 1041 when the system in the running state is switched from the first system to the second system; control the electronic device The screen of 100 is displayed according to the brightness parameter.
  • the electronic device 100 may at least include a memory 102 , a first processor 1041 , a second processor 1042 , a display controller 106 and a display device 108 .
  • the difference from FIG. 13 is that in If the system in the running state is being switched from the first system to the second system, the first processor 1041 stops controlling the display controller 106, and sends a display controller takeover instruction to the second processor 1042, and the display controller The takeover instruction is used to instruct the second processor 1042 to start controlling the display controller 106, so that the display controller 106 controls the display device 108 of the electronic device 100 (ie, the screen of the electronic device) to display according to the brightness parameter.
  • the electronic device 100 may include at least a memory 102 , a first processor 1041 , a second processor 1042 , a first display controller 1061 , a first display controller 1062 and a display device 108 ,
  • the difference from FIG. 14 is that in the process of switching the running system from the first system to the second system, the first processor 1041 controls the first display controller 1061 to be turned off, and notifies the second processor 1042 to turn it on.
  • the second display controller 1062 so that the second display controller 1062 controls the display device 108 of the electronic device 100 (ie, the screen of the electronic device) to display according to the brightness parameter.
  • FIG. 16 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
  • the computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • Computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products.
  • Program code 810 may be compressed, for example, in a suitable form.
  • a display method, device, electronic device, and storage medium provided by the embodiments of the present application can obtain the brightness parameter corresponding to the first system by switching the system in the running state from the first system to the second system, Then, the brightness parameter is sent to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
  • this solution realizes that the screen brightness of the device is displayed the same before and after the system is switched, and the user's visual experience is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

A display method and apparatus, and an electronic device and a computer-readable storage medium (800). The display method comprises: if a system in a running state is switched from a first system to a second system, acquiring a brightness parameter corresponding to the first system (S110); and sending the brightness parameter to the second system, such that the second system controls a screen of an electronic device to perform display according to the brightness parameter (S120). By means of the display method, the screen brightness display of a device is consistent before and after a system is switched, thereby improving the visual experience of a user.

Description

显示方法、装置、电子设备及存储介质Display method, device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2021年3月22日提交的申请号为202110302885.0的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese Application No. 202110302885.0, filed on March 22, 2021, which is hereby incorporated by reference in its entirety for all purposes.
技术领域technical field
本申请涉及电子设备技术领域,更具体地,涉及一种显示方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic devices, and more particularly, to a display method, apparatus, electronic device, and storage medium.
背景技术Background technique
随着智能设备技术的快速发展以及智能设备功能的逐步丰富,越来越多的电子设备配置有双系统。With the rapid development of smart device technology and the gradual enrichment of smart device functions, more and more electronic devices are configured with dual systems.
发明内容SUMMARY OF THE INVENTION
本申请提出了一种显示方法、装置、电子设备及存储介质,以改善上述问题。The present application proposes a display method, apparatus, electronic device and storage medium to improve the above problems.
第一方面,本申请实施例提供了一种显示方法,应用于电子设备,所述电子设备至少包括第一系统以及第二系统,所述方法包括:若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数;将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示。In a first aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, the electronic device includes at least a first system and a second system, and the method includes: if the system in a running state is controlled by the first system The system is switched to the second system, and the brightness parameter corresponding to the first system is obtained; the brightness parameter is sent to the second system, so that the second system controls the screen of the electronic device according to the Brightness parameters are displayed.
第二方面,本申请实施例提供了一种显示方法,应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,所述方法包括:若处于运行状态的系统由所述第一系统切换为所述第二系统,所述第一处理器获取所述第一系统对应的亮度参数;所述第一处理器将所述亮度参数发送给所述第二处理器,以使所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。In a second aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, where the electronic device includes at least a first processor and a second processor, the first processor is used to run a first system, the The second processor is configured to run the second system, and the method includes: if the system in the running state is switched from the first system to the second system, the first processor acquires the brightness corresponding to the first system parameter; the first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
第三方面,本申请实施例提供了一种显示方法,应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,所述方法包括:所述第二处理器接收所述第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由所述第一系统切换为所述第二系统时,所述第一处理器获取得到;所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。In a third aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, where the electronic device at least includes a first processor and a second processor, the first processor is used to run a first system, the The second processor is configured to run the second system, and the method includes: the second processor receives a brightness parameter corresponding to the first system, and the brightness parameter is that if the system in the running state is switched by the first system When it is the second system, the first processor obtains; the second processor controls the screen of the electronic device to display according to the brightness parameter.
第四方面,本申请实施例提供了一种显示装置,运行于电子设备,所述电子设备至少包括第一系统以及第二系统,所述装置包括:数据获取模块,用于若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数;显示模块,用于将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示。In a fourth aspect, an embodiment of the present application provides a display device that runs on an electronic device, where the electronic device includes at least a first system and a second system, and the device includes: a data acquisition module, which is used for a display device in a running state. The system is switched from the first system to the second system, and the brightness parameter corresponding to the first system is obtained; the display module is used to send the brightness parameter to the second system, so that the second system The system controls the screen of the electronic device to display according to the brightness parameter.
第五方面,本申请实施例提供了一种电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二 处理器用于运行第二系统,所述第一处理器用于:若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数;将所述亮度参数发送给所述第二处理器,以使所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device includes at least a first processor and a second processor, the first processor is used for running the first system, and the second processor is used for Running the second system, the first processor is configured to: if the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system; send the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
第六方面,本申请实施例提供了一种电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,所述第二处理器用于:接收所述第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由所述第一系统切换为所述第二系统时,所述第一处理器获取得到;控制所述电子设备的屏幕根据所述亮度参数进行显示。In a sixth aspect, an embodiment of the present application provides an electronic device, the electronic device includes at least a first processor and a second processor, the first processor is used for running the first system, and the second processor is used for Running the second system, the second processor is configured to: receive a brightness parameter corresponding to the first system, where the brightness parameter is when the system in the running state is switched from the first system to the second system, The first processor obtains and controls the screen of the electronic device to display according to the brightness parameter.
第七方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行上述第一方面提供的显示方法。In a seventh aspect, embodiments of the present application provide an electronic device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and Configured to be executed by the one or more processors, the one or more application programs are configured to execute the display method provided by the first aspect.
第八方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的显示方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the display provided in the first aspect above method.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出了本申请一实施例提供的一种显示方法的流程图。FIG. 1 shows a flowchart of a display method provided by an embodiment of the present application.
图2示出了本申请实施例提供的系统切换前后屏幕的亮度显示示例图。FIG. 2 shows an example diagram of brightness display of a screen before and after system switching provided by an embodiment of the present application.
图3示出了本申请另一实施例提供的一种显示方法的流程图。FIG. 3 shows a flowchart of a display method provided by another embodiment of the present application.
图4示出了本申请实施例提供的系统切换前后屏幕所显示的画面数据的示例图。FIG. 4 shows an example diagram of picture data displayed on a screen before and after system switching provided by an embodiment of the present application.
图5示出了本申请又一实施例提供的一种显示方法的流程图。FIG. 5 shows a flowchart of a display method provided by another embodiment of the present application.
图6示出了本申请实施例提供的电子设备的一种硬件框架示意图。FIG. 6 shows a schematic diagram of a hardware framework of an electronic device provided by an embodiment of the present application.
图7示出了本申请实施例提供的电子设备的另一种硬件框架示意图。FIG. 7 shows another schematic diagram of a hardware framework of an electronic device provided by an embodiment of the present application.
图8示出了本申请再一实施例提供的一种显示方法的流程图。FIG. 8 shows a flowchart of a display method provided by yet another embodiment of the present application.
图9示出了本申请再一实施例提供的一种显示方法的流程图。FIG. 9 shows a flowchart of a display method provided by yet another embodiment of the present application.
图10示出了本申请再一实施例提供的一种显示方法的流程图。FIG. 10 shows a flowchart of a display method provided by yet another embodiment of the present application.
图11示出了本申请实施例提供的一种显示装置的结构框图。FIG. 11 shows a structural block diagram of a display device provided by an embodiment of the present application.
图12示出了本申请实施例提供的一种电子设备的结构框图。FIG. 12 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
图13示出了本申请实施例提供的另一种电子设备的结构框图。FIG. 13 shows a structural block diagram of another electronic device provided by an embodiment of the present application.
图14示出了本申请实施例提供的又一种电子设备的结构框图。FIG. 14 shows a structural block diagram of another electronic device provided by an embodiment of the present application.
图15示出了本申请实施例提供的再一种电子设备的结构框图。FIG. 15 shows a structural block diagram of still another electronic device provided by an embodiment of the present application.
图16示出了本申请实施例的用于保存或者携带实现根据本申请实施例的显示方法的程序代码的存储单元。FIG. 16 shows a storage unit for storing or carrying a program code for implementing a display method according to an embodiment of the present application according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
随着用户对应用体验需求越来越高,使得对智能设备中操作系统的各项性能指标的要求也随之变高,在智能设备上设置双系统也成为可能。而配置有双系统的智能设备在进行系统切换时,智能设备的显示特性(例如屏幕亮度等)往往也会随之切换,一定程度上影响了用户视觉体验。As users have higher and higher requirements for application experience, the requirements for various performance indicators of the operating system in the smart device are also higher, and it is also possible to set dual systems on the smart device. When a smart device configured with dual systems performs system switching, the display characteristics (such as screen brightness, etc.) of the smart device are often switched accordingly, which affects the user's visual experience to a certain extent.
发明人经过长期的研究发现,可以通过若处于运行状态的系统由第一系统切换为第二系统,获取第一系统对应的亮度参数,然后将亮度参数发送给第二系统,以使第二系统控制电子设备的屏幕根据所述亮度参数进行显示。相对于相关技术中系统切换后设备显示特性也会随之切换而影响用户视觉体验的问题,上述方式实现了在系统切换前后,使设备的屏幕亮度显示为一致,提升用户视觉体验。After long-term research, the inventor found that the brightness parameters corresponding to the first system can be obtained by switching the system in the running state from the first system to the second system, and then the brightness parameters can be sent to the second system, so that the second system can The screen of the control electronic device is displayed according to the brightness parameter. Compared with the problem in the related art that the display characteristics of the device will also be switched after the system is switched, which will affect the user's visual experience, the above method realizes that the screen brightness of the device is displayed the same before and after the system is switched, and the user's visual experience is improved.
因此,为了改善上述问题,发明人提出了本申请提供的可以使得在系统切换前后,使设备的屏幕亮度显示为一致,提升了用户视觉体验的显示方法、装置、电子设备以及存储介质。本申请实施例中的电子设备可以是手机、智能手表、平板电脑、笔记本电脑、掌上电脑、可穿戴设备(例如智能手表),虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制中的无线终端、无人驾驶中的无线终端、以及智慧家庭中的无线终端等,具体设备类型可以不作限定。Therefore, in order to improve the above problems, the inventor proposes a display method, device, electronic device, and storage medium that can make the screen brightness of the device display consistent before and after system switching, and improve the user's visual experience. The electronic device in this embodiment of the present application may be a mobile phone, a smart watch, a tablet computer, a notebook computer, a handheld computer, a wearable device (such as a smart watch), a virtual reality (VR) device, an augmented reality (AR) device ) equipment, wireless terminals in industrial control, wireless terminals in unmanned driving, and wireless terminals in smart homes, etc. The specific type of equipment may not be limited.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:将所述亮度参数存储于内存中;向所述第二系统发送数据获取指令,以指示所述第二系统从所述内存中获取所述亮度参数,并控制所述电子设备的屏幕根据所述亮度参数进行显示。In an implementation manner, the method provided in this embodiment may further include the following process: storing the brightness parameter in a memory; sending a data acquisition instruction to the second system to instruct the second system to retrieve data from the The brightness parameter is acquired in the memory, and the screen of the electronic device is controlled to display according to the brightness parameter.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:获取所述第一系统对应的画面数据;将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据;将所述差分图像数据发送给所述第二系统,以使所述第二系统根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。In an implementation manner, the method provided by this embodiment may further include the following process: acquiring picture data corresponding to the first system; comparing to obtain differential image data; sending the differential image data to the second system, so that the second system updates the specified screen data according to the differential image data, and updates the updated screen data to display.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:当所述电子设备的屏幕处于灭屏状态的时长达到预设时长,触发处于运行状态的系统由所述第一系统切换为所述第二系统。In one embodiment, the method provided in this embodiment may further include the following process: when the screen of the electronic device is in the off-screen state for a preset time period, triggering the system in the running state to be switched from the first system for the second system.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:当所述电子设备的屏幕处于灭屏状态的时长达到预设时长,且所述电子设备的屏幕状态由所述灭屏状态切换为亮屏状态时,触发处于运行状态的系统由所述第一系统切换为所述第二系统。In an implementation manner, the method provided in this embodiment may further include the following process: when the screen of the electronic device is in the off-screen state for a preset duration, and the screen state of the electronic device is changed from the off-screen state by the off-screen state When the state is switched to the bright screen state, the system in the running state is triggered to switch from the first system to the second system.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:当所述电子设备的屏幕处于灭屏状态的时长达到预设时长,且检测接收到特定应用程序的消息通知时,触发处于运行状态的系统由所述第一系统切换为所述第二系统。In an implementation manner, the method provided in this embodiment may further include the following process: when the screen of the electronic device is in the off-screen state for a preset period of time and it is detected that a message notification of a specific application is received, triggering The system in the running state is switched from the first system to the second system.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:所述第一处理器停止对所述显示控制器进行控制,并向所述第二处理器发送显示控制器接管指令,所述显示控制器接管指令用于指示所述第二处理器开始控制所述显示控制器,以使所述显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。In an implementation manner, the method provided in this embodiment may further include the following process: the first processor stops controlling the display controller, and sends a display controller takeover instruction to the second processor, The display controller takeover instruction is used to instruct the second processor to start controlling the display controller, so that the display controller controls the screen of the electronic device to be displayed according to the brightness parameter.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:所述第一处理器控制关闭所述第一显示控制器,并通知所述第二处理器开启所述第 二显示控制器,以使所述第二显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。In an implementation manner, the method provided in this embodiment may further include the following process: the first processor controls to turn off the first display controller, and notifies the second processor to turn on the second display controller the controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:所述第一处理器获取所述第一系统对应的画面数据;所述第一处理器将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据;所述第一处理器将所述差分图像数据发送给所述第二处理器,以使所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。In an implementation manner, the method provided in this embodiment may further include the following process: the first processor acquires picture data corresponding to the first system; the first processor compares the picture data with the previous Synchronized to the designated picture data of the second system for comparison, to obtain differential image data; the first processor sends the differential image data to the second processor, so that the second processor The difference image data updates the specified screen data, and displays the updated screen data.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:所述第一处理器通过硬件通信链路将所述亮度参数发送给所述第二处理器。In an implementation manner, the method provided in this embodiment may further include the following process: the first processor sends the brightness parameter to the second processor through a hardware communication link.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:所述第二处理器接收差分图像数据,所述差分图像数据为所述第一处理器通过将第一系统对应的画面数据与上一次同步给所述第二系统的指定画面数据进行比较得到;所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。In an implementation manner, the method provided in this embodiment may further include the following process: the second processor receives differential image data, where the differential image data is a picture corresponding to the first system by the first processor The data is obtained by comparing the specified picture data with the last synchronization to the second system; the second processor updates the specified picture data according to the differential image data, and displays the updated picture data.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:响应所述第一处理器发送的显示控制器接管指令,所述第二处理器开始控制所述显示控制器,以使所述显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。In an implementation manner, the method provided in this embodiment may further include the following process: in response to a display controller takeover instruction sent by the first processor, the second processor starts to control the display controller, so that The display controller controls the screen of the electronic device to display according to the brightness parameter.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:响应所述第一处理器发送的显示控制器接管指令,所述第二处理器开启所述第二显示控制器,以使所述第二显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示,所述显示控制器接管指令用于指示所述第二处理器开启所述第二显示控制器。In an implementation manner, the method provided in this embodiment may further include the following process: in response to a display controller takeover instruction sent by the first processor, the second processor starts the second display controller to The second display controller is made to control the screen of the electronic device to be displayed according to the brightness parameter, and the display controller takes over the instruction for instructing the second processor to turn on the second display controller.
下面将结合附图具体描述本申请的各实施例。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图1,示出了本申请一实施例提供的一种显示方法的流程图。本实施例提供一种显示方法,可应用于如图11所示的显示装置700以及配置有所述显示装置700的电子设备,所述电子设备至少包括第一系统以及第二系统,其中,第一系统的功耗高于第二系统的功耗。需要说明的是,本实施例中的第一系统以及第二系统由同一个处理器运行,第一系统以及第二系统分别配置有不同功能的应用,第一系统与第二系统之间互相交互,完成电子设备的功能。第一系统以及第二系统共显示器件(即共有一个显示器件)。需要说明的是,本实施例中的第一系统以及第二系统可以是由同一个处理器运行,该方法包括:Referring to FIG. 1 , a flowchart of a display method provided by an embodiment of the present application is shown. This embodiment provides a display method, which can be applied to a display device 700 as shown in FIG. 11 and an electronic device equipped with the display device 700. The electronic device includes at least a first system and a second system, wherein the first system The power consumption of one system is higher than the power consumption of the second system. It should be noted that the first system and the second system in this embodiment are run by the same processor, the first system and the second system are respectively configured with applications with different functions, and the first system and the second system interact with each other , complete the function of electronic equipment. The first system and the second system share a display device (ie, share one display device). It should be noted that the first system and the second system in this embodiment may be run by the same processor, and the method includes:
步骤S110:若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数。Step S110: If the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system.
其中,处于运行状态的系统可以理解为负责进行数据处理的系统,其中,数据处理可以包括处理应用程序的数据以及传感器的数据中的至少一个。The system in the running state may be understood as a system responsible for data processing, wherein the data processing may include processing at least one of application data and sensor data.
作为一种实施方式,当电子设备的屏幕处于灭屏状态的时长达到预设时长,可以触发进行系统切换。例如,可以触发将处于运行状态的系统由第一系统切换为第二系统。其中,预设时长的数值可以不作限定,例如,可以是10秒、15秒、20秒或30秒等数值。As an implementation manner, when the screen of the electronic device is in the off-screen state for a preset period of time, a system switch may be triggered. For example, it may be triggered to switch the system in the running state from the first system to the second system. The value of the preset duration may not be limited, for example, it may be a value such as 10 seconds, 15 seconds, 20 seconds, or 30 seconds.
在一些实施例中,可以实时检测电子设备的屏幕处于灭屏状态的时长,当检测到电子设备的屏幕处于灭屏状态的时长一达到预设时长,就可以触发处于运行状态的系统由第一系统切换为第二系统。In some embodiments, the duration that the screen of the electronic device is in the off-screen state can be detected in real time, and when it is detected that the screen of the electronic device is in the off-screen state for a preset duration, the system in the running state can be triggered from the first The system is switched to the second system.
在另一些实施例中,可以当检测到电子设备的屏幕处于灭屏状态的时长达到预设时长,且电子设备的屏幕状态由灭屏状态切换为亮屏状态时,则可以触发处于运行状态的系统由第一系统切换为第二系统。In other embodiments, when it is detected that the screen of the electronic device is in the off-screen state for a preset time period, and the screen state of the electronic device is switched from the off-screen state to the bright-screen state, the running state can be triggered. The system is switched from the first system to the second system.
例如,在一些具体的实施方式中,当检测到电子设备的屏幕处于灭屏状态的时长达到预设时长,且检测到用户通过触控电子设备的特定功能键使电子设备的屏幕状态由灭屏状态切换为亮屏状态时,则触发处于运行状态的系统由第一系统切换为第二系统。其中,特定功能键可以包括电子设备的开关机键或是Home键等。For example, in some specific implementations, when it is detected that the screen of the electronic device is in the off-screen state for a preset duration, and it is detected that the user touches a specific function key of the electronic device to change the screen state of the electronic device from off-screen When the state is switched to the bright screen state, the system in the running state is triggered to switch from the first system to the second system. Wherein, the specific function key may include an on/off key or a Home key of the electronic device.
在另一些具体的实施方式中,若预先设定了收到特定应用程序的消息通知时,触发屏幕由灭屏状态切换为亮屏状态,那么可以在检测到电子设备的屏幕处于灭屏状态的时长达到预设时长,且检测接收到特定应用程序的消息通知时,触发处于运行状态的系统由第一系统切换为第二系统。其中,特定应用程序可以包括即时通信应用程序,特定应用程序的消息通知可以为即时通信应用程序的消息通知、或者是电话呼入等。In other specific implementations, if it is pre-set that when a message notification of a specific application is received, the screen is triggered to switch from the off-screen state to the bright-screen state, then when it is detected that the screen of the electronic device is in the off-screen state When the duration reaches the preset duration, and when it is detected that a message notification of a specific application is received, the system in the running state is triggered to switch from the first system to the second system. The specific application may include an instant messaging application, and the message notification of the specific application may be a message notification of the instant messaging application, or an incoming phone call.
本申请实施例中,亮度参数表征电子设备的屏幕的当前亮度值。作为一种方式,为了防止系统切换前后电子设备的屏幕发生亮度跳变,电子设备可以在若处于运行状态的系统由第一系统切换为第二系统时,获取第一系统对应的亮度参数,以将该亮度参数同步给第二系统。In this embodiment of the present application, the brightness parameter represents the current brightness value of the screen of the electronic device. As a method, in order to prevent the brightness of the screen of the electronic device from jumping before and after the system switching, the electronic device can obtain the brightness parameter corresponding to the first system when the system in the running state is switched from the first system to the second system to obtain the brightness parameter corresponding to the first system. Synchronize the brightness parameter to the second system.
步骤S120:将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示。Step S120: Send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
作为一种方式,可以将获取到的第一系统的亮度参数存储于电子设备的内存中,向第二系统发送数据获取指令,以指示第二系统从该内存中获取第一系统的亮度参数,并控制电子设备的屏幕根据该亮度参数进行显示,从而使得系统切换前后电子设备的屏幕的显示亮度不变。As a way, the acquired brightness parameters of the first system can be stored in the memory of the electronic device, and a data acquisition instruction is sent to the second system to instruct the second system to acquire the brightness parameters of the first system from the memory, And control the screen of the electronic device to display according to the brightness parameter, so that the display brightness of the screen of the electronic device does not change before and after the system switching.
例如,在一个具体的应用场景中,如图2所示,示出了本实施方式提供的系统切换前后屏幕的亮度显示示例图。图2左为第一系统对应的画面,其亮度值为r,图2右为第二系统对应的画面。当处于运行状态的系统由图2左的第一系统切换为图2右的第二系统时,第二系统对应的画面的亮度值可以与第一系统对应的画面的亮度值相同,即此时第二系统对应的画面的亮度值也为r,而此时第二系统对应的画面内容与第一系统对应的画面内容可以相同,也可以不同。For example, in a specific application scenario, as shown in FIG. 2 , an example diagram of brightness display of the screen before and after system switching provided by this embodiment is shown. The left side of FIG. 2 is a picture corresponding to the first system, and its brightness value is r, and the right side of FIG. 2 is a picture corresponding to the second system. When the system in the running state is switched from the first system on the left of FIG. 2 to the second system on the right of FIG. 2 , the brightness value of the picture corresponding to the second system can be the same as the brightness value of the picture corresponding to the first system, that is, at this time The brightness value of the picture corresponding to the second system is also r, and at this time, the content of the picture corresponding to the second system and the content of the picture corresponding to the first system may be the same or different.
可选的,也可以将获取到的第一系统的亮度参数存储于本地,向第二系统发送数据获取指令,以指示第二系统从本地读取第一系统的亮度参数,并控制电子设备的屏幕根据该亮度参数进行显示。Optionally, the acquired brightness parameters of the first system can also be stored locally, and a data acquisition instruction can be sent to the second system to instruct the second system to read the brightness parameters of the first system locally, and control the brightness parameters of the electronic device. The screen displays according to the brightness parameter.
本实施例提供的显示方法,通过若处于运行状态的系统由第一系统切换为第二系统,获取第一系统对应的亮度参数,然后将亮度参数发送给第二系统,以使第二系统控制电子设备的屏幕根据所述亮度参数进行显示。相对于相关技术中系统切换后设备显示特性也会随之切换而影响用户视觉体验的问题,本方案使得第二系统处于运行状态时的电子设备屏幕亮度,与第一系统处于运行状态时的电子设备屏幕亮度一致,进而可以实现在用户的视线无感知的情况下完成系统切换,提升了用户视觉体验。In the display method provided in this embodiment, if the system in the running state is switched from the first system to the second system, the brightness parameters corresponding to the first system are obtained, and then the brightness parameters are sent to the second system, so that the second system controls The screen of the electronic device is displayed according to the brightness parameter. Compared with the problem in the related art that the display characteristics of the device will also be switched after the system is switched, which will affect the user's visual experience, this solution makes the screen brightness of the electronic device when the second system is in the running state, and the electronic device when the first system is in the running state. The brightness of the device screen is consistent, so that the system switching can be completed without the user's sight perception, which improves the user's visual experience.
请参阅图3,示出了本申请另一实施例提供的一种显示方法的流程图,本实施例提供一种显示方法,可应用于电子设备,所述电子设备至少包括第一系统以及第二系统,本实施例中的第一系统以及第二系统由同一个处理器运行。该方 法包括:Please refer to FIG. 3 , which shows a flowchart of a display method provided by another embodiment of the present application. This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first system and a second system. Two systems, the first system and the second system in this embodiment are run by the same processor. The method includes:
步骤S210:若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数。Step S210: If the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system.
步骤S220:将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示。Step S220: Send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
步骤S230:获取所述第一系统对应的画面数据。Step S230: Acquire picture data corresponding to the first system.
本申请实施方式中,为了避免系统切换前后电子设备的显示画面随之切换而影响用户视觉体验,电子设备可以获取第一系统对应的画面数据。其中,可以将处于运行状态的系统为第一系统时电子设备的待机画面(可以是固定的待机画面,也可以是周期性切换的待机画面)确定为第一系统对应的画面数据,或者可以将处于运行状态的系统为第一系统时、电子设备的屏幕状态由亮屏状态切换为灭屏状态前最后所显示的一帧画面确定为第一系统对应的画面数据,第一系统对应的画面数据的具体类型可以不作限定。In the embodiments of the present application, in order to prevent the display screen of the electronic device from being switched before and after the system switching and affecting the user's visual experience, the electronic device may acquire screen data corresponding to the first system. Wherein, the standby screen of the electronic device when the system in the running state is the first system (it can be a fixed standby screen or a periodically switched standby screen) can be determined as the screen data corresponding to the first system, or the screen data corresponding to the first system can be determined. When the system in the running state is the first system, and the screen state of the electronic device is switched from the screen-on state to the screen-off state, the last frame displayed is determined as the screen data corresponding to the first system, and the screen data corresponding to the first system is determined. The specific type may not be limited.
其中,当处于运行状态的系统为第一系统时,若一定时长内(例如,30秒内,具体时长的数值可以不作限定)没有检测到用户对电子设备的屏幕的操作,电子设备的屏幕状态可以由亮屏状态切换至灭屏状态。此时,处理器仍然可以与第一系统进行数据交互,而电子设备的显示控制器暂停对第一系统对应的画面数据进行渲染,在该种情况下,可以获取第一系统对应的画面数据,并将第一系统对应的画面数据存储在电子设备的内存中。因而,作为一种方式,可以从该内存中获取(读取)第一系统对应的画面数据。Wherein, when the system in the running state is the first system, if the user's operation on the screen of the electronic device is not detected within a certain period of time (for example, within 30 seconds, the value of the specific time period may not be limited), the screen status of the electronic device is not detected. You can switch from the on-screen state to the off-screen state. At this time, the processor can still perform data interaction with the first system, and the display controller of the electronic device suspends rendering the picture data corresponding to the first system. In this case, the picture data corresponding to the first system can be obtained, and store the picture data corresponding to the first system in the memory of the electronic device. Therefore, as a way, the picture data corresponding to the first system can be acquired (read) from the memory.
作为一种方式,若检测到处于运行状态的系统由第一系统切换为第二系统,可以获取第一系统对应的画面数据。As a method, if it is detected that the system in the running state is switched from the first system to the second system, the screen data corresponding to the first system can be acquired.
步骤S240:将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据。Step S240: Compare the picture data with the designated picture data that was synchronized to the second system last time to obtain differential image data.
本实施方式中,电子设备可以多次将第一系统对应的画面数据同步给第二系统,例如,电子设备在断电前后同步给第二系统的画面数据可以不同,电子设备可以将历史画面数据同步给第二系统的画面数据进行存储。In this embodiment, the electronic device can synchronize the screen data corresponding to the first system to the second system multiple times. For example, the screen data synchronized to the second system by the electronic device before and after the power failure can be different, and the electronic device can synchronize the historical screen data. The screen data of the second system is synchronized for storage.
其中,差分图像数据表征当前获取到的第一系统对应的画面数据与上一次同步给第二系统的画面数据之间的差异部分,该差异部分具体可以包括当前获取到的第一系统对应的画面数据与上一次同步给第二系统的画面数据之间色彩值(例如RGB值)不同的坐标组成的集合。指定画面数据表征第一系统上一次同步给第二系统的画面数据。The differential image data represents the difference between the currently acquired image data corresponding to the first system and the image data synchronized to the second system last time, and the difference may specifically include the currently acquired image corresponding to the first system A set consisting of coordinates with different color values (eg, RGB values) between the data and the picture data last synchronized to the second system. The specified picture data represents the picture data that the first system synchronized to the second system last time.
其中,当前获取到的第一系统对应的画面数据与上一次同步给第二系统的画面数据均是由若干个像素点组成,对于同一个像素点坐标所在的位置而言,第一系统对应的画面数据的RGB值和上一次同步给第二系统的画面数据的RGB值可以不同。因而,作为一种方式,可以逐坐标将当前获取到的第一系统对应的画面数据的RGB值与上一次同步给第二系统的指定画面数据中对应坐标位置的RGB值进行对比,得到两个画面数据中RGB值不同的位置坐标,该位置坐标的数量可以为一个或者多个,将两个画面数据中该RGB值不同的位置坐标组成的坐标集合作为差分图像数据。Among them, the currently obtained picture data corresponding to the first system and the picture data synchronized to the second system last time are composed of several pixels. For the position where the coordinates of the same pixel point are located, the first system corresponds to The RGB value of the picture data may be different from the RGB value of the picture data synchronized to the second system last time. Therefore, as a method, the RGB value of the currently obtained picture data corresponding to the first system can be compared with the RGB value of the corresponding coordinate position in the specified picture data synchronized to the second system on a coordinate-by-coordinate basis, and two For the position coordinates of different RGB values in the picture data, the number of the position coordinates may be one or more, and the coordinate set composed of the position coordinates with different RGB values in the two picture data is used as the differential image data.
步骤S250:将所述差分图像数据发送给所述第二系统,以使所述第二系统根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。Step S250: Send the difference image data to the second system, so that the second system updates the specified screen data according to the difference image data, and displays the updated screen data.
作为一种方式,为了降低数据传输数量,可以直接将差分图像数据发送 给第二系统,而无需将第一系统对应的整体画面数据发送给第二系统,以使得第二系统可以根据差分图像数据对指定画面数据的内容进行更新,并对更新后的画面数据进行显示,同时可以减小数据传输数量,节约网络传输带宽。As a way, in order to reduce the amount of data transmission, the differential image data can be directly sent to the second system without sending the overall picture data corresponding to the first system to the second system, so that the second system can The content of the specified screen data is updated, and the updated screen data is displayed. At the same time, the data transmission quantity can be reduced and the network transmission bandwidth can be saved.
在一个具体的应用场景中,如图4所示,示出了本实施方式提供的系统切换前后屏幕所显示的画面数据的示例图。图4的最左边表征处于运行状态的系统为第一系统时,电子设备的屏幕所显示的待机画面,当第一系统休眠或是灭屏后,屏幕所显示的待机画面切换为图4中间的黑屏画面,当用户点击用于开启屏幕的物理按键或者是直接点击屏幕时,处于运行状态的系统由第一系统切换为第二系统,而电子设备的屏幕所显示的画面仍为该待机画面,使得系统切换前后电子设备的屏幕所显示的画面一致,避免了因频繁切换画面而致使用户产生不良视觉体验。In a specific application scenario, as shown in FIG. 4 , an example diagram of picture data displayed on the screen before and after system switching provided by this embodiment is shown. The leftmost part of FIG. 4 represents the standby screen displayed on the screen of the electronic device when the system in the running state is the first system, and when the first system sleeps or turns off the screen, the standby screen displayed on the screen switches to the one in the middle of FIG. 4 . When the user clicks the physical button used to turn on the screen or directly clicks the screen, the system in the running state is switched from the first system to the second system, and the screen displayed on the screen of the electronic device is still the standby screen, The images displayed on the screen of the electronic device before and after the system switching are made consistent, which avoids the user from producing bad visual experience due to frequent switching of images.
本实施例提供的显示方法,实现了在系统切换前后,使设备的屏幕亮度显示为一致,提升用户视觉体验。通过将第一系统对应的画面数据与上一次同步给第二系统的指定画面数据进行比较后得到的差分图像数据发送给第二系统,并使第二系统根据差分图像数据对指定画面数据进行更新,并对更新后的画面数据进行显示。使得系统切换前后电子设备的屏幕所显示的画面一致,避免了因频繁切换画面而致使用户产生不良视觉体验;同时减小了数据传输数量,节约了网络传输带宽。The display method provided in this embodiment realizes that the screen brightness of the device is displayed in a consistent manner before and after system switching, thereby improving the user's visual experience. The difference image data obtained by comparing the picture data corresponding to the first system with the specified picture data synchronized to the second system last time is sent to the second system, and the second system updates the specified picture data according to the difference image data , and display the updated screen data. The images displayed on the screen of the electronic device before and after the system switching are consistent, which avoids the user from producing bad visual experience due to frequent switching of images; meanwhile, the quantity of data transmission is reduced, and the network transmission bandwidth is saved.
请参阅图5,示出了本申请又一实施例提供的一种显示方法的流程图,本实施例提供一种显示方法,可应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,即本实施例中的第一系统以及第二系统由不同的处理器运行。该方法包括:Please refer to FIG. 5 , which shows a flowchart of a display method provided by another embodiment of the present application. This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and A second processor, where the first processor is used to run the first system, and the second processor is used to run the second system, that is, the first system and the second system in this embodiment are run by different processors. The method includes:
步骤S310:若处于运行状态的系统由所述第一系统切换为所述第二系统,所述第一处理器获取所述第一系统对应的亮度参数。Step S310: If the system in the running state is switched from the first system to the second system, the first processor acquires the brightness parameter corresponding to the first system.
本实施方式中,若处于运行状态的系统由第一系统切换为第二系统,可以由第一处理器获取第一系统对应的亮度参数,其中,获取第一系统对应的亮度参数的原理以及具体实施过程可以参考前述实施例中的描述,在此不再赘述。In this embodiment, if the system in the running state is switched from the first system to the second system, the first processor can obtain the brightness parameter corresponding to the first system, wherein the principle and specific details of obtaining the brightness parameter corresponding to the first system For the implementation process, reference may be made to the descriptions in the foregoing embodiments, which are not repeated here.
步骤S320:所述第一处理器将所述亮度参数发送给所述第二处理器,以使所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。Step S320: The first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
作为一种方式,第一处理器可以通过硬件通信链路(如SPI(Serial Peripheral Interface,串行外设接口)总线)将该亮度参数发送给第二处理器。As a way, the first processor may send the brightness parameter to the second processor through a hardware communication link (such as an SPI (Serial Peripheral Interface, serial peripheral interface) bus).
可选的,为了便于降低系统切换过程中获取数据的性能损耗,可以将电子设备的内存的一部分区域开辟为用于存储第二处理器接收到的数据的子内存,使得第二处理器可以直接从子内存中调取所需数据,而无需第一处理器向第二处理器发送数据获取指令后,第二处理器再从电子设备的内存中获取数据。则第二处理器接收到该亮度参数后,可以将该亮度参数存储于该子内存中,以使得在系统切换完成时,第二处理器可以从子内存中读取亮度参数值,并控制电子设备的屏幕根据该亮度参数值进行显示,从而使得在系统切换前后电子设备的屏幕的亮度显示为一致。Optionally, in order to reduce the performance loss of acquiring data during system switching, a part of the memory of the electronic device can be opened up as a sub-memory for storing data received by the second processor, so that the second processor can directly The required data is retrieved from the sub-memory without the need for the second processor to acquire data from the memory of the electronic device after the first processor sends a data acquisition instruction to the second processor. After receiving the brightness parameter, the second processor can store the brightness parameter in the sub-memory, so that when the system switching is completed, the second processor can read the brightness parameter value from the sub-memory, and control the electronic The screen of the device is displayed according to the brightness parameter value, so that the brightness of the screen of the electronic device is displayed the same before and after the system switching.
本实施方式中,电子设备可以包括一个显示控制器。请参阅图6,示出了本申请实施例提供的电子设备的一种硬件框架示意图。如图6所示,本实施方式中的电子设备可以包括第一处理器、第二处理器、显示控制器以及显 示器件。该种方式下,第一处理器在将亮度参数发送给第二处理器的过程中,第一处理器可以停止对显示控制器进行控制(即第一处理器与显示控制器仍有连接,但第一处理器不再控制显示控制器),并向第二处理器发送显示控制器接管指令,该显示控制器接管指令用于指示第二处理器开始控制显示控制器,以使显示控制器控制电子设备的显示器件(即电子设备的屏幕)根据第二处理器接收到的亮度参数进行显示。In this embodiment, the electronic device may include a display controller. Referring to FIG. 6 , a schematic diagram of a hardware framework of an electronic device provided by an embodiment of the present application is shown. As shown in FIG. 6 , the electronic device in this embodiment may include a first processor, a second processor, a display controller, and a display device. In this way, when the first processor sends the brightness parameter to the second processor, the first processor can stop controlling the display controller (that is, the first processor is still connected to the display controller, but The first processor no longer controls the display controller), and sends a display controller takeover instruction to the second processor, the display controller takeover instruction is used to instruct the second processor to start controlling the display controller, so that the display controller controls The display device of the electronic device (ie, the screen of the electronic device) displays according to the brightness parameter received by the second processor.
本实施方式中,电子设备也可以至少包括两个显示控制器,例如,电子设备至少可以包括第一显示控制器与第二显示控制器。请参阅图7,示出了本申请实施例提供的电子设备的另一种硬件框架示意图。如图7所示,本实施方式中的电子设备可以包括第一处理器、第二处理器、第一显示控制器、第二显示控制器以及显示器件。该种方式下,第一处理器在将亮度参数发送给第二处理器的过程中,第一处理器可以控制关闭第一显示控制器(即第一处理器切断与第一显示控制器的连接),并通知第二处理器开启第二显示控制器,以使第二显示控制器控制电子设备的显示器件(即电子设备的屏幕)根据第二处理器接收到的亮度参数进行显示。In this embodiment, the electronic device may also include at least two display controllers. For example, the electronic device may include at least a first display controller and a second display controller. Referring to FIG. 7, another schematic diagram of a hardware framework of the electronic device provided by the embodiment of the present application is shown. As shown in FIG. 7 , the electronic device in this embodiment may include a first processor, a second processor, a first display controller, a second display controller, and a display device. In this way, when the first processor sends the brightness parameter to the second processor, the first processor can control to turn off the first display controller (that is, the first processor cuts off the connection with the first display controller) ), and notify the second processor to turn on the second display controller, so that the second display controller controls the display device of the electronic device (ie the screen of the electronic device) to display according to the brightness parameter received by the second processor.
本实施例提供的显示方法,通过若处于运行状态的系统由第一系统切换为第二系统,由第一处理器获取第一系统对应的亮度参数,然后将亮度参数发送给第二处理器,以使第二处理器控制电子设备的屏幕根据所述亮度参数进行显示。相对于相关技术中系统切换后设备显示特性也会随之切换而影响用户视觉体验的问题,本方案实现了在系统切换前后,使设备的屏幕亮度显示为一致,提升了用户视觉体验。In the display method provided in this embodiment, if the system in the running state is switched from the first system to the second system, the first processor acquires the brightness parameter corresponding to the first system, and then sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter. Compared with the problem in the related art that the display characteristics of the device will also be switched after the system is switched, which will affect the user's visual experience, this solution realizes the consistent display of the screen brightness of the device before and after the system is switched, which improves the user's visual experience.
请参阅图8,示出了本申请再一实施例提供的一种显示方法的流程图,本实施例提供一种显示方法,可应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,该方法包括:Please refer to FIG. 8 , which shows a flowchart of a display method provided by another embodiment of the present application. This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and a second processor, where the first processor is used to run the first system, the second processor is used to run the second system, and the method includes:
步骤S410:若处于运行状态的系统由所述第一系统切换为所述第二系统,所述第一处理器获取所述第一系统对应的亮度参数。Step S410: If the system in the running state is switched from the first system to the second system, the first processor acquires the brightness parameter corresponding to the first system.
步骤S420:所述第一处理器将所述亮度参数发送给所述第二处理器,以使所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。Step S420: The first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
步骤S430:所述第一处理器获取所述第一系统对应的画面数据。Step S430: the first processor acquires the picture data corresponding to the first system.
可选的,可以从电子设备的内存中开辟出两部分区域,分别用于存储第一处理器接收到的数据以及第二处理器接收到的数据。其中,用于存储第一处理器接收到的数据的子内存可以称之为第一内存,第一内存与第一系统对应,用于存储第二处理器接收到的数据的子内存可以称之为第二内存,第二内存与第二系统对应。在该种方式下,第一处理器获取到第一系统对应的画面数据后,可以将该画面数据存储在第一系统对应的第一内存中,以便于下一次同步给第二系统的画面数据不同时,可以直接从该第一内存中获取历史同步给第二系统的画面数据。Optionally, two areas may be opened up from the memory of the electronic device, which are respectively used to store the data received by the first processor and the data received by the second processor. The sub-memory for storing data received by the first processor may be referred to as the first memory, the first memory corresponds to the first system, and the sub-memory for storing data received by the second processor may be referred to as the first memory is the second memory, and the second memory corresponds to the second system. In this way, after acquiring the picture data corresponding to the first system, the first processor can store the picture data in the first memory corresponding to the first system, so as to facilitate the next synchronization to the picture data of the second system At the same time, the picture data that is historically synchronized to the second system can be directly obtained from the first memory.
步骤S440:所述第一处理器将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据。Step S440: The first processor compares the picture data with the specified picture data that was synchronized to the second system last time, to obtain differential image data.
步骤S450:所述第一处理器将所述差分图像数据发送给所述第二处理器,以使所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。Step S450: The first processor sends the differential image data to the second processor, so that the second processor updates the specified screen data according to the differential image data, and updates the The following screen data is displayed.
作为一种方式,第一处理器可以通过硬件通信链路将差分图像数据发送 给第二处理器。第二处理器接收到差分图像数据后,可以直接用差分图像数据对上一次第一系统同步过来的指定画面数据的内容进行更新,即用当前获取到的第一系统对应的画面数据与上一次同步给第二系统的指定画面数据之间的差异部分,对指定画面数据进行填补,得到填补完整的画面数据,并对更新后的画面数据进行显示,同时可以将该更新后的画面数据存储于第二系统对应的第二内存中。As one approach, the first processor may send the differential image data to the second processor via a hardware communication link. After the second processor receives the differential image data, it can directly use the differential image data to update the content of the specified screen data synchronized by the first system last time, that is, use the currently acquired screen data corresponding to the first system and the last time Synchronize the difference between the designated screen data to the second system, fill in the designated screen data, obtain the complete screen data, and display the updated screen data. At the same time, the updated screen data can be stored in the in the second memory corresponding to the second system.
需要说明的是,本申请实施例以电子设备包括双系统为例进行说明,实际实现时电子设备也可以配置有更多的系统,例如,电子设备还可以包括三系统以及多系统,且本申请实施例提供的画面显示方法适用于电子设备包括三系统或者是多系统的情况,具体在系统切换前后,使电子设备的屏幕所显示的画面一致的实施原理以及实施过程在此不再赘述。It should be noted that the embodiments of the present application are described by taking the electronic device including dual systems as an example. In actual implementation, the electronic device may also be configured with more systems. For example, the electronic device may also include three systems and multiple systems. The image display method provided by the embodiment is suitable for the situation that the electronic device includes three systems or multiple systems. Specifically, before and after system switching, the implementation principle and implementation process of making the images displayed on the screen of the electronic device consistent will not be repeated here.
本申请实施例中,电子设备除了可以至少包括第一处理器以及第二处理器之外,也可以包括三个及以上处理器,在这种方式下,不同的处理器用于运行不同的系统,且不同的处理器所对应的功耗不同。在当前运行的系统由功耗相对较高的系统切换至功耗相对较低的系统时,可以实现在系统切换前后,使电子设备的屏幕所显示的画面一致,继而为用户查看数据提供方便,在此不一一例举。In this embodiment of the present application, in addition to at least the first processor and the second processor, the electronic device may also include three or more processors. In this way, different processors are used to run different systems. And the power consumption corresponding to different processors is different. When the currently running system is switched from a system with relatively high power consumption to a system with relatively low power consumption, it can be realized that the screen displayed on the screen of the electronic device is consistent before and after the system switching, thereby providing convenience for users to view data. There are no examples here.
本实施例提供的显示方法,实现了在系统切换前后,使设备的屏幕亮度显示为一致,提升用户视觉体验。通过由第一处理器将第一系统对应的画面数据与上一次同步给第二系统的指定画面数据进行比较后得到的差分图像数据发送给第二处理器,并使第二处理器根据差分图像数据对指定画面数据进行更新,并对更新后的画面数据进行显示。使得在系统切换前后,设备的屏幕亮度显示为一致的同时,系统切换前后电子设备的屏幕所显示的画面也一致,避免了因频繁切换画面而致使用户产生不良视觉体验;同时减小了数据传输数量,节约了网络传输带宽。The display method provided in this embodiment realizes that the screen brightness of the device is displayed in a consistent manner before and after system switching, thereby improving the user's visual experience. The difference image data obtained after the first processor compares the picture data corresponding to the first system with the specified picture data synchronized to the second system last time is sent to the second processor, and the second processor is made to make the difference image according to the difference image data. Data updates the specified screen data and displays the updated screen data. So that the screen brightness of the device is consistent before and after the system switching, and the screen displayed on the screen of the electronic device is also consistent before and after the system switching, which avoids the user having a bad visual experience due to frequent switching of the screen; At the same time, data transmission is reduced. number, saving network transmission bandwidth.
请参阅图9,示出了本申请再一实施例提供的一种显示方法的流程图,本实施例提供一种显示方法,可应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,该方法包括:Please refer to FIG. 9 , which shows a flowchart of a display method provided by still another embodiment of the present application. This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and a second processor, where the first processor is used to run the first system, the second processor is used to run the second system, and the method includes:
步骤S510:所述第二处理器接收所述第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由所述第一系统切换为所述第二系统时,所述第一处理器获取得到。Step S510: The second processor receives the brightness parameter corresponding to the first system, and the brightness parameter is that if the system in the running state is switched from the first system to the second system, the first system obtained by the processor.
步骤S520:所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。Step S520: The second processor controls the screen of the electronic device to display according to the brightness parameter.
本实施方式中,电子设备可以包括一个显示控制器,在该种方式下,第二处理器可以响应第一处理器发送的显示控制器接管指令,开始控制显示控制器,以使显示控制器控制电子设备的显示器件(即电子设备的屏幕)根据亮度参数进行显示。In this embodiment, the electronic device may include a display controller, and in this manner, the second processor may respond to the display controller takeover instruction sent by the first processor and start to control the display controller, so that the display controller controls The display device of the electronic device (ie, the screen of the electronic device) displays according to the brightness parameter.
本实施方式中,电子设备也可以至少包括两个显示控制器,例如,可以至少包括第一显示控制器以及第二显示控制器。在该种方式下,第二处理器可以响应第一处理器发送的显示控制器接管指令,开启第二显示控制器,以使第二显示控制器控制电子设备的显示器件(即电子设备的屏幕)根据亮度参数进行显示,其中,显示控制器接管指令用于指示第二处理器开启第二显示控制器。In this embodiment, the electronic device may also include at least two display controllers, for example, may include at least a first display controller and a second display controller. In this manner, the second processor can respond to the display controller takeover instruction sent by the first processor and turn on the second display controller, so that the second display controller controls the display device of the electronic device (ie the screen of the electronic device). ) to display according to the brightness parameter, wherein the display controller takes over the instruction for instructing the second processor to turn on the second display controller.
本实施例提供的显示方法,实现了在系统切换前后,使设备的屏幕亮度显示为一致,提升用户视觉体验。The display method provided in this embodiment realizes that the screen brightness of the device is displayed in a consistent manner before and after system switching, thereby improving the user's visual experience.
请参阅图10,示出了本申请再一实施例提供的一种显示方法的流程图,本实施例提供一种显示方法,可应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,该方法包括:Please refer to FIG. 10 , which shows a flowchart of a display method provided by another embodiment of the present application. This embodiment provides a display method, which can be applied to an electronic device, where the electronic device at least includes a first processor and a second processor, where the first processor is used to run the first system, the second processor is used to run the second system, and the method includes:
步骤S610:所述第二处理器接收所述第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由所述第一系统切换为所述第二系统时,所述第一处理器获取得到。Step S610: the second processor receives the brightness parameter corresponding to the first system, the brightness parameter is that if the system in the running state is switched from the first system to the second system, the first system obtained by the processor.
步骤S620:所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。Step S620: The second processor controls the screen of the electronic device to display according to the brightness parameter.
步骤S630:所述第二处理器接收差分图像数据,所述差分图像数据为所述第一处理器通过将第一系统对应的画面数据与上一次同步给所述第二系统的指定画面数据进行比较得到。Step S630: the second processor receives the differential image data, and the differential image data is processed by the first processor by synchronizing the picture data corresponding to the first system with the specified picture data synchronized to the second system last time. compare.
步骤S640:所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。Step S640: The second processor updates the specified picture data according to the differential image data, and displays the updated picture data.
本实施例提供的显示方法,实现了在系统切换前后,设备的屏幕亮度显示为一致的同时,系统切换前后电子设备的屏幕所显示的画面也一致,避免了系统切换前后屏幕的亮度跳变以及因频繁切换画面而致使用户产生不良视觉体验;同时减小了数据传输数量,节约了网络传输带宽。The display method provided in this embodiment realizes that the screen brightness of the device is displayed the same before and after the system switching, and at the same time, the screen displayed on the screen of the electronic device is also the same before and after the system switching, which avoids the screen brightness jumping before and after the system switching. The user has a bad visual experience due to frequent screen switching; at the same time, the amount of data transmission is reduced and the network transmission bandwidth is saved.
请参阅图11,为本申请实施例提供的一种显示装置的结构框图,本实施例提供一种显示装置700,可以运行于电子设备,所述电子设备至少包括第一系统以及第二系统,所述装置700包括:数据获取模块710、以及显示模块720:Please refer to FIG. 11 , which is a structural block diagram of a display device provided by an embodiment of the present application. This embodiment provides a display device 700 that can run on an electronic device, and the electronic device includes at least a first system and a second system, The apparatus 700 includes: a data acquisition module 710 and a display module 720:
数据获取模块710,用于若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数。The data acquisition module 710 is configured to acquire brightness parameters corresponding to the first system if the system in the running state is switched from the first system to the second system.
作为一种方式,可以在当所述电子设备的屏幕处于灭屏状态的时长达到预设时长的情况下,触发处于运行状态的系统由所述第一系统切换为所述第二系统。例如,可以是电子设备的屏幕处于灭屏状态的时长一达到预设时长就触发处于运行状态的系统由所述第一系统切换为所述第二系统;也可以是电子设备的屏幕处于灭屏状态的时长达到预设时长、且电子设备的屏幕再次亮屏时再触发处于运行状态的系统由所述第一系统切换为所述第二系统。再例如,可以是电子设备的屏幕处于灭屏状态的时长达到预设时长、且检测接收到特定应用程序的消息通知时,触发处于运行状态的系统由所述第一系统切换为所述第二系统。As one way, when the screen of the electronic device is in the off-screen state for a preset time period, the system in the running state may be triggered to switch from the first system to the second system. For example, as soon as the screen of the electronic device is in the off-screen state for a preset duration, the system in the running state is triggered to switch from the first system to the second system; it can also be that the screen of the electronic device is off-screen When the duration of the state reaches a preset duration, and the screen of the electronic device lights up again, the system in the running state is triggered to switch from the first system to the second system. For another example, it may be that the screen of the electronic device is in the off-screen state for a preset time, and when a message notification of a specific application is detected, the system in the running state is triggered to switch from the first system to the second system. system.
本实施方式中,数据获取模块710还可以用于在若处于运行状态的系统由所述第一系统切换为所述第二系统的情况下,获取所述第一系统对应的画面数据。在这种方式下,装置700还可以包括数据比较模块,用于将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据。In this embodiment, the data acquisition module 710 may also be configured to acquire screen data corresponding to the first system if the system in the running state is switched from the first system to the second system. In this manner, the apparatus 700 may further include a data comparison module, configured to compare the picture data with the specified picture data synchronized to the second system last time to obtain differential image data.
显示模块720,用于将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示。The display module 720 is configured to send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
本实施方式中,显示模块720具体可以用于将所述亮度参数存储于内存中;向所述第二系统发送数据获取指令,以指示所述第二系统从所述内存中 获取所述亮度参数,并控制所述电子设备的屏幕根据所述亮度参数进行显示。In this embodiment, the display module 720 may be specifically configured to store the brightness parameter in the memory; send a data acquisition instruction to the second system to instruct the second system to acquire the brightness parameter from the memory , and control the screen of the electronic device to display according to the brightness parameter.
本实施方式中,显示模块720可以用于将所述差分图像数据发送给所述第二系统,以使所述第二系统根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。In this embodiment, the display module 720 may be configured to send the differential image data to the second system, so that the second system updates the specified screen data according to the differential image data, and updates the updated image data. The following screen data is displayed.
需要说明的是,本实施方式中的电子设备至少还可以包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统。It should be noted that the electronic device in this embodiment may further include at least a first processor and a second processor, where the first processor is used to run the first system, and the second processor is used to run the second system.
作为一种实现方式,数据获取模块710,可以用于若处于运行状态的系统由所述第一系统切换为所述第二系统,由所述第一处理器获取所述第一系统对应的亮度参数;在该种方式下,显示模块720,可以用于由所述第一处理器将所述亮度参数发送给所述第二处理器,以使所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。其中,显示模块720,具体可以用于所述第一处理器通过硬件通信链路将所述亮度参数发送给所述第二处理器。As an implementation manner, the data acquisition module 710 can be configured to acquire the brightness corresponding to the first system by the first processor if the system in the running state is switched from the first system to the second system parameter; in this way, the display module 720 can be configured to send the brightness parameter to the second processor by the first processor, so that the second processor can control the brightness of the electronic device. The screen displays according to the brightness parameter. The display module 720 may specifically be used by the first processor to send the brightness parameter to the second processor through a hardware communication link.
其中,数据获取模块710还可以用于在若处于运行状态的系统由所述第一系统切换为所述第二系统的情况下,所述第一处理器获取所述第一系统对应的画面数据。数据比较模块可以用于所述第一处理器将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据。而显示模块720还可以用于所述第一处理器将所述差分图像数据发送给所述第二处理器,以使所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。Wherein, the data acquisition module 710 may also be configured to acquire, by the first processor, screen data corresponding to the first system if the system in the running state is switched from the first system to the second system . The data comparison module may be used by the first processor to compare the picture data with the specified picture data that was synchronized to the second system last time, to obtain differential image data. And the display module 720 can also be used for the first processor to send the difference image data to the second processor, so that the second processor can perform the processing on the specified picture data according to the difference image data. Update and display the updated screen data.
可选的,本实施方式中的装置700还可以包括显示控制模块。在一种实施方式中,电子设备还可以包括显示控制器,该种实施方式中的显示控制模块可以用于所述第一处理器停止对所述显示控制器进行控制,并向所述第二处理器发送显示控制器接管指令,所述显示控制器接管指令用于指示所述第二处理器开始控制所述显示控制器,以使所述显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。Optionally, the apparatus 700 in this embodiment may further include a display control module. In an implementation manner, the electronic device may further include a display controller, and the display control module in this implementation manner may be used by the first processor to stop controlling the display controller and report to the second The processor sends a display controller takeover instruction, the display controller takeover instruction is used to instruct the second processor to start controlling the display controller, so that the display controller controls the screen of the electronic device according to the Brightness parameters are displayed.
在另一种实施方式中,电子设备至少还可以包括第一显示控制器以及第二显示控制器,该种实施方式中的显示控制模块可以用于所述第一处理器控制关闭所述第一显示控制器,并通知所述第二处理器开启所述第二显示控制器,以使所述第二显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。In another implementation manner, the electronic device may further include at least a first display controller and a second display controller, and the display control module in this implementation manner may be used by the first processor to control the closing of the first display controller. a display controller, and notifying the second processor to turn on the second display controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter.
作为另一种实现方式,数据获取模块710,可以用于所述第二处理器接收所述第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由所述第一系统切换为所述第二系统时,所述第一处理器获取得到;在该种方式下,显示模块720,可以用于所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。As another implementation manner, the data acquisition module 710 can be used by the second processor to receive the brightness parameter corresponding to the first system, where the brightness parameter is if the system in the running state is switched by the first system When it is the second system, the first processor can obtain it; in this way, the display module 720 can be used by the second processor to control the screen of the electronic device to display according to the brightness parameter .
本实施方式中,电子设备还可以包括显示控制器,在该种方式下,显示模块720具体可以用于响应所述第一处理器发送的显示控制器接管指令,所述第二处理器开始控制所述显示控制器,以使所述显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。或者电子设备至少还可以包括第一显示控制器以及第二显示控制器,在该种方式下,显示模块720具体可以用于响应所述第一处理器发送的显示控制器接管指令,所述第二处理器开启所 述第二显示控制器,以使所述第二显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示,所述显示控制器接管指令用于指示所述第二处理器开启所述第二显示控制器。In this embodiment, the electronic device may further include a display controller. In this manner, the display module 720 may be specifically configured to respond to the display controller takeover instruction sent by the first processor, and the second processor starts to control the display controller, so that the display controller controls the screen of the electronic device to display according to the brightness parameter. Or the electronic device may at least further include a first display controller and a second display controller. In this manner, the display module 720 may be specifically configured to respond to the display controller takeover instruction sent by the first processor, the The second processor turns on the second display controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter, and the display controller takes over the instruction for instructing the second display controller The processor turns on the second display controller.
可选的,数据获取模块710还可以用于所述第二处理器接收差分图像数据,所述差分图像数据为所述第一处理器通过将第一系统对应的画面数据与上一次同步给所述第二系统的指定画面数据进行比较得到。显示模块720,可以用于所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。Optionally, the data acquisition module 710 can also be used for the second processor to receive differential image data, where the differential image data is obtained by the first processor by synchronizing the picture data corresponding to the first system with the last image data to the second processor. It is obtained by comparing the specified screen data of the second system. The display module 720 can be used for the second processor to update the specified picture data according to the differential image data, and to display the updated picture data.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
基于上述的显示方法及装置,本申请实施例还提供了一种可以执行前述显示方法的电子设备100。Based on the above-mentioned display method and apparatus, the embodiments of the present application further provide an electronic device 100 that can execute the aforementioned display method.
在一些实施方式中,请参阅图12,电子设备100可以包括存储器102以及相互耦合的一个或多个(图中仅示出一个)处理器104,存储器102以及处理器104之间通信线路连接。存储器102中存储有可以执行前述实施例中内容的程序,而处理器104可以执行存储器102中存储的程序。In some embodiments, referring to FIG. 12 , the electronic device 100 may include a memory 102 and one or more (only one shown in the figure) processors 104 coupled to each other, and the memory 102 and the processors 104 are connected by a communication line. The memory 102 stores programs that can execute the contents of the foregoing embodiments, and the processor 104 can execute the programs stored in the memory 102 .
其中,处理器104可以包括一个或者多个处理核。处理器104利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器102内的指令、程序、代码集或指令集,以及调用存储在存储器102内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器104可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器104可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器104中,单独通过一块通信芯片进行实现。The processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 102, and calling the data stored in the memory 102. Various functions of the electronic device 100 and processing data. Optionally, the processor 104 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). A hardware form is implemented. The processor 104 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 104, and is implemented by a communication chip alone.
存储器102可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器102可用于存储指令、程序、代码、代码集或指令集。存储器102可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现前述各个实施例的指令等。例如,存储器102中可以存储有显示的装置。该显示的装置可以为前述的装置700。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 102 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM). Memory 102 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 102 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 playback function, an image playback function, etc.) , instructions for implementing the foregoing embodiments, and the like. For example, the display device may be stored in the memory 102 . The displayed device may be the aforementioned device 700 . The storage data area may also store data (such as phone book, audio and video data, chat record data) created by the electronic device 100 during use.
在一些实施方式中,请参阅图13,电子设备100至少可以包括存储器 102、第一处理器1041以及第二处理器1042,第一处理器1041用于运行第一系统,第二处理器1042用于运行第二系统。第一处理器1041用于:若处于运行状态的系统由第一系统切换为第二系统,获取第一系统对应的亮度参数;将亮度参数发送给第二处理器1042,以使第二处理器1042控制电子设备的屏幕根据亮度参数进行显示。第二处理器1042用于:接收第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由第一系统切换为第二系统时,第一处理器1041获取得到;控制电子设备100的屏幕根据所述亮度参数进行显示。In some embodiments, referring to FIG. 13 , the electronic device 100 may include at least a memory 102 , a first processor 1041 and a second processor 1042 . The first processor 1041 is used for running the first system, and the second processor 1042 is used for running the first system. to run the second system. The first processor 1041 is used to: if the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system; send the brightness parameter to the second processor 1042, so that the second processor 1042 controls the screen of the electronic device to display according to the brightness parameter. The second processor 1042 is configured to: receive the brightness parameter corresponding to the first system, the brightness parameter obtained by the first processor 1041 when the system in the running state is switched from the first system to the second system; control the electronic device The screen of 100 is displayed according to the brightness parameter.
在一些实施方式中,请参阅图14,电子设备100至少可以包括存储器102、第一处理器1041、第二处理器1042、显示控制器106以及显示器件108,和图13所不同的是,在若处于运行状态的系统由第一系统切换为第二系统的过程中,第一处理器1041停止对显示控制器106进行控制,并向第二处理器1042发送显示控制器接管指令,显示控制器接管指令用于指示第二处理器1042开始控制显示控制器106,以使显示控制器106控制电子设备100的显示器件108(即电子设备的屏幕)根据所述亮度参数进行显示。In some embodiments, referring to FIG. 14 , the electronic device 100 may at least include a memory 102 , a first processor 1041 , a second processor 1042 , a display controller 106 and a display device 108 . The difference from FIG. 13 is that in If the system in the running state is being switched from the first system to the second system, the first processor 1041 stops controlling the display controller 106, and sends a display controller takeover instruction to the second processor 1042, and the display controller The takeover instruction is used to instruct the second processor 1042 to start controlling the display controller 106, so that the display controller 106 controls the display device 108 of the electronic device 100 (ie, the screen of the electronic device) to display according to the brightness parameter.
在一些实施方式中,请参阅图15,电子设备100至少可以包括存储器102、第一处理器1041、第二处理器1042、第一显示控制器1061、第一显示控制器1062以及显示器件108,和图14所不同的是,在若处于运行状态的系统由第一系统切换为第二系统的过程中,第一处理器1041控制关闭第一显示控制器1061,并通知第二处理器1042开启第二显示控制器1062,以使第二显示控制器1062控制电子设备100的显示器件108(即电子设备的屏幕)根据所述亮度参数进行显示。In some embodiments, referring to FIG. 15 , the electronic device 100 may include at least a memory 102 , a first processor 1041 , a second processor 1042 , a first display controller 1061 , a first display controller 1062 and a display device 108 , The difference from FIG. 14 is that in the process of switching the running system from the first system to the second system, the first processor 1041 controls the first display controller 1061 to be turned off, and notifies the second processor 1042 to turn it on. The second display controller 1062, so that the second display controller 1062 controls the display device 108 of the electronic device 100 (ie, the screen of the electronic device) to display according to the brightness parameter.
请参考图16,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 16 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. Computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.
综上所述,本申请实施例提供的一种显示方法、装置、电子设备以及存储介质,通过若处于运行状态的系统由第一系统切换为第二系统,获取第一系统对应的亮度参数,然后将亮度参数发送给第二系统,以使第二系统控制电子设备的屏幕根据所述亮度参数进行显示。相对于相关技术中系统切换后设备显示特性也会随之切换而影响用户视觉体验的问题,本方案实现了在系统切换前后,使设备的屏幕亮度显示为一致,提升用户视觉体验。To sum up, a display method, device, electronic device, and storage medium provided by the embodiments of the present application can obtain the brightness parameter corresponding to the first system by switching the system in the running state from the first system to the second system, Then, the brightness parameter is sent to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter. Compared with the problem in the related art that the display characteristics of the device will also be switched after the system is switched, which will affect the user's visual experience, this solution realizes that the screen brightness of the device is displayed the same before and after the system is switched, and the user's visual experience is improved.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种显示方法,其中,应用于电子设备,所述电子设备至少包括第一系统以及第二系统,所述方法包括:A display method, wherein applied to an electronic device, the electronic device includes at least a first system and a second system, the method comprising:
    若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数;If the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system;
    将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示。Sending the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
  2. 根据权利要求1所述的方法,其中,所述将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示,包括:The method according to claim 1, wherein the sending the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter, comprising:
    将所述亮度参数存储于内存中;storing the brightness parameter in memory;
    向所述第二系统发送数据获取指令,以指示所述第二系统从所述内存中获取所述亮度参数,并控制所述电子设备的屏幕根据所述亮度参数进行显示。Send a data acquisition instruction to the second system to instruct the second system to acquire the brightness parameter from the memory, and control the screen of the electronic device to display according to the brightness parameter.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    获取所述第一系统对应的画面数据;acquiring picture data corresponding to the first system;
    将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据;Comparing the picture data with the specified picture data synchronised to the second system last time to obtain differential image data;
    将所述差分图像数据发送给所述第二系统,以使所述第二系统根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。The difference image data is sent to the second system, so that the second system updates the specified screen data according to the difference image data, and displays the updated screen data.
  4. 根据权利要求1-3任一项所述的方法,其中,所述若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数之前,还包括:The method according to any one of claims 1-3, wherein, if the system in the running state is switched from the first system to the second system, before acquiring the brightness parameter corresponding to the first system, Also includes:
    当所述电子设备的屏幕处于灭屏状态的时长达到预设时长,触发处于运行状态的系统由所述第一系统切换为所述第二系统。When the screen of the electronic device is in the off-screen state for a preset time period, the system in the running state is triggered to switch from the first system to the second system.
  5. 根据权利要求1-3任一所述的方法,其中,所述若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数之前,还包括:The method according to any one of claims 1-3, wherein, if the system in the running state is switched from the first system to the second system, before acquiring the brightness parameter corresponding to the first system, further include:
    当所述电子设备的屏幕处于灭屏状态的时长达到预设时长,且所述电子设备的屏幕状态由所述灭屏状态切换为亮屏状态时,触发处于运行状态的系统由所述第一系统切换为所述第二系统。When the screen of the electronic device is in the off-screen state for a preset duration, and the screen state of the electronic device is switched from the off-screen state to the on-screen state, the system in the running state is triggered to be activated by the first The system is switched to the second system.
  6. 根据权利要求1-3任一所述的方法,其中,若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数之前,还包括:The method according to any one of claims 1-3, wherein if the system in the running state is switched from the first system to the second system, before acquiring the brightness parameter corresponding to the first system, the method further comprises:
    当所述电子设备的屏幕处于灭屏状态的时长达到预设时长,且检测接收到特定应用程序的消息通知时,触发处于运行状态的系统由所述第一系统切换为所述第二系统。When the screen of the electronic device is in the off-screen state for a preset period of time, and it is detected that a message notification of a specific application is received, the system in the running state is triggered to switch from the first system to the second system.
  7. 一种显示方法,其中,应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,所述方法包括:A display method, which is applied to an electronic device, the electronic device includes at least a first processor and a second processor, the first processor is used to run a first system, and the second processor is used to run a second processor system, the method includes:
    若处于运行状态的系统由所述第一系统切换为所述第二系统,所述第一处理器获取所述第一系统对应的亮度参数;If the system in the running state is switched from the first system to the second system, the first processor acquires the brightness parameter corresponding to the first system;
    所述第一处理器将所述亮度参数发送给所述第二处理器,以使所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。The first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
  8. 根据权利要求7所述的方法,其中,所述电子设备还包括显示控制器,所述方法还包括:The method of claim 7, wherein the electronic device further comprises a display controller, the method further comprising:
    所述第一处理器停止对所述显示控制器进行控制,并向所述第二处理器发送显示控制器接管指令,所述显示控制器接管指令用于指示所述第二处理器开始控制所述显示控制器,以使所述显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。The first processor stops controlling the display controller, and sends a display controller takeover instruction to the second processor, where the display controller takeover instruction is used to instruct the second processor to start controlling the computer. the display controller, so that the display controller controls the screen of the electronic device to display according to the brightness parameter.
  9. 根据权利要求7所述的方法,其中,所述电子设备至少还包括第一显示控制器以及第二显示控制器,所述方法还包括:The method of claim 7, wherein the electronic device further comprises at least a first display controller and a second display controller, the method further comprising:
    所述第一处理器控制关闭所述第一显示控制器,并通知所述第二处理器开启所述第二显示控制器,以使所述第二显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。The first processor controls to turn off the first display controller, and notifies the second processor to turn on the second display controller, so that the second display controller controls the screen according to the electronic device The brightness parameter is displayed.
  10. 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7, wherein the method further comprises:
    所述第一处理器获取所述第一系统对应的画面数据;obtaining, by the first processor, picture data corresponding to the first system;
    所述第一处理器将所述画面数据与上一次同步给所述第二系统的指定画面数据进行比较,得到差分图像数据;The first processor compares the picture data with the specified picture data synchronized to the second system last time to obtain differential image data;
    所述第一处理器将所述差分图像数据发送给所述第二处理器,以使所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。The first processor sends the difference image data to the second processor, so that the second processor updates the specified picture data according to the difference image data, and updates the updated picture. data is displayed.
  11. 根据权利要求7-10任一项所述的方法,其中,所述第一处理器将所述亮度参数发送给所述第二处理器,包括:The method according to any one of claims 7-10, wherein the first processor sends the brightness parameter to the second processor, comprising:
    所述第一处理器通过硬件通信链路将所述亮度参数发送给所述第二处理器。The first processor sends the brightness parameter to the second processor through a hardware communication link.
  12. 一种显示方法,其中,应用于电子设备,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,所述方法包括:A display method, which is applied to an electronic device, the electronic device includes at least a first processor and a second processor, the first processor is used to run a first system, and the second processor is used to run a second processor system, the method includes:
    所述第二处理器接收所述第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由所述第一系统切换为所述第二系统时,所述第一处理器获取得到;The second processor receives the brightness parameter corresponding to the first system, and the brightness parameter is obtained by the first processor when the system in the running state is switched from the first system to the second system. get;
    所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。The second processor controls the screen of the electronic device to display according to the brightness parameter.
  13. 根据权利要求12所述的方法,其中,所述方法还包括:The method of claim 12, wherein the method further comprises:
    所述第二处理器接收差分图像数据,所述差分图像数据为所述第一处 理器通过将第一系统对应的画面数据与上一次同步给所述第二系统的指定画面数据进行比较得到;The second processor receives differential image data, and the differential image data is obtained by the first processor by comparing the picture data corresponding to the first system with the specified picture data synchronised to the second system last time;
    所述第二处理器根据所述差分图像数据对所述指定画面数据进行更新,并对更新后的画面数据进行显示。The second processor updates the specified picture data according to the difference image data, and displays the updated picture data.
  14. 根据权利要求12所述的方法,其中,所述电子设备还包括显示控制器,所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示,包括:The method according to claim 12, wherein the electronic device further comprises a display controller, and the second processor controls the screen of the electronic device to display according to the brightness parameter, comprising:
    响应所述第一处理器发送的显示控制器接管指令,所述第二处理器开始控制所述显示控制器,以使所述显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示。In response to the display controller takeover instruction sent by the first processor, the second processor starts to control the display controller, so that the display controller controls the screen of the electronic device to display according to the brightness parameter .
  15. 根据权利要求12所述的方法,其中,所述电子设备至少还包括第一显示控制器以及第二显示控制器,所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示,包括:The method according to claim 12, wherein the electronic device further comprises at least a first display controller and a second display controller, the second processor controls the screen of the electronic device to display according to the brightness parameter ,include:
    响应所述第一处理器发送的显示控制器接管指令,所述第二处理器开启所述第二显示控制器,以使所述第二显示控制器控制所述电子设备的屏幕根据所述亮度参数进行显示,所述显示控制器接管指令用于指示所述第二处理器开启所述第二显示控制器。In response to the display controller takeover instruction sent by the first processor, the second processor turns on the second display controller, so that the second display controller controls the screen of the electronic device according to the brightness parameters are displayed, and the display controller takes over the instruction to instruct the second processor to turn on the second display controller.
  16. 一种显示装置,其中,运行于电子设备,所述电子设备至少包括第一系统以及第二系统,所述装置包括:A display device, which runs on an electronic device, the electronic device includes at least a first system and a second system, and the device includes:
    数据获取模块,用于若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数;a data acquisition module, configured to acquire brightness parameters corresponding to the first system if the system in the running state is switched from the first system to the second system;
    显示模块,用于将所述亮度参数发送给所述第二系统,以使所述第二系统控制所述电子设备的屏幕根据所述亮度参数进行显示。A display module, configured to send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
  17. 一种电子设备,其中,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,所述第一处理器用于:An electronic device, wherein the electronic device includes at least a first processor and a second processor, the first processor is used to run a first system, the second processor is used to run a second system, and the first processor is used to run a second system. A processor is used to:
    若处于运行状态的系统由所述第一系统切换为所述第二系统,获取所述第一系统对应的亮度参数;If the system in the running state is switched from the first system to the second system, obtain the brightness parameter corresponding to the first system;
    将所述亮度参数发送给所述第二处理器,以使所述第二处理器控制所述电子设备的屏幕根据所述亮度参数进行显示。Sending the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
  18. 一种电子设备,其中,所述电子设备至少包括第一处理器以及第二处理器,所述第一处理器用于运行第一系统,所述第二处理器用于运行第二系统,所述第二处理器用于:An electronic device, wherein the electronic device includes at least a first processor and a second processor, the first processor is used to run a first system, the second processor is used to run a second system, and the first processor is used to run a second system. Secondary processors are used for:
    接收所述第一系统对应的亮度参数,所述亮度参数为若处于运行状态的系统由所述第一系统切换为所述第二系统时,所述第一处理器获取得到;receiving a brightness parameter corresponding to the first system, where the brightness parameter is obtained by the first processor when the system in the running state is switched from the first system to the second system;
    控制所述电子设备的屏幕根据所述亮度参数进行显示。The screen for controlling the electronic device is displayed according to the brightness parameter.
  19. 一种电子设备,其中,包括一个或多个处理器以及存储器;An electronic device comprising one or more processors and memory;
    一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-15任一项所述 的方法。one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any one of claims 1-15 .
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-15任一项所述的方法。A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, wherein the method of any one of claims 1-15 is performed when the program code is executed by a processor.
PCT/CN2022/077053 2021-03-22 2022-02-21 Display method and apparatus, and electronic device and storage medium WO2022199299A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110302885.0 2021-03-22
CN202110302885.0A CN115116410A (en) 2021-03-22 2021-03-22 Display method, display device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022199299A1 true WO2022199299A1 (en) 2022-09-29

Family

ID=83322818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/077053 WO2022199299A1 (en) 2021-03-22 2022-02-21 Display method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115116410A (en)
WO (1) WO2022199299A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382908A (en) * 2007-09-05 2009-03-11 宏达国际电子股份有限公司 Method for synchronizing information of dual operating systems
KR20120119328A (en) * 2011-04-21 2012-10-31 엘지전자 주식회사 Mobile terminal and method for controlling thereof
CN103247281A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Method and electronic equipment for adjusting display brightness
CN103294562A (en) * 2012-02-23 2013-09-11 纬创资通股份有限公司 Method for sharing peripheral device by dual operating systems and electronic device
CN103377093A (en) * 2012-04-24 2013-10-30 联想(北京)有限公司 Multimedia synchronizing method for multiple-system device and electronic device
CN104516747A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 System switching method and electronic device
CN105657112A (en) * 2015-12-31 2016-06-08 北京元心科技有限公司 Method and apparatus for processing brightness in multi-system mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382908A (en) * 2007-09-05 2009-03-11 宏达国际电子股份有限公司 Method for synchronizing information of dual operating systems
KR20120119328A (en) * 2011-04-21 2012-10-31 엘지전자 주식회사 Mobile terminal and method for controlling thereof
CN103247281A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Method and electronic equipment for adjusting display brightness
CN103294562A (en) * 2012-02-23 2013-09-11 纬创资通股份有限公司 Method for sharing peripheral device by dual operating systems and electronic device
CN103377093A (en) * 2012-04-24 2013-10-30 联想(北京)有限公司 Multimedia synchronizing method for multiple-system device and electronic device
CN104516747A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 System switching method and electronic device
CN105657112A (en) * 2015-12-31 2016-06-08 北京元心科技有限公司 Method and apparatus for processing brightness in multi-system mobile terminal

Also Published As

Publication number Publication date
CN115116410A (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN107231489B (en) Terminal and screen projection method thereof
EP4296851A1 (en) Method and apparatus for displaying application picture, and terminal, screen projection system and medium
US9285945B2 (en) Method and apparatus for displaying multi-task interface
WO2022111672A1 (en) Data processing method and apparatus, and electronic device
CN107145355B (en) Page layout adjusting method and device, storage medium, processor and terminal
CN113055742B (en) Video display method, device, terminal and storage medium
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
US20200005702A1 (en) Method for Controlling Image Graphing of Terminal, Nontransitory Computer-Readable Storage Medium, and Terminal
WO2015070546A1 (en) Method and terminal for pip playing
CN113781949B (en) Image display method, display driving chip, display screen module and terminal
CN103108232A (en) Method and system based on interaction control of mobile phone and television
CN108762465B (en) Frame rate self-adaptive adjusting method and device, storage medium and intelligent terminal
CN111752632A (en) Control method and device of mobile terminal, mobile terminal and storage medium
EP4287013A1 (en) Screen projection display method and apparatus, mobile terminal, storage medium, and program product
WO2022199299A1 (en) Display method and apparatus, and electronic device and storage medium
CN111918099A (en) Video processing method and device, electronic equipment and storage medium
CN112118618A (en) Screen refresh rate configuration method and device, computer equipment and readable storage medium
WO2023045921A1 (en) Display method and apparatus, and electronic device
US11303595B2 (en) Method and device for displaying text and video in two threads
CN114915833A (en) Display control method, display device and terminal device
CN114615536A (en) Display device and sound effect processing method
CN114827708A (en) Video playing method and device and electronic equipment
CN113596521A (en) Video playing control method and device, electronic equipment and storage medium
CN115113993A (en) Picture display method and device, electronic equipment and storage medium
CN113282362A (en) Application program management method, device, storage medium and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22773961

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22773961

Country of ref document: EP

Kind code of ref document: A1