A screen projection method

By identifying influencing factors in the screen mirroring system and adjusting parameters using a tiered adjustment strategy, the problem of inconsistent screen mirroring effects was solved, improving user experience and display quality.

CN115499699BActive Publication Date: 2024-09-17HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110673972.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-17
Publication Date
2024-09-17
Estimated Expiration
2041-06-17

AI Technical Summary

Technical Problem

Existing screen mirroring technologies result in inconsistent display quality under different network and device conditions, affecting user experience, especially display latency and frame drops.

Method used

By working together with electronic and display devices, the causes affecting the projection effect are identified, and a tiered adjustment strategy is adopted to adjust parameters, such as adjusting CPU frequency, GPU frequency, projection bitrate and frame rate, to improve the display effect.

Benefits of technology

It improves the consistency of screen projection and user experience, reduces the impact of parameter adjustments on users, and ensures smooth display under different conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115499699B
    Figure CN115499699B
Patent Text Reader

Abstract

The present application provides a screen projection method, the method comprising: an electronic device establishes a screen projection connection with a display device. The electronic device determines that the screen projection effect does not meet the preset conditions, and adjusts the first parameter of the electronic device to the first value and the second parameter of the electronic device to the second value according to the first-level adjustment strategy; wherein the first value is greater than the first threshold value, and the second value is greater than the second threshold value; after the electronic device adjusts the first parameter of the electronic device to the first value and the second parameter of the electronic device to the second value, the electronic device determines that the screen projection effect still does not meet the preset conditions, and the electronic device adjusts the first parameter of the electronic device to the third value and the second parameter of the electronic device to the fourth value according to the second-level adjustment strategy; wherein the third value is less than the first threshold value, and the fourth value is less than the second threshold value. In this way, the electronic device realizes humanized adjustment parameters through the hierarchical adjustment strategy, reducing the impact on user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of screen projection technology, and in particular to a screen projection method. Background Art

[0002] With the development of network communication technology and the popularization of smart home devices, the large screen characteristics of smart TVs, the portability of smart phones and tablets, and the collaborative work of multiple screens help improve the user experience. Screen projection technology allows electronic devices such as mobile phones and tablets to project multimedia content locally or on the Internet to display devices such as personal computers (PCs) and smart screens with audio or video playback capabilities, and play the above multimedia data on the display devices.

[0003] However, due to the large differences in the conditions of screen projection operations, for example, network connection status such as wireless fidelity (Wi-Fi), routing performance status of routers, hardware configuration status of electronic devices and hardware configuration status of display devices, etc., the screen content projected by electronic devices according to fixed parameters will have uneven display effects on display devices, resulting in poor display effects such as frame loss and display delay on display devices, which affects the user experience to a certain extent. Summary of the invention

[0004] The present application provides a screen projection method. On the one hand, it enables an electronic device or display device to determine the reasons that affect the screen projection effect and adopt corresponding strategies to improve the screen projection effect; on the other hand, it adopts a hierarchical adjustment strategy for the screen projection effect, takes into account the factors that affect the user experience, and makes adjustments with the goal of reducing the impact on the user.

[0005] In the first aspect, the present application provides a screen projection system, which includes an electronic device and a display device. The electronic device is used to establish a screen projection connection with the display device; the electronic device is also used to send the first screen projection content to the display device through the screen projection connection; the display device is used to display the screen projection interface based on the first screen projection content; the electronic device is also used to determine that the screen projection parameters meet the first condition, or the electronic device determines that the screen projection effect does not meet the preset conditions; according to the first-level adjustment strategy, the first parameter of the electronic device is adjusted to the first value, and the second parameter of the electronic device is adjusted to the second value; wherein the first value is greater than the first threshold value, and the second value is greater than the second threshold value; after the electronic device adjusts the first parameter of the electronic device to the first value and the second parameter of the electronic device to the second value, it is determined that the screen projection parameters meet the first condition; according to the second-level adjustment strategy, the first parameter of the electronic device is adjusted to the third value, and the second parameter of the electronic device is adjusted to the fourth value; wherein the third value is less than the first threshold value, and the fourth value is less than the second threshold value.

[0006] Among them, the electronic device can adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and adjust the second parameter of the electronic device to the second value at the same time; the electronic device can also adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and then adjust the second parameter of the electronic device to the second value; the electronic device can also adjust the second parameter of the electronic device to the first value after adjusting the second parameter of the electronic device to the second value according to the first-level adjustment strategy. The order in which the electronic device adjusts the first parameter and the second parameter is not limited here.

[0007] When the electronic device determines that the screen projection effect does not meet the preset conditions, the first parameter of the electronic device is adjusted to the first value and the second parameter of the electronic device is adjusted to the second value through the first-level adjustment strategy. Afterwards, when the electronic device determines that the screen projection effect still does not meet the preset conditions, the first parameter will continue to be adjusted to the third value and the second parameter will be adjusted to the fourth value according to the second-level adjustment strategy. And the third value is less than the first threshold, and the fourth value is less than the second threshold. In this way, the electronic device adopts a hierarchical adjustment strategy, and will not adjust the first parameter and the second parameter too much at one time, but will adjust slowly. After adjusting the parameters, when the electronic device determines that the screen projection effect is still not good, it adjusts the first parameter and the second parameter again. In this way, a humanized adjustment parameter is achieved through a hierarchical adjustment strategy, and the adjustment is made with the goal of reducing the impact on the user.

[0008] In a possible implementation, the third value is greater than the third threshold, and the fourth value is greater than the fourth threshold, that is, both the first parameter and the second parameter have a minimum threshold, so that the problem of affecting the user experience due to the excessive adjustment range of the first parameter and the second parameter can be avoided.

[0009] Through the system of the first aspect, the electronic device or display device can determine the reasons that affect the screen projection effect, and adopt corresponding strategies to improve the screen projection effect, and adopt a hierarchical adjustment strategy for the screen projection effect, taking into account the factors that affect the user experience, and adjusting with the goal of reducing the impact on the user.

[0010] In one possible implementation, when the electronic device determines that the screen projection effect is not good and determines that the first load meets the second condition, the electronic device adjusts the first parameter of the electronic device to the first value and adjusts the second parameter of the electronic device to the second value according to the first-level adjustment strategy.

[0011] The first parameter and the second parameter are closely related to the first load. Exemplarily, when the first load is the usage rate of the hardware (such as CPU or GPU or DDR or encoder) in the electronic device, and the CPU and GPU in the electronic device are greater than the preset usage rate, the second parameter is the operating frequency of the CPU, and the third parameter is the operating frequency of the GPU. Exemplarily, when the data transmission delay in the electronic device is greater than the preset delay, the second parameter is the screen projection code rate of the electronic device. Exemplarily, when the image synthesis time on the electronic device side is greater than the preset time or the usage rate of the hardware in the electronic device is greater than the preset usage rate, the second parameter is the sampling frame rate of the electronic device. Exemplarily, when the image synthesis time of the display device is greater than the preset time or the usage rate of the hardware in the display device is greater than the preset usage rate, the second parameter is the screen projection resolution of the electronic device. That is, only when the first load meets certain conditions, that is, the first load is too high, the electronic device will adjust the first parameter or the second parameter. In this way, the electronic device can determine the cause of the poor screen projection effect and take corresponding measures to improve the screen projection effect.

[0012] In combination with the first aspect, in an optional implementation, when the electronic device determines that the screen projection effect is not good, the electronic device is further used to send a first message to the display device, and the first message is used to instruct the display device to adjust a third parameter of the display device; the display device is further used to adjust the third parameter of the display device after receiving the first message. In this way, the electronic device can not only adjust the parameters on the electronic device side, but also adjust the parameters of the display device, thereby realizing multi-end adjustment.

[0013] In a possible implementation, the display device may not receive the first information sent by the electronic device, and when the display device detects that the screen projection effect does not meet the preset condition, the display device adjusts the third parameter of the display device. In this way, the display device can monitor the screen projection effect on the display device side and adjust the third parameter in real time according to the screen projection effect.

[0014] In a possible implementation, the display device is further configured to adjust the third parameter to a fifth value after receiving the first information, wherein the fifth value is less than the third preset value, so as to avoid the problem that the adjustment range of the third parameter is too large and affects the user experience.

[0015] In one possible implementation, when the electronic device determines that the screen projection effect is not good and the electronic device determines that the second load meets the third condition, the electronic device is also used to send first information to the display device, and the first information is used to instruct the display device to adjust the third parameter of the display device; the display device is also used to adjust the third parameter of the display device after receiving the first information.

[0016] The second load includes but is not limited to the usage rate of the hardware in the display device (such as CPU or GPU or DDR or encoder), or the image synthesis time in the display device. When the usage rate of the hardware in the display device is greater than the preset usage rate, or the image synthesis time in the display device is greater than the preset time, the electronic device sends the first information to the display device. In this way, the electronic device can determine the cause of the poor screen projection effect and take corresponding measures to improve the screen projection effect.

[0017] In combination with the first aspect, in an optional implementation method, the first parameter and the second parameter include any one of the following: the operating frequency of the central processing unit CPU in the electronic device, the operating frequency of the image processing unit GPU in the electronic device, the operating frequency of the encoder in the electronic device, the operating frequency of the double-rate synchronous dynamic random access memory DDR in the electronic device, the projection bit rate of the electronic device, the sampling frame rate of the electronic device, and the projection resolution of the electronic device; the first parameter is different from the second parameter.

[0018] The third parameter includes any one of the following: an operating frequency of a CPU in the display device, an operating frequency of a GPU in the display device, an operating frequency of a decoder in the display device, an operating frequency of a DDR in the display device, and a display frame rate of the display device.

[0019] In a possible implementation, the first parameter may be the screen projection code rate of the electronic device, and the second parameter may be the sampling frame rate of the electronic device. When the electronic device determines that the screen projection effect is not good, the electronic device adjusts the screen projection code rate of the electronic device to the first code rate, and adjusts the display frame rate of the display device to the first frame rate, the first code rate is greater than the first preset code rate, and the first frame rate is greater than the first preset frame rate. Afterwards, when the electronic device determines that the screen projection effect is still not good, the electronic device adjusts the screen projection code rate of the electronic device to the second code rate, and adjusts the display frame rate of the display device to the second frame rate; wherein the second code rate is less than the first preset code rate, and the second frame rate is less than the first preset frame rate. In this way, the electronic device will not adjust the screen projection code rate or the screen projection frame rate too much at one time through a multi-level adjustment strategy, but after a first-level adjustment, monitor the screen projection effect in real time. When the screen projection effect is not improved, the screen projection code rate or the screen projection frame rate is reduced by one level. In this way, a humanized adjustment parameter is realized through a hierarchical adjustment strategy, and the adjustment is made with the goal of reducing the impact on the user.

[0020] In one possible implementation, the first parameter may be the operating frequency of the CPU in the electronic device. When the electronic device determines that the screen projection effect is not good, the electronic device adjusts the operating frequency of the CPU in the electronic device to the first frequency. Afterwards, when the electronic device determines that the screen projection effect is still not good, the electronic device adjusts the operating frequency of the CPU in the electronic device to a second frequency, and the second frequency is greater than the first preset frequency and less than the second preset frequency. In this way, by setting the maximum value (second preset frequency) of the operating frequency adjustment of the CPU in the electronic device, it is possible to prevent the operating frequency of the CPU in the electronic device from being adjusted too high, causing the electronic device to heat up.

[0021] In combination with the first aspect, in an optional implementation method, the electronic device is also used to obtain a fourth parameter and a fifth parameter before adjusting the first parameter of the electronic device to the first value according to the first-level adjustment strategy; wherein the screen projection parameters include the screen projection delay, the fourth parameter includes the first moment when the display device displays the first projection frame in the first projection content, and the fifth parameter includes the second moment when the electronic device sends the first projection frame; the electronic device is also used to determine the screen projection delay based on the first moment and the second moment; the first condition includes: the screen projection delay is greater than the preset delay; and / or, the screen projection parameters include the screen projection frame rate difference, the fourth parameter includes the first frame rate at which the display device displays the first projection frame, and the fifth parameter includes the second frame rate at which the electronic device obtains the first projection frame; the electronic device is also used to determine the screen projection frame rate difference based on the first frame rate and the second frame rate; the first condition includes: the screen projection frame rate difference is greater than the preset frame rate difference.

[0022] Here, when the screen projection parameter is the screen projection delay, the first condition is that the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection delay is greater than the preset delay. When the screen projection parameter is the screen projection frame rate difference, the first condition is that the screen projection frame rate difference is greater than the preset frame rate difference, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference. The screen projection parameters are the screen projection frame rate difference and the screen projection delay. The first condition is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay.

[0023] In a possible implementation, the electronic device may comprehensively measure the screen projection effect according to the screen projection delay and the screen projection frame rate difference according to the following formula:

[0024] cast_cost=(delay-delay_base) / delay_base*0.5+fps_diff / fps_base*0.5As can be seen from the above formula, delay represents the screen projection delay, which is measured by the electronic device in real time. delay_base represents the screen projection benchmark delay, which is a preset value. The general screen projection benchmark delay is 50ms or 100ms. fps_diff represents the screen projection frame rate difference, which is measured by the electronic device in real time. fps_base represents the screen projection benchmark frame rate difference, which is a preset value. The general screen projection benchmark delay is 60hz. The value range of cast_cost is 0-1. The electronic device can measure the screen projection effect according to cast_cost, that is, when the electronic device determines that cast_cost is greater than the preset value (for example, 0.25), the electronic device determines that the screen projection effect does not meet the preset conditions.

[0025] In a second aspect, the present application provides a screen projection method, the method comprising: an electronic device establishes a screen projection connection with a display device; the electronic device sends a first screen projection content to the display device through the screen projection connection; the first screen projection content is displayed on the screen projection interface of the display device; the electronic device determines that a screen projection parameter satisfies a first condition, and adjusts the first parameter of the electronic device to a first value and the second parameter of the electronic device to a second value according to a first-level adjustment strategy; wherein the first value is greater than a first threshold value and the second value is greater than a second threshold value; after the electronic device adjusts the first parameter of the electronic device to the first value and the second parameter of the electronic device to the second value, the electronic device determines that the screen projection parameter satisfies the first condition; the electronic device adjusts the first parameter of the electronic device to a third value and the second parameter of the electronic device to a fourth value according to the second-level adjustment strategy; wherein the third value is less than the first threshold value and the fourth value is less than the second threshold value.

[0026] Among them, the electronic device can adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and adjust the second parameter of the electronic device to the second value at the same time; the electronic device can also adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and then adjust the second parameter of the electronic device to the second value; the electronic device can also adjust the first parameter of the electronic device to the first value after adjusting the second parameter of the electronic device to the second value according to the first-level adjustment strategy. The order in which the electronic device adjusts the first parameter and the second parameter is not limited here.

[0027] When the electronic device determines that the screen projection effect does not meet the preset conditions, the first parameter of the electronic device is adjusted to the first value and the second parameter of the electronic device is adjusted to the second value through the first-level adjustment strategy. Afterwards, when it is determined that the screen projection effect still does not meet the preset conditions, the first parameter will continue to be adjusted to the third value and the second parameter will be adjusted to the fourth value according to the second-level adjustment strategy. And the third value is less than the first threshold, and the fourth value is less than the second threshold. In this way, the electronic device adopts a hierarchical adjustment strategy, and will not adjust the first parameter and the second parameter too much at one time, but will adjust slowly. After adjusting the parameters, when the electronic device determines that the screen projection effect is still not good, it adjusts the first parameter and the second parameter again. In this way, a humanized adjustment parameter is achieved through a hierarchical adjustment strategy, and the adjustment is made with the goal of reducing the impact on the user.

[0028] In a possible implementation, the third value is greater than the third threshold, and the fourth value is greater than the fourth threshold, that is, both the first parameter and the second parameter have a minimum threshold, so that the problem of affecting the user experience due to the excessive adjustment range of the first parameter and the second parameter can be avoided.

[0029] Through the method of the second aspect, the electronic device or display device can determine the reasons that affect the screen projection effect, and adopt corresponding strategies to improve the screen projection effect, and adopt a hierarchical adjustment strategy for the screen projection effect, taking into account the factors that affect the user experience, and adjusting with the goal of reducing the impact on the user.

[0030] In one possible implementation, when the electronic device determines that the screen projection effect is not good and determines that the first load meets the second condition, the electronic device adjusts the first parameter of the electronic device to the first value and adjusts the second parameter of the electronic device to the second value according to the first-level adjustment strategy.

[0031] The first parameter and the second parameter are closely related to the first load. Exemplarily, when the first load is the usage rate of the hardware (such as CPU or GPU or DDR or encoder) in the electronic device, and the CPU and GPU in the electronic device are greater than the preset usage rate, the second parameter is the operating frequency of the CPU, and the third parameter is the operating frequency of the GPU. Exemplarily, when the data transmission delay in the electronic device is greater than the preset delay, the second parameter is the screen projection code rate of the electronic device. Exemplarily, when the image synthesis time on the electronic device side is greater than the preset time or the usage rate of the hardware in the electronic device is greater than the preset usage rate, the second parameter is the sampling frame rate of the electronic device. Exemplarily, when the image synthesis time of the display device is greater than the preset time or the usage rate of the hardware in the display device is greater than the preset usage rate, the second parameter is the screen projection resolution of the electronic device. That is, only when the first load meets certain conditions, that is, the first load is too high, the electronic device will adjust the first parameter or the second parameter. In this way, the electronic device can determine the cause of the poor screen projection effect and take corresponding measures to improve the screen projection effect.

[0032] In conjunction with the second aspect, in a possible implementation, the method further includes: when the electronic device determines that the screen projection effect is not good, the electronic device sends first information to the display device, and the first information is used to instruct the display device to adjust a third parameter of the display device. In this way, the electronic device can not only adjust the parameters on the electronic device side, but also adjust the parameters of the display device, thereby realizing multi-end adjustment.

[0033] In one possible implementation, when the electronic device determines that the screen projection effect is not good and the electronic device determines that the second load meets the third condition, the electronic device is also used to send first information to the display device, and the first information is used to instruct the display device to adjust the third parameter of the display device; the display device is also used to adjust the third parameter of the display device after receiving the first information.

[0034] The second load includes but is not limited to the usage rate of the hardware in the display device (such as CPU or GPU or DDR or encoder), or the image synthesis time in the display device. When the usage rate of the hardware in the display device is greater than the preset usage rate, or the image synthesis time in the display device is greater than the preset time, the electronic device sends the first information to the display device. In this way, the electronic device can determine the cause of the poor screen projection effect and take corresponding measures to improve the screen projection effect.

[0035] In combination with the second aspect, in a possible implementation method, the first parameter and the second parameter include any one of the following: the operating frequency of the central processing unit CPU in the electronic device, the operating frequency of the image processing unit GPU in the electronic device, the operating frequency of the encoder in the electronic device, the operating frequency of the double-rate synchronous dynamic random access memory DDR in the electronic device, the projection bit rate of the electronic device, the sampling frame rate of the electronic device, and the projection resolution of the electronic device; the first parameter is different from the second parameter.

[0036] The third parameter includes any one of the following: an operating frequency of a CPU in the display device, an operating frequency of a GPU in the display device, an operating frequency of a decoder in the display device, an operating frequency of a DDR in the display device, and a display frame rate of the display device.

[0037] In a possible implementation, the first parameter may be the screen projection code rate of the electronic device, and the second parameter may be the sampling frame rate of the electronic device. When the electronic device determines that the screen projection effect is not good, the electronic device adjusts the screen projection code rate of the electronic device to the first code rate, and adjusts the display frame rate of the display device to the first frame rate, the first code rate is greater than the first preset code rate, and the first frame rate is greater than the first preset frame rate. Afterwards, when the electronic device determines that the screen projection effect is still not good, the electronic device adjusts the screen projection code rate of the electronic device to the second code rate, and adjusts the display frame rate of the display device to the second frame rate; wherein the second code rate is less than the first preset code rate, and the second frame rate is less than the first preset frame rate. In this way, the electronic device will not adjust the screen projection code rate or the screen projection frame rate too much at one time through a multi-level adjustment strategy, but after a first-level adjustment, monitor the screen projection effect in real time. When the screen projection effect is not improved, the screen projection code rate or the screen projection frame rate is reduced by one level. In this way, a humanized adjustment parameter is realized through a hierarchical adjustment strategy, and the adjustment is made with the goal of reducing the impact on the user.

[0038] In one possible implementation, the first parameter may be the operating frequency of the CPU in the electronic device. When the electronic device determines that the screen projection effect is not good, the electronic device adjusts the operating frequency of the CPU in the electronic device to the first frequency. Afterwards, when the electronic device determines that the screen projection effect is still not good, the electronic device adjusts the operating frequency of the CPU in the electronic device to a second frequency, and the second frequency is greater than the first preset frequency and less than the second preset frequency. In this way, by setting the maximum value (second preset frequency) of the operating frequency adjustment of the CPU in the electronic device, it is possible to prevent the operating frequency of the CPU in the electronic device from being adjusted too high, causing the electronic device to heat up.

[0039] In combination with the second aspect, in a possible implementation method, before the electronic device determines that the screen projection parameters meet the first condition and adjusts the first parameter of the electronic device to the first value according to the first-level adjustment strategy, the method also includes: the electronic device obtains a third parameter and a fourth parameter; wherein the screen projection parameters include a screen projection delay, the fourth parameter includes the first moment when the display device displays the first projection frame in the first projection content, and the fifth parameter includes the second moment when the electronic device sends the projection effect adjustment strategy to the first projection frame; the electronic device determines the screen projection delay based on the first moment and the second moment; the first condition includes: the screen projection delay is greater than the preset delay; and / or, the screen projection parameters include a screen projection frame rate difference, the fourth parameter includes the first frame rate at which the display device displays the first projection frame, and the fifth parameter includes the second frame rate at which the electronic device obtains the first projection frame; the electronic device determines the screen projection frame rate difference based on the first frame rate and the second frame rate; the first condition includes: the screen projection frame rate difference is greater than the preset frame rate difference.

[0040] Here, when the screen projection parameter is the screen projection delay, the first condition is that the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection delay is greater than the preset delay. When the screen projection parameter is the screen projection frame rate difference, the first condition is that the screen projection frame rate difference is greater than the preset frame rate difference, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference. The screen projection parameters are the screen projection frame rate difference and the screen projection delay. The first condition is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay.

[0041] In a possible implementation, the electronic device may comprehensively measure the screen projection effect according to the screen projection delay and the screen projection frame rate difference according to the following formula:

[0042] cast_cost=(delay-delay_base) / delay_base*0.5+fps_diff / fps_base*0.5

[0043] As can be seen from the above formula, delay represents the screen projection delay, which is measured by the electronic device in real time. delay_base represents the screen projection benchmark delay, which is a preset value. The general screen projection benchmark delay is 50ms or 100ms. fps_diff represents the screen projection frame rate difference, which is measured by the electronic device in real time. fps_base represents the screen projection benchmark frame rate difference, which is a preset value. The general screen projection benchmark delay is 60hz. The value range of cast_cost is 0-1. The electronic device can measure the screen projection effect according to cast_cost, that is, when the electronic device determines that cast_cost is greater than the preset value (for example, 0.25), the electronic device determines that the screen projection effect does not meet the preset conditions.

[0044] In the third aspect, the present application provides a screen projection method, which includes: establishing a screen projection connection between a display device and an electronic device; receiving a first screen projection content sent by the electronic device through the screen projection connection; displaying a screen projection interface based on the first screen projection content; when the electronic device determines that the screen projection parameters meet the first condition, receiving the first information sent by the electronic device, and adjusting the third parameters of the display device. In this way, the electronic device can not only adjust the parameters on the electronic device side, but also adjust the parameters of the display device, thereby realizing multi-end adjustment.

[0045] In a possible implementation, the display device may not receive the first information sent by the electronic device, and when the display device detects that the screen projection effect does not meet the preset condition, the display device adjusts the third parameter of the display device. In this way, the display device can monitor the screen projection effect on the display device side and adjust the third parameter in real time according to the screen projection effect.

[0046] In a possible implementation, the display device is further configured to adjust the third parameter to a fifth value after receiving the first information, wherein the fifth value is less than the third preset value, so as to avoid the problem that the adjustment range of the third parameter is too large and affects the user experience.

[0047] In one possible implementation, after the electronic device determines that the screen projection effect is not good and the electronic device determines that the second load satisfies the third condition, the display device receives the first information sent by the electronic device, and the first information is used to instruct the display device to adjust the third parameter of the display device; after receiving the first information, the display device adjusts the third parameter of the display device.

[0048] The second load includes but is not limited to the usage rate of the hardware in the display device (such as CPU or GPU or DDR or encoder), or the image synthesis time in the display device. When the usage rate of the hardware in the display device is greater than the preset usage rate, or the image synthesis time in the display device is greater than the preset time, the display device receives the first information sent by the electronic device. In this way, the electronic device can determine the cause of the poor screen projection effect and take corresponding measures to improve the screen projection effect.

[0049] In combination with the third aspect, in a possible implementation, the third parameter includes any one of the following: an operating frequency of a CPU in a display device, an operating frequency of a GPU in a display device, an operating frequency of a decoder in a display device, an operating frequency of a DDR in a display device, and a display frame rate of a display device.

[0050] In combination with the third aspect, in a possible implementation, before the display device receives the first information sent by the electronic device, the method also includes: the display device sends a fourth parameter to the electronic device; wherein the screen projection parameters include the screen projection delay, and the fourth parameter includes the first moment when the display device displays the first projection frame in the first projection content; the fourth parameter is used by the electronic device to determine the screen projection delay based on the first moment and the second moment when the electronic device sends the first projection frame; the first condition includes: the screen projection delay is greater than the preset delay; and / or, the screen projection parameters include the screen projection frame rate difference, and the fourth parameter includes the first frame rate at which the display device displays the first projection frame; the fourth parameter is used by the electronic device to determine the screen projection frame rate difference based on the first frame rate and the second frame rate at which the electronic device obtains the first projection frame; the first condition includes: the screen projection frame rate difference is greater than the preset frame rate difference.

[0051] Here, when the screen projection parameter is the screen projection delay, the first condition is that the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection delay is greater than the preset delay. When the screen projection parameter is the screen projection frame rate difference, the first condition is that the screen projection frame rate difference is greater than the preset frame rate difference, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference. The screen projection parameters are the screen projection frame rate difference and the screen projection delay. The first condition is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay.

[0052] In a fourth aspect, the present application provides an electronic device, comprising: one or more processors, one or more memories; the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the steps of the electronic device execution method in any possible implementation of any of the above aspects.

[0053] In a fifth aspect, the present application provides a display device, comprising: one or more processors, one or more memories; one or more memories are coupled to one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and one or more processors call computer instructions to enable the display device to execute the steps of the display device execution method in any possible implementation of any of the above aspects.

[0054] In a sixth aspect, the present application provides a computer storage medium, including computer instructions, which, when executed on an electronic device, enables the electronic device to execute the steps of the electronic device execution method in any possible implementation of any of the above aspects.

[0055] In a seventh aspect, the present application provides a computer storage medium, including computer instructions, which, when executed on a display device, enables the display device to execute the steps of the display device execution method in any possible implementation of any of the above aspects.

[0056] In an eighth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the steps of the electronic device execution method in any possible implementation of any of the above aspects.

[0057] In a ninth aspect, the present application provides a computer program product, which, when executed on a display device, enables the display device to execute the steps of the display device execution method in any possible implementation of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A flowchart of how an electronic device 100 transmits screen projection content to a display device 200 provided in an embodiment of the present application;

[0059] Figure 2 A system architecture diagram provided for an embodiment of the present application;

[0060] Figure 3 Another system architecture diagram provided for an embodiment of the present application;

[0061] Figure 4 A schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application;

[0062] Figure 5 A software structure block diagram of an electronic device 100 provided in an embodiment of the present application;

[0063] Figure 6 A schematic diagram of an electronic device 100 and a display device 200 provided in an embodiment of the present application for real-time monitoring of system load capacity and screen projection performance parameters in the device, and dynamically adjusting the system load capacity according to the screen projection performance parameters;

[0064] Figure 7A-7D The UI diagram exemplarily shows the user operation of starting the collaborative screen projection function monitored by the electronic device 100;

[0065] Figure 8 A process for negotiating display parameters between an electronic device 100 and a display device 200 provided in an embodiment of the present application;

[0066] Figure 9-10 A method flow chart of a screen projection effect adjustment strategy 1 provided in an embodiment of this application;

[0067] Fig.11 A schematic diagram of an electronic device 100 adjusting a screen projection code rate between the electronic device 100 and a display device 200 provided in an embodiment of the present application;

[0068] Fig.12 A schematic diagram of an electronic device 100 adjusting a sampling frame rate on the electronic device 100 provided in an embodiment of the present application;

[0069] Fig.13 A schematic diagram of a display device 200 adjusting a display frame rate on a display device 200 side provided in an embodiment of the present application;

[0070] Fig.14 A schematic diagram of adjusting the resolution of a side projection screen of an electronic device 100 provided in an embodiment of the present application;

[0071] Fig.15A flowchart of a screen projection method provided in an embodiment of the present application;

[0072] Fig.16 A flowchart of another screen projection method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0074] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0075] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize, such as images, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, input boxes, buttons, scroll bars, images and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>The controls contained in the interface are specified by nodes such as <head> and <body>. A node corresponds to a control or attribute in the interface. After being parsed and rendered, the node is presented as user-visible content. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code. For example, HTML is defined by <body>. 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.

[0076] The most common form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be a window, control or other interface element displayed on the display screen of an electronic device.

[0077] Currently, the electronic device 100 establishes a screen projection connection with the display device 200. The electronic device 100 obtains the screen projection content in real time and sends the screen projection content to the display device 200. The display device 200 receives and displays the screen projection content sent by the electronic device 100.

[0078] like Figure 1 As shown, Figure 1 The flowchart exemplarily shows how the electronic device 100 transmits the projection content to the display device 200.

[0079] like Figure 1 As shown, the electronic device 100 includes a virtual display, an image synthesis module, an encoding module and a packaging module; the display device 200 includes an unpacking module, an encoding module, an image synthesis module and a display.

[0080] The electronic device 100 obtains image information displayed on the display from the display of the electronic device 100. The image information displayed on the display may be image information displayed on a virtual display screen (Virtual Display Screen, VDS).

[0081] Afterwards, the electronic device 100 sends the image information to the image synthesis module. The image synthesis module receives the image information and synthesizes the image information displayed on the display into an image. Afterwards, the image synthesis module sends the synthesized image to the encoding module.

[0082] The encoding module is used to receive the synthesized image and encode the synthesized image using a corresponding encoder. After that, the encoding module sends the encoded image to the packaging module.

[0083] The packaging module is used to receive the encoded image sent by the encoding module, compress the encoded image, and then transmit the compressed encoded image to the display device 200 in the form of a data stream through the channel between the electronic device 100 and the display device 200.

[0084] The unpacking module of the display device 200 is used to receive the data stream sent by the packing module in the electronic device 100, and decode the data stream to obtain a coded image. The unpacking module sends the coded image to the decoding module.

[0085] The decoding module is used to receive the encoded image sent by the unpacking module, and decode the encoded image according to the decoder corresponding to the encoder used by the electronic device 100 to obtain a decoded image. The encoding module sends the decoded image to the unpacking module.

[0086] The decoding module is also used to receive the decoded image sent by the decoding module, and send the decoded image to the image synthesis module of the display device 200.

[0087] The image synthesis module of the display device 200 is used to receive the decoded image sent by the unpacking module, and synthesize the decoded image into an image format suitable for display by the display device 200. Afterwards, the display device 200 displays the synthesized decoded image on a virtual display screen (VDS) of the display device 200.

[0088] If the screen projection effect is not good at this time, for example, the electronic device 100 detects that the frame rate difference between the sampling frame rate of the electronic device 100 and the display frame rate of the display device 200 is greater than the preset frame rate difference, or the screen projection delay between the electronic device 100 and the display device 200 is greater than the preset delay, the electronic device 100 will monitor whether the network status is normal. If the electronic device 100 detects that the network load is too high, resulting in a poor screen projection effect, the electronic device 100 will reduce the bit rate of data transmission to improve the screen projection effect.

[0089] If the electronic device 100 detects that the poor screen projection effect is not caused by a network problem, the electronic device 100 and the display device 200 cannot improve the screen projection effect of the electronic device 100 by any other means except reducing the bit rate.

[0090] Therefore, the present application provides a screen projection method, which includes: the electronic device 100 and the display device 200 will use a screen projection effect hierarchical adjustment strategy to adjust the system load capacity or screen projection parameters so that the screen projection performance parameters meet the preset conditions, and the screen projection effect hierarchical adjustment strategy is adjusted from low to high with the goal of affecting the degree of user experience, so as to reduce the impact of the electronic device 100 or the display device 200 on the user experience when adjusting the system load capacity or screen projection parameters. Using this method, on the one hand, the electronic device 100 or the display device 200 can determine the reasons that affect the screen projection effect, and adopt corresponding strategies to improve the screen projection effect; on the other hand, the screen projection effect hierarchical adjustment strategy is adopted, which takes into account the factors that affect the user experience and adjusts with the goal of reducing the impact on the user.

[0091] Specifically, first, the electronic device 100 and / or the display device 200 detect that their respective hardware loads are relatively high, and then increase the operating frequency of their respective hardware; if the screen projection effect is still not good after the operating frequency of the hardware of the electronic device 100 and / or the display device 200 is increased, the electronic device 100 reduces the bit rate and the sampling frame rate, and if the screen projection effect is still not good, the display device 200 reduces the display frame rate of the display device 200. If the screen projection effect is still not good, the electronic device 100 reduces the resolution to improve the screen projection effect.

[0092] like Figure 2 As shown, Figure 2 A system architecture diagram provided for an embodiment of the present application.

[0093] Figure 2 The structural diagram of a system 20 provided in an embodiment of the present application is exemplarily shown. Figure 2 As shown, the system 20 includes an electronic device 100 and a display device 200 .

[0094] The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device. The software system of the electronic device 100 includes but is not limited to: Linux or other operating systems.

[0095] The display device 200 refers to an electronic device with a relatively large display screen, such as a tablet, a television, a personal computer (PC), a desktop computer, or an electronic billboard.

[0096] The present application does not limit the types of the electronic device 100 and the display device 200. The present application embodiment takes the electronic device 100 as a mobile phone and the display device 200 as a personal computer as an example to illustrate the present application embodiment.

[0097] In an embodiment of the present application, the electronic device 100 can be directly connected to the display device 200 via a short-range wireless communication connection or a local wired connection. Exemplarily, the electronic device 100 and the display device 200 can have one or more short-range communication modules of wireless local area network (WLAN) technology, wireless fidelity direct (Wi-Fi direct) (also known as wireless fidelity peer-to-peer (Wi-Fi P2P)), ultra wide band (UWB) communication module, bluetooth communication module, near field communication (NFC) communication module, and ZigBee communication module. Taking the electronic device 100 as an example, the electronic device 100 can detect and scan electronic devices near the electronic device 100 by transmitting signals through a short-range communication module (such as Wi-Fi P2P), so that the electronic device 100 can discover nearby electronic devices through a short-range wireless communication protocol, establish a wireless communication connection with nearby electronic devices, and transmit data to nearby electronic devices (such as the display device 200).

[0098] In the embodiment of the present application, after the electronic device 100 and the display device 200 establish a screen projection connection, the electronic device 100 can send the image data and / or audio data of the projection to the display device 200, and the display device 200 can perform interface display and / or audio output based on the data sent by the electronic device 100. The electronic device 100 can also be referred to as an output end or a source end (source end), and the display device 200 can also be referred to as a receiving end or a sink end (sink end).

[0099] The format of the multimedia content displayed or played by the electronic device 100 may include any one or more of the following: video, text, picture, photo, audio or table, etc. For example, when the format of the multimedia content is video, the type of the video may be a movie, TV series, short video, musical, etc.

[0100] It can be understood that the structure shown in this embodiment does not constitute a specific limitation on the system 20. In other embodiments of the present application, the system 20 may include more or less devices than those shown in the figure.

[0101] like Figure 3 As shown, Figure 3 Another system architecture diagram provided for an embodiment of the present application.

[0102] Figure 3 The structural diagram of another system 30 provided in the embodiment of the present application is exemplarily shown. Figure 3 As shown, the electronic device 100 can establish a screen projection connection with multiple display devices at the same time. The system 30 includes the electronic device 100 and multiple display devices, and the multiple display devices may include a display device 200, a display device 300, and a display device 400, etc. The system 30 may also include more display devices, which is not limited in this application.

[0103] The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device. The software system of the electronic device 100 includes but is not limited to: Linux or other operating systems.

[0104] A display device refers to an electronic device with a relatively large display screen, such as a tablet, a television, a personal computer (PC), a desktop computer, or an electronic billboard.

[0105] The present application does not limit the types of the electronic device 100 and the display device. The present application embodiment takes the electronic device 100 as a mobile phone, the display device 200 as a personal computer, the display device 300 as a tablet, and the display device 400 as a television as an example to illustrate the present application embodiment.

[0106] The mobile phone can send multimedia content to display device 200 , display device 300 , and display device 400 at the same time.

[0107] When the electronic device 100 establishes screen projection connections with multiple display devices at the same time, in this case, the connections between the electronic device 100 and the multiple display devices can be regarded as the composition of multiple independent systems. That is, the data transmission between the electronic device 100 and the display device 200, the data transmission between the electronic device 100 and the display device 300, and the data transmission between the electronic device 100 and the display device 400 are independent of each other and do not affect each other.

[0108] The method in which the electronic device 100 establishes a screen projection connection with multiple display devices and transmits data to the multiple display devices is consistent with the method in which the electronic device 100 establishes a screen projection connection with one display device and transmits data to the one display device. The embodiment of the present application takes the example of the electronic device 100 establishing a screen projection connection with one display device for explanation.

[0109] Figure 4 A schematic structural diagram of an electronic device 100 is shown.

[0110] The embodiment is described in detail below by taking the electronic device 100 as an example. The device type of the electronic device 100 may include a mobile phone, a tablet computer, a smart screen, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc. The embodiment of the present application does not impose any special restrictions on the device type of the electronic device 100.

[0111] It should be understood that Figure 4 The electronic device 100 shown is only an example, and the electronic device 100 may have more Figure 4 The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0112] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 130, a universal serial bus (USB) interface 140, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a display screen 191, a camera 192, a SIM card interface 193, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0113] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0114] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0115] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0116] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0117] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0118] The internal memory 130 may be used to store computer executable program codes, wherein the executable program codes include instructions. The processor 110 executes the instructions stored in the internal memory 130 to perform various functional applications and data processing of the electronic device 100.

[0119] The USB interface 140 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 140 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0120] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0121] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.

[0122] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0123] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0124] The electronic device 100 implements the display function through a GPU, a display screen 191, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 191 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0125] The display screen 191 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 191 , where N is a positive integer greater than 1.

[0126] The electronic device 100 can realize the shooting function through ISP, camera 192, video codec, GPU, display screen 191 and application processor.

[0127] The ISP is used to process the data fed back by the camera 192. For example, when taking a photo, the shutter is opened, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. In some embodiments, the ISP can be set in the camera 192.

[0128] The camera 192 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 192, where N is a positive integer greater than 1.

[0129] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0130] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0131] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0132] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0133] The audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals.

[0134] Speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.

[0135] Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals.

[0136] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0137] The earphone jack 170D is used to connect a wired earphone.

[0138] The SIM card interface 193 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting the SIM card interface 193 or removing the SIM card interface 193. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0139] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

[0140] Figure 5 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.

[0141] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0142] The application layer can include a series of application packages.

[0143] like Figure 5 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0144] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0145] like Figure 5 As shown, the application framework layer may include a window manager, a content provider, a resource manager, a notification manager, a monitoring module, a decision module and an execution module.

[0146] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0147] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0148] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0149] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0150] The monitoring module is used to:

[0151] 1. Send the sampling frame rate of the electronic device 100 and the time of obtaining the projection content to the monitoring module in the display device 200.

[0152] 2. Receive the display frame rate and the time of displaying the projection content sent by the monitoring module in the display device 200. Among them, the display frame rate is used by the electronic device 100 to calculate the projection frame rate difference according to the display frame rate of the display device 200 and the sampling frame rate of the electronic device 100. The time of displaying the projection content is used by the electronic device 100 to calculate the projection delay according to the time when the display device 200 displays the projection content and the time when the electronic device 100 obtains the projection content.

[0153] 3. Monitor the projection frame rate difference and projection delay. The projection frame rate difference is equal to the difference between the display frame rate of the display device 200 and the sampling frame rate of the electronic device 100. The projection delay is equal to the difference between the time when the display device 200 displays the projection content and the time when the electronic device 100 obtains the projection content.

[0154] 4. Monitor the system load capacity of the electronic device 100. The system load capacity includes CPU usage, GPU usage, DDR usage, Codec usage, network transmission delay, and image synthesis time.

[0155] 5. Send the system load capacity and projection performance parameters to the decision module. The projection performance parameters include projection frame rate difference and projection delay.

[0156] The CPU usage rate is the CPU resources occupied by the programs running in the electronic device 100. The higher the CPU usage rate, the more programs are running in the electronic device 100. When the CPU usage rate is lower than the preset usage rate, the CPU load is normal, and when the CPU usage rate is higher than the preset usage rate, the CPU load is too high.

[0157] The GPU usage rate is the occupancy rate of the graphics card in the electronic device 100 .

[0158] The DDR usage rate is the occupancy rate of the double data rate synchronous dynamic random access memory in the electronic device 100 .

[0159] The codec usage rate is the occupancy rate of the codec in the electronic device 100 .

[0160] The network transmission delay is the data transmission delay between the electronic device 100 and the display device 200, and the network transmission delay is equal to the time difference between the moment when the projection content leaves the electronic device 100 and the moment when the projection content arrives at the display device 200. The smaller the network transmission delay, the better the network condition between the current electronic device 100 and the display device 200.

[0161] The image synthesis time is the time taken by the electronic device 100 or the display device 200 to synthesize a predetermined number of image frames (eg, one frame).

[0162] Decision-making module for:

[0163] 1. Receive the system load capacity and projection performance parameters sent by the monitoring module.

[0164] 2. Determine whether the screen projection performance parameters meet the preset conditions. If the screen projection performance parameters do not meet the preset conditions, that is, the decision module determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset screen projection delay, the decision module monitors the system load capacity. If the system load capacity is greater than the preset capacity, the decision module sends a request to adjust the screen projection parameters to the execution module.

[0165] Execution module for:

[0166] 1. Receive the request for adjusting screen projection parameters sent by the decision module.

[0167] 2. Adjust the projection parameters according to the projection parameter adjustment request, where the projection parameters include sampling frame rate, projection bit rate, projection resolution, etc.

[0168] Here, how the decision module sends a request to adjust the projection parameters to the execution module according to the system load capacity, and how the execution module adjusts the system load capacity or the projection parameters according to the request to adjust the projection parameters will be introduced in detail in subsequent embodiments, and this application will not go into details here.

[0169] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0170] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0171] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0172] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0173] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0174] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0175] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0176] A 2D graphics engine is a drawing engine for 2D drawings.

[0177] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0178] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.

[0179] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into raw input events (including touch coordinates, timestamp of the touch operation, and other information). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input events from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera.

[0180] like Figure 6 As shown, Figure 6 The schematic diagram exemplarily shows the ability of the electronic device 100 and the display device 200 to monitor the system load capacity and screen projection performance parameters in the device in real time, and dynamically adjust the system load according to the screen projection performance parameters.

[0181] It should be noted that the electronic device 100 can monitor the projection performance parameters and the system load capacity in the electronic device 100 while monitoring the system load capacity in the display device 200; the display device 200 can monitor the projection performance parameters and the system load capacity in the display device 200 while monitoring the system load capacity in the electronic device 100; the electronic device 100 can only monitor the projection performance parameters and the system load capacity in the electronic device 100, and the display device 200 can only monitor the projection performance parameters and the system load capacity in the display device 200. Please do not limit this yourself.

[0182] The following embodiments of the present application are described by taking the electronic device 100 monitoring the screen projection performance parameters and the system load capacity in the electronic device 100, and the display device 200 monitoring the screen projection performance parameters and the system load capacity in the display device 200 as an example.

[0183] like Figure 6 As shown, the electronic device 100 includes a monitoring module, a decision module and an execution module; the display device 200 includes a monitoring module, a decision module and an execution module.

[0184] It should be noted that the monitoring module, decision module and execution module can actually be one module, that is, one module can realize the functions of the monitoring module, decision module and execution module, the monitoring module, decision module and execution module can also be three independent modules, the monitoring module, decision module and execution module can also be combined into one module in pairs, and the embodiment of the present application does not limit the existence form of the monitoring module, decision module and execution module. In some embodiments, the electronic device 100 may also not include the monitoring module, decision module and execution module, and the monitoring module, decision module and execution module are only examples as an explanation of this solution and should not constitute a limitation.

[0185] The monitoring module, decision module and execution module in the electronic device 100 are Figure 5 The monitoring module, decision module and execution module in the display device 200 have similar functions to those in the electronic device 100.

[0186] Monitoring module:

[0187] For details, see Figure 5 The function of the monitoring module introduced in the embodiment will not be repeated in this application.

[0188] In some embodiments, the monitoring module in the electronic device 100 is further used to send the system load capacity of the electronic device 100 to the monitoring module in the electronic device 100 .

[0189] In some embodiments, while monitoring the system load capacity in the electronic device 100, the monitoring module in the electronic device 100 receives the system load capacity in the display device 200 sent by the monitoring module of the display device 200, and monitors the system load capacity in the display device 200. The system load capacity includes CPU usage, GPU usage, DDR usage, Codec usage, network transmission delay, image synthesis time, etc.

[0190] For the display device 200, the monitoring module is used for:

[0191] 1. Send the display frame rate of the display device 200 and the time when the projection content is displayed to the monitoring module in the electronic device 100. The display frame rate is used by the electronic device 100 to calculate the projection frame rate difference according to the display frame rate of the display device 200 and the sampling frame rate of the electronic device 100. The time when the projection content is displayed is used by the electronic device 100 to calculate the projection delay according to the time when the display device 200 displays the projection content and the time when the electronic device 100 obtains the projection content.

[0192] 2. Receive the sampling frame rate and the time of acquiring the projection content sent by the monitoring module in the electronic device 100. The sampling frame rate is used for the display device 200 to calculate the projection frame rate difference according to the display frame rate of the display device 200 and the sampling frame rate sent by the electronic device 100. The time of acquiring the projection content is used for the display device 200 to calculate the projection delay according to the time when the display device 200 displays the projection content and the time when the electronic device 100 acquires the projection content.

[0193] In some embodiments, while monitoring the system load capacity in the display device 200, the monitoring module in the display device 200 receives the system load capacity in the electronic device 100 sent by the monitoring module of the electronic device 100, and monitors the system load capacity in the electronic device 100. The system load capacity includes CPU usage, GPU usage, DDR usage, Codec usage, network transmission delay, image synthesis time, etc.

[0194] 3. Monitor the projection frame rate difference and projection delay. The projection frame rate difference is equal to the difference between the display frame rate of the display device 200 and the sampling frame rate of the electronic device 100. The projection delay is equal to the difference between the time when the display device 200 displays the projection content and the time when the electronic device 100 obtains the projection content.

[0195] 4. Real-time monitoring of the system load capacity of the display device 200. The system load capacity includes the CPU usage rate, GPU usage rate, DDR usage rate, Codec usage rate, network transmission delay, and image synthesis time of the display device 200.

[0196] 5. Send the projection performance parameters and the system load capacity of the display device 200 to the decision module. The system load capacity of the display device 200 includes: CPU usage, GPU usage, DDR usage, Codec usage, network transmission delay, and image synthesis time in the display device 200; the projection performance indicators include the projection frame rate difference and the projection delay.

[0197] In some embodiments, the monitoring module is further configured to send the system load capacity in the electronic device 100 to the decision module.

[0198] Decision module:

[0199] For the function of the decision module of the electronic device 100, see Figure 5 The function of the decision-making module introduced in the embodiment will not be repeated in this application.

[0200] In some embodiments, if the monitoring module of the electronic device 100 detects that the system load capacity in the display device 200 is higher than the preset capacity, the monitoring module of the electronic device 100 sends a request to adjust the screen projection parameters to the decision module in the display device 200, and the adjusted screen projection parameters are used to request the display device 200 to adjust the system load capacity or screen projection parameters in the display device 200.

[0201] For the display device 200, the decision module is used to:

[0202] 1. Receive the system load and screen projection performance indicators of the display device 200 sent by the monitoring module.

[0203] In some embodiments, the decision module is also used to receive the system load capacity of the electronic device 100 sent by the monitoring module.

[0204] 2. Determine whether the screen projection performance indicator meets the preset conditions. If the screen projection performance indicator does not meet the preset conditions, that is, the decision module determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset screen projection delay, the decision module sends a request to adjust the screen projection parameters to the execution module. The adjusted screen projection parameters are used to request the display device 200 to adjust the system load capacity or screen projection parameters in the display device 200.

[0205] Specifically, if the monitoring module detects that the system load capacity in the display device 200 is higher than the preset capacity, the monitoring module sends a request to adjust the projection parameters to the decision module in the display device 200. The request to adjust the projection parameters is used to adjust the system load capacity or projection parameters in the display device 200.

[0206] In some embodiments, if the monitoring module detects that the system load capacity in the electronic device 100 is higher than the preset capacity, the monitoring module sends a request to adjust the screen projection parameters to the monitoring module in the electronic device 100, and the request to adjust the screen projection parameters is used to adjust the system load capacity or screen projection parameters in the electronic device 100.

[0207] Execution module:

[0208] For the function of the execution module of the electronic device 100, see Figure 5 The function of the execution module introduced in the embodiment will not be repeated in this application.

[0209] In some embodiments, after the decision module in the electronic device 100 receives the request for adjusting the projection parameters sent by the decision module in the display device 200, the decision module of the electronic device 100 sends the request for adjusting the projection parameters to the execution module of the electronic device 100, and the execution module receives and responds to the request for adjusting the projection parameters, which is used to adjust the system load capacity or projection parameters in the electronic device 100.

[0210] For the display device 200, the execution module is used to:

[0211] 1. Receive the request for adjusting screen projection parameters sent by the decision module.

[0212] 2. Adjust the system load capacity or projection parameters according to the projection parameter adjustment request.

[0213] In some embodiments, after the decision module in the display device 200 receives the request for adjusting the screen projection parameters sent by the decision module in the electronic device 100, the decision module of the display device 200 sends the request for adjusting the screen projection parameters to the execution module of the display device 200, and the execution module receives and responds to the request for adjusting the screen projection parameters, which is used to adjust the system load capacity or projection parameters in the display device 200.

[0214] Here, how the decision module sends a request to adjust the projection parameters to the execution module according to the system load capacity, and how the execution module adjusts the system load capacity or the projection parameters according to the request to adjust the projection parameters will be introduced in detail in subsequent embodiments, and this application will not go into details here.

[0215] The following will describe in detail how the electronic device 100 and the display device 200 establish a screen projection connection in conjunction with the UI diagram.

[0216] The electronic device 100 can establish a screen projection connection with the display device 200 in the following manner.

[0217] Figure 7A-7D The UI diagram of the user operation of turning on the collaborative screen projection function monitored by the electronic device 100 is exemplified.

[0218] Fig. 7A An exemplary video playback user interface 40 on the electronic device 100 is shown. The user interface 40 displays: video name (Brave Step), video playback progress (Episode 1), video playback time (4 minutes and 13 seconds), video total time (7 minutes and 33 seconds), video popularity (5946), total number of video episodes (23 episodes), more video icons, and images corresponding to more videos.

[0219] like Fig. 7A and Figure 7B As shown, when the electronic device 100 detects a downward sliding gesture on the display screen, in response to the sliding gesture, the electronic device 100 displays a window 401 on the user interface 40. Figure 7B As shown, a control 402 may be displayed in window 401, and control 402 may receive an operation (such as a touch operation, a click operation) to turn on / off the collaborative screen projection function of electronic device 100. The expression form of control 402 may include an icon and / or text (such as the text "screen projection"). Other functions such as Wi-Fi, Bluetooth, flashlight, ringing, automatic rotation, instant sharing, airplane mode, mobile data, location information, screenshot, eye protection mode, hotspot, screen recording, NFC and other switch controls may also be displayed in window 401, that is, user operations to turn on the collaborative screen projection function are monitored. In some embodiments, after the electronic device 100 monitors the user operation acting on the control 402, the display form of the control 402 can be changed, such as adding a shadow when displaying the control 402.

[0220] Not limited to Fig. 7A On the video playback user interface 40 shown, the user can also input a downward sliding gesture on other interfaces to trigger the electronic device 100 to display the window 401 .

[0221] Not limited to Fig. 7A and Figure 7B The user operation shown is performed by the user on the control 402 in the window 401. In the embodiment of the present application, the user operation of enabling the collaborative screen projection function can also be implemented in other forms, which is not limited by the embodiment of the present application.

[0222] For example, the electronic device 100 can also display a settings interface provided by a settings application, which may include a control provided to the user for turning on / off the collaborative screen projection function of the electronic device 100. The user can turn on the collaborative screen projection function of the electronic device 100 by inputting user operations on the control.

[0223] When a user operation of turning on the collaborative screen projection function is detected, the electronic device 100 discovers nearby electronic devices that can be projected through one or more of Wi-Fi P2P, wireless LAN, Bluetooth, and NFC. For example, the electronic device 100 can discover nearby display devices 200 and other electronic devices through Wi-Fi P2P.

[0224] In addition to displaying the identification of electronic devices discovered by the electronic device 100 that are acceptable for collaborative screen projection, the electronic device 100 may also display other information, such as images of the discovered electronic devices, etc., which is not limited in the embodiments of the present application.

[0225] Then, illustratively, Figure 7C As shown, a window 403 pops up on the electronic device 100. The window 403 includes: an interface indicator 404, an icon 405, an image 406 of one or more display devices, and a logo 407.

[0226] For example, Figure 7C As shown, the user operation of selecting the display device 200 may be a user operation acting on the image 406 and / or the logo 407 corresponding to the display device 200. The user operation of selecting the display device 200 may also be implemented in other forms, which are not limited in the embodiment of the present application.

[0227] In response to the user operation, the electronic device 100 can establish a communication connection with the display device 200 through wireless communication technologies such as Wi-Fi P2P and wireless local area network. For example, the electronic device 100 and the display device 200 establish a Wi-Fi P2P communication connection. After the electronic device 100 and the display device 200 establish a communication connection, the electronic device 100 sends the real-time displayed content to the display device 200.

[0228] Specifically, the electronic device 100 can obtain the currently displayed multimedia content (including images or images and audio) by means of screen recording, audio recording, etc., and then compress the obtained content and send it to the display device 200 through the communication connection between the electronic device 100 and the display device 200. Taking the sharing of multimedia content based on miracast by the electronic device 100 and the display device 200 as an example, the electronic device 100 can obtain the image displayed on the display screen by means of screen recording according to the provisions of the miracast protocol, and compress the image using the H.264 encoding algorithm; collect the audio played by the electronic device 100, and compress the audio using the advanced audio coding (AAC) algorithm; then encapsulate the compressed audio data and image data into a transport stream (TS), and then encode the TS stream according to the real-time transport protocol (RTP) and send the encoded data to the display device 200 through a Wi-Fi direct connection. That is, the multimedia content is transmitted in the form of streaming media.

[0229] like Fig.7D As shown, the electronic device 100 transmits the currently displayed multimedia content (including images and / or audio) to the display device 200, and the display device 200 receives the currently displayed multimedia content (including images and / or audio) transmitted by the electronic device 100 and displays it on the display screen of the display device 200.

[0230] After receiving the multimedia content sent by the electronic device 100 based on the communication connection, the display device 200 can perform decoding processing on the multimedia content to obtain the multimedia content. Taking the electronic device 100 and the display device 200 sharing multimedia content based on miracast as an example, the display device 200 can receive the RTP-encoded TS stream based on the Wi-Fi direct communication connection between the electronic device 100, and can perform RTP decoding, TS stream decapsulation, audio and video quality processing / delay synchronization processing on it in sequence, and finally output audio and video, that is, play the multimedia content.

[0231] It should be noted that the above is only an exemplary list of a method for the electronic device 100 to establish a screen projection connection with the display device 200. The electronic device 100 can also establish a screen projection connection with the display device 200 in other ways, which is not limited here.

[0232] After the electronic device 100 establishes a screen projection connection with the display device 200, the electronic device 100 will negotiate display parameters with the display device 200. The display parameters include encoding formats, screen resolutions, audio formats, sampling frame rates, data transmission bit rates, etc. supported by both parties, to facilitate the subsequent transmission of the screen projection content.

[0233] like Figure 8 As shown, Figure 8 The diagram exemplarily shows a process in which the electronic device 100 and the display device 200 negotiate display parameters.

[0234] S801. The electronic device 100 establishes a screen projection connection with the display device 200.

[0235] For the process of establishing a connection between the electronic device 100 and the display device 200, please refer to Figure 7A-7D The embodiments shown in this application will not be described in detail here.

[0236] S802 , the electronic device 100 receives display parameter 1 sent by the display device 200 , where the display parameter 1 includes a display frame rate and a screen resolution supported by the display device 200 .

[0237] The display frame rate is the number of image frames that the display device 200 can display within a fixed time (e.g., 1 second). Exemplarily, the display frame rates supported by the display device 200 may include 60 Hz, 70 Hz, 90 Hz, 100 Hz, and 120 Hz, etc. The higher the display frame rate of the display device 200, the smoother the picture displayed by the display device 200.

[0238] The screen resolution is the number of pixels displayed by the display device 200 in the horizontal and vertical directions. Exemplarily, the screen resolution is 150×128, which means that the number of pixels in the horizontal direction is 150 and the number of pixels in the vertical direction is 128. The higher the screen resolution, the higher the clarity of the image displayed by the display device 200. The screen resolution is the resolution of the displayed image that the display device 200 can support, and the screen resolution reflects the resolution capability supported by the display device 200. It should be noted that the screen resolution is an inherent property of the display device 200, and the type of resolution supported by the display device 200 is determined by the hardware conditions of the display device 200, and is generally immutable. Exemplarily, the screen resolution supported by the display device 200 may be one or more of 1080P, 720P, and 540P.

[0239] The screen resolution is related to the type of the central processing unit (CPU) of the display device 200 , the type of the WiFi chip, the memory size, and the channel type between the electronic device 100 and the display device 200 .

[0240] When the CPU is a high-performance CPU, the WiFi chip is a high-performance WiFi chip, the capacity of the memory is greater than the preset capacity, and the channel type between the electronic device 100 and the display device 200 is any one or more of the 5G channels, the display device 200 supports a screen resolution of 1080P.

[0241] Exemplarily, as shown in Table 1, Table 1 exemplarily shows an example in which the display device 200 determines the screen resolution supported by the display device 200 according to the CPU type, the type of the WiFi chip, the memory size, and the channel type.

[0242] Table 1

[0243]

[0244] As shown in Table 1, only when the type of the CPU of the display device 200 is any one of 980 / 985 / 990 / 9A0, the type of the WiFi chip of the display device 200 is any one of 1103 / 1105, the memory of the display device 200 is any one of 6G / 8G, and the data channel established between the display device 200 and the electronic device 100 is a 5G channel, the display device 200 will support a screen resolution of 1080P. When the type of the CPU of the display device 200 is not any one of 980 / 985 / 990 / 9A0, for example, the type of the CPU of the display device 200 is any one of 710 / 810 / 970, regardless of the type of the WiFi chip of the display device 200, the memory size, and the type of the data channel established with the electronic device 100, the display device 200 only supports a screen resolution of 540P. When the type of the WiFi chip of the display device 200 does not belong to any of 1103 / 1105, for example, the type of the WiFi chip of the display device 200 belongs to any of 1102 / 1102A, regardless of the CPU type, memory size, and data channel type established with the electronic device 100 of the display device 200, the display device 200 only supports a screen resolution of 540P. When the memory size of the display device 200 does not belong to any of 6G / 8G, for example, the memory size of the display device 200 belongs to any of 3G / 4G, regardless of the CPU type, WiFi chip type, and data channel type established with the electronic device 100 of the display device 200, the display device 200 only supports a screen resolution of 540P. When the type of data channel established between the display device 200 and the electronic device 100 does not belong to 5G, for example, when the type of data channel established between the display device 200 and the electronic device 100 is 2.4G, regardless of the CPU type of the display device 200, the type of WiFi chip, and the memory of the display device 200, the display device 200 only supports a screen resolution of 540P.

[0245] Exemplarily, if the display device 200 supports a screen resolution of 540P and 1080P, the display device 200 sends the value of the supported screen resolution to the electronic device 100 .

[0246] Display parameter 1 also includes other parameters, such as encoding type, etc., which are not limited in this application.

[0247] The coding type includes a speech coding type and an image stream coding type. Exemplarily, the image stream coding type includes any one of the following: Xvid, AVC / H.264, MPEG1, MPEG2; the speech coding type includes any one of the following: MP3, AAC. It should be noted that the image stream coding type and the speech coding type may also be other types, which are not limited in this application.

[0248] S803. The electronic device 100 obtains screen projection parameters according to display parameter 2 and display parameter 1. The screen projection parameters include screen projection bit rate, sampling frame rate and screen projection resolution.

[0249] Display parameter two includes a display frame rate and a screen resolution supported by the electronic device 100 .

[0250] The display frame rate is the number of image frames that the electronic device 100 can display within a fixed time (e.g., 1 second). Exemplarily, the display frame rates supported by the electronic device 100 may include 60 Hz, 70 Hz, 90 Hz, 100 Hz, and 120 Hz, etc. The higher the display frame rate of the electronic device 100, the smoother the picture displayed by the electronic device 100.

[0251] The projection resolution can be changed in real time, and the projection resolution reflects the display status of the projection content in the electronic device 100. That is, the electronic device 100 can change the resolution of the projection content according to the network conditions, hardware load conditions, etc. For example, if the electronic device 100 and the display device 200 both support screen resolutions of 1080P and 540P, the current projection resolution is 1080P. When the network conditions deteriorate or the hardware load is relatively high, the electronic device 100 can reduce the projection resolution between the electronic device 100 and the display device 200 to 540P. For electronic devices 100 or display devices 200 of the same size, for the same projection content, the higher the projection resolution, the more pixels each frame of the image displayed by the electronic device 100 or the display device 200.

[0252] The screen resolution is related to the types of the central processing unit (CPU), graphics processing unit (GPU), and WiFi chip of the electronic device 100 .

[0253] As shown in Table 2, Table 2 exemplarily shows that the electronic device 100 determines the screen resolution supported by the display device 200 according to the CPU type, the type of the WiFi chip, the memory size, and the channel type.

[0254] The electronic device 100 supports a screen resolution of 1080P only when the CPU is a high-performance CPU, the WiFi chip is a high-performance WiFi chip, the capacity of the memory is greater than the preset capacity, and the channel type between the electronic device 100 and the display device 200 is any one or more of the 5G channels.

[0255] Exemplarily, as shown in Table 2, Table 2 exemplarily shows an example in which the electronic device 100 determines the screen resolution supported by the electronic device 100 according to the CPU type, the type of the WiFi chip, the memory size, and the channel type.

[0256] Table 2

[0257]

[0258] As shown in Table 2, only when the type of the CPU of the display device 200 is any one of 980 / 985 / 990 / 9A0, the type of the WiFi chip of the display device 200 is any one of BCM43596 / 1103 / 1105, the memory of the display device 200 is any one of 6G / 8G / 12G, and the data channel established between the display device 200 and the electronic device 100 is a 5G channel, the display device 200 will support a screen resolution of 1080P. When the type of the CPU of the display device 200 is not any one of 980 / 985 / 990 / 9A0, for example, the type of the CPU of the display device 200 is any one of 710 / 810 / 820 / 970, regardless of the type of the WiFi chip of the display device 200, the memory size, and the type of the data channel established with the electronic device 100, the display device 200 only supports a screen resolution of 540P. When the type of the WiFi chip of the display device 200 is not any of BCM43596 / 1103 / 1105, for example, the type of the WiFi chip of the display device 200 is any of 1102 / 1102A, regardless of the CPU type, memory size, and data channel type established with the electronic device 100 of the display device 200, the display device 200 only supports a screen resolution of 540P. When the memory size of the display device 200 is not any of 6G / 8G / 12G, for example, the memory size of the display device 200 is any of 3G / 4G, regardless of the CPU type, WiFi chip type, and data channel type established with the electronic device 100 of the display device 200, the display device 200 only supports a screen resolution of 540P. When the type of data channel established between the display device 200 and the electronic device 100 does not belong to 5G, for example, when the type of data channel established between the display device 200 and the electronic device 100 is 2.4G, regardless of the CPU type of the display device 200, the type of WiFi chip, and the memory of the display device 200, the display device 200 only supports a screen resolution of 540P.

[0259] The electronic device 100 receives the value of the screen resolution sent by the display device 200, and determines the value of the screen resolution shared by the electronic device 100 and the display device 200, and determines the value of the projection screen resolution from the value of the shared screen resolution; if the value of the screen resolution shared by the electronic device 100 and the display device 200 includes only one value, then the one value is the projection screen resolution for data transmission between the electronic device 100 and the display device 200; if the value of the resolution shared by the electronic device 100 and the display device 200 is greater than one value, then the electronic device 100 needs to determine one value from more than one value as the projection screen resolution for data transmission between the electronic device 100 and the display device 200. In a possible embodiment, the electronic device 100 determines the highest resolution value from multiple screen resolution values ​​as the projection screen resolution for data transmission between the electronic device 100 and the display device 200. In this way, the picture displayed by the electronic device 100 and the display device 200 will be clearer.

[0260] Exemplarily, when the screen resolution values ​​supported by the electronic device 100 are 540P and 1080P, and the screen resolution supported by the display device 200 is also 540P and 1080P. Then the screen resolution values ​​supported by the electronic device 100 and the display device 200 are 540P and 1080P. The electronic device 100 can use any one of the resolutions of 540P and 1080P to transmit data with the display device 200. In a possible embodiment, when the screen resolution values ​​supported by the electronic device 100 and the display device 200 are 540P and 1080P, the electronic device 100 preferentially uses the resolution of 1080P (screen projection resolution) to transmit data with the display device 200. In this way, the images displayed by the electronic device 100 and the display device 200 will be clearer.

[0261] Exemplarily, when the screen resolution supported by the display device 200 is 540P, and the screen resolution supported by the display device 200 is also 540P, the electronic device 100 determines that 540P (projection resolution) is the resolution for transmitting data between the electronic device 100 and the display device 200.

[0262] In some embodiments, the display device 200 may also send the CPU type, the type of the WiFi chip, the memory size, and the channel type of the display device 200 to the electronic device 100, and the electronic device 100 determines the numerical value of the screen resolution supported by the display device 200. Afterwards, the electronic device 100 determines the numerical value of the screen resolution supported by both parties based on the numerical value of the screen resolution supported by the display device 200 and the numerical value of the screen resolution supported by the electronic device 100. Among them, the method by which the electronic device 100 determines the numerical value of the screen resolution supported by the display device 200 is consistent with the method by which the display device 200 determines the numerical value of the screen resolution supported by the display device 200. For details, please refer to the above embodiments, and this application will not repeat them here.

[0263] In addition, the bit rate is related to the projection screen resolution. When the projection screen resolution is 1080P, the bit rate range is 3M-10M; when the projection screen resolution is 540P, the bit rate range is 1M-5M;

[0264] That is, after the electronic device 100 and the display device 200 determine the projection resolution, the projection resolution limits the range of the projection bit rate, and the electronic device 100 adopts the highest bit rate corresponding to the projection resolution as the projection bit rate.

[0265] Exemplarily, when the electronic device 100 and the display device 200 determine that the projection resolution is 1080P, the electronic device 100 adopts a bit rate of 10M as the projection bit rate; when the electronic device 100 and the display device 200 determine that the projection resolution is 540P, the electronic device 100 adopts a bit rate of 5M as the projection bit rate.

[0266] The electronic device 100 receives the value of the display frame rate sent by the display device 200, and determines the value of the display frame rate shared by the electronic device 100 and the display device 200; if the value of the display frame rate shared by the electronic device 100 and the display device 200 includes only one value, then the one value is the sampling frame rate of the data transmitted between the electronic device 100 and the display device 200; if the value of the display frame rate shared by the electronic device 100 and the display device 200 is greater than one value, then the electronic device 100 needs to determine one value from more than one value as the sampling frame rate of the data transmitted between the electronic device 100 and the display device 200. In a possible embodiment, the electronic device 100 determines the highest display frame rate value from multiple display frame rate values ​​as the sampling frame rate of the data transmitted between the electronic device 100 and the display device 200. In this way, the picture displayed by the electronic device 100 and the display device 200 will be clearer.

[0267] For example, when the display frame rate values ​​supported by the electronic device 100 are 60 Hz, 70 Hz, 90 Hz, 100 Hz and 120 Hz, and the display frame rate supported by the display device 200 is also 60 Hz, 70 Hz, 90 Hz, 100 Hz and 120 Hz, then the display frame rates supported by the electronic device 100 and the display device 200 are 60 Hz, 70 Hz, 90 Hz, 100 Hz and 120 Hz. The electronic device 100 can use any one of the display frame rates of 60 Hz, 70 Hz, 90 Hz, 100 Hz and 120 Hz to transmit data with the display device 200. In a possible embodiment, when the display frame rates supported by the electronic device 100 and the display device 200 are 60 Hz, 70 Hz, 90 Hz, 100 Hz and 120 Hz, the electronic device 100 preferentially uses the display frame rate of 120 Hz as the sampling frame rate for data transmission with the display device 200. In this way, the images displayed by the electronic device 100 and the display device 200 will be smoother.

[0268] Exemplarily, when the display frame rate supported by the display device 200 is 90 Hz, and the display frame rate supported by the display device 200 is 90 Hz, the electronic device 100 determines that 90 Hz is the sampling frame rate for transmitting data between the electronic device 100 and the display device 200 .

[0269] In some embodiments, the screen projection parameters include not only the screen projection bit rate, sampling frame rate and screen projection resolution, but also the screen projection encoding type. The screen projection parameters may also include other parameters, which will not be introduced one by one in this application.

[0270] S804. The electronic device 100 sends screen projection parameters to the display device 200.

[0271] The projection parameters include projection bitrate, sampling frame rate and projection resolution. The projection parameters can also include projection encoding type.

[0272] In response to the screen projection parameters sent, the display device 200 receives the screen projection parameters sent by the electronic device 100 .

[0273] S805. The electronic device 100 obtains projection content 1, and processes the projection content 1 with the projection parameters to obtain projection data.

[0274] S806 , the electronic device 100 sends the projection data to the display device 200 .

[0275] The electronic device 100 can obtain the projection content 1 by means of screen recording and / or audio recording, and process the projection content 1 according to the projection parameters to obtain the projection data processed by the projection parameters.

[0276] The electronic device 100 compresses the projection data and then sends the projection data to the display device 200 .

[0277] S807. The display device 200 displays projection content 1 based on the projection data and projection parameters.

[0278] In response to the projection data sent by the electronic device 100, the display device 200 receives the projection data, and decodes the projection data and processes the audio and video quality in order to obtain projection content 1. After that, the display device 200 displays the projection content 1. Fig.7D As shown, Fig.7D Schematic diagram of display device 200 displaying projection content 1.

[0279] After the electronic device 100 sends the projected content to the display device 200, the monitoring module, decision module and execution module in the electronic device 100 and the display device 200 will adjust the hardware operating frequency and projection parameters based on the system load capacity and projection performance parameters, so that the projection performance parameters meet the preset conditions to improve the projection effect.

[0280] Next, it will be described in detail how the decision module in the electronic device 100 and the display device 200 sends a request to adjust the projection parameters to the execution module according to the system load capacity, and how the execution module adjusts the system load capacity or projection parameters according to the request to adjust the projection parameters.

[0281] In an embodiment of the present application, when the electronic device 100 or the display device 200 monitors that the screen projection performance parameters do not meet the preset conditions, that is, the screen projection effect is not good, the electronic device 100 or the display device 200 will detect the reasons for the poor screen projection effect. After determining the specific reasons, the electronic device 100 or the display device 200 will adjust the system load capacity or the screen projection parameters so that the screen projection performance parameters meet the preset conditions to improve the screen projection effect.

[0282] At present, if the screen projection effect is not good at this time, for example, the electronic device 100 detects that the frame rate difference between the sampling frame rate of the electronic device 100 and the display frame rate of the display device 200 is greater than the preset frame rate difference, or the screen projection delay between the electronic device 100 and the display device 200 is greater than the preset delay, the electronic device 100 will monitor whether the network status is normal. If the electronic device 100 detects that the network load is too high, resulting in poor screen projection effect, the electronic device 100 will reduce the bit rate of data transmission to improve the screen projection effect.

[0283] If the electronic device 100 detects that the poor screen projection effect is not caused by network problems, the electronic device 100 and the display device 200 cannot improve the screen projection effect of the electronic device 100 by other means except reducing the bit rate. Therefore, the embodiment of the present application provides a screen projection method, and the electronic device 100 and the display device 200 will adopt a screen projection effect hierarchical adjustment strategy to adjust the system load capacity or screen projection parameters so that the screen projection performance parameters meet the preset conditions. The screen projection effect hierarchical adjustment strategy is adjusted from low to high with the goal of affecting the user experience, reducing the impact of the electronic device 100 or the display device 200 on the user experience when adjusting the system load capacity or the screen projection parameters. Using this method, on the one hand, the electronic device 100 or the display device 200 can determine the reasons that affect the screen projection effect, and adopt corresponding strategies to improve the screen projection effect; on the other hand, the screen projection effect hierarchical adjustment strategy is adopted, taking into account the factors that affect the user experience, and adjusting with the goal of reducing the impact on the user.

[0284] Figure 9-Figure 14 Several strategies for graded adjustment of screen projection effects are exemplified. The electronic device 100 or the display device 200 will determine in turn which strategy to adopt to improve the screen projection effect. When the electronic device 100 or the display device 200 adjusts the system load capacity or the screen projection parameters so that the screen projection performance parameters meet the preset conditions, the electronic device 100 or the display device 200 will stop adjusting the system load capacity or the screen projection parameters. When the screen projection performance parameters still do not meet the preset conditions after the electronic device 100 or the display device 200 adjusts the system load capacity or the screen projection parameters, the electronic device 100 or the display device 200 will adopt a polling mechanism to continue to determine which strategy to adopt to improve the screen projection effect until the screen projection performance parameters meet the preset conditions.

[0285] It should be noted that Figure 9-Figure 14 Only some screen projection effect adjustment strategies are shown as examples. The embodiments of the present application may also include more screen projection effect adjustment strategies, which are not limited in the present application.

[0286] and, Figure 9-Figure 14 This application does not limit the execution order of the several screen projection effect adjustment strategies shown as examples.

[0287] Next, the strategy for graded adjustment of screen projection effects will be introduced in detail.

[0288] Screen projection effect adjustment strategy 1

[0289] First, if Figure 9-10 The method flow chart of the screen projection effect adjustment strategy 1 is exemplified. The screen projection effect adjustment strategy 1 adjusts the operating frequency of the hardware in the electronic device 100 or the display device 200. When the screen projection delay is greater than the preset delay and / or the screen projection frame rate difference is greater than the preset frame rate difference, and the electronic device 100 determines that the hardware load of the electronic device 100 is high, or the display device 200 determines that the hardware load of the display device 200 is high, when the operating frequency of the hardware in the electronic device 100 or the display device 200 is adjusted, the screen projection parameters of the electronic device 100 and the display device 200 will not be changed. In this way, when the screen projection parameters have not changed, the operating frequency of the hardware is adjusted so that the screen projection performance parameters meet the preset conditions and will not affect the user experience. Among them, the hardware includes CPU, GPU, DDR, Codec, etc.

[0290] Since the screen projection effect adjustment strategy 1 does not adjust the screen projection parameters, the screen projection parameters remain unchanged after the electronic device 100 or the display device 200 adjusts the operating frequency of the hardware. The screen projection parameters negotiated when the electronic device 100 and the display device 200 establish a screen projection connection include the screen projection bit rate, the sampling frame rate, and the screen projection resolution. Exemplarily, the screen projection bit rate is the first bit rate (e.g., 10M), the sampling frame rate is the first sampling frame rate (e.g., 60hz), and the screen projection resolution is the first screen projection resolution (e.g., 1080P). After the electronic device 100 or the display device 200 adjusts the operating frequency of the hardware, the screen projection bit rate is still the first bit rate (e.g., 10M), the sampling frame rate is still the first sampling frame rate (e.g., 60hz), and the screen projection resolution is still the first screen projection resolution (e.g., 1080P).

[0291] Fig. 9 The schematic diagram exemplarily shows the electronic device 100 adjusting the operating frequency of the hardware of the electronic device 100 .

[0292] The electronic device 100 monitors the screen projection performance parameters, which include the screen projection frame rate difference and the screen projection delay. When the electronic device 100 determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the electronic device 100 will determine whether the screen projection performance parameters do not meet the preset conditions due to the high hardware load in the electronic device 100. If the screen projection performance parameters do not meet the preset conditions due to the high hardware load in the electronic device 100, the electronic device 100 will increase the operating frequency of the hardware and then monitor whether the screen projection performance parameters meet the preset conditions. If the operating frequency of the hardware has been increased to the preset value, but the screen projection performance parameters still do not meet the preset conditions, the electronic device 100 executes the second screen projection effect adjustment strategy.

[0293] The electronic device 100 can improve the operating frequency of the hardware by using the following formulas 1 and 2:

[0294] P2=P1*(1+cast_cost) Formula 1

[0295] cast_cost=(delay-delay_base) / delay_base*0.5+fps_diff / fps_base*0.5 Formula 2

[0296] As shown in Formula 1, P2 represents the operating frequency after hardware frequency increase, P1 represents the operating frequency before hardware frequency increase, cast_cost represents the normalized index of screen projection performance parameters, and 1+cast_cost represents the frequency increase.

[0297] As shown in Formula 2, delay represents the screen projection delay, which is measured in real time by the electronic device 100. delay_base represents the screen projection benchmark delay, which is a preset value, and the general screen projection benchmark delay is 50ms or 100ms. fps_diff represents the screen projection frame rate difference, which is measured in real time by the electronic device 100. fps_base represents the screen projection benchmark frame rate difference, which is a preset value, and the general screen projection benchmark delay is 60hz. The value range of cast_cost is 0-1.

[0298] In order to avoid power consumption and heating problems, the boost frequency needs to be lower than the preset boost frequency (eg 1.25).

[0299] Specifically, Fig. 9 As shown, the electronic device 100 monitors the screen projection frame rate difference and the screen projection delay. If the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the electronic device 100 determines that the hardware load in the electronic device 100 is high. The high hardware load includes: the usage rate of the CPU of the electronic device 100 is greater than the preset value and / or the usage rate of the GPU of the electronic device 100 is greater than the preset value and / or the usage rate of the DDR of the electronic device 100 is greater than the preset value and / or the usage rate of the Codec of the electronic device 100 is greater than the preset value. Afterwards, the electronic device 100 will obtain the frequency increase based on the screen projection delay and the screen projection frame rate difference according to Formula 2. Afterwards, when the CPU usage rate is greater than the preset value, the electronic device 100 can increase the CPU operating frequency from frequency 1 to frequency 2 (the first value or the second value) according to Formula 1, and / or when the GPU usage rate is greater than the preset value, the electronic device 100 can increase the GPU operating frequency from frequency 3 to frequency 4 (the first value or the second value) according to Formula 1, and / or when the DDR usage rate is greater than the preset value, the electronic device 100 can increase the DDR operating frequency from frequency 5 to frequency 6 (the first value or the second value) according to Formula 1, and / or when the Codec usage rate is greater than the preset value, the electronic device 100 can increase the Codec operating frequency from frequency 7 to frequency 8 (the first value or the second value) according to Formula 1.

[0300] It should be noted that frequency 2, frequency 4, frequency 6 and frequency 8 are greater than the first threshold or the second threshold. After that, after the electronic device 100 increases the operating frequency of the hardware, the electronic device 100 continues to monitor the screen projection delay and the screen projection frame rate difference.

[0301] Afterwards, the electronic device 100 continues to monitor whether the projection frame rate difference is less than the preset frame rate difference and whether the projection delay is less than the preset delay. If at this time, the projection frame rate difference is less than the preset frame rate difference and the projection delay is less than the preset delay, the electronic device 100 improves the projection effect after increasing the operating frequency of the hardware. Afterwards, the electronic device 100 will no longer execute the subsequent method steps.

[0302] If the screen projection frame rate difference is still greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the electronic device 100 will determine whether the hardware boost frequency is less than the preset boost frequency. If the boost frequency is less than the preset boost frequency (the third threshold or the fourth threshold), the electronic device 100 continues to determine which hardware has a high load and increases the operating frequency of the corresponding hardware. Exemplarily, the electronic device 100 increases the CPU operating frequency to frequency m (the third value or the fourth value), and the frequency m is greater than the first threshold or the second threshold, and not less than the preset boost frequency. Until the boost frequency is greater than the preset boost frequency, the electronic device 100 will no longer adjust the hardware operating frequency in order to avoid power consumption and heat generation problems, and executes the second screen projection effect adjustment strategy.

[0303] Fig.10 The diagram exemplarily shows the display device 200 adjusting the operating frequency of the hardware of the display device 200 .

[0304] The display device 200 monitors the screen projection performance parameters, which include the screen projection frame rate difference and the screen projection delay. When the display device 200 determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the display device 200 will determine whether the screen projection performance parameters do not meet the preset conditions due to the high hardware load in the display device 200. If the screen projection performance parameters do not meet the preset conditions due to the high hardware load in the display device 200, the display device 200 will increase the operating frequency of the hardware and then monitor whether the screen projection performance parameters meet the preset conditions. If the frequency of the hardware has been increased to the preset value, but the screen projection performance parameters still do not meet the preset conditions, the display device 200 executes the screen projection effect adjustment strategy 2.

[0305] The display device 200 can improve the operating frequency of the hardware by using Formula 1 and Formula 2. For an introduction to Formula 1 and Formula 2, please refer to Fig. 9 The embodiments shown in this application will not be described in detail here.

[0306] Specifically, Fig.10 As shown, the display device 200 monitors the screen projection frame rate difference and the screen projection delay. If the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the display device 200 determines that the hardware load in the display device 200 is high. The high hardware load includes: the usage rate of the CPU of the display device 200 is greater than the preset value and / or the usage rate of the GPU of the display device 200 is greater than the preset value and / or the usage rate of the DDR of the display device 200 is greater than the preset value and / or the usage rate of the Codec of the display device 200 is greater than the preset value. Afterwards, the display device 200 will obtain the increased frequency based on the projection delay and the projection frame rate difference according to Formula 2. Afterwards, when the CPU usage rate is greater than the preset value, the display device 200 can increase the CPU operating frequency from frequency nine to frequency ten (the first value or the second value) according to Formula 1, and / or when the GPU usage rate is greater than the preset value, the display device 200 can increase the GPU operating frequency from frequency eleven to frequency twelve (the first value or the second value) according to Formula 1, and / or when the DDR usage rate is greater than the preset value, the display device 200 can increase the DDR operating frequency from frequency thirteen to frequency fourteen (the first value or the second value) according to Formula 1, and / or when the Codec usage rate is greater than the preset value, the display device 200 can increase the Codec operating frequency from frequency fifteen to frequency sixteen (the first value or the second value) according to Formula 1.

[0307] It should be noted that frequency 10, frequency 12, frequency 14 and frequency 16 are greater than the first threshold or the second threshold. After that, after the display device 200 increases the operating frequency of the hardware, the display device 200 continues to monitor the screen projection delay and the screen projection frame rate difference.

[0308] Afterwards, the display device 200 will determine whether the projection frame rate difference is less than the preset frame rate difference and whether the projection delay is less than the preset delay. If at this time, the projection frame rate difference is less than the preset frame rate difference and the projection delay is less than the preset delay, the display device 200 improves the projection effect after increasing the operating frequency of the hardware. Afterwards, the display device 200 will no longer execute the subsequent method steps.

[0309] If the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, the display device 200 will determine whether the hardware boost frequency is less than the preset boost frequency. If the boost frequency is less than the preset boost frequency (the third threshold or the fourth threshold), the display device 200 will continue to determine which hardware has a high load and increase the operating frequency of the corresponding hardware. Exemplarily, the electronic device 100 increases the CPU operating frequency to frequency m (the third value or the fourth value), and the frequency m is greater than the first threshold or the second threshold, and not less than the preset boost frequency. Until the boost frequency is greater than the preset boost frequency, the display device 200 will no longer adjust the hardware operating frequency in order to avoid power consumption and heat generation problems, and execute the second projection effect adjustment strategy.

[0310] Screen projection effect adjustment strategy 2

[0311] When the increase frequency of the operating frequency of the hardware of the electronic device 100 or the display device 200 reaches the preset increase frequency, the screen projection frame rate difference is still greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay; or, the hardware load in the electronic device 100 is not high and the hardware load in the display device 200 is not high, then the poor screen projection effect is not caused by the hardware load. The electronic device 100 will execute the second screen projection effect adjustment strategy.

[0312] The second screen projection effect adjustment strategy adjusts the screen projection code rate between the electronic device 100 and the display device 200. The screen projection effect adjustment strategy 2 will reduce the screen projection code rate between the electronic device 100 and the display device 200. Compared with the screen projection effect adjustment strategy 1, the screen projection effect adjustment strategy 2 will slightly affect the user experience.

[0313] Specifically, Fig.11 As shown, Fig.11 The schematic diagram exemplarily shows the electronic device 100 adjusting the screen projection code rate between the electronic device 100 and the display device 200.

[0314] First, the electronic device 100 monitors the screen projection performance parameters, which include the screen projection frame rate difference and the screen projection delay. When the electronic device 100 determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the electronic device 100 will calculate the data transmission delay between the electronic device 100 and the display device 200. When the data transmission delay is greater than the preset value, the poor screen projection effect may be caused by excessive network load. The electronic device 100 will reduce the screen projection bit rate so that the screen projection frame rate difference is less than the preset frame rate difference and the screen projection delay is less than the preset delay. When the data transmission delay is less than the preset value, the network load is not high at this time, and the electronic device 100 determines that the poor screen projection effect is not caused by network problems. The electronic device 100 directly executes the screen projection effect adjustment strategy three.

[0315] When the data transmission delay is greater than a preset value, the electronic device 100 can use the following formula 3 to reduce the screen projection bit rate:

[0316] R=R1-(R1-R2)*cast_cost Formula 3

[0317] As shown in Formula 3, R is the adjusted screen projection bit rate, and the value range of R is between R2-R1. R1 is the real-time screen projection bit rate between the electronic device 100 and the display device 200, R2 is the minimum screen projection bit rate, and cast_cost represents the normalized index of the screen projection performance parameter. The calculation method of cast_cost can refer to Formula 2, and this application will not be repeated here.

[0318] Exemplarily, when the projection resolution is 1080P, the projection bit rate ranges from 3M to R1, R1 is less than or equal to 10M, R2 is 3M, and the value range of R is from 3M to R1.

[0319] When the projection resolution is 540P, the projection bit rate ranges from 1M to R1. If R1 is less than or equal to 5M and R2 is 1M, the value range of R is from 1M to R1.

[0320] After the electronic device 100 reduces the screen projection bit rate from bit rate one to bit rate two (the first value or the second value) according to formula three, the first value or the second value is greater than the first threshold value or the second threshold value. The electronic device 100 continues to monitor whether the screen projection frame rate difference is less than the preset frame rate difference and whether the screen projection delay is less than the preset delay. If at this time, the screen projection frame rate difference is less than the preset frame rate difference and the screen projection delay is less than the preset delay, then the electronic device 100 improves the screen projection effect after reducing the screen projection bit rate. Afterwards, the electronic device 100 will no longer execute subsequent method steps.

[0321] If the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, the electronic device 100 will determine whether the adjusted projection bit rate (for example, bit rate two) is less than the minimum projection bit rate (the third threshold or the fourth threshold). If the adjusted projection bit rate (for example, bit rate two) is less than the minimum projection bit rate, and whether the data transmission delay between the electronic device 100 and the display device 200 is greater than the preset value, if so, the electronic device 100 continues to reduce the projection bit rate (for example, bit rate two) between the electronic device 100 and the display device 200 to bit rate three (the third value or the fourth value). After bit rate three is greater than the first threshold or the second threshold and not less than the third threshold or the fourth threshold, the electronic device 100 will no longer adjust the bit rate and execute the projection effect adjustment strategy three.

[0322] The electronic device 100 determines that the data transmission delay between the electronic device 100 and the display device 200 is greater than the preset delay. After the electronic device 100 adjusts the projection code rate according to the projection effect adjustment strategy 2, the sampling frame rate and the projection resolution do not change. Therefore, the sampling frame rate is still the first sampling frame rate (for example, 60hz), the projection resolution is still the first projection resolution (for example, 1080P), the projection code rate is the second projection code rate, and the second projection code rate is greater than or equal to the minimum projection code rate and less than the first projection code rate. Exemplarily, if the first projection resolution is 1080P, the second projection code rate is greater than or equal to 3M and less than the first projection code rate (for example, 10M). If the first projection resolution is 540P, the second projection code rate is greater than or equal to 1M and less than the first projection code rate (for example, 5M).

[0323] Alternatively, the electronic device 100 determines that the data transmission delay between the electronic device 100 and the display device 200 is less than the preset delay, and the network load is not high at this time, then the electronic device 100 determines that the poor screen projection effect is not caused by network problems. The electronic device 100 does not adjust the screen projection bit rate, and directly executes the screen projection effect adjustment strategy three. Therefore, the sampling frame rate is still the first sampling frame rate (for example, 60hz), the screen projection resolution is still the first screen projection resolution (for example, 1080P), and the screen projection bit rate is still the first screen projection bit rate (for example, 10M).

[0324] Screen projection effect adjustment strategy 3

[0325] When the data transmission delay between the electronic device 100 and the display device 200 is greater than the preset delay, after the electronic device 100 reduces the screen projection code rate to the minimum screen projection code rate, the screen projection frame rate difference is still greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay; or, if the data transmission delay between the electronic device 100 and the display device 200 is less than the preset delay, the poor screen projection effect is not caused by network problems. The electronic device 100 will execute the screen projection effect adjustment strategy three.

[0326] The third screen projection effect adjustment strategy adjusts the sampling frame rate of the electronic device 100. When the third screen projection effect adjustment strategy is adopted, the electronic device 100 will reduce the sampling frame rate. Compared with the second screen projection effect adjustment strategy, the third screen projection effect adjustment strategy will affect the user experience to a certain extent. That is, the third screen projection effect adjustment strategy has a greater impact on the user experience than the second screen projection effect adjustment strategy.

[0327] Specifically, Fig.12 As shown, Fig.12 The schematic diagram exemplarily shows the electronic device 100 adjusting the sampling frame rate on the electronic device 100 side.

[0328] First, the electronic device 100 monitors the screen projection performance parameters, which include the screen projection frame rate difference and the screen projection delay. When the electronic device 100 determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the electronic device 100 monitors the data transmission delay between the electronic device 100 and the display device 200, the image synthesis time of the electronic device 100, and the image synthesis time of the display device 200. The image synthesis time of the electronic device 100 includes the time taken by the electronic device 100 to synthesize a preset number of image frames (for example, 1 frame), and the image synthesis time of the display device 200 includes the time taken by the display device 200 to synthesize a preset number of image frames (for example, 1 frame). When the electronic device 100 monitors that the data transmission delay is greater than the preset value, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, it may be that the sampling frame rate on the electronic device 100 side is too high, resulting in poor screen projection effect, and the electronic device 100 will reduce the sampling frame rate on the electronic device 100 side. When the electronic device 100 detects that the hardware load of the display device 200 is not high, and the image synthesis time of the electronic device 100 is less than the preset time and the image synthesis time of the display device 200 is less than the preset time, the electronic device 100 determines that the poor screen projection effect is not caused by the high sampling frame rate. The electronic device 100 directly executes the screen projection effect adjustment strategy 4.

[0329] When the hardware load of the display device 200 is high, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 can adopt the following formula 4 to reduce the sampling frame rate:

[0330] PD=PD1-(PD1-PD2)*cast_cost Formula 4

[0331] As shown in Formula 4, PD is the adjusted sampling frame rate, and the value range of PD is between D 2 and D 1. PD 1 is the real-time sampling frame rate between the electronic device 100 and the display device 200, PD 2 is the minimum sampling frame rate, and cast_cost represents the normalized index of the projection performance parameter. The calculation method of cast_cost can refer to Formula 2, and this application will not repeat it here.

[0332] Exemplarily, the real-time sampling frame rate PD 1 is 60 Hz, the minimum sampling frame rate PD 2 is 52 Hz, and the value range of PD is between 52 Hz and 60 Hz.

[0333] After the electronic device 100 reduces the sampling frame rate from frame rate 1 to frame rate 2 (first value or second value) according to formula 4, frame rate 2 is greater than the first threshold or the second threshold, and the electronic device 100 continues to monitor whether the screen projection frame rate difference is less than the preset frame rate difference and whether the screen projection delay is less than the preset delay. If at this time, the screen projection frame rate difference is less than the preset frame rate difference and the screen projection delay is less than the preset delay, then the electronic device 100 improves the screen projection effect after reducing the sampling frame rate. After that, the electronic device 100 will no longer execute the subsequent method steps.

[0334] If the screen projection frame rate difference is still greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the electronic device 100 will determine whether the adjusted sampling frame rate (e.g., frame rate 2) is less than the minimum sampling frame rate (third threshold or fourth threshold). If the adjusted sampling frame rate (e.g., frame rate 2) is less than the minimum sampling frame rate, and it is detected that the data transmission delay is greater than the preset value, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 continues to reduce the sampling frame rate (e.g., frame rate 2) between the electronic device 100 and the display device 200 to frame rate 3 (third value or fourth value). After frame rate 3 is greater than the first threshold or the second threshold and not less than the minimum sampling frame rate, the electronic device 100 will no longer adjust the sampling frame rate. In order to avoid the problem of serious frame loss after the sampling frame rate is lower than the minimum sampling frame rate. Therefore, when frame rate 3 is greater than the minimum sampling frame rate, the electronic device 100 executes screen projection effect adjustment strategy 3.

[0335] After the electronic device 100 uses the second projection effect adjustment strategy to adjust the sampling frame rate, the projection effect is still not good, and the electronic device 100 detects that the data transmission delay is greater than the preset value, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 adjusts the sampling frame rate according to the third projection effect adjustment strategy, and the projection resolution does not change, the projection resolution is still the first projection resolution (for example, 1080P), the projection code rate is the second projection code rate, and the second projection code rate is greater than or equal to the minimum projection code rate and less than the first projection code rate. Exemplarily, if the first projection resolution is 1080P, the second projection code rate is greater than or equal to 3M and less than the first projection code rate (for example, 10M). If the first projection resolution is 540P, the second projection code rate is greater than or equal to 1M and less than the first projection code rate (for example, 5M). The sampling frame rate is the second sampling frame rate, and the second sampling frame rate is greater than or equal to the minimum screen projection code rate (for example, 52hz) and less than the first screen projection code rate (for example, 60hz).

[0336] Alternatively, after the electronic device 100 increases the operating frequency of the hardware in the electronic device 100 or the display device 200 according to the projection effect adjustment strategy one, the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, but the electronic device 100 detects that the data transmission delay between the electronic device 100 and the display device 200 is less than the preset delay, then the poor projection effect is not caused by a network problem. The electronic device 100 does not need to adjust the projection code rate according to the projection effect adjustment strategy two. And when the electronic device 100 detects that the hardware load of the display device 200 is high, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 directly adjusts the sampling frame rate according to the projection effect adjustment strategy three. At this time, the projection code rate and the projection resolution have not changed. The projection resolution is still the first projection resolution (for example, 1080P), the projection bit rate is still the first projection bit rate (for example, 10M), the sampling frame rate is the second sampling frame rate, and the second sampling frame rate is greater than or equal to the minimum projection bit rate (for example, 52hz) and less than the first projection bit rate (for example, 60hz).

[0337] Alternatively, after the electronic device 100 increases the operating frequency of the hardware in the electronic device 100 or the display device 200 according to the projection effect adjustment strategy 1, the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, but the electronic device 100 detects that the data transmission delay between the electronic device 100 and the display device 200 is less than the preset delay, then the poor projection effect is not caused by network problems. The electronic device 100 does not need to adjust the projection code rate according to the projection effect adjustment strategy 2. And when the electronic device 100 detects that the hardware load of the display device 200 is not high, and the image synthesis time of the electronic device 100 is less than the preset time and the image synthesis time of the display device 200 is less than the preset time, then the high sampling frame rate does not cause the poor projection effect. The electronic device 100 also does not need to adjust the sampling frame rate according to the projection effect adjustment strategy 3, and the electronic device 100 directly executes the projection effect adjustment strategy 4. At this time, the projection code rate, sampling frame rate and projection resolution have not changed. Therefore, the sampling frame rate is still the first sampling frame rate (for example, 60hz), the projection resolution is still the first projection resolution (for example, 1080P), and the projection code rate is still the first projection code rate (for example, 10M).

[0338] Screen projection effect adjustment strategy 4

[0339] If the electronic device 100 determines that the reason for the screen projection frame rate difference being greater than the preset frame rate difference and / or the screen projection delay being greater than the preset delay is not caused by the high sampling frame rate of the electronic device 100; or, the electronic device 100 determines that the reason for the screen projection frame rate difference being greater than the preset frame rate difference and / or the screen projection delay being greater than the preset delay is caused by the high sampling frame rate of the electronic device 100, but after the electronic device 100 reduces the sampling frame rate to the lowest sampling frame rate, the screen projection frame rate difference is still greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay. The display device 200 will execute screen projection effect adjustment strategy four.

[0340] The projection effect adjustment strategy 4 adjusts the display frame rate of the display device 200. When the projection effect adjustment strategy 4 is adopted, the display device 200 will reduce the display frame rate. Compared with the projection effect adjustment strategy 3, the projection effect adjustment strategy 4 will affect the user experience to a certain extent. That is, the projection effect adjustment strategy 4 has a greater impact on the user experience than the third-level projection effect adjustment strategy.

[0341] Specifically, Fig.13 As shown, Fig.13 The schematic diagram exemplarily shows that the display device 200 adjusts the display frame rate on the display device 200 side.

[0342] First, the display device 200 monitors the screen projection performance parameters, which include the screen projection frame rate difference and the screen projection delay. When the display device 200 determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, the display device 200 monitors the hardware load of the display device 200 and the image synthesis time of the display device 200. Among them, the hardware load of the display device 200 includes the utilization rate of the CPU of the display device 200, the utilization rate of the GPU of the display device 200, the utilization rate of the DDR of the display device 200, and the utilization rate of the Codec of the display device 200. The image synthesis time of the display device 200 includes the time taken by the display device 200 to synthesize a preset number of image frames (for example, 1 frame). When the display device 200 detects that the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, it may be that the display frame rate on the display device 200 side is too high, resulting in poor screen projection effect, and the display device 200 will reduce the sampling frame rate on the display device 200 side. When the display device 200 detects that the hardware load of the display device 200 is not high and the image synthesis time of the display device 200 is less than the preset time, the display device 200 determines that the poor screen projection effect is not caused by the high display frame rate. The display device 200 directly executes the screen projection effect adjustment strategy five.

[0343] When the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, the display device 200 may adopt the following formula 5 to reduce the sampling frame rate:

[0344] D=D1-(D1-D2)*cast_cost Formula 5

[0345] As shown in Formula 4, D is the display frame rate after adjustment, and the value range of D is between D 2 and D 1. D 1 is the real-time display frame rate of the display device 200, D 2 is the minimum display frame rate, and cast_cost represents the normalized index of the screen projection performance parameter. The calculation method of cast_cost can refer to Formula 2, and this application will not repeat it here.

[0346] Exemplarily, the real-time display frame rate D1 is 52 Hz, and the minimum display frame rate D2 is 45 Hz, then the value range of D is between 45 Hz and 52 Hz.

[0347] After the display device 200 reduces the display frame rate from frame rate 4 to frame rate 5 according to formula 5, the display device 200 continues to monitor whether the projection frame rate difference is less than the preset frame rate difference and whether the projection delay is less than the preset delay. If at this time, the projection frame rate difference is less than the preset frame rate difference and the projection delay is less than the preset delay, then the display device 200 improves the projection effect after reducing the display frame rate. After that, the display device 200 no longer executes the subsequent method steps.

[0348] If the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, the display device 200 will determine whether the adjusted display frame rate (e.g., frame rate five) is less than the minimum display frame rate (third threshold or fourth threshold). If the adjusted display frame rate (e.g., frame rate five) is less than the minimum display frame rate, and it is detected that the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, the display device 200 continues to reduce the display frame rate of the display device 200 (e.g., frame rate five) to frame rate six, until frame rate six is ​​greater than the minimum display frame rate, the display device 200 will no longer adjust the display frame rate. When frame rate six is ​​greater than the minimum display frame rate, the display device 200 executes projection effect adjustment strategy five.

[0349] After the display device 200 uses projection effect adjustment strategy 2 to adjust the projection bit rate and projection effect adjustment strategy 3 to adjust the sampling frame rate, the projection effect is still not good, and the display device 200 detects that the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, after the display device 200 adjusts the display frame rate of the display device 200 according to projection effect adjustment strategy 4, the projection resolution does not change, the projection resolution is still the first projection resolution (for example, 1080P), the projection bit rate is the second projection bit rate, and the second projection bit rate is greater than or equal to the minimum projection bit rate and less than the first projection bit rate. Exemplarily, if the first projection resolution is 1080P, the second projection bit rate is greater than or equal to 3M, which is less than the first projection bit rate (for example, 10M). If the first projection resolution is 540P, the second projection bit rate is greater than or equal to 1M, which is less than the first projection bit rate (for example, 5M). The sampling frame rate is the second sampling frame rate, and the second sampling frame rate is greater than or equal to the minimum screen projection code rate (for example, 52hz) and less than the first screen projection code rate (for example, 60hz).

[0350] Alternatively, the electronic device 100 does not use the second projection effect adjustment strategy to adjust the projection bit rate, and directly adjusts the sampling frame rate of the electronic device 100 according to the third projection effect adjustment strategy. When the display device 200 detects that the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, and the display device 200 detects that the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, the display device 200 adjusts the display frame rate of the display device 200 according to the fourth projection effect adjustment strategy, and the projection bit rate and projection resolution do not change. The projection resolution is still the first projection resolution (for example, 1080P), the projection bit rate is still the first projection bit rate (for example, 10M), the sampling frame rate is the second sampling frame rate, and the second sampling frame rate is greater than or equal to the minimum projection bit rate (for example, 52hz) and less than the first projection bit rate (for example, 60hz).

[0351] Alternatively, the electronic device 100 uses the second projection effect adjustment strategy to adjust the projection code rate, and does not use the third projection effect adjustment strategy to adjust the sampling frame rate of the electronic device 100. When the display device 200 detects that the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, and the display device 200 detects that the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, after the display device 200 adjusts the display frame rate of the display device 200 according to the fourth projection effect adjustment strategy, the sampling frame rate and the projection resolution do not change. The projection resolution is still the first projection resolution (for example, 1080P), the sampling frame rate is still the first sampling frame rate (for example, 60hz), the projection code rate is the second projection code rate, and the second projection code rate is greater than or equal to the minimum projection code rate and less than the first projection code rate. Exemplarily, if the first projection resolution is 1080P, the second projection code rate is greater than or equal to 3M and less than the first projection code rate (for example, 10M). If the first projection resolution is 540P, the second projection bit rate is greater than or equal to 1M and less than the first projection bit rate (for example, 5M).

[0352] Alternatively, the electronic device 100 does not use the second projection effect adjustment strategy to adjust the projection bit rate, nor does it use the third projection effect adjustment strategy to adjust the sampling frame rate of the electronic device 100. The projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, and the display device 200 detects that the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, and the display device 200 adjusts the display frame rate of the display device 200 according to the fourth projection effect adjustment strategy. At this time, the projection bit rate, sampling frame rate and projection resolution have not changed. Therefore, the sampling frame rate is still the first sampling frame rate (for example, 60hz), the projection resolution is still the first projection resolution (for example, 1080P), and the projection bit rate is still the first projection bit rate (for example, 10M).

[0353] Screen projection effect adjustment strategy 5

[0354] If the display device 200 determines that the reason for the display frame rate difference being greater than the preset frame rate difference and / or the screen projection delay being greater than the preset delay is not caused by the display frame rate of the display device 200 being too high; or, the display device 200 determines that the reason for the screen projection frame rate difference being greater than the preset frame rate difference and / or the screen projection delay being greater than the preset delay is caused by the display frame rate of the display device 200 being too high, but after the display device 200 reduces the display frame rate of the display device 200, the screen projection frame rate difference is still greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay. The electronic device 100 will execute screen projection effect adjustment strategy five.

[0355] Screen projection effect adjustment strategy 5 adjusts the screen projection resolution of the electronic device 100. When screen projection effect adjustment strategy 5 is adopted, the electronic device 100 will reduce the screen projection resolution. Compared with screen projection effect adjustment strategy 4, screen projection effect adjustment strategy 5 will affect the user experience to a certain extent. That is, screen projection effect adjustment strategy 5 has a greater impact on the user experience than the fourth level screen projection effect adjustment strategy.

[0356] Specifically, Fig.14 As shown, Fig.14 A schematic diagram showing, by way of example, the electronic device 100 adjusting the resolution of the side projection screen of the electronic device 100 .

[0357] First, the display device 200 monitors the screen projection performance parameters, which include the screen projection frame rate difference and the screen projection delay. When the display device 200 determines that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, and the hardware load of the display device 200 is high or the image synthesis time of the display device 200 is greater than the preset time, it may be that the resolution on the electronic device 100 side is too high, resulting in poor screen projection effect. The display device 200 sends a request to reduce the screen projection resolution to the electronic device 100, and the electronic device 100 receives and responds to the request to reduce the screen projection resolution, and the electronic device 100 will reduce the screen projection resolution. When the hardware load of the display device 200 is not high, and the image synthesis time of the display device 200 is less than the preset time, the display device 200 determines that the poor screen projection effect is not caused by the high resolution on the electronic device 100 side. The electronic device 100 or the display device 200 will execute the screen projection effect adjustment strategy one. The hardware load of the display device 200 includes the utilization rate of the CPU of the display device 200, the utilization rate of the GPU of the display device 200, the utilization rate of the DDR of the display device 200, and the utilization rate of the Codec of the display device 200. The image synthesis time of the display device 200 includes the time taken by the display device 200 to synthesize a preset number of image frames (e.g., 1 frame).

[0358] When the hardware load of the display device 200 is high or the image synthesis time of the display device 200 is greater than a preset time, the electronic device 100 reduces the projection resolution from resolution one to resolution two.

[0359] After the electronic device 100 reduces the projection resolution from resolution 1 to resolution 2 (the first value or the second value), resolution 2 is greater than the first threshold or the second threshold, and the display device 200 continues to monitor whether the projection frame rate difference is less than the preset frame rate difference and whether the projection delay is less than the preset delay. If at this time, the projection frame rate difference is less than the preset frame rate difference and the projection delay is less than the preset delay, then the electronic device 100 improves the projection effect after reducing the projection resolution. Afterwards, the electronic device 100 no longer executes the subsequent method steps.

[0360] If the projection frame rate difference is still greater than the preset frame rate difference and / or the projection delay is greater than the preset delay, the electronic device 100 will determine whether the adjusted projection resolution (e.g., resolution 2) is less than the minimum projection resolution (the third threshold or the fourth threshold). If the adjusted projection resolution (e.g., resolution 2) is less than the minimum projection resolution, and the hardware load of the display device 200 is high, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 continues to reduce the projection resolution of the electronic device 100 (e.g., resolution 2) to resolution 3 (the third value or the fourth value). After resolution 3 is less than the first threshold or the second threshold, and not less than the minimum projection resolution, the electronic device 100 will no longer adjust the projection resolution. When resolution 3 is greater than the minimum projection resolution, the electronic device 100 executes projection effect adjustment strategy 1.

[0361] After the electronic device 100 uses the second projection effect adjustment strategy to adjust the projection code rate and the third projection effect adjustment strategy to adjust the sampling frame rate, the display device 200 uses the fourth projection effect adjustment strategy to adjust the display frame rate, and the electronic device 100 uses the fifth projection effect adjustment strategy to adjust the projection resolution, the projection resolution is the second projection resolution, the second projection resolution is greater than or equal to the minimum projection resolution, and less than the first projection resolution. The projection code rate is the second projection code rate, the second projection code rate is greater than or equal to the minimum projection code rate, and less than the first projection code rate. Exemplarily, if the first projection resolution is 1080P, the second projection code rate is greater than or equal to 3M, and less than the first projection code rate (for example, 10M). If the first projection resolution is 540P, the second projection code rate is greater than or equal to 1M, and less than the first projection code rate (for example, 5M). The sampling frame rate is the second sampling frame rate, the second sampling frame rate is greater than or equal to the minimum projection code rate (for example, 52hz) and less than the first projection code rate (for example, 60hz).

[0362] Alternatively, the electronic device 100 does not adopt the second projection effect adjustment strategy to adjust the projection bit rate and does not adopt the third projection effect adjustment strategy to adjust the sampling frame rate, the display device 200 does not adopt the fourth projection effect adjustment strategy to adjust the display frame rate, and the electronic device 100 adopts the fifth projection effect adjustment strategy to adjust the projection resolution. The projection resolution is the second projection resolution, which is greater than or equal to the minimum projection resolution (the third threshold or the fourth threshold) and less than the first projection resolution. The projection bit rate is still the first projection bit rate (for example, 10M). The projection sampling frame rate is still the first sampling frame rate (for example, 60hz).

[0363] Alternatively, the electronic device 100 uses the second projection effect adjustment strategy to adjust the projection code rate and the third projection effect adjustment strategy to adjust the sampling frame rate. After the display device 200 uses the fourth projection effect adjustment strategy to adjust the display frame rate, the electronic device 100 does not use the fifth projection effect adjustment strategy to adjust the projection resolution, and the projection resolution is still the first projection resolution (for example, 1080P). The projection code rate is the second projection code rate, and the second projection code rate is greater than or equal to the minimum projection code rate and less than the first projection code rate. Exemplarily, if the first projection resolution is 1080P, the second projection code rate is greater than or equal to 3M and less than the first projection code rate (for example, 10M). If the first projection resolution is 540P, the second projection code rate is greater than or equal to 1M and less than the first projection code rate (for example, 5M). The sampling frame rate is the second sampling frame rate, and the second sampling frame rate is greater than or equal to the minimum projection code rate (for example, 52hz) and less than the first projection code rate (for example, 60hz).

[0364] It should be noted that the embodiments of the present application only exemplify several screen projection effect adjustment strategies, and may also include more screen projection effect adjustment strategies, which are not listed one by one in this application.

[0365] In an embodiment of the present application, when the electronic device 100 or the display device 200 monitors that the screen projection performance parameters do not meet the preset conditions, that is, the screen projection effect is not good, the electronic device 100 or the display device 200 will detect the reasons for the poor screen projection effect. After determining the specific reasons, the electronic device 100 or the display device 200 will adjust the system load capacity or the screen projection parameters so that the screen projection performance parameters meet the preset conditions to improve the screen projection effect.

[0366] Specifically, the electronic device 100 and the display device 200 will adopt a strategy of graded adjustment of the projection effect to adjust the system load capacity or projection parameters so that the projection performance parameters meet the preset conditions. The strategy of graded adjustment of the projection effect is adjusted from low to high with the goal of affecting the user experience, thereby reducing the impact on the user experience when the electronic device 100 or the display device 200 adjusts the system load capacity or projection parameters.

[0367] like Fig.15 As shown, Fig.15 A flowchart of a screen projection method provided in an embodiment of the present application is exemplified.

[0368] S1501. The electronic device 100 establishes a screen projection connection with the display device 200.

[0369] For the method of establishing a screen projection connection between the electronic device 100 and the display device 200, please refer to Figure 7A-7D The embodiments shown are not described in detail in this application.

[0370] The electronic device 100 is not limited to the above two methods of establishing a screen projection connection with the display device 200. The electronic device 100 can also establish a screen projection connection with the display device 200 in other ways, and this application does not limit this.

[0371] S1502. The electronic device 100 and the display device 200 monitor whether the screen projection delay is greater than the preset delay or whether the screen projection frame rate difference is greater than the preset frame rate difference.

[0372] The screen projection delay is the difference between the moment when the electronic device 100 obtains the first screen projection content and the moment when the display device 200 displays the first screen projection content.

[0373] The projection frame rate difference is the frame rate difference between the sampling frame rate of the electronic device 100 and the display frame rate of the display device 200 .

[0374] When the electronic device 100 detects that the screen projection delay is greater than the preset delay or the screen projection frame rate difference is greater than the preset frame rate difference, the electronic device 100 executes S1503.

[0375] When the display device 200 detects that the screen projection delay is greater than the preset delay or the screen projection frame rate difference is greater than the preset frame rate difference, the display device 200 executes S1505.

[0376] It should be noted that when the subsequent electronic device 100 or the display device 200 adjusts the projection parameters or hardware operating frequency according to the graded adjustment strategy, as long as the projection delay is less than the preset delay and the projection frame rate difference is less than the preset frame rate difference, the electronic device 100 or the display device 200 will no longer execute the graded adjustment strategy to adjust the projection parameters.

[0377] When the usage frequency of the hardware is greater than the preset value, causing the screen projection delay to be greater than the preset delay or the screen projection frame rate difference to be greater than the preset frame rate difference, the electronic device 100 can reduce the operating frequency of the hardware in the electronic device 100 or the display device 200 can reduce the operating frequency of the hardware in the electronic device 100.

[0378] Specifically, S1503-S1506 describe the method flow of adjusting the hardware operating frequency of the electronic device 100 or the display device 200. It should be noted that the method flow of adjusting the hardware operating frequency of the electronic device 100 or the display device 200 may include more or fewer steps than S1503-S1506, and this application does not limit this. In addition, this application does not limit the execution order of each step in S1503-S1506.

[0379] S1505 and S1506 may be executed after S1504, and S1502 may also be executed after S1502. This application does not limit the execution order of S1503 and S1504, S1505 and S1506.

[0380] S1503. The electronic device 100 determines whether the usage rate of the hardware in the electronic device 100 is greater than a preset value?

[0381] If the electronic device 100 determines that the usage rate of the hardware in the electronic device 100 is greater than the preset value, the electronic device 100 executes S1504, otherwise the electronic device 100 executes S1507.

[0382] The usage rate of the hardware in the electronic device 100 includes the usage rate of the CPU of the electronic device 100 , the usage rate of the GPU of the electronic device 100 , the usage rate of the DDR of the electronic device 100 , and the usage rate of the Codec of the electronic device 100 .

[0383] The usage rate of the hardware in the electronic device 100 is greater than the preset value, which means that the usage rate of the CPU of the electronic device 100 is greater than the preset value and / or the usage rate of the GPU of the electronic device 100 is greater than the preset value and / or the usage rate of the DDR of the electronic device 100 is greater than the preset value and / or the usage rate of the Codec of the electronic device 100 is greater than the preset value.

[0384] S1504. When the electronic device 100 determines that the usage rate of the hardware in the electronic device 100 is greater than a preset value, the electronic device 100 executes screen projection effect adjustment strategy one.

[0385] The first screen projection effect adjustment strategy increases the operating frequency of the hardware in the electronic device 100. For example, when the electronic device 100 detects that the CPU usage rate is greater than the preset value, the electronic device 100 increases the CPU operating frequency from frequency 1 to frequency 2. Among them, frequency 2 is less than the maximum operating frequency, and the maximum operating frequency is to limit the CPU operating frequency from being too high, resulting in problems such as heat and excessive power consumption.

[0386] For details on how the electronic device 100 performs the screen projection effect adjustment strategy 1, please refer to Fig. 9 The embodiments shown in this application will not be described in detail here.

[0387] It should be noted that, for S1503 and S1504, the electronic device 100 may detect that the usage rate of the hardware in the electronic device 100 is higher than the preset value, and execute the screen projection effect adjustment strategy one; or the display device 200 may detect that the usage rate of the hardware in the electronic device 100 is higher than the preset value, and the display device 200 sends an indication information to the electronic device 100, and the indication information is used to instruct the electronic device 100 to execute the screen projection effect adjustment strategy one.

[0388] It should be noted that, when the electronic device 100 detects that the usage rate of the hardware in the electronic device 100 is less than a preset value, the electronic device 100 may not execute S1504.

[0389] S1505. The display device 200 determines whether the usage rate of the hardware in the display device 200 is greater than a preset value?

[0390] If the display device 200 determines that the usage rate of the hardware in the display device 200 is greater than the preset value, the display device 200 executes S1506 , otherwise the electronic device 100 executes S1507 .

[0391] The usage rate of the hardware in the display device 200 includes the usage rate of the CPU of the display device 200 , the usage rate of the GPU of the display device 200 , the usage rate of the DDR of the display device 200 , and the usage rate of the Codec of the display device 200 .

[0392] The usage rate of the hardware in the display device 200 is greater than the preset value, which means that the usage rate of the CPU of the display device 200 is greater than the preset value and / or the usage rate of the GPU of the display device 200 is greater than the preset value and / or the usage rate of the DDR of the display device 200 is greater than the preset value and / or the usage rate of the Codec of the display device 200 is greater than the preset value.

[0393] S1506. When the display device 200 determines that the usage rate of the hardware in the display device 200 is greater than the preset value, the display device 200 executes the screen projection effect adjustment strategy one.

[0394] The first screen projection effect adjustment strategy increases the operating frequency of the hardware in the display device 200. For example, when the display device 200 detects that the CPU usage is greater than the preset value, the display device 200 increases the CPU operating frequency from frequency 1 to frequency 2. Among them, frequency 2 is less than the maximum operating frequency, and the maximum operating frequency is to limit the CPU operating frequency from being too high, resulting in heat and excessive power consumption.

[0395] For details on how the display device 200 performs the screen projection effect adjustment strategy 1, please refer to Fig.10 The embodiments shown in this application will not be described in detail here.

[0396] It should be noted that, when the display device 200 detects that the usage rate of the hardware in the display device 200 is less than a preset value, the display device 200 may not execute S1506.

[0397] It should be noted that, for S1505 and S1506, the display device 200 may detect that the usage rate of the hardware in the display device 200 is higher than the preset value, and execute the screen projection effect adjustment strategy one; or the electronic device 100 may detect that the usage rate of the hardware in the display device 200 is higher than the preset value, and the electronic device 100 sends an indication information to the display device 200, and the indication information is used to instruct the display device 200 to execute the screen projection effect adjustment strategy one.

[0398] S1505 and S1506 may also be executed after S1502. This application does not limit the execution order of S1503 and S1504, S1505 and S1506.

[0399] When the screen projection delay is greater than the preset delay or the screen projection frame rate difference is greater than the preset frame rate difference due to high network load, the electronic device 100 can reduce the data transmission rate between the electronic device 100 and the display device 200.

[0400] Specifically, S1507-S1508 describe the method flow of the electronic device 100 reducing the data transmission rate between the electronic device 100 and the display device 200. It should be noted that the method flow of the electronic device 100 reducing the data transmission rate between the electronic device 100 and the display device 200 may include more or fewer steps than S1507-S1508, and the present application does not limit this. In addition, the present application does not limit the execution order of each step in S1507-S1508.

[0401] S1507 and S1508 may also be executed after S1502 or S1504 or S1506. This application does not limit the execution order of S1503 and S1504, S1505 and S1506, and S1507 and S1508.

[0402] S1507. Is the data transmission delay between the electronic device 100 and the display device 200 monitored by the electronic device 100 greater than a preset value?

[0403] If the electronic device 100 determines that the data transmission delay between the electronic device 100 and the display device 200 is greater than a preset value, the electronic device 100 executes S1508 ; otherwise, the electronic device 100 executes S1509 .

[0404] The data transmission delay between the electronic device 100 and the display device 200 refers to the time difference between the moment when the projected content leaves the electronic device 100 and the moment when the projected content arrives at the display device 200.

[0405] S1508. The electronic device 100 monitors that the data transmission delay between the electronic device 100 and the display device 200 is greater than the preset delay, and the electronic device 100 executes the second screen projection effect adjustment strategy.

[0406] The second screen projection effect adjustment strategy reduces the screen projection bit rate between the electronic device 100 and the display device 200. When the electronic device 100 detects that the data transmission delay between the electronic device 100 and the display device 200 is greater than the preset delay, the electronic device 100 reduces the screen projection bit rate from bit rate 1 to bit rate 2. Bit rate 2 is greater than the minimum screen projection bit rate.

[0407] For details on how the electronic device 100 performs the second screen projection effect adjustment strategy, please refer to Fig.11 The embodiments shown in this application will not be described in detail here.

[0408] It should be noted that, for S1507 and S1508, the electronic device 100 may detect that the data transmission delay in the electronic device 100 is greater than the preset delay, and execute the second screen projection effect adjustment strategy; or the display device 200 may detect that the data transmission delay in the electronic device 100 is greater than the preset delay, and the display device 200 sends an indication information to the electronic device 100, and the indication information is used to instruct the electronic device 100 to execute the second screen projection effect adjustment strategy.

[0409] It should be noted that when the electronic device 100 monitors that the data transmission delay between the electronic device 100 and the display device 200 is less than the preset delay, the electronic device 100 does not execute S1508.

[0410] When the network load is high, or the time of the electronic device 100 is long or the image synthesis time of the display device 200 is long, resulting in the screen projection delay being greater than the preset delay or the screen projection frame rate difference being greater than the preset frame rate difference, the electronic device 100 can reduce the sampling frame rate between the electronic device 100 and the display device 200.

[0411] Specifically, S1509-S1510 describe the method flow of the electronic device 100 reducing the sampling frame rate between the electronic device 100 and the display device 200. It should be noted that the method flow of the electronic device 100 reducing the sampling frame rate between the electronic device 100 and the display device 200 may include more or fewer steps than S1509-S1510, and the present application does not limit this. In addition, the present application does not limit the execution order of each step in S1509-S1510.

[0412] S1509 and S1510 may also be executed after S1502 or S1504 or S1506 or S1508. The present application does not limit the execution order of S1503 and S1504, S1505 and S1506, S1507 and S1508, and S1509 and S1510.

[0413] S1509. Is the hardware usage rate of the display device 200 greater than a preset value, or the image synthesis time of the electronic device 100 greater than a preset time, or the image synthesis time of the display device 200 greater than a preset time?

[0414] When the data transmission delay is greater than the preset delay, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 executes S1510. Otherwise, the electronic device 100 executes S1511.

[0415] The image synthesis time of the electronic device 100 is the time taken by the electronic device 100 to synthesize a preset number of image frames (eg, 1 frame).

[0416] The image synthesis time of the display device 200 is the time taken by the display device 200 to synthesize a preset number of image frames (eg, 1 frame).

[0417] S1510. When the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 executes the screen projection effect adjustment strategy three.

[0418] The third screen projection effect adjustment strategy reduces the sampling frame rate on the electronic device 100 side. Exemplarily, when the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 reduces the sampling frame rate from frame rate 1 to frame rate 2. Frame rate 2 is greater than the minimum sampling frame rate. The minimum sampling frame rate is to prevent the sampling frame rate from being too low, resulting in serious frame loss problems.

[0419] For details on how the electronic device 100 performs the second screen projection effect adjustment strategy, please refer to Fig.12 The embodiments shown in this application will not be described in detail here.

[0420] It should be noted that when the hardware usage of the display device 200 is less than the preset value and the image synthesis time of the electronic device 100 is less than the preset time, the electronic device 100 does not execute S1510.

[0421] It should be noted that, for S1509 and S1510, the electronic device 100 may monitor that the data transmission delay is greater than the preset delay, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, and then execute the projection effect adjustment strategy three; or the display device 200 may monitor that the data transmission delay is greater than the preset delay, or the image synthesis time of the electronic device 100 is greater than the preset time, or the image synthesis time of the display device 200 is greater than the preset time, and the display device 200 sends an indication information to the electronic device 100, and the indication information is used to instruct the electronic device 100 to execute the projection effect adjustment strategy three.

[0422] When the load of the display device 200 is high, or the time of the electronic device 100 is long or the image synthesis time of the display device 200 is long, resulting in the screen projection delay being greater than the preset delay or the screen projection frame rate difference being greater than the preset frame rate difference, the display device 200 can reduce the display frame rate of the display device 200.

[0423] Specifically, S1511-S1512 describe the method flow of the display device 200 reducing the display frame rate of the display device 200. It should be noted that the method flow of the display device 200 reducing the display frame rate of the display device 200 may include more or fewer steps than S1509-S1510, and this application does not limit this. In addition, this application does not limit the execution order of each step in S1511-S1512.

[0424] S1511 and S1512 may also be executed after S1502 or S1504 or S1506 or S1508 or S1510. This application does not limit the execution order of S1503 and S1504, S1505 and S1506, S1507 and S1508, S1509 and S1510, and S1511 and S1512.

[0425] S1511. Is the hardware usage rate of the display device 200 greater than a preset value, or is the image synthesis time of the display device 200 greater than a preset time?

[0426] When the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, the display device 200 executes S1512. Otherwise, the display device 200 executes S1513.

[0427] S1512. When the hardware usage rate of the display device 200 is greater than a preset value, or the image synthesis time of the display device 200 is greater than a preset time, the display device 200 executes screen projection effect adjustment strategy four.

[0428] The screen projection effect adjustment strategy 4 reduces the display frame rate on the electronic device 100. For example, when the hardware usage of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, the display device 200 reduces the display frame rate from frame rate 4 to frame rate 5. Frame rate 5 is greater than the minimum display frame rate.

[0429] For details on how the display device 200 performs the second screen projection effect adjustment strategy, please refer to Fig.13 The embodiments shown in this application will not be described in detail here.

[0430] It should be noted that when the hardware usage rate of the display device 200 is less than a preset value and the image synthesis time of the display device 200 is less than a preset time, the display device 200 does not execute S1512.

[0431] It should be noted that, for S1511 and S1512, the display device 200 may detect that the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, and then the screen projection effect adjustment strategy three is executed; or the electronic device 100 may detect that the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, and the electronic device 100 sends an indication information to the display device 200, and the indication information is used to instruct the display device 200 to execute the screen projection effect adjustment strategy four.

[0432] When the load of the display device 200 is high, or the time of the electronic device 100 is long or the image synthesis time of the display device 200 is long, resulting in the screen projection delay being greater than the preset delay or the screen projection frame rate difference being greater than the preset frame rate difference, the electronic device 100 can reduce the screen projection resolution of the electronic device 100.

[0433] Specifically, S1513-S1514 describes a method flow of the electronic device 100 reducing the projection resolution of the electronic device 100. It should be noted that the method flow of the electronic device 100 reducing the projection resolution of the electronic device 100 may include more or fewer steps than S1513-S1514, and this application does not limit this. In addition, this application does not limit the execution order of each step in S1513-S1514.

[0434] S1513 and S1514 can also be executed after S1502 or S1504 or S1506 or S1508 or S1510 or S1512. This application does not limit the execution order of S1503 and S1504, S1505 and S1506, S1507 and S1508, S1509 and S1510, S1511 and S1512, S1513 and S1514.

[0435] S1513: Is the hardware usage rate of the display device 200 greater than a preset value, or is the image synthesis time of the display device 200 greater than a preset time?

[0436] When the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 executes S1514. Otherwise, the electronic device 100 executes S1503.

[0437] S1514. When the hardware usage rate of the display device 200 is greater than a preset value, or the image synthesis time of the display device 200 is greater than a preset time, the electronic device 100 executes screen projection effect adjustment strategy five.

[0438] The projection effect adjustment strategy 5 reduces the projection resolution of the electronic device 100. For example, when the hardware usage of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, the electronic device 100 reduces the projection resolution from resolution 1 to resolution 2. Resolution 2 is greater than the minimum projection resolution.

[0439] For details on how the electronic device 100 implements the fifth screen projection effect adjustment strategy, please refer to Fig.14 The embodiments shown in this application will not be described in detail here.

[0440] It should be noted that, when the hardware usage rate of the display device 200 is less than a preset value, and the image synthesis time of the display device 200 is less than a preset time, the display device 200 does not execute S1514.

[0441] It should be noted that, for S1513 and S1514, the electronic device 100 may detect that the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, and then the electronic device 100 executes the screen projection effect adjustment strategy five; or the display device 200 may detect that the hardware usage rate of the display device 200 is greater than the preset value, or the image synthesis time of the display device 200 is greater than the preset time, and the display device 200 sends an indication information to the electronic device 100, and the indication information is used to instruct the electronic device 100 to execute the screen projection effect adjustment strategy five.

[0442] like Fig.16 As shown, Fig.16 A method flow chart of another screen projection method is exemplified.

[0443] S1601. The electronic device 100 establishes a screen projection connection with the display device 200.

[0444] For the method of establishing a screen projection connection between the electronic device 100 and the display device 200, please refer to Figure 7A-7D The embodiments shown are not described in detail in this application.

[0445] The electronic device 100 is not limited to the above two methods of establishing a screen projection connection with the display device 200. The electronic device 100 can also establish a screen projection connection with the display device 200 in other ways, and this application does not limit this.

[0446] S1602. The electronic device 100 determines that the screen projection parameters meet the first condition, adjusts the first parameter of the electronic device to the first value, and adjusts the second parameter of the electronic device to the second value according to the first-level adjustment strategy.

[0447] The electronic device 100 determines that the screen projection parameters meet the first condition, or determines that the screen projection effect does not meet the preset condition.

[0448] The screen projection parameters include screen projection delay and / or screen projection frame rate difference. The screen projection delay is the difference between the time when the electronic device 100 obtains the first screen projection content and the time when the display device 200 displays the first screen projection content.

[0449] The projection frame rate difference is the frame rate difference between the sampling frame rate of the electronic device 100 and the display frame rate of the display device 200 .

[0450] Before the electronic device 100 determines that the screen projection parameters meet the first condition, or determines that the screen projection effect does not meet the preset condition, and the electronic device 100 adjusts the first parameter of the electronic device to the first value according to the first-level adjustment strategy using the screen projection effect adjustment strategy, the method also includes: the electronic device obtains a third parameter and a fourth parameter; wherein the screen projection parameters include a screen projection delay, the fourth parameter includes the first moment when the display device displays the first projection frame in the first projection content, and the fifth parameter includes the second moment when the electronic device sends the first projection frame; the electronic device determines the screen projection delay based on the first moment and the second moment; the first condition includes: the screen projection delay is greater than the preset delay; and / or, the screen projection parameters include a screen projection frame rate difference, the fourth parameter includes the first frame rate at which the display device displays the first projection frame, and the fifth parameter includes the second frame rate at which the electronic device obtains the first projection frame; the electronic device determines the screen frame rate difference based on the first frame rate and the second frame rate; the first condition includes: the screen projection frame rate difference is greater than the preset frame rate difference.

[0451] When the screen projection parameter is the screen projection delay, the first condition is that the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection delay is greater than the preset delay. When the screen projection parameter is the screen projection frame rate difference, the first condition is that the screen projection frame rate difference is greater than the preset frame rate difference, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference. The screen projection parameters are the screen projection frame rate difference and the screen projection delay. The first condition is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay, that is, the basis for the electronic device to determine that the screen projection effect is not good is that the screen projection frame rate difference is greater than the preset frame rate difference and / or the screen projection delay is greater than the preset delay.

[0452] Alternatively, the electronic device 100 determines that the screen projection effect does not meet the preset conditions. In a possible implementation, the electronic device can comprehensively measure the screen projection effect according to the screen projection delay and the screen projection frame rate difference according to the following formula:

[0453] ast_cost=(delay-delay_base) / delay_base*0.5+fps_diff / fps_base*0.5

[0454] As can be seen from the above formula, delay represents the screen projection delay, which is measured in real time by the electronic device 100. delay_base represents the screen projection benchmark delay, which is a preset value, and the general screen projection benchmark delay is 50ms or 100ms. fps_diff represents the screen projection frame rate difference, which is measured in real time by the electronic device 100. fps_base represents the screen projection benchmark frame rate difference, which is a preset value, and the general screen projection benchmark delay is 60hz. The value range of cast_cost is 0-1. The electronic device can measure the screen projection effect according to cast_cost, that is, when the electronic device determines that cast_cost is greater than a preset value (for example, 0.25), the electronic device determines that the screen projection effect does not meet the preset conditions.

[0455] When the electronic device 100 determines that the screen projection effect does not meet the preset conditions or the screen projection parameters meet the first conditions, the electronic device can adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and adjust the second parameter of the electronic device to the second value; the electronic device can also adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and then adjust the second parameter of the electronic device to the second value; the electronic device can also adjust the second parameter of the electronic device to the first value according to the first-level adjustment strategy, and then adjust the first parameter of the electronic device to the first value. The order in which the electronic device adjusts the first parameter and the second parameter is not limited here.

[0456] When the electronic device determines that the screen projection effect does not meet the preset conditions, the first parameter of the electronic device is adjusted to the first value and the second parameter of the electronic device is adjusted to the second value through the first-level adjustment strategy. Afterwards, when the electronic device determines that the screen projection effect still does not meet the preset conditions, the first parameter will continue to be adjusted to the third value and the second parameter will be adjusted to the fourth value according to the second-level adjustment strategy. And the third value is less than the first threshold, and the fourth value is less than the second threshold. In this way, the electronic device adopts a hierarchical adjustment strategy, and will not adjust the first parameter and the second parameter too much at one time, but will adjust slowly. After adjusting the parameters, when the electronic device determines that the screen projection effect is still not good, it adjusts the first parameter and the second parameter again. In this way, a humanized adjustment parameter is achieved through a hierarchical adjustment strategy, and the adjustment is made with the goal of reducing the impact on the user.

[0457] In some embodiments, when the electronic device determines that the screen projection effect is not good and determines that the first load meets the second condition, the electronic device adjusts the first parameter of the electronic device to the first value and adjusts the second parameter of the electronic device to the second value according to the first-level adjustment strategy.

[0458] The first parameter and the second parameter are closely related to the first load. Exemplarily, when the first load is the usage rate of the hardware (such as CPU or GPU or DDR or encoder) in the electronic device, and the CPU and GPU in the electronic device are greater than the preset usage rate, the second parameter is the operating frequency of the CPU, and the third parameter is the operating frequency of the GPU. Exemplarily, when the data transmission delay in the electronic device is greater than the preset delay, the second parameter is the screen projection code rate of the electronic device. Exemplarily, when the image synthesis time on the electronic device side is greater than the preset time or the usage rate of the hardware in the electronic device is greater than the preset usage rate, the second parameter is the sampling frame rate of the electronic device. Exemplarily, when the image synthesis time of the display device is greater than the preset time or the usage rate of the hardware in the display device is greater than the preset usage rate, the second parameter is the screen projection resolution of the electronic device. That is, only when the first load meets certain conditions, that is, the first load is too high, the electronic device will adjust the first parameter or the second parameter. In this way, the electronic device can determine the cause of the poor screen projection effect and take corresponding measures to improve the screen projection effect.

[0459] The first parameter and the second parameter include any one of the following: the operating frequency of the CPU in the electronic device, the operating frequency of the GPU in the electronic device, the operating frequency of the encoder in the electronic device, the operating frequency of the DDR in the electronic device, the projection bit rate of the electronic device, the sampling frame rate of the electronic device, and the projection resolution of the electronic device; the first parameter is different from the second parameter.

[0460] The electronic device may adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and at the same time adjust the second parameter of the electronic device to the second value; the electronic device may also adjust the first parameter of the electronic device to the first value according to the first-level adjustment strategy, and then adjust the second parameter of the electronic device to the second value; the electronic device may also adjust the second parameter of the electronic device to the first value according to the first-level adjustment strategy, and then adjust the first parameter of the electronic device to the first value. The order in which the electronic device adjusts the first parameter and the second parameter is not limited here.

[0461] In some embodiments, the first parameter and the second parameter are prioritized. For example, the first parameter may be Fig.15 The operating frequency of the hardware of the electronic device 100 in the screen projection effect adjustment strategy 1 described in the embodiment; the second parameter can be Fig.15 The operating frequency of the hardware of the electronic device 100 in the second screen projection effect adjustment strategy described in the embodiment. For example, the first parameter can also be Fig.15 The screen projection code rate of the electronic device 100 in the screen projection effect adjustment strategy 2 described in the embodiment; the second parameter can be Fig.15 The first parameter and the second parameter can be combined arbitrarily, and this application does not limit this. Specifically, how the electronic device 100 adjusts the first parameter and the second parameter can refer to Fig.15 The embodiments shown in this application will not be described in detail here.

[0462] In some embodiments, when the electronic device 100 determines that the screen projection effect is not good, the electronic device 100 may also send a first message to the display device 200, the first message being used to instruct the display device 200 to adjust a third parameter of the display device; after receiving the first message, the display device 200 adjusts the third parameter of the display device. In this way, the electronic device 100 can adjust the parameters of the electronic device 100 and the display device 200, thereby realizing multi-terminal adjustment.

[0463] In a possible implementation, the display device may not receive the first information sent by the electronic device, and when the display device detects that the screen projection effect does not meet the preset condition, the display device adjusts the third parameter of the display device. In this way, the display device can monitor the screen projection effect on the display device side and adjust the third parameter in real time according to the screen projection effect.

[0464] In a possible implementation, the display device is further configured to adjust the third parameter to a fifth value after receiving the first information, wherein the fifth value is less than the third preset value, so as to avoid the problem that the adjustment range of the third parameter is too large and affects the user experience.

[0465] The third parameter includes any one of the following: the operating frequency of the CPU in the display device, the operating frequency of the GPU in the display device, the operating frequency of the decoder in the display device, the operating frequency of the DDR in the display device, and the display frame rate of the display device. For how to adjust the third parameter of the display device, please refer to Fig.15 In the embodiment, how the display device 200 adjusts the third parameter according to the screen projection effect adjustment strategy one and the screen projection effect adjustment strategy four is not described in detail in this application.

[0466] S1603: After the electronic device adjusts the first parameter of the electronic device to the first value and adjusts the second parameter of the electronic device to the second value, determine that the screen projection parameter satisfies the first condition.

[0467] After the electronic device adjusts the first parameter of the electronic device to the first value and adjusts the second parameter of the electronic device to the second value, how the electronic device 100 determines whether the screen projection parameter meets the first condition, or how the electronic device 100 determines that the screen projection effect does not meet the preset condition, please refer to the embodiment described in S1602, and this application will not go into details here.

[0468] S1604: The electronic device adjusts the first parameter of the electronic device to a third value and the second parameter of the electronic device to a fourth value according to the second-level adjustment strategy.

[0469] When the electronic device determines that the screen projection effect does not meet the preset conditions, the first parameter of the electronic device is adjusted to the first value and the second parameter of the electronic device is adjusted to the second value through the first-level adjustment strategy. Afterwards, when the electronic device determines that the screen projection effect still does not meet the preset conditions, the first parameter will continue to be adjusted to the third value and the second parameter will be adjusted to the fourth value according to the second-level adjustment strategy. And the third value is less than the first threshold, and the fourth value is less than the second threshold. In this way, the electronic device adopts a hierarchical adjustment strategy, and will not adjust the first parameter and the second parameter too much at one time, but will adjust slowly. After adjusting the parameters, when the electronic device determines that the screen projection effect is still not good, it adjusts the first parameter and the second parameter again. In this way, a humanized adjustment parameter is achieved through a hierarchical adjustment strategy, and the adjustment is made with the goal of reducing the impact on the user.

[0470] It can be understood that the electronic device 100 adjusts the first parameter to the first value and the second parameter of the electronic device to the second value, the first value is greater than the first value, and the second value is greater than the second threshold value. The first parameter and the second parameter will not be adjusted too much at one time, but will be adjusted slowly. After the electronic device 100 adjusts the first parameter to the first value and the second parameter of the electronic device to the second value, and determines that the screen projection parameter meets the first condition, or determines that the screen projection effect does not meet the preset condition, the electronic device 100 adjusts the first parameter to the third value and the second parameter of the electronic device to the fourth value according to the second-level adjustment strategy, the first value is less than the first value, and the second value is less than the second threshold value. In this way, after adjusting the parameters, when the electronic device determines that the screen projection effect is still not good, it adjusts the first parameter and the second parameter again. In this way, a humanized adjustment parameter is achieved through a hierarchical adjustment strategy, and the adjustment is made with the goal of reducing the impact on users.

[0471] In some embodiments, the third value is greater than the third threshold, and the fourth value is greater than the fourth threshold, that is, both the first parameter and the second parameter have the lowest threshold, thus avoiding the problem that the adjustment range of the first parameter and the second parameter is too large, thus affecting the user experience.

[0472] In some embodiments, when the electronic device determines that the screen projection effect is not good and determines that the first load meets the second condition, the electronic device adjusts the first parameter of the electronic device to the third value and the second parameter of the electronic device to the fourth value according to the second-level adjustment strategy.

[0473] The first parameter and the second parameter are closely related to the first load. Exemplarily, when the first load is the usage rate of the hardware (such as CPU or GPU or DDR or encoder) in the electronic device, and the CPU and GPU in the electronic device are greater than the preset usage rate, the second parameter is the operating frequency of the CPU, and the third parameter is the operating frequency of the GPU. Exemplarily, when the data transmission delay in the electronic device is greater than the preset delay, the second parameter is the screen projection code rate of the electronic device. Exemplarily, when the image synthesis time on the electronic device side is greater than the preset time or the usage rate of the hardware in the electronic device is greater than the preset usage rate, the second parameter is the sampling frame rate of the electronic device. Exemplarily, when the image synthesis time of the display device is greater than the preset time or the usage rate of the hardware in the display device is greater than the preset usage rate, the second parameter is the screen projection resolution of the electronic device. That is, only when the first load meets certain conditions, that is, the first load is too high, the electronic device will adjust the first parameter or the second parameter. In this way, the electronic device can determine the cause of the poor screen projection effect and take corresponding measures to improve the screen projection effect.

[0474] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0475] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to monitoring...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is monitored" may be interpreted to mean "if it is determined..." or "in response to determining..." or "upon monitoring (the stated condition or event)" or "in response to monitoring (the stated condition or event)", depending on the context.< / canvas> < / video> < / videoview> < / imgview> < / textview>

Claims

1. A screen projection system, characterized in that: The system includes an electronic device and a display device; wherein, The electronic device is used to establish a screen projection connection with the display device; The electronic device is further configured to send the first screen projection content to the display device through the screen projection connection; The display device is used to display a screen projection interface based on the first screen projection content; The electronic device is further configured to adjust the first parameter of the electronic device to a first value and the second parameter of the electronic device to a second value according to a first-level adjustment strategy when it is determined that the screen projection parameter satisfies the first condition; wherein the first value is greater than a first threshold value, and the second value is greater than a second threshold value; After the electronic device adjusts the first parameter of the electronic device to the first value and the second parameter of the electronic device to the second value, when it is determined that the screen projection parameter meets the first condition, the first parameter of the electronic device is adjusted to a third value and the second parameter of the electronic device is adjusted to a fourth value according to a second-level adjustment strategy; wherein the third value is less than the first threshold value, and the fourth value is less than the second threshold value; Among them, the screen projection parameters include screen projection delay, the first condition includes: the screen projection delay is greater than the preset delay, and / or the screen projection parameters include screen projection frame rate difference, the first condition includes: the screen projection frame rate difference is greater than the preset frame rate difference.

2. The system according to claim 1, characterized in that The electronic device is further used to send first information to the display device, where the first information is used to instruct the display device to adjust a third parameter of the display device; The display device is further used to adjust a third parameter of the display device after receiving the first information.

3. The system according to claim 2, characterized in that The first parameter and the second parameter include any one of the following: an operating frequency of a central processing unit (CPU) in the electronic device, an operating frequency of a graphics processing unit (GPU) in the electronic device, an operating frequency of an encoder in the electronic device, an operating frequency of a double rate synchronous dynamic random access memory (DDR) in the electronic device, a screen projection code rate of the electronic device, a sampling frame rate of the electronic device, and a screen projection resolution of the electronic device; the first parameter is different from the second parameter; The third parameter includes any one of the following: the operating frequency of the CPU in the display device, the operating frequency of the GPU in the display device, the operating frequency of the decoder in the display device, the operating frequency of the DDR in the display device, and the display frame rate of the display device.

4. The system according to any one of claims 1 to 3, characterized in that: The electronic device is further configured to obtain a fourth parameter and a fifth parameter before adjusting the first parameter of the electronic device to the first value according to the first-level adjustment strategy; The screen projection parameters include screen projection delay, the fourth parameter includes the first moment when the display device displays the first screen projection frame in the first screen projection content, and the fifth parameter includes the second moment when the electronic device sends the first screen projection frame; The electronic device is further used to determine the screen projection delay based on the first moment and the second moment; The first condition includes: the screen projection delay is greater than a preset delay; and / or, The screen projection parameter includes a screen projection frame rate difference, the fourth parameter includes a first frame rate at which the display device displays the first screen projection content, and the fifth parameter includes a second frame rate at which the electronic device acquires the first screen projection content; The electronic device is further configured to determine the screen projection frame rate difference based on the first frame rate and the second frame rate; The first condition includes: the projection frame rate difference is greater than a preset frame rate difference.

5. A screen projection method, characterized in that: The method comprises: The electronic device establishes a screen projection connection with the display device; The electronic device sends the first screen projection content to the display device through the screen projection connection; the first screen projection content is displayed on the screen projection interface of the display device; When it is determined that the screen projection parameter satisfies the first condition, the electronic device adjusts the first parameter of the electronic device to a first value and adjusts the second parameter of the electronic device to a second value according to the first-level adjustment strategy; wherein the first value is greater than a first threshold value, and the second value is greater than a second threshold value; After the electronic device adjusts the first parameter of the electronic device to the first value and the second parameter of the electronic device to the second value, when it is determined that the screen projection parameter meets the first condition, the electronic device adjusts the first parameter of the electronic device to a third value and the second parameter of the electronic device to a fourth value according to the second-level adjustment strategy; wherein the third value is less than the first threshold value, and the fourth value is less than the second threshold value; Among them, the screen projection parameters include screen projection delay, the first condition includes: the screen projection delay is greater than the preset delay, and / or the screen projection parameters include screen projection frame rate difference, the first condition includes: the screen projection frame rate difference is greater than the preset frame rate difference.

6. The method according to claim 5, characterized in that The method further comprises: The electronic device sends first information to the display device, where the first information is used to instruct the display device to adjust a third parameter of the display device.

7. The method according to claim 6, characterized in that The first parameter and the second parameter include any one of the following: an operating frequency of a central processing unit (CPU) in the electronic device, an operating frequency of a graphics processing unit (GPU) in the electronic device, an operating frequency of an encoder in the electronic device, an operating frequency of a double rate synchronous dynamic random access memory (DDR) in the electronic device, a screen projection code rate of the electronic device, a sampling frame rate of the electronic device, and a screen projection resolution of the electronic device; the first parameter is different from the second parameter; The third parameter includes any one of the following: the operating frequency of the CPU in the display device, the operating frequency of the GPU in the display device, the operating frequency of the decoder in the display device, the operating frequency of the DDR in the display device, and the display frame rate of the display device.

8. The method according to any one of claims 5 to 7, characterized in that: Before the electronic device determines that the screen projection parameter satisfies the first condition and adjusts the first parameter of the electronic device to the first value according to the first-level adjustment strategy, the method further includes: The electronic device acquires a fourth parameter and a fifth parameter; The screen projection parameters include screen projection delay, the fourth parameter includes the first moment when the display device displays the first screen projection frame in the first screen projection content, and the fifth parameter includes the second moment when the electronic device sends the first screen projection frame; The electronic device determines the screen projection delay based on the first moment and the second moment; The first condition includes: the screen projection delay is greater than a preset delay; and / or, The screen projection parameter includes a screen projection frame rate difference, the fourth parameter includes a first frame rate at which the display device displays the first screen projection content, and the fifth parameter includes a second frame rate at which the electronic device acquires the first screen projection content; The electronic device determines the screen projection frame rate difference based on the first frame rate and the second frame rate; The first condition includes: the projection frame rate difference is greater than a preset frame rate difference.

9. An electronic device, characterized in that: The electronic device includes: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute any of the methods described in claims 5-8.

10. A readable storage medium, used for storing computer instructions, when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 5 to 8.