Display method and device for screen projection, electronic device, and readable storage medium
By adjusting the maximum brightness threshold and pixel grayscale value of the color channel of the slave device, the problem of low color reproduction caused by the color difference between the master and slave devices during screen projection is solved, achieving higher color reproduction and display effect consistency.
Patent Information
- Application Number
- CN202011298027.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-11-18
AI Technical Summary
During screencasting, the color difference between the master and slave devices is large, resulting in poor color reproduction and inability to effectively maintain the display effect of the original device.
By adjusting the maximum brightness threshold of the color channel of the slave device, based on the inconsistent display color temperature of the master device and the slave device, the target brightness threshold on the slave device is adjusted, and adjusted according to the grayscale value of the color channel of each pixel to achieve color optimization. Approximate restoration.
The color reproduction of the screen to be projected is improved, making the display effect on the slave device closer to that of the master device, and improving the consistency of the display effect of the screen projection.
Smart Images

Figure CN112506455B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for displaying a screen to be projected, an electronic device, and a readable storage medium. Background Art
[0002] Currently, the screen projection function is increasingly widely used in electronic devices. By establishing a communication connection between a master device and a slave device, the content to be displayed can be transmitted from the master device to the slave device so that it can be displayed on the slave device. This greatly facilitates users to watch the content displayed on the device on another device, for example, it is often used in conference scenarios.
[0003] However, if the color difference between the master and slave devices of the projection screen is large, the color after projection cannot restore the display effect of the master device well, resulting in poor color restoration between the master and slave devices. Summary of the invention
[0004] The embodiments of the present application provide a method and device for displaying a screen to be projected, an electronic device, and a readable storage medium, which can improve the color reproduction of the screen to be projected.
[0005] A method for displaying a screen to be projected, the method comprising:
[0006] In response to the screen projection instruction, receiving the screen to be projected sent by the main device;
[0007] When it is determined that the display color temperatures of the master device and the slave device are inconsistent, the maximum brightness threshold of each color channel on the slave device is adjusted according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device to obtain a target brightness threshold of each color channel on the slave device;
[0008] According to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, adjust the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device;
[0009] Based on the adjusted grayscale values of each color channel of each pixel, a projection screen is generated by displaying it on the slave device.
[0010] A display device for a screen to be projected, the device comprising:
[0011] A screen-to-be-projected picture receiving module is used to receive the screen-to-be-projected picture sent by the main device in response to the screen projection instruction;
[0012] a brightness threshold adjustment module, configured to adjust the maximum brightness threshold of each color channel on the slave device according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device when it is determined that the display color temperatures of the master device and the slave device are inconsistent, so as to obtain a target brightness threshold of each color channel on the slave device;
[0013] A grayscale value adjustment module, used to adjust the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device;
[0014] The display module is used to generate a projection screen by displaying it on the slave device based on the adjusted grayscale values of each color channel of each pixel.
[0015] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for displaying a screen to be projected as described above.
[0016] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for displaying a screen to be projected as described above.
[0017] The above-mentioned display method and device for the screen to be projected, electronic device, and computer-readable storage medium receive the screen to be projected sent by the master device in response to the screen projection instruction. When it is determined that the display color temperature of the master device and the slave device are inconsistent, the maximum brightness threshold of each color channel on the slave device is adjusted according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device to obtain the target brightness threshold of each color channel on the slave device. According to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device is adjusted. Based on the adjusted grayscale value of each color channel of each pixel, the projected screen is displayed on the slave device.
[0018] Because the maximum brightness threshold of each color channel on the slave device is adjusted, the target brightness threshold of each color channel on the slave device is obtained. Then, based on the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, the grayscale value of each color channel of each pixel is adjusted when the screen to be projected is displayed on the slave device. In this way, the color temperature of the screen to be projected displayed on the slave device can be similar to that of the screen to be projected on the master device, thereby improving the color reproduction of the screen to be projected. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 This is a diagram of an application environment of a method for displaying a screen to be projected in one embodiment;
[0021] Figure 2 This is a flow chart of a method for displaying a screen to be projected in one embodiment;
[0022] Figure 3 A schematic diagram of a display signal processing process during screen projection in one embodiment;
[0023] Figure 4 for Figure 2 The maximum brightness threshold of each color channel on the slave device is adjusted to obtain a flow chart of a target brightness threshold method for each color channel on the slave device;
[0024] Figure 5 A schematic diagram of a method for obtaining a target brightness threshold value for each color channel on a slave device by adjusting the maximum brightness threshold value for each color channel on the slave device according to a first brightness threshold value ratio and a second brightness threshold value ratio in an embodiment;
[0025] Figure 6 for Figure 2 A schematic diagram of a method for adjusting the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device;
[0026] Fig. 7A A schematic diagram of a gamma curve of a color channel of display device A;
[0027] Figure 7B It is a schematic diagram of the gamma curve of a color channel of display devices A and B;
[0028] Figure 8 It is a structural block diagram of a display device for projecting a picture in one embodiment;
[0029] Fig. 9 for Figure 8 The structural block diagram of the medium brightness threshold adjustment module;
[0030] Fig.10 FIG. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] Figure 1 FIG. 1 is an application scenario diagram of a method for displaying a screen to be projected in one embodiment. Figure 1 As shown, the application environment includes an electronic device 120 (also referred to as a master device) and an electronic device 140 (also referred to as a slave device). The master device 120 and the slave device 140 can communicate via a wired or wireless network, and the master device 120 can send the screen to be projected displayed on it to the slave device 140 for display. The slave device 140 receives the screen to be projected sent by the master device in response to the screen projection instruction through the display method of the screen to be projected in this application; when it is determined that the display color temperature of the master device and the slave device is inconsistent, the maximum brightness threshold of each color channel on the slave device is adjusted according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device, and the target brightness threshold of each color channel on the slave device is obtained; according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device; based on the adjusted grayscale value of each color channel of each pixel, the projection screen is displayed on the slave device. Here, the master device 120 and the slave device 140 can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a wearable device, a smart home, etc., and there is no restriction on the size of the display screen area of the master device 120 and the slave device 140.
[0033] Figure 2 FIG. 1 is a flow chart of a method for displaying a screen to be projected in one embodiment. Figure 1 The slave device 140 in FIG. 1 is used as an example for description. Figure 2 As shown, the method for displaying the screen to be projected includes steps 220 to 280. Among them,
[0034] Step 220, in response to the screen projection instruction, receiving the screen to be projected sent by the main device.
[0035] Among them, the master device is a device that provides the screen to be projected, and needs to send the screen to be projected to the slave device for screen projection and display. The slave device is a device that receives the screen to be projected sent by the master device and displays the screen to be projected. The screen projection instruction refers to an instruction sent by the master device to the slave device, and needs to send the screen to be projected of the master device to the slave device for screen projection and display, and the instruction carries the screen to be projected on the master device. The screen to be projected refers to the content displayed on the display screen of the master device, including images, text and other content, and this application does not limit this.
[0036] The slave device receives a screen projection instruction sent by the master device, and in response to the screen projection instruction, receives the screen to be projected sent by the master device.
[0037] Step 240, when it is determined that the display color temperatures of the master device and the slave device are inconsistent, the maximum brightness threshold of each color channel on the slave device is adjusted according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device to obtain the target brightness threshold of each color channel on the slave device.
[0038] Among them, color temperature is a unit of measurement that represents the color components contained in light. Theoretically, color temperature refers to the color presented by an absolute black body after being heated from absolute zero. Among them, after being heated, the black body will gradually change from black to red, then to yellow, white, and finally emit blue light. When the black body is heated to a certain temperature, the spectral components contained in the light emitted by the black body are called the color temperature at this temperature. Nowadays, the concept of color temperature has been widely used in electronic devices with display screens. Users can choose the appropriate color temperature by adjusting the color temperature of the display screen of the electronic device, which can not only avoid damage to the human eye, but also effectively improve work efficiency or entertainment experience.
[0039] When the screen to be projected sent by the master device is projected to the slave device to form a projected screen, if the display color temperature of the master device and the slave device is inconsistent, the color restoration of the screen to be projected and the projected screen seen by the user will be different, that is, the display effect will be different. For example, the display effect of the screen to be projected is normal, but the display effect of the projected screen may be yellowish or bluish.
[0040] Generally, electronic devices include three color channels, such as red, green, and blue, referred to as RGB channels. The maximum brightness threshold of each color channel on the master device refers to the maximum brightness threshold of the RGB channels on the master device. For an 8-bit display, when the grayscale value of the RGB channels is 255, the brightness corresponding to the RGB channels is the maximum brightness threshold of the RGB channels on the display. In this way, the maximum brightness threshold of each color channel on the master device can be obtained. The same is true for the slave device, and the maximum brightness threshold of each color channel on the slave device can be obtained.
[0041] Then, in the case where it is determined that the display color temperature of the master device and the slave device are inconsistent, if you want the display effects of the screen to be projected and the projection screen to be consistent, you need to adjust the display parameters of the slave device to make the display effects of the projection screen consistent with the screen to be projected and improve the color reproduction. Specifically, you can first adjust the maximum brightness threshold of each color channel on the slave device according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device to obtain the target brightness threshold of each color channel on the slave device. Make the ratio of the target brightness threshold of each color channel on the slave device the same as the ratio of the maximum brightness threshold of each color channel on the master device or the difference between the two is within a preset range. Because when the ratio of the maximum brightness threshold of each color channel on different devices is the same or the difference between the two is within a preset range, the color reproduction between the display pictures on the two different devices is high, and the display effects are consistent or close.
[0042] Step 260, according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, adjust the grayscale value of each color channel of each pixel when the projected image is displayed on the slave device.
[0043] After the maximum brightness threshold of each color channel on the slave device is adjusted so that the ratio of the target brightness threshold of each color channel on the slave device is the same as the ratio of the maximum brightness threshold of each color channel on the master device or the difference between the two is within a preset range, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device is adjusted. Specifically, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device is adjusted according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device.
[0044] When adjusting the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device, the adjustment can be made according to the Gamma curve. Among them, the Gamma curve, as a relationship diagram between the input signal (grayscale value) and the output brightness, plays an important role in the display effect of the display device.
[0045] Step 280, based on the adjusted grayscale values of each color channel of each pixel, a projection screen is generated and displayed on the slave device.
[0046] After adjusting the grayscale values of each color channel of each pixel when the screen to be projected is displayed on the slave device, the projected screen can be displayed on the slave device based on the adjusted grayscale values of each color channel of each pixel.
[0047] In practice, the slave device receives the display signal corresponding to the screen to be projected sent by the master device. The display signal includes the RGB grayscale value of each pixel on the screen to be projected. Figure 3 As shown, the slave device processes the received display signal through the codec module 320, the display engine 340, and the display driver IC 360, and displays the result on the display screen 380. For some display engines 340, Surface Flinger, DRM and plug-in IC are also included. Among them, color adjustment can be performed in the codec module, the display engine, and the driver IC through the display method of the screen to be projected in the embodiment of the present application, so as to achieve a high degree of color restoration and consistent or close display effects between the display screens on the master and slave devices.
[0048] In the embodiment of the present application, the target brightness threshold of each color channel on the slave device is obtained because the maximum brightness threshold of each color channel on the slave device is adjusted. Then, based on the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, the grayscale value of each color channel of each pixel is adjusted when the screen to be projected is displayed on the slave device. In this way, the color temperature of the screen to be projected displayed on the slave device can be similar to that of the screen to be projected on the master device, thereby improving the color reproduction of the screen to be projected.
[0049] In one embodiment, the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device are adjusted to obtain the target brightness threshold of each color channel on the slave device, including:
[0050] According to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device, the maximum brightness threshold of one of the color channels on the slave device is kept unchanged, and the maximum brightness thresholds of other color channels on the slave device are adjusted to obtain the target brightness threshold of each color channel on the slave device.
[0051] For example, if the red color of the master device is darker, and the red color of the slave device is brighter, then after the same display signal is transmitted to the master and slave devices, the display of the slave device will be overall redder relative to the master device. Therefore, in order to make the display color temperature of the master and slave devices consistent, the maximum brightness threshold of the green channel can be kept unchanged, and the maximum brightness thresholds of the red channel and the blue channel can be lowered to obtain the target brightness threshold of each color channel on the slave device. The display color temperature of the slave device after adjustment is similar to that of the master device, thereby improving the color reproduction of the screen to be projected.
[0052] In the embodiment of the present application, when adjusting the maximum brightness threshold of each color channel on the slave device, the maximum brightness threshold of one color channel is kept unchanged, and the maximum brightness thresholds of other color channels except the color channel are reduced, so as to obtain the target brightness threshold of each color channel on the slave device. The display color temperature of the slave device after adjustment is consistent with the display color temperature of the master device.
[0053] In one embodiment, Figure 4 As shown, step 240, according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the slave device is adjusted to obtain the target brightness threshold of each color channel on the slave device, including:
[0054] Step 242, determining a first brightness threshold ratio of the master device according to the maximum brightness thresholds of each color channel on the master device; wherein the first brightness threshold ratio is the ratio of the maximum brightness threshold of the red channel on the master device, the maximum brightness threshold of the green channel on the master device, and the maximum brightness threshold of the blue channel on the master device.
[0055] When the maximum brightness threshold of each color channel on the slave device is adjusted according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device to obtain the target brightness threshold of each color channel on the slave device, the first step is to determine the first brightness threshold ratio of the master device according to the maximum brightness threshold of each color channel on the master device. Among them, the maximum brightness threshold of each color channel on the master device is generally a fixed value. For an 8-bit display, when the grayscale value of the three RGB color channels is 255, the brightness corresponding to the three RGB color channels at this time is the maximum brightness threshold of the three RGB color channels on the display. Then, the maximum brightness threshold of the red channel on the master device (for example, 100nit), the maximum brightness threshold of the green channel on the master device (for example, 200nit) and the maximum brightness threshold of the blue channel on the master device (for example, 300nit) can be obtained. Finally, the ratio of the maximum brightness threshold of the red channel on the master device, the maximum brightness threshold of the green channel on the master device and the maximum brightness threshold of the blue channel on the master device is calculated as 100nit:200nit:300nit, and the first brightness threshold ratio is 100nit:200nit:300nit.
[0056] Among them, nit is the unit of brightness, 1nit=1cd / m2. Brightness refers to the physical quantity of the intensity of light (reflection) on the surface of a light emitting body (reflector).
[0057] Step 244, determining a second brightness threshold ratio of the slave device based on the maximum brightness threshold of each color channel on the slave device; wherein the second brightness threshold ratio is the ratio of the maximum brightness threshold of the red channel on the slave device, the maximum brightness threshold of the green channel on the slave device, and the maximum brightness threshold of the blue channel on the slave device.
[0058] The second step is to determine the first brightness threshold ratio of the slave device according to the maximum brightness threshold of each color channel on the slave device. Similarly, the maximum brightness threshold of each color channel on the slave device is generally a fixed value. For an 8-bit display, when the grayscale value of the three RGB color channels is 255, the brightness corresponding to the three RGB color channels at this time is the maximum brightness threshold of the three RGB color channels on the display. Then, the maximum brightness threshold of the red channel on the slave device (for example, 100nit), the maximum brightness threshold of the green channel on the slave device (for example, 150nit) and the maximum brightness threshold of the blue channel on the slave device (for example, 400nit) can be obtained. Finally, the ratio of the maximum brightness threshold of the red channel on the slave device, the maximum brightness threshold of the green channel on the slave device and the maximum brightness threshold of the blue channel on the slave device is calculated as 100nit:150nit:400nit, and the second brightness threshold ratio is obtained as 100nit:150nit:400nit.
[0059] Step 246, adjusting the maximum brightness threshold of each color channel on the slave device according to the first brightness threshold ratio and the second brightness threshold ratio to obtain the target brightness threshold of each color channel on the slave device; wherein the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio.
[0060] Because the maximum brightness threshold of each color channel on the slave device is the maximum brightness of the slave device, when the maximum brightness threshold of each color channel on the slave device is adjusted according to the first brightness threshold ratio and the second brightness threshold ratio, the maximum brightness of the slave device can only be reduced or unchanged, and the maximum brightness of the slave device cannot be increased. And the target brightness threshold after adjustment of each color channel on the slave device needs to satisfy that the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio, that is, equal to the ratio of the maximum brightness thresholds of the three RGB color channels on the master device.
[0061] For the above example, the maximum brightness threshold of the red channel on the master device (e.g., 100 nit), the maximum brightness threshold of the green channel on the master device (e.g., 200 nit), and the maximum brightness threshold of the blue channel on the master device (e.g., 300 nit). Finally, the ratio of the maximum brightness threshold of the red channel on the master device, the maximum brightness threshold of the green channel on the master device, and the maximum brightness threshold of the blue channel on the master device is calculated as 100 nit: 200 nit: 300 nit, and the first brightness threshold ratio of 100 nit: 200 nit: 300 nit is obtained.
[0062] The maximum brightness threshold of the red channel on the slave device (e.g., 100 nit), the maximum brightness threshold of the green channel on the slave device (e.g., 150 nit), and the maximum brightness threshold of the blue channel on the slave device (e.g., 400 nit). Finally, the ratio of the maximum brightness threshold of the red channel on the slave device, the maximum brightness threshold of the green channel on the slave device, and the maximum brightness threshold of the blue channel on the slave device is calculated as 100 nit: 150 nit: 400 nit, and the second brightness threshold ratio of 100 nit: 150 nit: 400 nit is obtained.
[0063] Then, when adjusting the maximum brightness of the slave device, the maximum brightness of the slave device can be reduced or unchanged, and the target brightness thresholds after adjustment of each color channel on the slave device need to satisfy that the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio. Therefore, it is necessary to keep the maximum brightness threshold of the green channel on the slave device (for example, 150nit) unchanged, and reduce the maximum brightness thresholds of the red and blue channels on the slave device. Specifically, the maximum brightness threshold of the red channel on the slave device is reduced to (75nit), and the maximum brightness threshold of the blue channel on the slave device is reduced to (225nit). Thus, the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio 75nit:150nit:225nit. Of course, the maximum brightness of the slave device can also be adjusted so that the ratio between the target brightness thresholds of each color channel on the slave device is approximately equal to the first brightness threshold ratio 100nit:200nit:300nit. This application is not limited to this.
[0064] In the embodiment of the present application, because the ratio of the maximum brightness thresholds of each color channel on different devices is the same or the difference between the two is within a preset range, the color reproduction degree between the display images on the two different devices is high, and the display effects are consistent or close. Therefore, by reducing or keeping the maximum brightness of the slave device unchanged, the target brightness threshold after adjustment of each color channel on the slave device is obtained. And the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio, that is, equal to the ratio of the maximum brightness thresholds of the three RGB color channels on the master device, ensuring that the color tendencies of the master device and the slave device are similar or consistent when displayed. Thus, it can be achieved that the color reproduction degree between the display images on two different devices is high and the display effects are consistent or close.
[0065] In one embodiment, Figure 5 As shown, according to the first brightness threshold ratio and the second brightness threshold ratio, the maximum brightness threshold of each color channel on the slave device is adjusted to obtain the target brightness threshold of each color channel on the slave device, including:
[0066] Step 520 , normalizing the first brightness threshold ratio and the second brightness threshold ratio respectively, and determining a reference brightness threshold from the maximum brightness threshold of each color channel on the slave device according to the normalized result.
[0067] Among them, there are two forms of normalization, one is to convert the data into a decimal between (0, 1), and the other is to convert a dimensional expression into a dimensionless expression. The normalization in the embodiment of the present application is the first form, and the first brightness threshold ratio 100nit:200nit:300nit and the second brightness threshold ratio 100nit:150nit:400nit are normalized respectively, and both are divided by the maximum brightness threshold of 100nit of the red channel on the main device. In this way, the result of the normalization processing of the first brightness threshold ratio is 1:2:3, and the result of the normalization processing of the second brightness threshold ratio is 1:1.5:4. After normalization, it is convenient to quickly compare the size.
[0068] Then, based on the size comparison result, a reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device. The principle of determining the reference brightness threshold is as follows: when adjusting the maximum brightness threshold of each color channel on the slave device, the reference brightness threshold is kept unchanged, and the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold is reduced, so that the target brightness threshold of each color channel on the slave device can be obtained. The ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio.
[0069] For example, based on the result of normalizing the first brightness threshold ratio to 1:2:3 and the result of normalizing the second brightness threshold ratio to 1:1.5:4, only by taking the maximum brightness threshold of the green channel on the slave device as the reference brightness threshold and lowering the maximum brightness thresholds of the red and blue channels excluding the green channel, can the target brightness thresholds of each color channel on the slave device be obtained so that their ratio is equal to the first brightness threshold ratio.
[0070] Step 540, when adjusting the maximum brightness threshold of each color channel on the slave device, keep the reference brightness threshold unchanged, reduce the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold, and obtain the target brightness threshold of each color channel on the slave device.
[0071] Therefore, when adjusting the maximum brightness threshold of each color channel on the slave device, the maximum brightness threshold of the green channel on the slave device is kept unchanged, and the maximum brightness thresholds of the red and blue channels excluding the green channel are reduced, so that the target brightness threshold of each color channel on the slave device can be obtained, and the ratio thereof is equal to the first brightness threshold ratio. For example, the maximum brightness threshold of the red channel is reduced to 75 nit, and the maximum brightness threshold of the blue channel is reduced to 225 nit.
[0072] In the embodiment of the present application, the first brightness threshold ratio and the second brightness threshold ratio are normalized respectively, and the data are mapped to the range of 0 to 1, so as to facilitate quick size comparison. Based on the size comparison result, the reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device. When adjusting the maximum brightness threshold of each color channel on the slave device, the maximum brightness threshold of the green channel on the slave device is kept unchanged, and the maximum brightness thresholds of the red and blue channels except the green channel are lowered, so that the target brightness threshold of each color channel on the slave device can be obtained, and the ratio thereof is equal to the first brightness threshold ratio, so as to ensure that the color tendency of the master device and the slave device is similar or consistent when displayed. Thus, it can be achieved that the color reproduction between the display screens on two different devices is high and the display effect is consistent or close.
[0073] In one embodiment, if the result after normalization of the first brightness threshold ratio is L:M:N, the result after normalization of the second brightness threshold ratio is P:Q:R, wherein L=P=1, M is the ratio between the maximum brightness threshold of the green channel on the master device and the maximum brightness threshold of the red channel on the master device, N is the ratio between the maximum brightness threshold of the blue channel on the master device and the maximum brightness threshold of the red channel on the master device, Q is the ratio between the maximum brightness threshold of the green channel on the slave device and the maximum brightness threshold of the red channel on the slave device, and R is the ratio between the maximum brightness threshold of the blue channel on the slave device and the maximum brightness threshold of the red channel on the slave device;
[0074] According to the normalized result, the reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device, including:
[0075] According to the size relationship among M, N, Q and R, the reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device.
[0076] As shown in Table 1, the maximum brightness thresholds of each color channel of the master device (display device A) and the slave device (display device B) are:
[0077] Table 1
[0078] Display device A Display device B R Maximum brightness threshold RA RB G Maximum brightness threshold GA GB B Maximum brightness threshold BA BB
[0079] Specifically, the first brightness threshold ratio RA:GA:BA is normalized respectively, and each is divided by the maximum brightness threshold RA of the red channel on the master device. The second brightness threshold ratio RB:GB:BB is normalized respectively, and each is divided by the maximum brightness threshold RB of the red channel on the slave device. In this way, the result of the normalization of the first brightness threshold ratio L:M:N=1:GA / RA:BA / RA and the result of the normalization of the second brightness threshold ratio P:Q:R=1:GB / RB:BB / RB are obtained, which facilitates quick comparison of sizes after normalization.
[0080] For example, the maximum brightness threshold of the red channel on the master device, the maximum brightness threshold of the green channel on the master device, and the maximum brightness threshold of the blue channel on the master device are 100nit, 200nit, and 300nit, respectively. The maximum brightness threshold of the red channel on the slave device, the maximum brightness threshold of the green channel on the slave device, and the maximum brightness threshold of the blue channel on the slave device are 100nit, 150nit, and 400nit, respectively. The first brightness threshold ratio 100nit:200nit:300nit and the second brightness threshold ratio 100nit:150nit:400nit are normalized respectively, and both are divided by 100nit. In this way, the normalization result of the first brightness threshold ratio L:M:N=1:2:3 and the normalization result of the second brightness threshold ratio P:Q:R=1:1.5:4 are obtained, which facilitates quick size comparison after normalization.
[0081] Then, based on the size comparison results among M, N, Q and R, a reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device. The principle for determining the reference brightness threshold is as follows: when adjusting the maximum brightness threshold of each color channel on the slave device, the reference brightness threshold is kept unchanged, and the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold is reduced, so that the target brightness threshold of each color channel on the slave device can be obtained. The ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio.
[0082] In the embodiment of the present application, based on the size comparison result between M, N, Q and R, the reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device. When adjusting the maximum brightness threshold of each color channel on the slave device, the reference brightness threshold is kept unchanged, and the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold is reduced, so that the target brightness threshold of each color channel on the slave device can be obtained, and the ratio thereof is equal to the first brightness threshold ratio, so as to ensure that the color tendency of the master device and the slave device during display is similar or consistent. Thus, it can be achieved that the color reproduction degree between the display screens on two different devices is high and the display effect is consistent or close.
[0083] In one embodiment, according to the magnitude relationship between M, N, Q and R, determining the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device includes:
[0084] If M≥Q and N≤R, the maximum brightness threshold of the green channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold;
[0085] If M≥Q and N≥R, the maximum brightness threshold of the green channel or the blue channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold.
[0086] Specifically, after obtaining the result L:M:N of normalizing the first brightness threshold ratio and the result P:Q:R of normalizing the second brightness threshold ratio, the reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device according to the size relationship between M, N, Q and R. If M≥Q and N≤R, the maximum brightness threshold of the green channel is determined from the maximum brightness threshold of each color channel on the slave device as the reference brightness threshold. If M≥Q and N≥R, the maximum brightness threshold of the green channel or the blue channel is determined from the maximum brightness threshold of each color channel on the slave device as the reference brightness threshold.
[0087] For example, the first brightness threshold ratio 100nit:200nit:300nit and the second brightness threshold ratio 100nit:150nit:400nit are normalized respectively and divided by 100nit. In this way, the normalized result of the first brightness threshold ratio is L:M:N=1:2:3, and the normalized result of the second brightness threshold ratio is P:Q:R=1:1.5:4. Then, the size relationship between M, N, Q and R is compared, and it is concluded that M≥Q and N≤R. Therefore, the maximum brightness threshold of the green channel is determined as the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device. In this way, when adjusting the maximum brightness threshold of each color channel on the slave device, the maximum brightness threshold of the green channel on the slave device (150nit) is kept unchanged, and the maximum brightness thresholds of the red and blue channels excluding the green channel are reduced to (75nit) and (225nit), so that the target brightness threshold of each color channel on the slave device can be obtained, so that the ratio is equal to or approximately equal to the first brightness threshold ratio.
[0088] For example, the first brightness threshold ratio 100nit:200nit:300nit and the second brightness threshold ratio 100nit:150nit:250nit are normalized respectively, and both are divided by 100nit. In this way, the normalization result of the first brightness threshold ratio is L:M:N=1:2:3, and the normalization result of the second brightness threshold ratio is P:Q:R=1:1.5:2.5. Then compare the size relationship between M, N, Q and R, and get M≥Q and N≥R. Therefore, the maximum brightness threshold of the green channel or the blue channel is determined as the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device. In this way, when adjusting the maximum brightness threshold of each color channel on the slave device, keep the maximum brightness threshold of the green channel on the slave device (150nit) unchanged, reduce the maximum brightness threshold of the red and blue channels excluding the green channel to (75nit) and (225nit), and you can get the target brightness threshold of each color channel on the slave device, so that the ratio is equal to or approximately equal to the first brightness threshold ratio.
[0089] For example, the first brightness threshold ratio 100nit:200nit:300nit and the second brightness threshold ratio 100nit:200nit:250nit are normalized respectively and divided by 100nit. In this way, the normalized result of the first brightness threshold ratio is L:M:N=1:2:3, and the normalized result of the second brightness threshold ratio is P:Q:R=1:2:2.5. Then compare the size relationship between M, N, Q and R, and get M≥Q and N≥R. Therefore, the maximum brightness threshold of the blue channel is determined as the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device. In this way, when adjusting the maximum brightness threshold of each color channel on the slave device, keep the maximum brightness threshold of the blue channel on the slave device (250nit) unchanged, reduce the maximum brightness threshold of the red and green channels excluding the blue channel to (83.3nit) and (166.6nit), and you can get the target brightness threshold of each color channel on the slave device, so that the ratio is equal to or approximately equal to the first brightness threshold ratio.
[0090] In the embodiment of the present application, according to the size relationship between M, N, Q and R, the reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device, including: for the case where M≥Q and N≤R, the maximum brightness threshold of the green channel is determined from the maximum brightness threshold of each color channel on the slave device as the reference brightness threshold; for the case where M≥Q and N≥R, the maximum brightness threshold of the green channel or the blue channel is determined from the maximum brightness threshold of each color channel on the slave device as the reference brightness threshold. Thus, by keeping the reference brightness threshold unchanged and lowering the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold, the maximum brightness threshold of any color channel can be avoided from being increased. At the same time, the ratio of the target brightness thresholds of each color channel on the slave device can be made equal to the first brightness threshold ratio.
[0091] Continuing from the previous embodiment, according to the magnitude relationship among M, N, Q and R, determining the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device includes:
[0092] If M≤Q and N≤R, the maximum brightness threshold of the red channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold;
[0093] If M≤Q and N≥R, the maximum brightness threshold of the blue channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold.
[0094] Specifically, in the same way, when adjusting the maximum brightness threshold of each color channel on the slave device, the reference brightness threshold is kept unchanged, and the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold is lowered, so that the target brightness threshold of each color channel on the slave device can be obtained, and the ratio thereof is equal to the first brightness threshold ratio.
[0095] Therefore, if M≤Q and N≤R, the maximum brightness threshold of the red channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold; if M≤Q and N≥R, the maximum brightness threshold of the blue channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold. The target brightness thresholds of each color channel on the slave device can be obtained, and the ratio thereof is equal to the first brightness threshold ratio. No examples are given here.
[0096] In the embodiment of the present application, according to the size relationship between M, N, Q and R, the reference brightness threshold is determined from the maximum brightness threshold of each color channel on the slave device, including: for the case of M≤Q and N≤R, the maximum brightness threshold of the red channel is determined from the maximum brightness threshold of each color channel on the slave device as the reference brightness threshold; for the case of M≤Q and N≥R, the maximum brightness threshold of the blue channel is determined from the maximum brightness threshold of each color channel on the slave device as the reference brightness threshold. Thus, by keeping the reference brightness threshold unchanged and lowering the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold, the maximum brightness threshold of any color channel can be avoided from being increased. At the same time, the ratio of the target brightness thresholds of each color channel on the slave device can be made equal to the first brightness threshold ratio.
[0097] In one embodiment, if M≥Q and N≥R, determining the maximum brightness threshold of the green channel or the blue channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold includes:
[0098] If M≥Q and N≥R, determine the relationship between M:N and Q:R;
[0099] If M:N≥Q:R, the maximum brightness threshold of the blue channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold;
[0100] If M:N≤Q:R, the maximum brightness threshold of the green channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold.
[0101] Specifically, for the above-mentioned situation of M≥Q and N≥R, the maximum brightness threshold of the green channel or the blue channel is determined as the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device. After determining that M≥Q and N≥R, the magnitude relationship between M:N and Q:R is further determined. If it is determined that M:N≥Q:R, then only by keeping the maximum brightness threshold of the blue channel unchanged and lowering the maximum brightness thresholds of the red and green channels can the maximum brightness threshold of any color channel be kept constant. At the same time, the ratio of the target brightness thresholds of each color channel on the slave device can be made equal to the first brightness threshold ratio.
[0102] If it is determined that M:N≤Q:R, then the maximum brightness threshold of the green channel can be kept unchanged while the maximum brightness thresholds of the red and blue channels are reduced, so that the maximum brightness threshold of any color channel will not be increased. At the same time, the ratio of the target brightness thresholds of each color channel on the slave device can be made equal to the first brightness threshold ratio.
[0103] In the embodiment of the present application, for the case where M≥Q and N≥R, it is further subdivided into two cases: M:N≥Q:R and M:N≤Q:R, and it is clear which color channel the reference brightness threshold is the maximum brightness threshold of in each case. Furthermore, in practice, as long as the size relationship between M, N, Q and R, and the size relationship between M:N and Q:R are accurately determined, it is convenient to uniquely determine which color channel the reference brightness threshold is the maximum brightness threshold of. It is convenient to accurately determine the target brightness threshold of each color channel on the slave device.
[0104] In one embodiment, Figure 6 As shown, step 260, according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, adjusts the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device, including:
[0105] Step 262, calculating the brightness ratio of each color channel between the slave device and the master device according to the target brightness threshold of each color channel on the slave device and the maximum brightness threshold of each color channel on the master device.
[0106] After obtaining the target brightness threshold of each color channel on the slave device and the maximum brightness threshold of each color channel on the master device, the brightness of each color channel between the slave device and the master device is compared to obtain the brightness ratio of each color channel between the slave device and the master device.
[0107] For example, the target brightness threshold of the RGB color channel on the slave device is 75nit:150nit:225nit, and the maximum brightness threshold of each color channel on the master device is 100nit:200nit:300nit. By comparing the brightness of each color channel between the slave device and the master device, the brightness ratio of the red channel between the slave device and the master device is 75nit:100nit=3:4, the brightness ratio of the green channel between the slave device and the master device is 150nit:200nit=3:4, and the brightness ratio of the blue channel between the slave device and the master device is 225nit:300nit=3:4. That is, the brightness ratio of each color channel between the slave device and the master device is 3:4.
[0108] Step 264, calculating the brightness of each color channel of each pixel on the master device according to the grayscale value of each color channel of each pixel on the master device and the gamma curve of each color channel of the master device.
[0109] Among them, the Gamma curve is a graph showing the relationship between grayscale value and output brightness, such as Fig. 7A As shown in FIG. , it is a schematic diagram of the gamma curve of a color channel of a display device A. Figure 7B As shown, it is a schematic diagram of the Gamma curve of a certain color channel of two display devices A and B, and the Gamma value of display device B is greater than the Gamma value of display device A. The Gamma values of the Gamma curves of each color channel of each display device can be different from each other or the same, and this application does not limit this.
[0110] If the grayscale value of each color channel of each pixel on the main device and the gamma curve of each color channel of the main device are known, the brightness of each color channel of each pixel on the main device can be directly obtained.
[0111] It can be calculated by the following formula:
[0112]
[0113] Among them, y A Refers to the brightness of each color channel of each pixel on the main device, Y A0 Refers to the minimum brightness threshold of each color channel on the master device, Y A255 Refers to the maximum brightness threshold of each color channel on the master device, x A Refers to the grayscale value of each color channel of each pixel on the main device, and mA refers to the Gamma value of the Gamma curve of each color channel of each pixel on the main device.
[0114] Step 266, calculate the grayscale value of each color channel of each pixel when the projected image is displayed on the slave device based on the brightness of each color channel of each pixel on the master device, the ratio of the brightness of the corresponding color channels between the slave device and the master device, and the gamma curve of the corresponding color channel of the slave device.
[0115] Specifically, the brightness of the corresponding color channel of each pixel on the slave device is calculated according to the brightness of each color channel of each pixel on the master device and the brightness ratio of the corresponding color channels between the slave device and the master device. In this way, it can be ensured that the brightness ratio of each color channel of each pixel on the slave device is similar to or the same as the brightness ratio of each color channel on the master device. Thus, it is ensured that the color tendencies of the master device and the slave device when displaying are similar or consistent.
[0116] If the brightness of each color channel of each pixel on the slave device and the gamma curve of each color channel of the slave device are known, the grayscale value of each color channel of each pixel when the projected image is displayed on the slave device can be directly calculated.
[0117] In the embodiment of the present application, the gamma curve of each color channel of the master device and the gamma curve of the corresponding color channel of the slave device are combined, and the grayscale values of each color channel of each pixel of the master device are calculated when the screen to be projected is displayed on the slave device according to the grayscale values of each color channel of each pixel. In this way, it is possible to ensure that the ratio of the brightness of each color channel of each pixel on the slave device is similar or the same as the ratio of the brightness of each color channel on the master device. Thereby, it is ensured that the color tendencies of the master and slave devices are similar or consistent when displayed. Furthermore, the color temperature of the projected screen displayed on the slave device can be made similar to that of the screen to be projected on the master device, thereby improving the color reproduction of the screen to be projected.
[0118] Continuing from the previous embodiment, according to the brightness of each color channel of each pixel on the master device, the brightness ratio of the corresponding color channels between the slave device and the master device, and the gamma curve of the corresponding color channel of the slave device, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device is calculated, including:
[0119] Calculate the brightness of the corresponding color channel of each pixel on the slave device according to the brightness of each color channel of each pixel on the master device and the ratio of the brightness of the corresponding color channel between the slave device and the master device;
[0120] Specifically, in the previous embodiment, the brightness ratio of the corresponding color channels between the slave device and the master device is calculated, and then the brightness of each color channel of each pixel on the master device is multiplied by the brightness ratio to obtain the brightness of the corresponding color channel of each pixel on the slave device. For example, the brightness ratio of each color channel between the slave device and the master device is 3:4. Then yB =y A ×3:4, the brightness y of each color channel of each pixel on the main device is calculated B .
[0121] According to the brightness of the corresponding color channel of each pixel on the slave device and the gamma curve of the corresponding color channel of the slave device, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device is calculated.
[0122] It can be calculated by the following formula:
[0123]
[0124] Among them, y B Refers to the brightness of each color channel of each pixel on the main device, Y B0 Refers to the minimum brightness threshold of each color channel on the master device, Y B255 Refers to the maximum brightness threshold of each color channel on the master device, x B Refers to the grayscale value of each color channel of each pixel on the main device, and mB refers to the Gamma value of the Gamma curve of each color channel of each pixel on the main device.
[0125] In an embodiment of the present application, after the brightness of each color channel of each pixel on the master device is calculated through the Gamma curve of each color channel of each pixel on the master device. Based on the product of the brightness of each color channel of each pixel on the master device and the ratio of the brightness of the corresponding color channel between the slave device and the master device, the brightness of each color channel of each pixel on the slave device is obtained. Based on the Gamma curve of the corresponding color channel of the slave device, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device can be calculated. In this way, it can be ensured that the ratio of the brightness of each color channel of each pixel on the slave device is similar to or the same as the ratio of the brightness of each color channel on the master device.
[0126] In a specific embodiment, a method for displaying a screen to be projected is provided, comprising:
[0127] Step 1, in response to the screen projection instruction, receiving the screen to be projected sent by the main device;
[0128] Step 2: When it is determined that the display color temperatures of the master device and the slave device are inconsistent, a first brightness threshold ratio of the master device is determined according to the maximum brightness threshold of each color channel on the master device;
[0129] Step 3, determining a second brightness threshold ratio of the slave device according to the maximum brightness threshold of each color channel on the slave device;
[0130] Step 4, normalizing the first brightness threshold ratio and the second brightness threshold ratio respectively. If the normalized result of the first brightness threshold ratio is L:M:N, the normalized result of the second brightness threshold ratio is P:Q:R; according to the size relationship between M, N, Q and R, and the size relationship between M:N and Q:R, determine the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device;
[0131] Step 5: When adjusting the maximum brightness threshold of each color channel on the slave device, keep the reference brightness threshold unchanged, reduce the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold, and obtain the target brightness threshold of each color channel on the slave device;
[0132] Step 6, calculating the brightness ratio of each color channel between the slave device and the master device according to the target brightness threshold of each color channel on the slave device and the maximum brightness threshold of each color channel on the master device;
[0133] Step 7: Calculate the brightness of each color channel of each pixel on the main device according to the grayscale value of each color channel of each pixel on the main device and the gamma curve of each color channel of the main device;
[0134] Step 8, calculating the brightness of the corresponding color channel of each pixel on the slave device according to the brightness of each color channel of each pixel on the master device and the ratio of the brightness of the corresponding color channel between the slave device and the master device;
[0135] Step nine, based on the brightness of the corresponding color channel of each pixel on the slave device and the gamma curve of the corresponding color channel of the slave device, calculate the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device.
[0136] In the embodiment of the present application, the target brightness threshold of each color channel on the slave device is obtained because the maximum brightness threshold of each color channel on the slave device is adjusted. Then, based on the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, the grayscale value of each color channel of each pixel is adjusted when the screen to be projected is displayed on the slave device. In this way, the color temperature of the screen to be projected displayed on the slave device can be similar to that of the screen to be projected on the master device, thereby improving the color reproduction of the screen to be projected.
[0137] In one embodiment, Figure 8 As shown, a display device 800 for a screen to be projected is provided, comprising:
[0138] The screen to be projected receiving module 820 is used to receive the screen to be projected sent by the main device in response to the screen projection instruction;
[0139] The brightness threshold adjustment module 840 is used to adjust the maximum brightness threshold of each color channel on the slave device according to the maximum brightness threshold of each color channel on the master device and the maximum brightness threshold of each color channel on the slave device when it is determined that the display color temperatures of the master device and the slave device are inconsistent, so as to obtain the target brightness threshold of each color channel on the slave device;
[0140] Grayscale value adjustment module 860, used to adjust the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device;
[0141] The display module 880 is used to generate a projection screen by displaying it on a slave device based on the adjusted grayscale values of each color channel of each pixel.
[0142] In one embodiment, Fig. 9 As shown, the brightness threshold adjustment module 840 includes:
[0143] A first brightness threshold ratio determination unit 842 is used to determine a first brightness threshold ratio of the master device according to the maximum brightness thresholds of each color channel on the master device; wherein the first brightness threshold ratio is a ratio between a maximum brightness threshold of a red channel on the master device, a maximum brightness threshold of a green channel on the master device, and a maximum brightness threshold of a blue channel on the master device;
[0144] A second brightness threshold ratio determination unit 844 is used to determine a second brightness threshold ratio of the slave device according to the maximum brightness threshold of each color channel on the slave device; wherein the second brightness threshold ratio is the ratio of the maximum brightness threshold of the red channel on the slave device, the maximum brightness threshold of the green channel on the slave device, and the maximum brightness threshold of the blue channel on the slave device;
[0145] The target brightness threshold calculation unit 846 is used to adjust the maximum brightness threshold of each color channel on the slave device according to the first brightness threshold ratio and the second brightness threshold ratio to obtain the target brightness threshold of each color channel on the slave device; wherein the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio.
[0146] In one embodiment, the target brightness threshold calculation unit 846 is also used to normalize the first brightness threshold ratio and the second brightness threshold ratio, respectively, and determine the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device based on the normalized result; when adjusting the maximum brightness threshold of each color channel on the slave device, the reference brightness threshold is kept unchanged, and the maximum brightness threshold of other color channels except the color channel corresponding to the reference brightness threshold is reduced to obtain the target brightness threshold of each color channel on the slave device.
[0147] In one embodiment, if the result of the normalization processing of the first brightness threshold ratio is L:M:N, the result of the normalization processing of the second brightness threshold ratio is P:Q:R, wherein L=P=1, M is the ratio of the maximum brightness threshold of the green channel on the master device to the maximum brightness threshold of the red channel on the master device, N is the ratio of the maximum brightness threshold of the blue channel on the master device to the maximum brightness threshold of the red channel on the master device, Q is the ratio of the maximum brightness threshold of the green channel on the slave device to the maximum brightness threshold of the red channel on the slave device, and R is the ratio of the maximum brightness threshold of the blue channel on the slave device to the maximum brightness threshold of the red channel on the slave device; the target brightness threshold calculation unit 846 is further used to determine the reference brightness threshold from the maximum brightness thresholds of each color channel on the slave device according to the size relationship between M, N, Q and R.
[0148] In one embodiment, the target brightness threshold calculation unit 846 is also used to determine the maximum brightness threshold of the green channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold if M≥Q and N≤R; if M≥Q and N≥R, determine the maximum brightness threshold of the green channel or the blue channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold.
[0149] In one embodiment, the target brightness threshold calculation unit 846 is also used to determine the maximum brightness threshold of the red channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold if M≤Q and N≤R; and to determine the maximum brightness threshold of the blue channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold if M≤Q and N≥R.
[0150] In one embodiment, the target brightness threshold calculation unit 846 is also used to determine the size relationship between M:N and Q:R if M≥Q and N≥R; if M:N≥Q:R, determine the maximum brightness threshold of the blue channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold; if M:N≤Q:R, determine the maximum brightness threshold of the green channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold.
[0151] In one embodiment, the grayscale value adjustment module 860 is also used to calculate the ratio of the brightness of each color channel between the slave device and the master device based on the target brightness threshold of each color channel on the slave device and the maximum brightness threshold of each color channel on the master device; calculate the brightness of each color channel of each pixel on the master device based on the grayscale value of each color channel of each pixel on the master device and the gamma curve of each color channel of the master device; calculate the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device based on the brightness of each color channel of each pixel on the master device, the ratio of the brightness of the corresponding color channels between the slave device and the master device, and the gamma curve of the corresponding color channel of the slave device.
[0152] In one embodiment, the grayscale value adjustment module 860 is also used to calculate the brightness of the corresponding color channel of each pixel on the slave device according to the brightness of each color channel of each pixel on the master device and the ratio of the brightness of the corresponding color channels between the slave device and the master device; and calculate the grayscale value of each color channel of each pixel when the projected image is displayed on the slave device according to the brightness of the corresponding color channel of each pixel on the slave device and the gamma curve of the corresponding color channel of the slave device.
[0153] It should be understood that, although the various steps in the flowcharts in the above-mentioned figures are displayed in sequence according to the indications of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the above-mentioned figures may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0154] The division of each module in the above-mentioned display device of the screen to be projected is only for illustration. In other embodiments, the display device of the screen to be projected can be divided into different modules as needed to complete all or part of the functions of the above-mentioned display device of the screen to be projected.
[0155] For the specific limitations on the display device of the screen to be projected, please refer to the limitations on the display method of the screen to be projected above, which will not be repeated here. Each module in the above-mentioned display device of the screen to be projected can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0156] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the steps of a method for displaying a screen to be projected provided in the above embodiments.
[0157] Fig.10 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Fig.10 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a method for displaying a screen to be projected provided in the above embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.
[0158] The implementation of each module in the display device of the screen to be projected provided in the embodiment of the present application may be in the form of a computer program. The computer program can be run on an electronic device or an electronic device. The program module constituted by the computer program can be stored in the memory of the electronic device or the electronic device. When the computer program is executed by the processor, the steps of the method described in the embodiment of the present application are implemented.
[0159] The embodiment of the present application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the method for displaying the screen to be projected.
[0160] A computer program product comprising instructions, when running on a computer, enables the computer to execute a method for displaying a screen to be projected.
[0161] Any reference to memory, storage, database or other media used in the embodiments of the present application may include non-volatile and / or volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM).
[0162] The above display embodiments of the screen to be projected only express several implementation methods of the present application, and the description is relatively specific and detailed, but it cannot be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent of this application shall be based on the attached claims.
Claims
1. A method for displaying a screen to be projected, characterized in that: The method comprises: In response to the screen projection instruction, receiving the screen to be projected sent by the main device; In the case where it is determined that the display color temperatures of the master device and the slave device are inconsistent, the maximum brightness threshold of one of the color channels on the slave device is kept unchanged, and the maximum brightness thresholds of other color channels on the slave device are adjusted to obtain the target brightness thresholds of each color channel on the slave device; or, according to the maximum brightness thresholds of each color channel on the master device, a first brightness threshold ratio of the master device is determined, according to the maximum brightness thresholds of each color channel on the slave device, a second brightness threshold ratio of the slave device is determined, and according to the first brightness threshold ratio and the second brightness threshold ratio, the maximum brightness threshold of each color channel on the slave device is adjusted to obtain the target brightness threshold of each color channel on the slave device; wherein the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio; According to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device, adjust the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device; Based on the adjusted grayscale values of each color channel of each pixel, a projection screen is generated by displaying it on the slave device.
2. The method according to claim 1, characterized in that The first brightness threshold ratio is a ratio among a maximum brightness threshold of a red channel on the master device, a maximum brightness threshold of a green channel on the master device, and a maximum brightness threshold of a blue channel on the master device; The second brightness threshold ratio is a ratio among a maximum brightness threshold of a red channel on the slave device, a maximum brightness threshold of a green channel on the slave device, and a maximum brightness threshold of a blue channel on the slave device.
3. The method according to claim 2, characterized in that The step of adjusting the maximum brightness threshold of each color channel on the slave device according to the first brightness threshold ratio and the second brightness threshold ratio to obtain the target brightness threshold of each color channel on the slave device comprises: Normalizing the first brightness threshold ratio and the second brightness threshold ratio respectively, and determining a reference brightness threshold from the maximum brightness threshold of each color channel on the slave device according to the normalized result; When adjusting the maximum brightness threshold of each color channel on the slave device, the reference brightness threshold is kept unchanged, and the maximum brightness thresholds of other color channels except the color channel corresponding to the reference brightness threshold are reduced to obtain the target brightness threshold of each color channel on the slave device.
4. The method according to claim 3, characterized in that If the result of the normalization processing of the first brightness threshold ratio is L:M:N, and the result of the normalization processing of the second brightness threshold ratio is P:Q:R, wherein L=P=1, M is the ratio of the maximum brightness threshold of the green channel on the master device to the maximum brightness threshold of the red channel on the master device, N is the ratio of the maximum brightness threshold of the blue channel on the master device to the maximum brightness threshold of the red channel on the master device, Q is the ratio of the maximum brightness threshold of the green channel on the slave device to the maximum brightness threshold of the red channel on the slave device, and R is the ratio of the maximum brightness threshold of the blue channel on the slave device to the maximum brightness threshold of the red channel on the slave device; Determining the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device according to the result of the normalization processing includes: According to the magnitude relationship among M, N, Q and R, a reference brightness threshold is determined from the maximum brightness thresholds of each color channel on the slave device.
5. The method according to claim 4, characterized in that Determining the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device according to the size relationship among M, N, Q and R includes: If M≥Q and N≤R, the maximum brightness threshold of the green channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold; If M≥Q and N≥R, the maximum brightness threshold of the green channel or the blue channel is determined as the reference brightness threshold from the maximum brightness thresholds of the color channels on the slave device.
6. The method according to claim 4, characterized in that Determining the reference brightness threshold from the maximum brightness threshold of each color channel on the slave device according to the size relationship among M, N, Q and R includes: If M≤Q and N≤R, the maximum brightness threshold of the red channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold; If M≤Q and N≥R, the maximum brightness threshold of the blue channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold.
7. The method according to claim 5, characterized in that If M≥Q and N≥R, determining the maximum brightness threshold of the green channel or the blue channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold, including: If M≥Q and N≥R, determine the relationship between M:N and Q:R; If M:N≥Q:R, then determining the maximum brightness threshold of the blue channel from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold; If M:N≤Q:R, the maximum brightness threshold of the green channel is determined from the maximum brightness thresholds of each color channel on the slave device as the reference brightness threshold.
8. The method according to any one of claims 1 to 7, characterized in that: The adjusting the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device includes: Calculate the brightness ratio of each color channel between the slave device and the master device according to the target brightness threshold of each color channel on the slave device and the maximum brightness threshold of each color channel on the master device; Calculate the brightness of each color channel of each pixel on the master device according to the grayscale value of each color channel of each pixel on the master device and the gamma curve of each color channel of the master device; According to the brightness of each color channel of each pixel on the master device, the ratio of the brightness of the corresponding color channels between the slave device and the master device, and the gamma curve of the corresponding color channel of the slave device, the grayscale values of each color channel of each pixel when the projected image is displayed on the slave device are calculated.
9. The method according to claim 8, characterized in that The calculating, according to the brightness of each color channel of each pixel on the master device, the brightness ratio of the corresponding color channels between the slave device and the master device, and the gamma curve of the corresponding color channel of the slave device, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device includes: Calculate the brightness of the corresponding color channel of each pixel on the slave device according to the brightness of each color channel of each pixel on the master device and the ratio of the brightness of the corresponding color channels between the slave device and the master device; According to the brightness of the corresponding color channel of each pixel on the slave device and the gamma curve of the corresponding color channel of the slave device, the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device is calculated.
10. A display device for a screen to be projected, characterized in that: The device comprises: A screen-to-be-projected picture receiving module is used to receive the screen-to-be-projected picture sent by the main device in response to the screen projection instruction; A brightness threshold adjustment module, for, when it is determined that the display color temperatures of the master device and the slave device are inconsistent, keeping the maximum brightness threshold of one of the color channels on the slave device unchanged, adjusting the maximum brightness thresholds of other color channels on the slave device, and obtaining target brightness thresholds of each color channel on the slave device; or, determining a first brightness threshold ratio of the master device according to the maximum brightness threshold of each color channel on the master device, determining a second brightness threshold ratio of the slave device according to the maximum brightness threshold of each color channel on the slave device, adjusting the maximum brightness threshold of each color channel on the slave device according to the first brightness threshold ratio and the second brightness threshold ratio, and obtaining target brightness thresholds of each color channel on the slave device; wherein the ratio between the target brightness thresholds of each color channel on the slave device is equal to the first brightness threshold ratio; A grayscale value adjustment module, used to adjust the grayscale value of each color channel of each pixel when the screen to be projected is displayed on the slave device according to the target brightness threshold of each color channel on the slave device, the maximum brightness threshold of each color channel on the master device, and the grayscale value of each color channel of each pixel on the master device; The display module is used to generate a projection screen by displaying it on the slave device based on the adjusted grayscale values of each color channel of each pixel.
11. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor executes the steps of the method for displaying the screen to be projected as described in any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for displaying the screen to be projected as described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Method and device of search new color temperature point
CN101163253A
Projection system and control method thereof
CN105991980A
Method and device for correcting colors of display screen and display device
CN109859759A
