Display method, display device, storage medium and electronic equipment

By adjusting the pixel color component value of the display screen in the electronic device and converting the floating window into a grayscale image, the problem of high power consumption when the floating window function is activated is solved, and power consumption reduction and temperature control are achieved.

CN118732811APending Publication Date: 2024-10-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310331515.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When electronic equipment activates the floating window function, the operating load is large, resulting in increased power consumption, prone to heat generation and high power consumption. Existing technologies such as reducing resolution or frame rate are limited, making it difficult to effectively reduce power consumption.

Method used

By determining the target window from the main window and floating window of the display screen, the color component value of each color channel of the pixel is obtained, and adjusted to the same grayscale value, and the color image is converted into a grayscale image display to reduce power consumption.

Benefits of technology

It effectively reduces the power consumption of electronic devices, alleviates the temperature rise and power consumption speed, does not affect the content display of the floating window, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732811A_ABST
    Figure CN118732811A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a display method, a display device, a storage medium and electronic equipment, the display method is applied to the electronic equipment, the electronic equipment comprises a display screen, and the method comprises the steps that in response to color adjustment operation, a target window needing to be adjusted is determined from a main window and a floating window displayed on the display screen; obtaining a color component value of each color channel of pixels in the target window; determining a first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel; and adjusting the color component value of each color channel of the pixel to the first color component value. According to the embodiment of the invention, the color image displayed by the target window can be converted into the grayscale image to be displayed, so that the power consumption of the electronic equipment can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a display method, a display device, a storage medium and an electronic device. Background Art

[0002] In the use scenarios of electronic devices such as mobile phones, the floating window function is becoming more and more popular among users. After turning on the floating window function, the floating window and the main window can display different images at the same time. For example, the floating window can display video content, and the main window can display news, shopping, messages and other content information. The different needs of users can be met on one display interface at the same time. Users do not need to frequently switch display interfaces, which is convenient to use. However, when the floating window function is turned on, the electronic device runs under a heavy load, resulting in a large power consumption of the electronic device. Summary of the invention

[0003] The embodiments of the present application provide a display method, a display device, a storage medium, and an electronic device, which can effectively reduce the power consumption of the electronic device when the electronic device starts a floating window function.

[0004] In a first aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, wherein the electronic device includes a display screen, and the method includes:

[0005] In response to the color adjustment operation, determining a target window that needs to be adjusted from the main window and the floating window displayed on the display screen;

[0006] Obtain the color component value of each color channel of the pixel in the target window;

[0007] Determine a first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel;

[0008] The color component values ​​of each color channel of the pixel are adjusted to the first color component values.

[0009] In a second aspect, an embodiment of the present application provides a display device, the device comprising:

[0010] A first determining module, configured to determine, in response to a color adjustment operation, a target window that needs to be adjusted from a main window and a floating window displayed on the display screen;

[0011] An acquisition module, used for acquiring the color component value of each color channel of the pixel in the target window;

[0012] A second determination module is used to determine the first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel, and the first color component value of each color channel of the pixel is the same;

[0013] The adjustment module is used to adjust the color component values ​​of each color channel of the pixel to the first color component value.

[0014] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the method provided by the embodiment of the present application.

[0015] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the method provided in the embodiment of the present application by calling a computer program stored in the memory.

[0016] When the electronic device turns on the floating window function, the floating window and the main window display different contents, so the electronic device runs under a large load, generates a large power consumption, and is prone to heating. Moreover, the power consumption of the electronic device is also relatively large. When it is identified that the temperature of the electronic device is high or the power of the electronic device is low, it is necessary to reduce the power consumption of the electronic device. Then, according to the technical solution in the embodiment of the present application, the target window is flexibly determined from the main window and the floating window displayed on the display screen for color adjustment. Specifically, the first color component value of the color channel of the pixel is determined according to the color component value of each color channel of the pixel in the target window, and the color component value of each color channel is adjusted to the first color component value, so as to convert the color image displayed in the target window into a grayscale image for display, thereby effectively reducing the power consumption required for the display of the main window and / or the floating window, thereby reducing the temperature of the electronic device and alleviating the rate of decrease of the power of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 This is a first flow chart of the display method provided in the embodiment of the present application.

[0019] Figure 2 A schematic diagram of a display screen display interface provided in an embodiment of the present application.

[0020] Figure 3 A second flow chart of the display method provided in an embodiment of the present application.

[0021] Figure 4 A schematic diagram of a grayscale image provided in an embodiment of the present application.

[0022] Figure 5 A first structural schematic diagram of a display device provided in an embodiment of the present application.

[0023] Figure 6 A second structural schematic diagram of the display device provided in an embodiment of the present application.

[0024] Figure 7 A first structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0025] Figure 8 A second structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] Please refer to the drawings, where the same component symbols represent the same components. The principle of the present application is illustrated by implementing it in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.

[0027] It is understandable that the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.

[0028] See also Figure 1 , Figure 1 : is a flow chart of a display method provided in an embodiment of the present application. The display method can be applied to an electronic device, the electronic device includes a display screen, and the flow of the display method can include:

[0029] In 101, in response to a color adjustment operation, a target window that needs to be adjusted is determined from a main window and a floating window displayed on a display screen.

[0030] In the use scenarios of electronic devices such as mobile phones, the floating window function is becoming more and more popular among users. Figure 2 , Figure 2 A schematic diagram of the display interface of the display screen provided for the embodiment of the present application. Among them, after the floating window function is turned on, the display interface of the display screen can be divided into a floating window and a main window. The floating window and the main window can display different contents at the same time. For example, when a user uses the video call function of WeChat, the floating window function is activated for the video call. The video call is displayed through the floating window. The user can also reply to messages and check news on the main window at the same time. The different needs of users can be met on one display interface at the same time. Users do not need to frequently switch display interfaces, which is convenient to use. However, when the electronic device starts the floating window function, the running load is heavy, resulting in a large power consumption of the electronic device and prone to heating.

[0031] It should be noted that in addition to displaying application content, the main window in the embodiment of the present application can also be used to display status information, such as remaining power, network connection sign, message reminders, etc. These status information can be displayed at the top or bottom of the display interface.

[0032] In the related art, the power consumption of electronic devices is controlled by reducing the resolution or frame rate of the floating window. On the one hand, the resolution or frame rate displayed in the floating window may be very low and there is no room for reduction. The effect of reducing power consumption cannot be achieved by reducing the resolution or frame rate. On the other hand, with the popularity of high-definition video calls, applications such as instant messaging will only have higher and higher requirements for resolution or frame rate. Therefore, applications such as WeChat may not support a larger reduction in resolution or frame rate. Therefore, in the related art, the way to control the power consumption of electronic devices is relatively limited, and in many scenarios, the power consumption of electronic devices cannot be effectively reduced.

[0033] In the embodiment of the present application, in response to the color adjustment operation, a target window that needs to be adjusted is determined from the main window and the floating window displayed on the display screen.

[0034] Illustratively, in an embodiment of the present application, when it is necessary to reduce the power consumption of the electronic device, color adjustment can be triggered. For example, when the current temperature of the electronic device is detected to be high, for example, the temperature reaches a first preset temperature, color adjustment can be triggered. For another example, when the current power of the electronic device is detected to be low, for example, the power is lower than a first preset power, color adjustment can be triggered.

[0035] In response to the color adjustment operation, the embodiment of the present application can determine the target window to be adjusted from the main window and the floating window displayed on the display screen. Exemplarily, the main window can be selected as the target window. It can be understood that the display area of ​​the main window is larger than the floating window. The color of the display of the main window can be adjusted, and most of the areas in the display interface can be adjusted, so that the power consumption of the electronic device can be effectively adjusted without affecting the content displayed in the floating window. In another example, both the main window and the floating window can be selected as the target window, and not only the color of the display of the main window can be adjusted, but also the color of the display of the floating window can be adjusted, so that the power consumption adjustment effect can be achieved in a larger range and more effectively. In another example, the main window and the floating window can also be flexibly switched as the target window. For example, based on eye tracking technology, when it is recognized that the position where the user's eyes are looking is located in the main window, the color of the display of the floating window can be adjusted without affecting the display effect of the main window; when it is recognized that the position where the user's glasses are looking is located in the floating window, the color of the display of the main window can be adjusted without affecting the display effect of the floating window, so that the power consumption of the electronic device can be reduced and the visual sense of the user can be minimized. That is, in the embodiment of the present application, when the electronic device receives a color adjustment instruction, it can select only the main window or the floating window as the target window, or it can select both the main window and the floating window as the target window.

[0036] Among them, the electronic device can set the main window and / or floating window as the target window by default, and the user can also set the target window according to his or her own usage habits. For example, the user can call out through shortcut keys, or set the target window through menu selection and other entrances. The electronic device can also intelligently switch the target window according to different usage scenarios.

[0037] In 102, the color component value of each color channel of the pixel in the target window is obtained.

[0038] After determining the target window, the color component values ​​of each color channel of the pixel in the target window are obtained. It can be understood that the image displayed in real time in the target window is composed of many pixels, and each pixel includes at least three color channels: red channel, green channel and blue channel, that is, three color channels RGB. The color component values ​​of each color channel of the pixel can be represented by RGB (R, G, B), wherein different R component values, G component values ​​and B component values ​​can be mixed to form different colors of the pixel, such as red, orange, yellow, green, blue and other colors. For example: the R component value of the pixel is 236, the G component value is 28, and the B component value is 36, and the color formed after mixing is red; for another example, the R component value of the pixel is 255, the G component value is 242, and the B component value is 0, and the color formed after mixing is yellow; for another example, the R component value of the pixel is 184, the G component value is 61, and the B component value is 186, and the color formed after mixing is purple.

[0039] In 103, the first color component value of each color channel of the pixel is determined according to the color component value of each color channel of the pixel.

[0040] In 104, the color component value of each color channel of the pixel is adjusted to the first color component value.

[0041] In an embodiment of the present application, based on the color component values ​​of each color channel of the pixel, the first color component value of each color channel of the pixel can be determined, and the color component values ​​of each color channel of the pixel can be adjusted to the first color component value. That is, after the adjustment, the color component values ​​of each color channel of the pixel in the target window are equal, thereby converting the image displayed in the target window from a color image to a grayscale image.

[0042] The first color component value can be considered as the gray value Gray of the pixel. Exemplarily, the color component value of each color channel of a pixel in a color image is RGB (R, G, B), and the color component value of each color channel of a pixel in an adjusted gray image is RGB (Gray, Gray, Gray).

[0043] Among them, grayscale is a multi-level color depth between black and white. Grayscale images use black as the base color and use black of different saturations to display images. If a pixel is represented by 8 bits, then the pixel can have 256 levels of grayscale. Therefore, the grayscale value of a pixel ranges from [0,255]. The minimum grayscale value of a pixel is 0, representing black, and the maximum grayscale value is 255, representing white.

[0044] After obtaining the color component value RGB (R, G, B) of each color channel of the pixel, the grayscale value Gray of each color channel of the pixel can be calculated by a variety of methods. Exemplarily, the grayscale value Gray of each color channel of the pixel can be obtained by average grayscale processing, Gray = (R + G + B) / 3. In another example, a weighted average grayscale processing method can be used to set different weights for the RGB component values. For example, the human eye has the lowest sensitivity to blue and the highest sensitivity to green. Therefore, a more reasonable grayscale image can be obtained by weighted averaging RGB according to the ratio of 0.299, 0.587, and 0.144. Therefore, Gray = R*0.299+G*0.587+B*0.144. In another example, the grayscale value Gray of each color channel of the pixel can be obtained by maximum grayscale processing, Gray = max(R+G+B). In addition, the grayscale value of each color channel of the pixel can be obtained by various methods such as floating-point grayscale processing, integer grayscale processing, and shift grayscale processing, which is not limited in the embodiments of the present application.

[0045] In the embodiment of the present application, in response to the color adjustment operation, the target window can be flexibly and intelligently determined from the main window and the floating window, the color component values ​​of each color channel of the pixel in the target window can be obtained, and the first color component value of the color channel of the pixel can be determined according to the color component value of each color channel of the pixel, and then according to the first color component value of the color channel of the pixel, the display pixel corresponding to the display screen is driven to display, thereby converting the color image displayed in the target window into a grayscale image for display. Exemplarily, the display screen can be an OLED display screen, and the OLED display screen includes a plurality of display pixels, each display pixel includes a red sub-pixel, a green sub-pixel and a blue sub-pixel, and the sub-pixels of different colors are provided with independent driving circuits for driving the corresponding sub-pixels to emit light, so that different driving voltages can be obtained in real time according to the first color component value of the pixel in the target window, and the driving voltage is used to drive the corresponding sub-pixel of the OLED screen for display.

[0046] It is understandable that when an electronic device turns on the floating window function, the load of the electronic device is large, the power consumption is large, and it is easy to cause the electronic device to heat up, or cause the electronic device to consume a lot of power. When it is recognized that the temperature of the electronic device is high or the power of the electronic device is low, it is necessary to reduce the power consumption of the electronic device. Then, according to the technical solution of the embodiment of the present application, the target window, such as the main window and / or the floating window, can be color-adjusted. Specifically, the first color component value of the color channel of the pixel is determined according to the color component value of each color channel of the pixel in the target window, and the color component value of each color channel is adjusted to the first color component value to convert the color image displayed in the target window into a grayscale image for display, thereby effectively reducing the power consumption required for the display of the main window and / or the floating window, thereby alleviating the temperature rise of the electronic device, and reducing the power consumption of the electronic device.

[0047] See also Figure 3 , Figure 3 A second flow chart of the display method provided in an embodiment of the present application.

[0048] In 201 , when the temperature of the electronic device is greater than a first preset temperature, color adjustment is triggered.

[0049] In the use scenarios of electronic devices such as mobile phones, the floating window function is becoming more and more popular among users. After turning on the floating window function, the floating window and the main window can display different images at the same time. For example, the floating window can display video content, and the main window can display news, shopping, messages and other content information. The different needs of users can be met on one display interface at the same time. Users do not need to frequently switch display interfaces, which is convenient to use. However, after turning on the floating window function, the electronic device consumes more power due to the heavy load of operation, which makes it easy to generate heat.

[0050] In the embodiment of the present application, the real-time temperature of the electronic device can be collected, and when the temperature of the electronic device is greater than a first preset temperature, that is, when the real-time temperature of the electronic device is high, color adjustment can be triggered.

[0051] It should be noted that the embodiments of the present application can trigger color adjustment in any usage scenario where it is necessary to reduce the power consumption of the electronic device. For example, since the power consumption of the electronic device is large, the amount of electricity consumed by the electronic device is also large. Therefore, when the power of the electronic device drops to a preset power, that is, when the remaining power of the electronic device is small, color adjustment can also be triggered.

[0052] In 202, in response to the color adjustment operation, a target window that needs to be adjusted is determined from the main window and the floating window displayed on the display screen.

[0053] In the embodiment of the present application, the target window to be adjusted can be determined from the main window and the floating window displayed on the display screen. Exemplarily, the main window can be selected as the target window. It can be understood that the display area of ​​the main window is larger than the floating window. The color of the display of the main window can be adjusted, and most of the areas in the display interface can be adjusted, so that the power consumption of the electronic device can be effectively adjusted without affecting the content displayed in the floating window. In another example, both the main window and the floating window can be selected as the target window, and not only the color of the display of the main window can be adjusted, but also the color of the display of the floating window can be adjusted, so that the power consumption adjustment effect can be achieved in a larger range and more effectively. In another example, the main window and the floating window can also be flexibly switched as the target window. For example, based on eye tracking technology, when it is recognized that the position where the user's eyes are looking is located in the main window, the color of the display of the floating window can be adjusted without affecting the display effect of the main window; when it is recognized that the position where the user's glasses are looking is located in the floating window, the color of the display of the main window can be adjusted without affecting the display effect of the floating window, so that the power consumption of the electronic device can be reduced and the visual sense of the user can be minimized. That is, in the embodiment of the present application, when the electronic device receives a color adjustment instruction, it can select only the main window or the floating window as the target window, or it can select both the main window and the floating window as the target window.

[0054] Among them, the electronic device can set the main window and / or floating window as the target window by default, and the user can also set the target window according to his or her own usage habits. For example, the user can call out through shortcut keys, or set the target window through menu selection and other entrances. The electronic device can also intelligently switch the target window according to different usage scenarios.

[0055] In one implementation, the electronic device may display prompt information, where the prompt information is used to prompt the user whether to perform color adjustment. If so, the user may be further prompted to select a target window from the main window and the floating window.

[0056] In 203, the color component values ​​of each color channel of the pixel in the target window are obtained.

[0057] Determine the target window, and obtain the color component values ​​of each color channel of the pixel in the target window. It can be understood that the image displayed in real time in the target window is composed of many pixels, and each pixel includes at least three color channels, namely, RGB. The component value of the red channel, the component value of the green channel and the component value of the blue channel of the pixel are obtained. The color component values ​​of each color channel of the pixel can be represented by RGB (R, G, B), wherein different R component values, G component values ​​and B component values ​​can be mixed to form different colors of the pixel, such as red, orange, yellow, green, blue and other colors. For example, the R component value of the pixel is 236, the G component value is 28, and the B component value is 36, and the color formed after mixing is red; for another example, the R component value of the pixel is 255, the G component value is 242, and the B component value is 0, and the color formed after mixing is yellow; for another example, the R component value of the pixel is 184, the G component value is 61, and the B component value is 186, and the color formed after mixing is purple.

[0058] In 204, a second color component value of each color channel of the pixel is determined according to the color component value of each color channel of the pixel.

[0059] In the embodiment of the present application, the second color component value of each color channel of the pixel is determined based on the color component value of each color channel of the pixel, rather than directly determining the first color component value of each color channel of the pixel. It can be understood that the embodiment of the present application can further adjust the second color component value to obtain the first color component value, so as to more effectively reduce the power consumption required for displaying the target window.

[0060] According to the color component values ​​of each color channel of the pixel, that is, according to the component value of the red channel, the component value of the green channel and the component value of the blue channel of the pixel, the second color component value of each color channel of the pixel is determined. If the color component values ​​of each color channel of the pixel are adjusted to the second color component value, the image displayed in the target window can be converted from a color image to an initial grayscale image. The second color component value can also be considered as the grayscale value Gray2 in the grayscale image. Exemplarily, the color component value of each color channel of the pixel in the color image is RGB (R, G, B), and the second color component value of each color channel of the pixel in the grayscale image after adjustment is RGB (Gray2, Gray2, Gray2).

[0061] After obtaining the color component values ​​RGB (R, G, B) of each color channel of the pixel, the second color component values ​​of each color channel of the pixel can be calculated by a variety of methods. Exemplarily, the average value of the component value of the red channel of the pixel, the component value of the green channel and the component value of the blue channel is determined as the second color component value of the pixel, that is, the second color component value Gray2 of each color channel of the pixel can be obtained by average grayscale processing, Gray2 = (R + G + B) / 3. In another example, the second color component value Gray2 of each color channel of the pixel can be obtained by weighted average grayscale processing, that is, different weights are set for the RGB component values. For example, the human eye has the lowest sensitivity to blue and the highest sensitivity to green. Therefore, weighted averaging of RGB in the proportions of 0.299, 0.587, and 0.144 can obtain a more reasonable grayscale image, so Gray2 = R*0.299+G*0.587+B*0.144. In another example, the second color component value Gray2 of each color channel of the pixel can be obtained by maximum grayscale processing, Gray2=max(R+G+B). In addition, the second color component value of each color channel of the pixel can be obtained by various methods such as floating point grayscale processing, integer grayscale processing, and shift grayscale processing, which is not limited in the embodiments of the present application.

[0062] At 205, a target adjustment value for the second color component value is determined.

[0063] In 206 , the second color component value is reduced according to the target adjustment value to obtain the first color component value of each color channel of the pixel.

[0064] In one implementation, the corresponding target adjustment value may be determined according to the second color component value of each color channel of the pixel and the corresponding relationship between the adjustment value and the second color component value interval.

[0065] Among them, grayscale is a multi-level color depth between black and white. The grayscale image uses black as the base color and uses black of different saturations to display the image. If the pixel is represented by 8 bits, then the pixel can have 256 levels of grayscale. Therefore, the grayscale value of the pixel ranges from [0,255]. The minimum grayscale value of the pixel is 0, indicating black, and the maximum grayscale value is 255, indicating white.

[0066] It can be understood that, when the value of the second color component of the pixel changes from 255 to 0, the brightness of the pixel gradually decreases, and the color of the pixel gradually changes from white to black.

[0067] The embodiment of the present application can divide the second color component value into different intervals. For example, the second color component value can be divided into three intervals, the second color component value range [192, 255] is set as the first grayscale range, the second color component value range [191, 64] is set as the second grayscale range, and the second color component value range [0, 63] is set as the third grayscale range.

[0068] It is understandable that, since the human eye is relatively insensitive to changes in bright parts and relatively sensitive to changes in dark parts, when the second color component value of the pixel is in the first grayscale range, the value of the second color component value is large, the corresponding pixel brightness is large, and the set target adjustment value can be relatively large; when the second color component value of the pixel is in the second grayscale range, the value of the second color component value is medium, the corresponding pixel brightness is moderate, and the set target adjustment value can be relatively moderate; when the second color component value of the pixel is in the third grayscale range, the value of the second color component value is small, the corresponding pixel brightness is small, and the set target adjustment value can be relatively small. Adjusting a larger target adjustment value for brighter pixels can more effectively reduce the power consumption required for the target window display, and adjusting a smaller target adjustment value for darker pixels can retain more details of the dark image, thereby effectively reducing the display power consumption, conforming to the characteristics of the human eye, and taking into account the image quality of the displayed image. It should be noted that users can also configure different target adjustment values ​​for different grayscale intervals according to their own usage habits. The embodiment of the present application does not limit the division of the second color component value interval, and the number of intervals and the range included in the interval can be set and adjusted as needed.

[0069] Exemplarily, the target adjustment value may be a proportional value, for example, when the second color component value of the pixel is in the first grayscale range, the target adjustment value may be 30%, when the second color component value of the pixel is in the second grayscale range, the target adjustment value may be 20%, and when the second color component value of the pixel is in the third grayscale range, the target adjustment value may be 10%.

[0070] For example: the R color component value of the pixel is 245, the G color component value is 180, and the B color value is 160. The average grayscale processing method is used to obtain the second color component value Gray2=(245+180+160) / 3=195 of each color channel of the pixel. The second color component value Gray2 of the pixel is in the first grayscale range [192,255]. According to the target adjustment value, the second color component value Gray2 is reduced to obtain the first color component value Gray1 of each color channel of the pixel. Then the first color component value Gray1 of the pixel can be reduced by 30%, that is, Gray1=Gray2-Gray2*30%=195-195*20%=156. Then the first color component value Gray1 is 156, and the first color component value of each color channel of the pixel is: RGB(156,156,156).

[0071] For another example: the R color component value of the pixel is 221, the G color component value is 41, and the B color value is 38. The average grayscale processing method is used to obtain the second color component value Gray2 = (221 + 41 + 38) / 3 = 100 of each color channel of the pixel. The second color component value Gray2 of the pixel is in the second grayscale range [191, 64]. According to the target adjustment value, the second color component value Gray2 is reduced to obtain the first color component value Gray1 of each color channel of the pixel. Then, the first color component value Gray1 of the pixel can be reduced by 20%, that is, Gray1 = Gray2-Gray2*20% = 100-100*20% = 80. Then the first color component value Gray1 is 80, and the first color component value of each color channel of the pixel is: RGB (80, 80, 80).

[0072] For another example: the R color component value of a pixel is 34, the G color component value is 96, and the B color value is 12. The average grayscale processing method is used to obtain the second color component value Gray2=(34+96+10) / 3=50 of each color channel of the pixel. The second color component value Gray2 of the pixel is in the third grayscale range [0,63]. According to the target adjustment value, the second color component value Gray2 is reduced to obtain the first color component value Gray1 of each color channel of the pixel. Then, the first color component value Gray1 of the pixel can be reduced by 10%, that is, Gray1=Gray2-Gray2*10%=50-50*10%=40. Then, the first color component value Gray1 is 40, and the first color component value of each color channel of the pixel is: RGB(40,40,40).

[0073] Exemplarily, the target adjustment value may also be a preset value. For example, when the second color component value of the pixel is in the first grayscale range, the target adjustment value may be 30; when the second color component value of the pixel is in the second grayscale range, the target adjustment value may be 20; and when the second color component value of the pixel is in the third grayscale range, the target adjustment value may be 10.

[0074] So, for example: the second color component value Gray2 of each color channel of the pixel is 200, and the second color component value Gray2 of the pixel is in the first grayscale range [192,255]. Then the target adjustment value can be 30, that is, Gray1=Gray2-30=200-30=170, then the first color component value Gray1 is 170, and the first color component value of each color channel of the pixel is: RGB(170,170,170).

[0075] For another example: the second color component value Gray2 of each color channel of the pixel is 100, and the second color component value Gray2 of the pixel is in the second grayscale range [191,64]. Then the target adjustment value can be 20, that is, Gray1=Gray2-20=100-20=80, then the first color component value Gray1 is 80, and the first color component value of each color channel of the pixel is: RGB(80,80,80).

[0076] For another example: the second color component value Gray2 of each color channel of the pixel is 50, and the second color component value Gray2 of the pixel is in the third grayscale range [63,0]. Then the target adjustment value can be 10, that is, Gray1=Gray2-10=50-10=40, then the first color component value Gray1 is 40, and the first color component value of each color channel of the pixel is: RGB(40,40,40).

[0077] It should be noted that the embodiment of the present application does not limit the target adjustment value, and the target adjustment value can also be set and adjusted as needed.

[0078] In one implementation, the corresponding target adjustment value is determined according to the second color component value of each color channel of the pixel and the correspondence between the adjustment value and the temperature range, that is, the higher the temperature of the electronic device, the larger the corresponding adjustment value can be.

[0079] When an electronic device turns on the floating window function, the power consumption of the electronic device is relatively large and it is easy to generate heat. The embodiment of the present application collects the real-time temperature of the electronic device. When the real-time temperature of the electronic device is greater than the first preset temperature, it indicates that the electronic device generates heat. In order to alleviate the heat phenomenon, it is necessary to reduce the power consumption of the electronic device. It can be understood that when the real-time temperature of the electronic device is higher than the first preset temperature, the greater the power consumption that needs to be reduced, then the set target adjustment value can be relatively large to greatly reduce the power consumption required for the display of the target window; the closer the real-time temperature of the electronic device is to the first preset temperature, the smaller the power consumption that needs to be reduced, then the set target adjustment value can be relatively small.

[0080] The embodiment of the present application can divide the temperature into different intervals. For example, when the temperature is between the first preset temperature and the third preset temperature, the target adjustment value can be relatively small, wherein the first preset temperature is less than the third preset temperature; when the temperature of the electronic device is greater than the third preset temperature and less than the fourth preset temperature, the target adjustment value can be relatively moderate, wherein the third preset temperature is less than the fourth preset temperature; when the temperature of the electronic device is greater than the fourth preset temperature, the target adjustment value can be relatively large. It should be noted that the embodiment of the present application does not limit the division of temperature intervals, the number of intervals and the values ​​of the intervals can be set and adjusted as needed, and the first preset temperature, the third preset temperature and the fourth preset temperature are not limited.

[0081] Exemplarily, the target adjustment value may be a proportional value, for example, when the temperature is between the first preset temperature and the third preset temperature, the target adjustment value may be 10%, when the temperature is between the third preset temperature and the fourth preset temperature, the target adjustment value may be 20%, and when the temperature is greater than the fourth preset temperature, the target adjustment value may be 30%.

[0082] For example, the first preset temperature is 39 degrees, the third preset temperature is 41 degrees, and the fourth preset temperature is 43 degrees. If the temperature is 40 degrees, the second color component value of the pixel in the target window is reduced by 10%. For example, if the second color component value Gray2 is 150, then the first color component value Gray1 = Gray2-Gray2*10% = 150-150*10% = 135, and the first color component value of each channel of the pixel is RGB (135, 135, 135); if the second color component value Gray2 is 100, then the first color component value Gray1 = Gray2-Gray2*10% = 100-100*10% = 90, and the first color component value of each channel of the pixel is RGB (90, 90, 90). For another example, if the temperature is recognized to be 42 degrees, the second color component value of the pixel in the target window is reduced by 20%. If the second color component value Gray2 is 150, then the first color component value Gray1=Gray2-Gray2*10%=150-150*20%=120, and the first color component value of each channel of the pixel is: RGB(120,120,120); if the second color component value Gray2 is 100, then the first color component value Gray1=Gray2-Gray2*20%=100-100*20%=80, and the first color component value of each channel of the pixel is: RGB(80,80,80). For another example, if the temperature is recognized to be 44 degrees, the second color component value of the pixel in the target window is reduced by 30%. If the second color component value Gray2 is 150, then the first color component value Gray1=Gray2-Gray2*30%=150-150*30%=105, and the first color component value of each channel of the pixel is: RGB(105,105,105); if the second color component value Gray2 is 100, then the first color component value Gray1=Gray2-Gray2*30%=100-100*30%=70, and the first color component value of each channel of the pixel is: RGB(70,70,70).

[0083] Exemplarily, the target adjustment value may also be a preset value, for example, when the temperature is between the first preset temperature and the third preset temperature, the target adjustment value may be 10, when the temperature is between the third preset temperature and the fourth preset temperature, the target adjustment value may be 20, and when the temperature is greater than the fourth preset temperature, the target adjustment value may be 30. The embodiment of the present application does not limit the target adjustment value, and the target adjustment value may be set and adjusted as needed.

[0084] The embodiment of the present application can adjust the size of the target adjustment value in real time according to the real-time temperature of the electronic device. When the temperature is high, the target adjustment value is large, so that the second color component value of the pixel decreases by a large margin. Therefore, the power consumption of the target window display can be greatly reduced, and the temperature of the electronic device can be reduced in time.

[0085] It can be understood that if the target adjustment value is larger, the value of the second color component of the pixel in the target window decreases more, and the grayscale image displayed in the target window will be darker. If the target adjustment value is smaller, the value of the second color component of the pixel in the target window decreases less, and the grayscale image displayed in the target window will be brighter.

[0086] Therefore, when the temperature of the electronic device rises, the target adjustment value can be increased in real time to increase the amplitude of the decrease in the second color component value of the pixel in the target window and reduce the temperature of the electronic device in time; and when the temperature of the electronic device decreases, the target adjustment value can be reduced in real time to reduce the amplitude of the decrease in the second color component value of the pixel in the target window, thereby reducing the power consumption of the target window display, reducing the temperature of the electronic device, and taking into account the image quality of the target window image display.

[0087] Please refer to Figure 4 , Figure 4 A schematic diagram of a grayscale image provided in an embodiment of the present application. For example, the main window is a target window, and when the temperature of the electronic device rises, the grayscale image displayed in the target window will be darker and blacker because the second color component value of the pixel in the target window decreases more, and when the temperature of the electronic device drops, the grayscale image displayed in the target window will be brighter and whiter because the second color component value of the pixel in the target window decreases less.

[0088] In 207 , the color component value of each color channel of the pixel is adjusted to the first color component value.

[0089] In the embodiment of the present application, not only is the color component value of each color channel of the pixel converted into the second color component value of each color channel of the pixel, but the second color component value of each color channel of the pixel is also reduced by the target adjustment value to obtain the first color component value, and the color component value of each color channel of the pixel is adjusted to the first color component value. That is, after the adjustment, the color component values ​​of each color channel of the pixel in the target window are equal, and not only can the color image displayed in the target window be converted into a grayscale image, but also the display brightness of the pixels in the grayscale image can be further reduced, thereby more effectively reducing the power consumption required for displaying the target window.

[0090] In the embodiment of the present application, according to the first color component value of the pixel in the target window, the display pixel of the corresponding display screen is driven to display. Specifically, the display screen can be an OLED display screen, which includes a plurality of display pixels, each display pixel includes a red sub-pixel, a green sub-pixel and a blue sub-pixel, and sub-pixels of different colors are provided with independent driving circuits for driving the sub-pixels to emit light, so that different driving voltages can be obtained in real time according to the first color component value of the pixel in the target window, and the corresponding sub-pixels of the OLED screen are driven to display using different driving voltages.

[0091] In one embodiment, when it is identified that the temperature of the electronic device is high or the power of the electronic device is low, it can be determined that both the main window and the floating window are target windows, and the color of the entire area of ​​the display screen is adjusted at the same time, which can more quickly and effectively reduce the power consumption of the electronic device. Correspondingly, obtaining the color component values ​​of each color channel of the pixel in the target window may include: obtaining the color component values ​​of each color channel of the pixel in the main window and obtaining the color component values ​​of each color channel of the pixel in the floating window; determining the second color component values ​​of each color channel of the pixel based on the color component values ​​of each color channel of the pixel includes: determining the second color component values ​​of each color channel of the pixel in the main window based on the color component values ​​of each color channel of the pixel in the main window, and determining the second color component values ​​of each color channel of the pixel in the floating window based on the color component values ​​of each color channel of the pixel in the floating window;

[0092] Determining a target adjustment value for a second color component value may include: determining a first target adjustment value for the second color component value of a pixel in the main window, and determining a second target adjustment value for the second color component value of a pixel in the floating window; determining the first color component value of each color channel of the pixel according to the target adjustment value and the second color component value includes: determining the first color component value of each color channel of the pixel in the main window according to the first target adjustment value and the second color component value of the pixel in the main window, and determining the first color component value of each color channel of the pixel in the floating window according to the second target adjustment value and the second color component value of the pixel in the floating window; adjusting the color component value of each color channel of the pixel to the first color component value includes: adjusting the color component value of each color channel of the pixel in the main window to the first color component value of each color channel of the pixel in the main window, and adjusting the color component value of each color channel of the pixel in the floating window to the first color component value of each color channel of the pixel in the floating window.

[0093] Among them, the first target adjustment value may be different from the second target adjustment value, that is, in the embodiment of the present application, the second color component value of the main window pixel and the second color component value of the floating window pixel may be reduced to different degrees, for example, the first target adjustment value may be greater than the second target adjustment value, so that the second color component value of the main window pixel may be reduced to a greater extent, and the second color component value of the floating window pixel may be reduced to a relatively small extent. It can be understood that the display area of ​​the main window is larger than the floating window, and the second color component value of the main window pixel is adjusted to a greater extent, and most areas in the display interface may be adjusted to a greater extent, thereby obtaining a more effective power consumption adjustment effect, while the second color component value of the floating window pixel is adjusted to a smaller extent, which can minimize the impact on the content displayed in the floating window. It can be understood that users are accustomed to using the floating window to display video content, and using the main window to display news, shopping, messages and other content. The frequency of change of the image content displayed in the main window is much less than that of the video content displayed in the floating window. Considering the user's visual perception, choosing to adjust the video content to a smaller extent can minimize the impact on the user's viewing experience.

[0094] It should be noted that the second target adjustment value can be greater than the first target adjustment value. For example, when it is recognized that the user's eye gaze is located in the main window, the display color of the floating window can be adjusted to a greater extent, while the display color of the main window can be adjusted to a lesser extent. Of course, the first target adjustment value can also be the same as the second target adjustment value, so the first target adjustment value and the second target adjustment value can be set as needed, and this application does not limit this.

[0095] In 208, when the temperature of the electronic device drops to a second preset temperature, the color component value of each color channel of the pixel in the target window is obtained;

[0096] In 209 , the corresponding pixel is driven to display according to the color component value of each color channel of the pixel, and the second preset temperature is less than the first preset temperature.

[0097] In an embodiment of the present application, when it is recognized that the temperature of the electronic device drops to a second preset temperature, and the second preset temperature is lower than the first preset temperature, that is, the temperature of the electronic device is at a normal temperature, the color component values ​​of each color channel of the pixel in the target window can be reacquired, and the corresponding pixel display can be driven according to the color component values ​​of each color channel of the pixel, so that the target window can display the color image normally.

[0098] In one implementation, when the temperature of the electronic device is on an upward trend, or when the temperature of the electronic device is on a downward trend, the corresponding relationship between the adjustment value and the temperature interval may be different.

[0099] For example, when the temperature of the electronic device is on an upward trend, the temperature between the first preset temperature and the third preset temperature is set as the first temperature interval, and the corresponding target adjustment value is the first adjustment value; the temperature between the third preset temperature and the fourth preset temperature is set as the second temperature interval, and the corresponding target adjustment value is the second adjustment value; the temperature greater than the fourth preset temperature is set as the third temperature interval, and the corresponding target adjustment value is the third adjustment value, wherein the first adjustment value is less than the second adjustment value, and the second adjustment value is less than the third adjustment value. If it is identified that the temperature of the electronic device rises from the first temperature interval to the second temperature interval, the target adjustment value is switched from the first adjustment value to the second adjustment value; if it is identified that the temperature of the electronic device rises from the second temperature interval to the third temperature interval, the target adjustment value is switched from the second adjustment value to the third adjustment value.

[0100] However, when the temperature of the electronic device is in a downward trend, the temperature between the fifth preset temperature and the sixth preset temperature is set to the fourth temperature interval, and the target adjustment value will be switched from the third adjustment value to the second adjustment value only when the temperature drops from the third temperature interval to the fourth preset temperature interval, wherein the fifth preset temperature value is less than the fourth preset temperature value, and the fifth preset temperature value is greater than the third preset temperature value, the sixth preset temperature value is less than the third preset temperature value, and the sixth preset temperature value is greater than the first preset temperature value, that is, when the temperature drops from greater than the fourth preset temperature to less than the fourth preset temperature, the target adjustment value will not be immediately switched from the third adjustment value to the second adjustment value, and only when the temperature drops to less than the fifth preset temperature will it be triggered to switch the target adjustment value from the third adjustment value to the second adjustment value, so that when the temperature of the electronic device drifts around the fourth preset temperature, the target adjustment value will not be adjusted frequently. Similarly, the temperature between the sixth preset temperature and the second preset temperature is set as the fifth temperature interval. When the temperature drops from the fourth temperature interval to the fifth temperature interval, the target adjustment value is switched from the second adjustment value to the first adjustment value, wherein the second preset temperature value is less than the first preset temperature value, that is, when the temperature drops from greater than the third preset temperature to less than the third preset temperature, the target adjustment value will not be immediately switched from the second adjustment value to the first adjustment value. Only when the temperature drops to less than the sixth preset temperature, the target adjustment value will be triggered to switch from the second adjustment value to the first adjustment value, so that when the temperature of the electronic device drifts around the third preset temperature, the target adjustment value will not be frequently adjusted. Similarly, the temperature less than the second preset temperature is set as the sixth temperature interval. When the temperature drops from the fifth temperature interval to the sixth temperature interval, the color component values ​​of each color channel of the pixel in the target window will be re-acquired, and the corresponding pixel display will be driven according to the color component values ​​of each color channel of the pixel, so that the target window can display a color image normally, that is, when the temperature of the electronic device drifts around the first preset temperature, the image displayed in the target window will not frequently switch between a color image and a gray image, thereby improving the stability of the image displayed in the target window.

[0101] In one embodiment, when the power of the electronic device drops to a preset power, color adjustment is triggered; determining the target adjustment value for the second color component value includes: obtaining the power of the electronic device; determining the corresponding target adjustment value based on the power of the electronic device and the correspondence between the adjustment value and the power, wherein the adjustment value and the power are negatively correlated; determining the first color component value of each color channel of the pixel based on the target adjustment value and the second color component value includes: reducing the second color component value according to the target adjustment value to obtain the first color component value of each color channel of the pixel.

[0102] It is understandable that after turning on the floating window function, the electronic device consumes more power due to the heavy load in operation, and the power consumption of the electronic device is also relatively large. Therefore, when it is identified that the power of the electronic device drops to the preset power, the remaining power of the electronic device is less at this time. In order to alleviate the speed of power decline of the electronic device, the color adjustment can be triggered.

[0103] Exemplarily, the real-time power of the electronic device is obtained. When the power of the electronic device is lower than the preset power, the power consumption needs to be reduced. The target adjustment value can be relatively large, and the power consumption required for the display of the target window is greatly reduced to quickly reduce the power consumption of the electronic device; the closer the power of the electronic device is to the preset power, the smaller the power consumption needs to be reduced. The target adjustment value can be relatively small to alleviate the speed of the electronic device power decline. That is, the target adjustment value is negatively correlated with the power. Moreover, when it is identified that the power of the electronic device is higher than the preset power, that is, when the power of the electronic device is in a normal state, the color component values ​​of each color channel of the pixel in the target window can be re-acquired, and the corresponding pixel display can be driven according to the color component values ​​of each color channel of the pixel, so that the target window can display the color image normally. Among them, the color adjustment method can refer to the above embodiment, which will not be repeated here.

[0104] In an embodiment of the present application, when it is recognized that the temperature of the electronic device is high or the battery level of the electronic device is low, a color adjustment operation can be performed on the target window, such as the main window and / or the floating window. Specifically, the second color component value of each color channel of the pixel is determined based on the color component value of each color channel of the pixel in the target window, and then a target adjustment value for the second color component value is determined. Then, the second color component value is reduced based on the target adjustment value to obtain the first color component value of the pixel, and the display is driven according to the first color component value of the pixel. Among them, the embodiment of the present application can adjust a larger target adjustment value for brighter pixels to more effectively reduce the power consumption required for the target window display, and adjust a smaller target adjustment value for darker pixels to retain more details of the dark image, thereby effectively reducing the display power consumption, conforming to the characteristics of the human eye, and taking into account the image quality of the displayed image; the embodiment of the present application can also increase the target adjustment value in real time when it is recognized that the temperature of the electronic device rises or the power of the electronic device decreases, so as to increase the amplitude of the decrease of the second color component value of the pixel in the target window, timely reduce the temperature of the electronic device, and reduce the power consumption of the electronic device; and when the temperature of the electronic device decreases or the power of the electronic device increases, the target adjustment value can be reduced in real time to reduce the amplitude of the decrease of the second color component value of the pixel in the target window, thereby reducing the power consumption of the target window display and taking into account the image quality of the target window display; and when the temperature of the electronic device or the power of the electronic device returns to normal, the color component values ​​of each color channel of the pixel in the target window can be re-acquired, and the display is driven according to the color component values ​​of each color channel of the pixel, so that the target window can display the color image normally.

[0105] Therefore, in the embodiments of the present application, when the electronic device starts the floating window function and needs to reduce power consumption, there is no need to reduce the resolution and frame rate of the floating window, or when the resolution or frame rate displayed by the floating window no longer supports a decrease, the power consumption of the electronic device can be effectively reduced, the temperature of the electronic device can be effectively reduced, and the power consumption rate of the electronic device can be alleviated.

[0106] See also Figure 5 and Figure 6 , Figure 5 This is a schematic diagram of a first structure of a display device provided in an embodiment of the present application. Figure 6 A second structural diagram of a display device provided in an embodiment of the present application. The display device can be applied to an electronic device. The display device 300 may include a first determination module 301, an acquisition module 302, a second determination module 303, and an adjustment module 304.

[0107] The first determining module 301 is used to: in response to a color adjustment operation, determine a target window that needs to be adjusted from the main window and the floating window displayed on the display screen;

[0108] The acquisition module 302 is used to: acquire the color component value of each color channel of the pixel in the target window;

[0109] The second determination module 303 is used to: determine the first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel, and the first color component values ​​of each color channel of the pixel are the same;

[0110] The processing module 304 is used to adjust the color component value of each color channel of the pixel to the first color component value.

[0111] In one embodiment, the second determination module 303 can be used to: determine the second color component value of each color channel of the pixel based on the color component value of each color channel of the pixel; determine the target adjustment value for the second color component value, and determine the first color component value of each color channel of the pixel based on the target adjustment value and the second color component value.

[0112] In one implementation, the display device further includes a trigger module 305 , and the trigger module 305 can be used to trigger color adjustment when the temperature of the electronic device reaches a first preset temperature.

[0113] The second determination module 303 may be configured to reduce the second color component value according to the target adjustment value to obtain the first color component value of each color channel of the pixel.

[0114] In one implementation, the second determination module 303 may be used to determine a corresponding target adjustment value based on the second color component value of each color channel of the pixel and the correspondence between the adjustment value and the second color component value interval, wherein the adjustment value and the second color component value interval are positively correlated.

[0115] In one embodiment, the second determination module 303 can be used to: obtain the real-time temperature of the electronic device; determine the corresponding target adjustment value according to the real-time temperature of the electronic device and the correspondence between the adjustment value and the temperature range, wherein the adjustment value and the temperature range are positively correlated.

[0116] In one implementation, the adjusting device 304 may be used to: when the temperature of the electronic device drops to a second preset temperature, obtain the color component value of each color channel of the pixel in the target window;

[0117] According to the color component value of each color channel of the pixel, the corresponding pixel is driven to display, and the second preset temperature is less than the first preset temperature.

[0118] In one embodiment, the color channels of the pixel include a red channel, a green channel, and a blue channel, and the second determination device 304 can be used to: obtain the component value of the red channel, the component value of the green channel, and the component value of the blue channel of the pixel; and determine the average value of the component value of the red channel, the component value of the green channel, and the component value of the blue channel of the pixel as the second color component value of the pixel.

[0119] In one embodiment, the trigger device 305 can be used to: trigger color adjustment when the power of the electronic device drops to a preset power; the second determination device 303 can be used to: obtain the power of the electronic device; determine the corresponding target adjustment value based on the power of the electronic device and the correspondence between the adjustment value and the power, wherein the adjustment value is negatively correlated with the power, and the second color component value is reduced according to the target adjustment value to obtain the first color component value of each color channel of the pixel.

[0120] In one embodiment, the first determination device 301 can be used to: determine that the main window and the floating window are both target windows; the acquisition module 302 can be used to: obtain the second color component value of the pixel in the target window, and the second color component value of the pixel in the main window; the second determination device 303 can be used to: determine a first target adjustment value for the second color component value of the pixel in the main window, and determine a second target adjustment value for the second color component value of the pixel in the floating window, the first target adjustment value is different from the second target adjustment value; it can also be used to: determine the first first color component value of each color channel of the pixel in the main window according to the first target adjustment value and the second color component value of the pixel in the main window, and determine the second first color component value of each color channel of the pixel in the floating window according to the second target adjustment value and the second color component value of the pixel in the floating window; the adjustment device 304 can be used to: adjust the color component value of each color channel of the pixel in the main window to the first first color component value, and adjust the color component value of each color channel of the pixel in the floating window to the second first color component value.

[0121] The application embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the display method provided in this embodiment.

[0122] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the process in the display method provided in the present embodiment by calling a computer program stored in the memory.

[0123] For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Figure 7 , Figure 7 A first structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0124] The electronic device 400 may include components such as a display screen 401, a memory 402, and a processor 403. Those skilled in the art will appreciate that Figure 7 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0125] The display screen 401 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of images, texts, icons, videos and any combination thereof. When the electronic device turns on the floating window function, the display interface of the display screen can be divided into a main window and a floating window for displaying different contents.

[0126] The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 403 executes various functional applications and data processing by running the applications stored in the memory 402. The processor 403 is electrically connected to the memory 402.

[0127] The processor 403 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.

[0128] In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application program stored in the memory 402, thereby executing:

[0129] In response to the color adjustment operation, determining a target window to be adjusted from the main window and the floating window displayed on the display screen;

[0130] Get the color component value of each color channel of the pixel in the target window;

[0131] Determine the first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel;

[0132] The color component values ​​of each color channel of the pixel are adjusted to the first color component value.

[0133] See also Figure 8 , Figure 8A second structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 400 further includes components such as a radio frequency circuit 404, a control circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power supply 409. The processor 403 is electrically connected to the radio frequency circuit 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power supply 409, respectively.

[0134] The radio frequency circuit 404 is used to send and receive radio frequency signals to communicate with network devices or other electronic devices through wireless communication.

[0135] The control circuit 405 is electrically connected to the display screen 401 and is used to control the display screen 401 to display information.

[0136] The input unit 406 can be used to receive input numbers, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. The input unit 406 can include a fingerprint recognition module.

[0137] The audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 407 includes a microphone. The microphone is electrically connected to the processor 403. The microphone is used to receive voice information input by the user.

[0138] The sensor 408 is used to collect external environment information. The sensor 408 may include one or more sensors such as an environment brightness sensor, an acceleration sensor, and a gyroscope.

[0139] The power supply 409 is used to supply power to various components of the electronic device 400. In some embodiments, the power supply 409 may be logically connected to the processor 403 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.

[0140] Although not shown in the figure, the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0141] In this embodiment, the processor 403 in the electronic device 400 will load the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 will run the application program stored in the memory 402 to execute:

[0142] In response to the color adjustment operation, determining a target window to be adjusted from the main window and the floating window displayed on the display screen;

[0143] Get the color component value of each color channel of the pixel in the target window;

[0144] Determine the first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel;

[0145] The color component values ​​of each color channel of the pixel are adjusted to the first color component value.

[0146] In one embodiment, in determining the first color component value of each color channel of the pixel based on the color component value of each color channel of the pixel, the processor 403 executes: determining the second color component value of each color channel of the pixel based on the color component value of each color channel of the pixel; determining a target adjustment value for the second color component value, and determining the first color component value of each color channel of the pixel based on the target adjustment value and the second color component value.

[0147] In one embodiment, before responding to the color adjustment operation, the processor 403 executes: when the temperature of the electronic device reaches a first preset temperature, triggering the color adjustment;

[0148] In determining the first color component value of each color channel of the pixel according to the target adjustment value and the second color component value, the processor 403 executes: reducing the second color component value according to the target adjustment value to obtain the first color component value of each color channel of the pixel.

[0149] In one embodiment, in determining the target adjustment value for the second color component value, the processor 403 executes: determining the corresponding target adjustment value based on the second color component value of each color channel of the pixel, and the correspondence between the adjustment value and the second color component value interval, wherein the adjustment value and the second color component value interval are positively correlated.

[0150] In one embodiment, in determining the target adjustment value for the second color component value, the processor 403 executes: obtaining the real-time temperature of the electronic device; determining the corresponding target adjustment value based on the real-time temperature of the electronic device and the correspondence between the adjustment value and the temperature range, wherein the adjustment value and the temperature range are positively correlated.

[0151] In one embodiment, after adjusting the color component values ​​of each color channel of the pixel to the first color component value, the processor 403 executes: when the temperature of the electronic device drops to a second preset temperature, obtaining the color component values ​​of each color channel of the pixel in the target window; according to the color component values ​​of each color channel of the pixel, driving the corresponding pixel display, the second preset temperature is less than the first preset temperature.

[0152] In one embodiment, the color channels of the pixel include a red channel, a green channel, and a blue channel. In determining the second color component value of each color channel of the pixel based on the color component values ​​of each color channel of the pixel, the processor 403 executes: obtaining the component value of the red channel, the component value of the green channel, and the component value of the blue channel of the pixel; and determining the average value of the component value of the red channel, the component value of the green channel, and the component value of the blue channel of the pixel as the second color component value of the pixel.

[0153] In one embodiment, before responding to a color adjustment operation, the processor 403 triggers a color adjustment when the power of the electronic device drops to a preset power; in determining a target adjustment value for the second color component value, the processor 403 executes: obtaining the power of the electronic device; determining a corresponding target adjustment value based on the power of the electronic device and the correspondence between the adjustment value and the power, wherein the adjustment value is negatively correlated with the power; in determining a first color component value of each color channel of a pixel based on the target adjustment value and the second color component value, the processor 403 executes: reducing the second color component value based on the target adjustment value to obtain the first color component value of each color channel of the pixel.

[0154] In one embodiment, in determining a target window that needs to be adjusted from a main window and a floating window displayed on a display screen, the processor 403 executes: determining that both the main window and the floating window are target windows; in obtaining color component values ​​of each color channel of pixels in the target window, the processor 403 executes: obtaining color component values ​​of each color channel of pixels in the main window, and color component values ​​of each color channel of pixels in the floating window; in determining second color component values ​​of each color channel of pixels according to the color component values ​​of each color channel of pixels, the processor 403 executes: determining second color component values ​​of each color channel of pixels in the main window according to the color component values ​​of each color channel of pixels in the main window, and determining second color component values ​​of each color channel of pixels in the floating window according to the color component values ​​of each color channel of pixels in the floating window; in determining a target adjustment value for the second color component value, the processor 403 executes: determining a first adjustment value for the second color component value of pixels in the main window; A target adjustment value, and a second target adjustment value for determining a second color component value of a pixel in a floating window, the first target adjustment value is different from the second target adjustment value; in determining the first color component value of each color channel of the pixel according to the target adjustment value and the second color component value, the processor 403 executes: determining the first color component value of each color channel of the pixel in the main window according to the first target adjustment value and the second color component value of the pixel in the main window, and determining the first color component value of each color channel of the pixel in the floating window according to the second target adjustment value and the second color component value of the pixel in the floating window; in adjusting the color component value of each color channel of the pixel to the first color component value, the processor 403 executes: adjusting the color component value of each color channel of the pixel in the main window to the first color component value of each color channel of the pixel in the main window, and adjusting the color component value of each color channel of the pixel in the floating window to the first color component value of each color channel of the pixel in the floating window.

[0155] In the above embodiments, the description of each embodiment has its own focus. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the display method above, and will not be repeated here.

[0156] The display device provided in the embodiment of the present application belongs to the same concept as the display method in the above embodiment. Any method provided in the display method embodiment can be run on the display device. The specific implementation process is detailed in the display method embodiment and will not be repeated here.

[0157] It should be noted that, for the display method of the embodiment of the present application, a person skilled in the art can understand that the whole or part of the process of the display method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the display method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0158] For the display device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.

[0159] The display method, display device, storage medium and electronic device provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A display method, applied to an electronic device, wherein the electronic device includes a display screen, characterized in that: include: In response to the color adjustment operation, determining a target window that needs to be adjusted from the main window and the floating window displayed on the display screen; Obtain the color component value of each color channel of the pixel in the target window; Determine a first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel; The color component values ​​of each color channel of the pixel are adjusted to the first color component values.

2. The display method according to claim 1, characterized in that: Determining the first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel comprises: Determine a second color component value of each color channel of the pixel according to the color component value of each color channel of the pixel; A target adjustment value for the second color component value is determined, and a first color component value of each color channel of the pixel is determined according to the target adjustment value and the second color component value.

3. The display method according to claim 2, characterized in that: Before responding to the color adjustment operation, the method further includes: When the temperature of the electronic device is greater than a first preset temperature, triggering color adjustment; Determining the first color component value of each color channel of the pixel according to the target adjustment value and the second color component value comprises: The second color component value is reduced according to the target adjustment value to obtain the first color component value of each color channel of the pixel.

4. The display method according to claim 2, characterized in that: Determining a target adjustment value for the second color component value comprises: According to the second color component value of each color channel of the pixel, and the corresponding relationship between the adjustment value and the second color component value interval, a corresponding target adjustment value is determined.

5. The display method according to claim 3, characterized in that: Determining a target adjustment value for the second color component value comprises: Acquiring the real-time temperature of the electronic device; The corresponding target adjustment value is determined according to the real-time temperature of the electronic device and the corresponding relationship between the adjustment value and the temperature range.

6. The display method according to claim 3, characterized in that: After the color component values ​​of each color channel of the pixel are adjusted to the first color component value, the method further includes: When the temperature of the electronic device drops to the second preset temperature, obtaining the color component value of each color channel of the pixel in the target window; According to the color component value of each color channel of the pixel, the corresponding pixel is driven to display, and the second preset temperature is less than the first preset temperature.

7. The display method according to claim 2, characterized in that: The color channels of the pixel include a red channel, a green channel, and a blue channel, and determining the second color component value of each color channel of the pixel according to the color component value of each color channel of the pixel includes: Obtaining a component value of a red channel, a component value of a green channel, and a component value of a blue channel of the pixel; An average value of the component value of the red channel, the component value of the green channel, and the component value of the blue channel of the pixel is determined as the second color component value of the pixel.

8. The display method according to claim 2, characterized in that: Before responding to the color adjustment operation, the method further includes: When the power level of the electronic device is lower than a preset power level, the color adjustment is triggered; Determining a target adjustment value for the second color component value includes: Obtaining the power of the electronic device; Determining a corresponding target adjustment value according to the power of the electronic device and the corresponding relationship between the adjustment value and the power, wherein the adjustment value is negatively correlated with the power; Determining the first color component value of each color channel of the pixel according to the target adjustment value and the second color component value comprises: The second color component value is reduced according to the target adjustment value to obtain the first color component value of each color channel of the pixel.

9. The display method according to claim 3 or 8, characterized in that: Determining the target window to be adjusted from the main window and the floating window displayed on the display screen includes: Determining that both the main window and the floating window are target windows; Acquiring the color component value of each color channel of the pixel in the target window includes: Obtain the color component value of each color channel of the pixel in the main window and the color component value of each color channel of the pixel in the floating window; Determining the second color component value of each color channel of the pixel according to the color component value of each color channel of the pixel includes: Determine the second color component value of each color channel of the pixel in the main window according to the color component value of each color channel of the pixel in the main window, and determine the second color component value of each color channel of the pixel in the floating window according to the color component value of each color channel of the pixel in the floating window; Determining a target adjustment value for the second color component value includes: Determine a first target adjustment value for a second color component value of a pixel in the main window, and determine a second target adjustment value for a second color component value of a pixel in the floating window, the first target adjustment value being different from the second target adjustment value; Determining the first color component value of each color channel of the pixel according to the target adjustment value and the second color component value comprises: determining the first color component value of each color channel of the pixel in the main window according to the first target adjustment value and the second color component value of the pixel in the main window, and determining the first color component value of each color channel of the pixel in the floating window according to the second target adjustment value and the second color component value of the pixel in the floating window; The adjusting the color component value of each color channel of the pixel to the first color component value comprises: The color component values ​​of each color channel of the pixel in the main window are adjusted to the first color component values ​​of each color channel of the pixel in the main window, and the color component values ​​of each color channel of the pixel in the floating window are adjusted to the first color component values ​​of each color channel of the pixel in the floating window.

10. A display device, characterized in that: The device comprises: A first determining module, configured to determine, in response to a color adjustment operation, a target window that needs to be adjusted from a main window and a floating window displayed on the display screen; An acquisition module, used for acquiring the color component value of each color channel of the pixel in the target window; A second determination module is used to determine the first color component value of each color channel of the pixel according to the color component value of each color channel of the pixel, and the first color component value of each color channel of the pixel is the same; The adjustment module is used to adjust the color component values ​​of each color channel of the pixel to the first color component value.

11. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 9.

12. An electronic device, comprising a display screen, a memory, and a processor, characterized in that: The processor is configured to execute the method according to any one of claims 1 to 9 by calling the computer program stored in the memory.