This application claims priority to Chinese Patent Application No. 201710141744.9, filed on Mar. 10, 2017, the content of which is hereby incorporated by reference in its entirety.
The present disclosure relates to terminals, and particularly to a method for controlling image display and a terminal.
Presently, terminals such as smart phones may include various applications, thus various scenes (a game scene, a chatting scene, and so on) may be displayed on the terminals. The terminals may adopt a fixed image display scheme which contains one or more parameters related to display effects to display different scenes, and by means of which, it may be difficult to maintain a balance between power saving and good display effects.
In order to illustrate the technical solutions of the implementations of the present disclosure more clearly, the drawings used in the description of the implementations will be briefly described, it will be apparent that the drawings described in the following are implementations of the present disclosure, and it will be apparent to those skilled in the art that other drawings can be obtained from the drawings without any creative work.
In order to illustrate the technical solutions of the present disclosure or the related art more clearly, a brief description of the accompanying drawings used herein is given below. Obviously, the drawings listed below are only examples, and a person skilled in the art should be noted that, other drawings can also be obtained on the basis of these exemplary drawings without creative work.
In the following description, numerous specific details are set forth in order to facilitate a thorough understanding of the present disclosure, however, the present disclosure can be practiced otherwise than as specifically described herein, and therefore, the scope of the present disclosure is not to be limited to the specific implementations disclosed below.
At block 101, a target image display scheme is determined based on at least one of a currently displayed image and a user operation. That is, the target image display scheme may be determined based on the currently displayed image, or based on the user operation, or based on the currently displayed image and the user operation. The target image display scheme contains one or more parameters related to image display effects. The image display effects may be that an image is displayed with a high resolution, images are refreshed quickly, and so on.
In an implementation, one or more parameters contained in each image display scheme may be preset based on fidelity optimized signal scaling (FOSS) technology. One or more parameters contained in each display scheme may include a color value, a transparency value, a contrast value, a gray value, a refresh rate, and so on.
In at least one alternative implantation, one or more parameters contained in each image display scheme may be preset based on content adaptive brightness control (CABC) technology. One or more parameters contained in each display scheme may include a color value, a transparency value, a gray value, a brightness of the backlight, and so on.
In an implementation, determining the target image display scheme based on the currently displayed image may include the follows. The target image display scheme is determined based on property information of the currently displayed image and a relationship between image property information and image display schemes. The property information of the currently displayed image may include a color value, a transparency value, a brightness value, a gray value, and so on. The relationship between image property information and image display schemes may be that each image display scheme corresponds to one or more property ranges. For example, each image display scheme corresponds to a color value range, or corresponds to a color value range and a transparency value range. When the property information of the currently displayed image falls within a property range corresponding to an image display scheme, the image display scheme is determined to be the target image display scheme. For example, when the color value of the currently displayed image falls within a color value range corresponding to an image display scheme, the image display scheme is determined to be the target image display scheme. For another example, when the color value and the transparency value of the currently displayed image respectively fall within a color value range and a transparency value range corresponding to an image display scheme, the image display scheme is determined to be the target image display scheme.
In the implementation, the target image display scheme is determined based on the property information of the currently displayed image, thus different scenes may be displayed by different image display schemes to provide better display effects.
In at least one implementation, determining the target image display scheme based on the user operation may include the follows. The target image display scheme is determined based on the type of the user operation and a relationship between types of user operation and image display schemes. The user operation may be an operation of switching images at a high speed and an operation of switching images at a low speed. That is, the image display scheme determined when switching images quickly is different from that determined when switching images slowly. For example, as illustrated in
In this implementation, the relationship between types of user operation and image display schemes may be that different types of user operation correspond to different image display schemes. When the type of the user operation is determined, the target image display scheme is determined based on the relationship between types of user operation and image display schemes. For example, when the user operation is the operation of switching images quickly, it may indicate that a user just wants to browse images quickly rather than viewing each image carefully, so an image display scheme which may cause power consumption to be low may be selected. When the user operation is the operation of switching images slowly, it may indicate that the user wants to view each image carefully, so an image display scheme which can provide better display effects may be selected.
In at least one alternative implementation, determining the target image display scheme based on the currently displayed image and the user operation may include the follows. A first image display scheme is determined based on property information of the currently displayed image and a relationship between image property information and image display schemes, and a power saving level corresponding to the first image display scheme is determined based on a relationship between power saving levels and image display schemes. A higher power saving level indicates less power consumption. Furthermore, a second image display scheme is determined based on the type of the user operation and a relationship between types of user operation and image display schemes, and a power saving level corresponding to the second image display scheme is determined based on the relationship between power saving levels and image display schemes. The first image display scheme is then determined to be the target image display scheme when the power saving level corresponding to the first image display scheme is higher than that corresponding to the second image display scheme, and the second image display scheme is then determined to be the target image scheme when the power saving level corresponding to the second image display scheme is higher than that corresponding to the first image display scheme. Certainly, when the power saving level corresponding to the first image display scheme is the same as that corresponding to the second image display scheme, the first image display scheme or the second image display scheme may be selected.
In this implementation, when an image display scheme is determined, a corresponding power saving level is also determined. The target image display scheme is displayed further based on the power saving levels. Thus, an image display scheme with lower power consumption can be employed to save power.
In an implementation, the target image display scheme is determined every time after a preset period, and by means of which, power can be further saved. For example, when playing a video, the used image display scheme during the playing of the video may be the same, so there is no need to change the image display scheme. Thus, by means of determining the target image display scheme every time after the preset period, power can be saved.
In an implementation, various manners may be used to acquire the currently displayed image. For example, data in a frame buffer may be read via a process, and then the data is stored as a screen capture, that is, stored as the currently displayed image.
Referring to
In the framework layer, all layers (including visible layers and invisible layers) constitute a layer list defined as ListAll. The layer composition unit selects the visible layers to form a visible layer list defined as DisplayList. The layer composition unit selects an unoccupied frame buffer (FB) from three FBs which are used in turn, and in the unoccupied FB the layers of the DisplayList are laminated together to obtain a to-be-displayed image based on application configuration information. The application configuration information may include which layer is on the bottom, which layer is on the top, which region is visible, which region is transparent, and so on.
Finally, in a kernel layer, the to-be-displayed image is transmitted to a display hardware (including a display controller and the display screen) to display the to-be-displayed image.
Referring to
In the process of generating an image to displaying an image, three rates may be employed. The rates may include a drawing frame rate, a composition frame rate, and a refresh rate.
The drawing frame rate is a frame rate to perform a layer drawing operation, and it may indicate layer frames are drawn in a unit time (for example, one second). The drawing frame rate may include a drawing frame rate of an application and a drawing frame rate of a layer. Each application may include multiple layers. For example, a video player may include three layers: a layer for displaying video content which is defined as U1 and two layers of SurfaceView type, one is for displaying bullet content which is defined as U2, and the other is for displaying user interface widgets (for example, a progress bar, a volume control bar, various control buttons, and so on) and broadcasts which is defined as U3. The drawing frame rate of an application is the number of times that the application executes the layer drawing operation in a unit time. When one layer drawing operation is performed, one or more layers may be drawn.
The composition frame rate is a frame rate in which the layers drawn by an application is composed as a to-be-displayed image, and the composition frame rate can be understood to be the number of image frames composed in a time unit.
Generally, the terminal will refresh the displayed image in the refresh rate of 60 Hz.
At block 103, a to-be-displayed image is processed and displayed based on the target image display scheme.
In an implantation, when one or more parameters contained in each image display scheme is preset based on FOSS technology, a display mechanism may be illustrated in
In at least one alternative implantation, when one or more parameters contained in each image display scheme is preset based on CABC technology, a display mechanism may be illustrated in
At block 801, a target image display scheme corresponding to a currently displayed scene is determined when the currently displayed scene is different from a previously displayed scene. The target image display scheme contains one or more parameters related to image display effects.
Various manners can be employed to determine the currently displayed scene. For example, one or more process identifiers of an application can be used to determine the currently displayed scene, and the present disclosure is not limited thereto. The currently displayed scene may be a video scene, a game scene, a chatting scene, or other.
In the implementation, the target image display scheme may be determined based on property information of a currently displayed image and a relationship between image property information and image display schemes, or based on the type of a user operation and a relationship between types of user operation and image display schemes, or based on both of the property information of the currently displayed image and the type of the user operation, which are illustrated in
At block 803, a to-be-displayed image is processed and displayed based on the target image display scheme. The process at block 803 may correspond to the process at block 103.
In the implementation, when the currently displayed scene is different from the previously displayed scene, it indicates that the image display scheme may need to be changed. Thus, adopting the target image display scheme when the displayed scene is changed, image display effects may be much better.
The determining unit 901 may be configured to determine a target image display scheme based on at least one of a currently displayed image and a user operation. That is, the target image display scheme may be determined based on the currently displayed image, or based on the user operation, or based on the currently displayed image and the user operation. The target image display scheme contains one or more parameters related to image display effects.
In an implementation, one or more parameters contained in each image display scheme may be preset based on FOSS technology. One or more parameters contained in each display scheme may include a color value, a transparency value, a contrast value, a gray value, a refresh rate, and so on.
In at least one alternative implantation, one or more parameters contained in each image display scheme may be preset based on CABC technology. One or more parameters contained in each display scheme may include a gray value, a transparency value, a brightness of the backlight, and so on.
In an implementation, determining the target image display scheme based on the currently displayed image may include the follows. The target image display scheme is determined based on property information of the currently displayed image and a relationship between image property information and image display schemes. The property information of the currently displayed image may include a color value, a transparency value, a brightness value, a gray value, and so on. The relationship between image property information and image display schemes may be that each image display scheme corresponds to one or more property ranges. For example, each image display scheme corresponds to a color value range, or corresponds to a color value range and a transparency value range. When the property information of the currently displayed image falls within a property range corresponding to an image display scheme, the image display scheme is determined to be the target image display scheme. For example, when the color value of the currently displayed image falls within a color value range corresponding to an image display scheme, the image display scheme is determined to be the target image display scheme. For another example, when the color value and the transparency value of the currently displayed image respectively fall within a color value range and a transparency value range corresponding to an image display scheme, the image display scheme is determined to be the target image display scheme.
In the implementation, the target image display scheme is determined based on the property information of the currently displayed image, thus different scenes may be displayed by different image display schemes to provide better display effects.
In at least one implementation, determining the target image display scheme based on the user operation may include the follows. The target image display scheme is determined based on the type of the user operation and a relationship between types of user operation and image display schemes. The user operation may be an operation of switching images at a high speed and an operation of switching images at a low speed. That is, the image display scheme determined when switching images quickly is different from that determined when switching images slowly.
In this implementation, the relationship between types of user operation and image display schemes may be that different types of user operation correspond to different image display schemes. When the type of the user operation is determined, the target image display scheme is determined based on the relationship between types of user operation and image display schemes. For example, when the user operation is the operation of switching images quickly, it may indicate that a user just wants to browse images quickly rather than viewing each image carefully, so an image display scheme which may cause power consumption to be low may be selected. When the user operation is the operation of switching images slowly, it may indicate that the user wants to view each image carefully, so an image display scheme which can provide better display effects may be selected.
In at least one alternative implementation, determining the target image display scheme based on the currently displayed image and the user operation may include the follows. A first image display scheme is determined based on property information of the currently displayed image and a relationship between image property information and image display schemes, and a power saving level corresponding to the first image display scheme is determined based on a relationship between power saving levels and image display schemes. A higher power saving level indicates less power consumption. Furthermore, a second image display scheme is determined based on the type of the user operation and a relationship between types of user operation and image display schemes, and a power saving level corresponding to the second image display scheme is determined based on the relationship between power saving levels and image display schemes. The first image display scheme is then determined to be the target image display scheme when the power saving level corresponding to the first image display scheme is higher than that corresponding to the second image display scheme, and the second image display scheme is then determined to be the target image scheme when the power saving level corresponding to the second image display scheme is higher than that corresponding to the first image display scheme. Certainly, when the power saving level corresponding to the first image display scheme is the same as that corresponding to the second image display scheme, the first image display scheme or the second image display scheme may be selected.
In this implementation, when an image display scheme is determined, a corresponding power saving level is also determined. The target image display scheme is displayed further based on the power saving levels. Thus, an image display scheme with lower power consumption can be employed to save power.
In an implementation, the target image display scheme is determined every time after a preset period, and by means of which, power can be further saved. For example, when playing a video, the used image display scheme during the playing of the video may be the same, so there is no need to change the image display scheme. Thus, by means of determining the target image display scheme every time after the preset period, power can be saved.
In at least one alternative implementation, the determining unit 901 may be configured to determine a target image display scheme corresponding to a currently displayed scene when the currently displayed scene is different from a previously displayed scene. When the currently displayed scene is different from the previously displayed scene, it indicates that the image display scheme may need to be changed. Thus, adopting the target image display scheme when the displayed scene is changed, image display effects may be much better.
The processing unit 903 may be configured to process and display a to-be-displayed image based on the target image display scheme.
It shall be noted that the terminal described in the device implementation of the present disclosure is illustrated in the form of functional units. The term “unit” used herein shall be taken in the broadest possible sense. Objects for realizing the function of each unit may be an application specific integrated circuit (ASIC), a circuit (e.g., a single circuit), a processor (shared, specific, or chipset) for executing one or more software or hardware procedures in a memory, a combined logic circuit, and/or other appropriate assembly for realizing the above function.
The terminal 1000 may further include a peripheral interface 1005, a radio frequency (RF) circuit 1007, an audio circuit 1009, a speaker 1011, a power management chip 1013, an input/output sub-system 1015, a touch screen 1017, an input/control device 1019, an external port 1021, and so on.
The input/output sub-system 1015 can couple the touch screen 1017 and the input/control device 1019 to the peripheral interface 1005. The input/output sub-system 1015 may include a display controller 1151 and an input controller 1153 which is configured to control the input/control device 1019. The input controller 1153 can receive electrical signals from or transmit electrical signals to the input/control device 1019. The input/control device 1019 may include physical buttons, a sliding switch, a joystick, and so on. The input controller 1153 may be coupled to a keyboard, a universal serial bus interface, a mouse, and so on.
The touch screen 1017 may be a capacitance-type touch screen, a resistance-type touch screen, a surface acoustic wave touchscreen, and so on.
The display controller 1151 may receive electrical signals from or transmit electrical signals to the touch screen 1017.
The RF circuit 1007 may be configured to establish communication between the terminal 1000 and a network.
The audio circuit 1009 may be configured to receive audio data from the peripheral interface 1005, convert the audio data into electrical signals, and transmit the electrical signals to the speaker 1011.
While the present disclosure has been described in detail above with reference to the exemplary implementations, the scope of the present disclosure is not limited thereto. As will occur to those skilled in the art, the present disclosure is susceptible to various modifications and changes without departing from the spirit and principle of the present disclosure. Therefore, the scope of the present disclosure should be determined by the scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201710141744.9 | Mar 2017 | CN | national |