CN109189198B - Image display method, device, terminal and storage medium - Google Patents

Image display method, device, terminal and storage medium Download PDF

Info

Publication number
CN109189198B
CN109189198B CN201810893317.0A CN201810893317A CN109189198B CN 109189198 B CN109189198 B CN 109189198B CN 201810893317 A CN201810893317 A CN 201810893317A CN 109189198 B CN109189198 B CN 109189198B
Authority
CN
China
Prior art keywords
scene
display
terminal
display engine
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810893317.0A
Other languages
Chinese (zh)
Other versions
CN109189198A (en
Inventor
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810893317.0A priority Critical patent/CN109189198B/en
Publication of CN109189198A publication Critical patent/CN109189198A/en
Application granted granted Critical
Publication of CN109189198B publication Critical patent/CN109189198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1415Digital output to display device ; Cooperation and interconnection of the display device with other functional units with means for detecting differences between the image stored in the host and the images displayed on the displays

Abstract

The application discloses an image display method, an image display device, a terminal and a storage medium, and belongs to the technical field of terminals. The method is used for the terminal, a display screen of the terminal is provided with a buffer, and the method comprises the following steps: identifying a current operation scene; if the current operation scene belongs to the preset operation scene, controlling the display engine to power off, and stopping transmitting the image data to the buffer by the display engine after the power off; and controlling the display screen to display the image according to the image data which is cached recently in the cache. In the embodiment of the application, the terminal enables the display engine to stop transmitting the image data to the buffer through the power-off display engine in the preset operation scene, so that the power consumption of the terminal in the preset operation scene is reduced while the normal display picture of the display screen is ensured.

Description

Image display method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to an image display method, an image display device, a terminal and a storage medium.
Background
With the increasing size and resolution of mobile terminal display screens, the power consumption of the display screens and their related components is increasing.
When the mobile terminal displays an image, an Application Processor (AP) transmits image data to the display screen according to the refresh frequency, and the display screen performs analysis display according to the received image data.
Disclosure of Invention
The embodiment of the application provides an image display method, an image display device, a terminal and a storage medium, which can solve the problem that in the related art, the power consumption is high when a display screen performs analysis display according to received image data. The technical scheme is as follows:
in one aspect, an image display method is provided, where the method is used for a terminal, a display screen of the terminal is provided with a buffer, and the method includes:
identifying a current operation scene;
if the current operation scene belongs to a preset operation scene, controlling a display engine to be powered off, and stopping transmitting image data to the buffer by the display engine after the power is turned off;
and controlling the display screen to display the image according to the image data cached recently in the cache.
In another aspect, an image display apparatus is provided, in which a display screen of the terminal is provided with a buffer, and the method includes:
the identification module is used for identifying the current operation scene;
the power-off module is used for controlling the power-off of the display engine when the current running scene belongs to a preset running scene, and the display engine stops transmitting the image data to the buffer after the power-off;
and the display module is used for controlling the display screen to display images according to the image data which is cached recently in the cache.
In another aspect, a terminal is provided, the terminal comprising a processor, a memory connected to the processor, program instructions stored on the memory, and a display screen provided with a buffer, the processor implementing the image display method according to the above aspect when executing the program instructions.
In another aspect, there is provided a computer readable storage medium having stored thereon program instructions which, when executed by a processor, implement the image display method as described in the above aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
when a display screen of the terminal is provided with a buffer, the terminal identifies a current operation scene, controls a display engine to power off when the current operation scene belongs to a preset operation scene, and displays an image according to image data recently cached in the buffer by the display screen; in the embodiment of the application, the terminal enables the display engine to stop transmitting the image data to the buffer through the power-off display engine in the preset operation scene, so that the power consumption of the terminal in the preset operation scene is reduced while the normal display picture of the display screen is ensured.
Drawings
Fig. 1 is a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application;
FIG. 2 is a flow chart of an image display method provided by an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a system performance service control display engine power down process;
FIG. 4 is a flow chart of an image display method provided by another exemplary embodiment of the present application;
FIG. 5 is a flow chart of an image display method provided by another exemplary embodiment of the present application;
fig. 6 is a schematic structural diagram of an image display device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
For convenience of understanding, terms referred to in the embodiments of the present application will be described below.
A display engine: and the terminal is used for synthesizing the images of different layers and transmitting the synthesized image data to a hardware component of the display screen. In the embodiment of the application, the display engine does not directly transmit the image data to the display screen, but transmits the image data to the buffer of the display screen, and the display screen performs image display by reading the image data in the buffer.
Display driving: a code block for controlling a display engine. In the embodiment of the application, the display driver is used for controlling the power-on or power-off of the display engine. In other possible embodiments, the display driver may control the display engine to perform other operations besides controlling the display engine to power on and power off, which is not limited in this application.
System performance Service (Perf Service): a system-level performance optimization service allocates system resources to optimize the running quality of an application. The system resources that can be allocated by the system performance service include Central Processing Unit (CPU) frequency, CPU core number, Graphics Processing Unit (GPU) frequency, and GPU core number.
In the embodiment of the application, the system performance service also has a power consumption optimization function. The system performance service may communicate with the underlying driver through a predetermined interface to control the corresponding hardware component through the underlying driver. For example, the system performance service may communicate with the display driver to control the display engine to power up or power down via the display driver.
Before explaining the embodiments of the present application, an application scenario of the embodiments of the present application will be explained first. Fig. 1 shows a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application.
The terminal 100 is an electronic device in which an application program is installed. The application is a system program or a third party application. Wherein the third party application is an application created by a third party other than the user and the operating system.
The terminal 100 is an electronic device having a communication function. For example, the terminal is a mobile phone.
Optionally, the terminal 100 includes: a processor 120, a memory 140, and a display screen 160.
Processor 120 may include one or more processing cores. The processor 120 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140 and calling data stored in the memory 140. Optionally, the processor 120 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 120 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 120, but may be implemented by a single chip.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 140 includes a non-transitory computer-readable medium. The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 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 at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data and the like referred to in the following respective method embodiments.
The display screen 160 is a component for displaying images, and the display screen 160 has a touch function in addition to a display function, and is used for receiving a touch operation of a user. The Display screen 160 may be a Light Emitting Diode (LED) screen, a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED) screen, or the like, which is divided according to a Display principle; the display screen 160 may be a full-screen, a curved screen, a shaped screen, etc., divided by shape. The specific type of the display screen 160 is not limited in the embodiments of the present application.
In the embodiment of the present application, the display screen 160 is a Command screen, which is different from a Video screen, the Command screen is provided with a buffer for storing image data transmitted by the display engine, and the data buffered in the buffer can be constantly maintained in the power-on condition. Optionally, the buffer is a Static Random-Access Memory (SRAM).
In the related art, in a bright screen state, a display engine in a terminal continuously performs layer composition, and transmits synthesized image data to a display screen, so that the display screen performs image display according to received image data. However, in some operational scenarios, the terminal has lower display requirements. For example, in a standby scene, a standby screen displayed by the terminal remains unchanged for a long time, and if the display engine continuously transmits image data in the standby scene, power consumption is wasted. Especially for terminals equipped with high resolution display screens, continuous transmission of image data in low display demand scenarios would waste a lot of transmission resources and power.
In the embodiment of the application, for the terminal configured with the Command screen, the terminal controls the power-off of the display engine by identifying the current operation scene and controlling the display engine to stop transmitting the image data to the buffer when the current operation scene belongs to the preset operation scene with low display requirement, so that the power consumption of the terminal in the operation scene with low display requirement is reduced. Meanwhile, when the display engine is powered off, the display screen can display images by reading the image data cached in the buffer, so that normal image display in a low-display-demand operation scene is ensured. The following description will be made by using exemplary embodiments.
Referring to fig. 2, a flowchart of a method of displaying an image according to an exemplary embodiment of the present application is shown. The present embodiment is explained by applying the method to the terminal shown in fig. 1. The method may include the following steps.
Step 201, identifying a current operation scene.
The current operation scene may be an operation scene where the foreground application is currently located, or may be an operation scene where the system is currently located, which is not limited in the embodiment of the present application. For example, the current operation scene may be a mall scene, a loading scene, a group battle scene, and the like in the game application; the current operating scenario may be a standby scenario, a main interface scenario, or a setup scenario of the system, among others.
In a possible implementation manner, when a foreground application is running, the terminal establishes a connection with the foreground application, so as to communicate with the foreground application through the connection, thereby obtaining a current running scene of the foreground application, or when the foreground does not run the application, the terminal identifies the current running scene of the system.
Step 202, if the current operation scene belongs to the preset operation scene, controlling the display engine to power off, and after the power off, stopping transmitting the image data to the buffer by the display engine.
In a possible implementation manner, a preset operation scene list is stored in the terminal, and a preset operation scene in the preset operation scene list is an operation scene with a low display requirement. After the current operation scene is identified, the terminal detects whether the current operation scene belongs to a preset operation scene list, if so, the power of the display engine is controlled to be turned off, so that the display engine stops transmitting image data to the buffer under the current operation scene, and the effect of reducing power consumption is achieved; if not, the image data is continuously transmitted to the buffer memory through the display engine.
In other possible embodiments, the terminal may further determine whether the current operating scene belongs to a preset operating scene by analyzing similarity of adjacent image frames, where in the preset operating scene, the similarity of the adjacent image frames is greater than a threshold (e.g., 95%).
Because the sensitivity of the user to the power consumption is high when the power of the terminal is low, in a possible implementation manner, if the current operation scene data preset the operation scene, the terminal further obtains the current remaining power, if the current remaining power is lower than the power threshold (or it is detected that the power saving mode is turned on), the terminal controls the display engine to power down, otherwise, the display engine keeps the power-on state.
And step 203, controlling the display screen to display the image according to the image data cached recently in the cache.
Since the buffer of the display screen can store the image data sent by the display engine in the power-on state, during the power-off period of the display engine, the display screen displays the image by reading the image data recently buffered in the buffer, namely the display screen continuously displays the image displayed before the power-off of the display engine.
In a possible implementation manner, the terminal sends an instruction to a control chip of the display screen, and after receiving the instruction, the control chip of the display screen performs image display on image data recently cached in the buffer; in another possible implementation, a display logic for displaying the power-off state of the engine is preset in a control chip of the display screen, and when image data transmitted by the display engine is not received, image display is automatically performed according to the image data recently cached in the cache.
It should be noted that there is no strict precedence relationship between the above steps 202 and 203, and the embodiment of the present application is described by taking the step 202 as an example executed before the step 203, and does not limit the execution timing of the two.
To sum up, in the embodiment of the application, when a buffer is arranged on a display screen of a terminal, the terminal identifies a current operation scene, controls a display engine to power off when the current operation scene belongs to a preset operation scene, and displays an image according to image data recently cached in the buffer by the display screen; in the embodiment of the application, the terminal enables the display engine to stop transmitting the image data to the buffer through the power-off display engine in the preset operation scene, so that the power consumption of the terminal in the preset operation scene is reduced while the normal display picture of the display screen is ensured.
In one possible embodiment, as shown in fig. 3, the terminal runs a system capability service 31. In the bright screen state, the system performance service 31 is connected to the foreground application 32, and determines the current operating scene of the foreground application 32 through the connection with the foreground application 32. If the current operating scene belongs to the preset operating scene, the system performance service 31 controls the display engine 33 to power down, so that the display engine 33 stops transmitting the image data to the display screen 34 (the buffer memory), thereby achieving the effect of reducing the power consumption of the terminal. The following description will be made by using exemplary embodiments.
Referring to fig. 4, a flowchart of a method of displaying an image according to another exemplary embodiment of the present application is shown. The present embodiment is explained by applying the method to the terminal shown in fig. 1. The method may include the following steps.
Step 401, when a foreground application is running, the system performance service establishes a connection with the foreground application.
Optionally, an application program runs on the foreground, and the foreground application program establishes a connection with a Socket interface of the system performance service in a Socket mode. Data related to the application scenario of the foreground application may be transmitted to the system performance service over the connection.
Optionally, the system performance service may perform data interaction with the foreground application through the connection, so to ensure security of establishing the connection, the system performance service detects whether the foreground application is a preset application, and establishes a connection with the foreground application when the foreground application belongs to the preset application.
In other possible embodiments, the foreground Application may also call an Application Programming Interface (API) provided by a Software Development Kit (SDK) provided by a terminal system developer, or establish a connection with the system performance service in a binding manner. The embodiment of the present application does not limit the way in which the two are connected.
Step 402, the system performance service receives a scene identifier sent by a foreground application, where the scene identifier is used to indicate an operating scene in the foreground application.
For an application program, since not all operating scenarios in the application program are required to be low display performance (that is, the application program includes an operating scenario required to be low display performance and an operating scenario required to be high display performance), a foreground application program needs to send a scenario identifier of a current operating scenario to a system performance service, so that the system performance service performs power consumption optimization based on the scenario dimension.
Optionally, the scene identifiers corresponding to different operation scenes in the same application program are different, and the scene identifiers corresponding to different application programs are different. The application identifier corresponding to the running scene in the application program is preset by an application program developer. Taking an electronic book application program as an example, the corresponding relationship between the operating scene and the scene identifier in the electronic book application program is shown in table one.
Watch 1
Operational scenarios Scene identification
E-book mall scene A01
E-book recommendation scenario A02
E-book reading scene A03
Optionally, the foreground application may send the scene identifier and information such as a packet name of the foreground application, so that the system performance service determines the operating scene according to the packet name and the scene identifier of the foreground application.
In a possible implementation manner, in the running process of the foreground application, the scene identifier of the current running scene is sent to the foreground application at intervals of a predetermined time interval, and correspondingly, the system performance service receives the scene identifier sent by the foreground application.
In another possible implementation manner, when it is detected that the running scene changes, the foreground application sends the scene identifier of the current running scene to the system performance service, and correspondingly, the system performance service receives the scene identifier sent by the foreground application. The sending time of the scene identifier is not limited in the embodiment of the application.
For example, the scene identifier sent by the foreground application acquired by the system performance service is "a 03".
In step 403, the system performance service identifies the current operating scenario according to the scenario identifier.
Optionally, the system performance service stores a corresponding relationship between the scene identifier and the operating scene in advance, and after receiving the scene identifier sent by the foreground application program, the system performance service identifies the current operating scene based on the corresponding relationship.
In connection with the above example in step 402, the system performance service determines that the current running scene is a reading scene in the electronic book application according to the scene identifier a 03.
It should be noted that, when the foreground does not run the application, the system performance service may obtain the scene identifier of the current system running scene, so as to determine the current system running scene. The embodiment of the present application does not limit this.
In a possible implementation manner, the system performance service stores a preset application scene list, where the preset application scene list includes a corresponding relationship between a preset application scene and a scene identifier. When determining whether the current running scene belongs to the preset application scene, the system performance service detects whether the scene identifier sent by the foreground application program belongs to the preset application scene list, and when the scene identifier belongs to the preset application scene list, determines that the current running scene belongs to the preset application scene.
In step 404, when the current operation scene is a standby scene, the system performance service determines that the current operation scene belongs to a preset operation scene.
In the standby scene (bright screen), the image displayed on the display screen remains unchanged for a long time (except that the display time may change), and the probability of the user performing an operation is low (generally, the screen-on viewing time is the bright screen viewing time). In such a scenario, the image data continuously transmitted by the display engine to the buffer of the display screen is the same (or has extremely high similarity), which results in waste of power consumption. Therefore, when the current operation scene is the standby scene, the system performance service determines that the current operation scene belongs to the preset operation scene, and performs step 407 described below.
In a possible application scenario, when a power key pressing signal is received and a standby scenario is entered, the terminal determines that the terminal is currently in a preset operation scenario.
Step 405, when the current operation scene is a text reading scene, the system performance service determines that the current operation scene belongs to a preset operation scene.
The text reading scene is a scene in which the display proportion of static characters in the display screen is larger than a threshold value. In a text reading scene, a large number of static characters are displayed on the display screen, and because a user needs to spend a long time reading the characters, the content displayed on the display screen remains unchanged during the character reading period. Therefore, in order to reduce the power consumption of the terminal, when the current operation scene is a text reading scene, the system performance service determines that the current operation scene belongs to a preset operation scene, and performs the following step 407.
Optionally, the text reading scene may include at least one of: reading scenes in e-book applications, reading scenes in news reading applications, and reading scenes in text editing applications. The embodiment of the present application does not limit the specific type of the text reading scenario.
In a possible application scene, when a user opens an electronic book application program and selects one electronic book to read, the terminal determines that the electronic book is currently in a preset operation scene.
In step 406, when the current operation scene is a static image display scene, the system performance service determines that the current operation scene belongs to a preset operation scene.
The static image display scene is a scene in which the display proportion of the static image in the display screen is greater than a threshold value. In the static image display scene, a large number of static images are displayed on the display screen, and the static images are continuously displayed for a period of time, namely, the content displayed on the display screen is kept unchanged during the display period of the static images. Therefore, in order to reduce the power consumption of the terminal, when the current operation scene is a still image display scene, the system performance service determines that the current operation scene belongs to a preset operation scene, and performs the following step 407.
Optionally, the still image display scene may include at least one of: photo browsing scenes in photo-like applications (such as auto-play scenes), auto-play scenes in presentation-like applications, mall scenes in game-like applications, and so forth. The embodiment of the present application does not limit the specific type of the text reading scenario.
In a possible application scene, when a user opens an electronic album application and selects to automatically play photos in the electronic album (compare with switching a group of photos every 1 s), the terminal determines that the terminal is currently in a preset operation scene.
It should be noted that, the present embodiment is only schematically illustrated by taking the above three possible scenarios as examples, and the specific type of the preset operation scenario is not limited.
Step 407, if the current operating scene belongs to the preset operating scene, the system performance service sends a power-off instruction to the display driver through the preset interface, and the display driver is used for controlling the power-off of the display engine according to the power-off instruction.
Further, when the current state is identified to be in the preset operation scene, the system performance service sends a power-off instruction to the display driver corresponding to the display engine, and the display driver controls the power-off of the display engine according to the power-off instruction.
In one possible implementation, the system performance service sends power down instructions to the display driver over a predefined Input Output Control (IOCTL) interface. The embodiment of the present application does not limit the preset interface.
And step 408, controlling the display screen to display the image according to the image data cached recently in the cache.
The implementation of this step is similar to that of step 203, and this embodiment is not described herein again.
After the method provided by the embodiment of the application is applied, the display engine of the terminal is powered off in the standby scene, and the power consumption of the terminal in the standby scene is reduced on the premise of ensuring the normal display of the standby picture; under the reading scene of the electronic book, a display engine of the terminal is powered off, and the power consumption of the terminal is reduced on the premise of ensuring the normal display of the electronic book; under the scene of automatic picture playing, the terminal controls the power-off of the display engine in a picture switching period (such as a 1s picture switching period), so that the normal display of the pictures is ensured, and meanwhile, the power consumption of the terminal is reduced.
Step 409, when receiving the image update signal, the system performance service controls the display engine to be powered on, and the display engine transmits the image data to the buffer after being powered on.
When the displayed image needs to be updated, the system performance service controls the display engine to be powered up again, so that the display engine can transmit the image data to the buffer again.
In a possible implementation manner, the system performance service sends a display power-on instruction to the display driver through a preset interface, and the display driver controls the display engine to be powered on again according to the power-on instruction.
Optionally, the image update signal is triggered by a user, or automatically by an application or system.
In a possible scenario, in a standby scenario, when a click signal of a user on the display screen is detected, or collected authentication information (such as a fingerprint or a human face) passes authentication, or a notification message is received, the system performance service controls the display engine to be powered on, so that the display screen displays the terminal main interface according to image data transmitted by the display engine.
In another possible scenario, in an e-book reading scenario, when a page turning signal triggered by a user is received, or an automatic page turning signal is received, or a notification message is received, the system performance service controls the display engine to be powered on, so that the display screen updates the displayed text content according to the image data transmitted by the display engine.
It should be noted that, after the system performance service controls the display engine to be powered on, if the operating scene still belongs to the preset operating scene, the system performance service controls the display engine to be powered off again. The embodiments of the present application are not described herein again.
In this embodiment, the system performance service establishes a connection with the foreground application, so as to determine whether the foreground application runs to a preset running scene according to the scene identifier sent by the foreground application, and then control the display engine to power off when running to the preset running scene, thereby reducing the power consumption of the terminal.
In the embodiment, the terminal controls the power of the display engine to be powered off in a standby scene, a text reading scene or a static image display scene, so that the power consumption of the terminal in a scene with low display performance requirements is reduced.
Since it takes time (typically several tens of milliseconds) for the display engine to power up, there is a delay between receiving the image update signal and the image update. In order to reduce the impact of the delay on the user usage, in one possible embodiment, as shown in fig. 5, step 408 is followed by the following steps.
Step 410, acquiring a picture switching interval corresponding to the current operation scene.
The screen switching interval is used for instructing the terminal to switch the frequency of the screen content according to the user operation. For example, for an electronic book application program, the frame switching interval is the frequency of page turning of the user; for the photo browsing type application program, the picture switching frequency is the frequency of switching photos by the user.
In a possible implementation manner, the terminal obtains a time interval between two adjacent image update signals in a preset operation scene, so as to determine a picture switching interval corresponding to the preset operation scene according to at least one time interval. Optionally, the picture switching interval is an average of at least one time interval.
In a possible implementation manner, the terminal stores a corresponding relationship between a preset operation scene and a picture switching interval, and when it is determined that the current operation scene belongs to the preset operation scene, the terminal obtains a corresponding picture switching frequency in the current operation scene based on the corresponding relationship.
For example, when the current running scene is a reading scene of an electronic book application, the terminal acquires a picture switching interval of 5 s.
In step 411, a timer is started according to the frame switching interval.
Further, the terminal sets a timer according to the acquired picture switching interval and starts the timer, wherein the timing duration of the timer is less than or equal to the picture switching interval.
For example, the terminal sets the timing duration of the timer to be 4.5 s.
In step 412, when the timer reaches a preset time, the display engine is controlled to be powered on, and the display engine transmits the image data to the buffer after the power is turned on.
Before the timer reaches the timing, the display engine keeps a power-off state, so that the power consumption of the terminal is reduced; when the timer reaches the timing, the terminal controls the display engine to be powered on, and when the display engine is powered on in advance after the image updating signal is received, the delay from the time when the image updating signal is received to the time when the image updating signal is received can be shortened, and the influence of the power-off of the display engine on the user experience is reduced.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 6, a schematic structural diagram of an image device according to an embodiment of the present application is shown. The image display device can be implemented by a dedicated hardware circuit, or a combination of hardware and software, as all or a part of the terminal in fig. 1, and includes:
an identification module 610 for identifying a current operating scenario;
a power-off module 620, configured to control a display engine to power off when the current operating scene belongs to a preset operating scene, and after the power off, the display engine stops transmitting image data to the buffer;
and a display module 630, configured to control the display screen to display an image according to the image data cached recently in the buffer.
Optionally, the terminal runs a system performance service, and the power-down module 620 includes:
and the system performance service unit is used for sending a power-off instruction to a display driver through a preset interface if the current operation scene belongs to a preset operation scene, and the display driver is used for controlling the power-off of the display engine according to the power-off instruction.
Optionally, the identifying module 610 includes:
the system performance service unit is used for establishing connection with a foreground application program when the foreground application program runs;
the system performance service unit is used for receiving a scene identifier sent by the foreground application program, and the scene identifier is used for indicating an operation scene in the foreground application program;
and the system performance service unit is used for identifying the current operation scene according to the scene identification.
Optionally, the apparatus further comprises:
the first determining module is used for determining that the current running scene belongs to the preset running scene when the current running scene is a standby scene;
or the like, or, alternatively,
the second determining module is used for determining that the current operation scene belongs to the preset operation scene when the current operation scene is a text reading scene;
or the like, or, alternatively,
and the third determining module is used for determining that the current operation scene belongs to the preset operation scene when the current operation scene is a static image display scene.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring the picture switching interval corresponding to the current operation scene;
the starting module is used for starting a timer according to the picture switching interval;
and the first power-on module is used for controlling the display engine to be powered on when the timer reaches the timing, and the display engine transmits the image data to the buffer after the display engine is powered on.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the time interval between two adjacent image updating signals in the preset operation scene;
and the interval determining module is used for determining the picture switching interval corresponding to the preset running scene according to at least one time interval.
Optionally, the apparatus further comprises:
and the second power-on module is used for controlling the display engine to be powered on when an image updating signal is received, and the display engine transmits the image data to the buffer after the display engine is powered on.
To sum up, in the embodiment of the application, when a buffer is arranged on a display screen of a terminal, the terminal identifies a current operation scene, controls a display engine to power off when the current operation scene belongs to a preset operation scene, and displays an image according to image data recently cached in the buffer by the display screen; in the embodiment of the application, the terminal enables the display engine to stop transmitting the image data to the buffer through the power-off display engine in the preset operation scene, so that the power consumption of the terminal in the preset operation scene is reduced while the normal display picture of the display screen is ensured.
It should be noted that, when the device provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the terminal may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The present application also provides a computer readable medium, on which program instructions are stored, which when executed by a processor implement the image display method provided by the above-mentioned respective method embodiments.
The present application also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the image display method described in the various embodiments above.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps in the image display method implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing associated hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc. The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. An image display method is used for a terminal, a display screen of the terminal is a Command screen, the Command screen is provided with a buffer, the buffer is used for storing image data transmitted by a display engine, and when the display engine is powered on, the data buffered in the buffer is constantly kept, the method comprises the following steps:
identifying a current running scene, wherein the current running scene comprises a running scene of a foreground application program and a running scene of a current system;
if the current operation scene belongs to a preset operation scene, controlling the display engine to be powered off, and stopping transmitting image data to the buffer by the display engine after the power is turned off, wherein the preset operation scene is a low-display-demand operation scene;
controlling the display screen to display images according to the image data cached recently in the cache;
acquiring a picture switching interval corresponding to the current running scene, wherein the picture switching interval is used for indicating the frequency of switching picture contents according to user operation by the terminal;
starting a timer according to the picture switching interval, wherein the duration of the timer is less than the picture switching interval;
and when the timer reaches the timing, controlling the display engine to be powered on, and transmitting the image data to the buffer by the display engine after the display engine is powered on.
2. The method according to claim 1, wherein the terminal runs a system performance service, and the controlling the display engine to power down if the current running scenario belongs to a preset running scenario comprises:
and if the current operation scene belongs to a preset operation scene, the system performance service sends a power-off instruction to a display driver through a preset interface, and the display driver is used for controlling the power-off of the display engine according to the power-off instruction.
3. The method of claim 2, wherein the identifying a current operational scenario comprises:
when a foreground application program runs, the system performance service establishes connection with the foreground application program;
the system performance service receives a scene identifier sent by the foreground application program, wherein the scene identifier is used for indicating an operation scene in the foreground application program;
the system performance service identifies the current operating scenario from the scenario identification.
4. A method according to any one of claims 1 to 3, wherein after identifying the current operational scenario, the method comprises:
when the current operation scene is a standby scene, determining that the current operation scene belongs to the preset operation scene;
or the like, or, alternatively,
when the current operation scene is a text reading scene, determining that the current operation scene belongs to the preset operation scene;
or the like, or, alternatively,
and when the current operation scene is a static image display scene, determining that the current operation scene belongs to the preset operation scene.
5. The method of claim 1, further comprising:
acquiring a time interval between two adjacent image updating signals in the preset operation scene;
and determining the picture switching interval corresponding to the preset operation scene according to at least one time interval.
6. The method of any of claims 1 to 3, wherein after controlling the display engine to power down, the method further comprises:
and when an image updating signal is received, controlling the display engine to be powered on, and transmitting the image data to the buffer by the display engine after the display engine is powered on.
7. An image display device, wherein the device is used for a terminal, a display screen of the terminal is a Command screen, the Command screen is provided with a buffer, the buffer is used for storing image data transmitted by a display engine, and when the display engine is powered on, the data buffered in the buffer is constantly maintained, the device comprises:
the identification module is used for identifying a current running scene, wherein the current running scene comprises a running scene of a foreground application program and a running scene of a current system;
the power-off module is used for controlling the display engine to be powered off when the current running scene belongs to a preset running scene, and the display engine stops transmitting image data to the buffer after the power-off, wherein the preset running scene is a low-display-demand running scene;
the display module is used for controlling the display screen to display images according to the image data cached recently in the cache;
the first acquisition module is used for acquiring a picture switching interval corresponding to the current running scene, and the picture switching interval is used for indicating the frequency of switching picture contents according to user operation by the terminal;
the starting module is used for starting a timer according to the picture switching interval, and the duration of the timer is less than the picture switching interval;
and the first power-on module is used for controlling the display engine to be powered on when the timer reaches the timing, and the display engine transmits the image data to the buffer after the display engine is powered on.
8. A terminal, characterized in that it comprises a processor, a memory connected to said processor, program instructions stored on said memory and a display screen provided with a buffer, said processor implementing the image display method according to any one of claims 1 to 6 when executing said program instructions.
9. A computer-readable storage medium, having stored thereon program instructions which, when executed by a processor, implement the image display method according to any one of claims 1 to 6.
CN201810893317.0A 2018-08-07 2018-08-07 Image display method, device, terminal and storage medium Active CN109189198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810893317.0A CN109189198B (en) 2018-08-07 2018-08-07 Image display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810893317.0A CN109189198B (en) 2018-08-07 2018-08-07 Image display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109189198A CN109189198A (en) 2019-01-11
CN109189198B true CN109189198B (en) 2021-04-06

Family

ID=64920346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810893317.0A Active CN109189198B (en) 2018-08-07 2018-08-07 Image display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109189198B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308783B (en) * 2019-07-09 2021-12-21 京东方科技集团股份有限公司 Time display method and device and electronic equipment
CN112218008B (en) * 2020-10-12 2024-01-23 Oppo广东移动通信有限公司 Device control method, device, storage medium and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100414482C (en) * 2006-04-18 2008-08-27 威盛电子股份有限公司 Transfer unit, computer system and picture data display method
US20080100636A1 (en) * 2006-10-31 2008-05-01 Jiin Lai Systems and Methods for Low-Power Computer Operation
US9866785B2 (en) * 2007-08-15 2018-01-09 Advanced Micro Devices, Inc. Automatic reduction of video display device power consumption
JP5344008B2 (en) * 2011-07-25 2013-11-20 カシオ計算機株式会社 Image display system, image display apparatus, image display method, and program

Also Published As

Publication number Publication date
CN109189198A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US20220224665A1 (en) Notification Message Preview Method and Electronic Device
US20180261190A1 (en) Method for Controlling Display Refresh Rate and Electronic Device
US10952146B2 (en) Method for dynamically adjusting energy-saving grade of terminal, non-transitory computer-readable storage medium, and terminal
US20220283621A1 (en) Electronic Device Control Method and Apparatus, and Electronic Device
EP4199523A1 (en) Multi-window screen projection method and electronic device
CN108287744B (en) Character display method, device and storage medium
CN107015629B (en) Processing method and electronic device
WO2015176448A1 (en) Method and apparatus for intelligent screen splitting of terminal
CN107770618B (en) Image processing method, device and storage medium
CN115486087A (en) Application interface display method under multi-window screen projection scene and electronic equipment
CN111866433B (en) Video source switching method, video source playing method, video source switching device, video source playing device, video source equipment and storage medium
WO2022002205A1 (en) Display method and electronic device
CN106970498B (en) Display method and electronic equipment
EP4206913A1 (en) Function execution method and apparatus
US20220058772A1 (en) Image Processing Method and Device
EP4109864A1 (en) Application display continuation method and device
CN109189198B (en) Image display method, device, terminal and storage medium
CN113645608B (en) Data transmission method and data transmission device
CN112015359A (en) Display method and electronic equipment
CN108877697B (en) Method and device for displaying image
CN107390460B (en) Double-screen display method and device of wrist projection equipment
CN115437724A (en) Interface display method and device, terminal equipment and computer readable storage medium
CN113641431A (en) Method and terminal equipment for enhancing display of two-dimensional code
CN115767602B (en) Automatic error correction method for equipment protocol subsystem abnormality and electronic equipment
KR100875825B1 (en) Wireless communication terminal for supporting multiple standby screen and therefor method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant