Electronic device and color configuration adjustment method
1. A color allocation adjustment method is suitable for an electronic device, and comprises the following steps:
obtaining a first current color configuration externally connected to a first screen of the electronic device;
judging whether the first current color configuration is identical to a second current color configuration of a second screen of the electronic device; and
when the first current color configuration is different from the second current color configuration, outputting an adjusting instruction to the first screen so as to enable the first screen to adjust the first current color configuration according to the adjusting instruction.
2. The color profile adjustment method of claim 1, further comprising:
obtaining a supporting color configuration of the first screen; and
judging whether the first screen supports the second current color configuration or not according to the supported color configuration;
wherein the step of outputting the adjustment instruction to the first screen is performed when it is determined that the first screen supports the second current color configuration and it is determined that the first current color configuration is different from the second current color configuration.
3. The method of claim 1, wherein before the step of obtaining the first current color configuration externally connected to the first screen of the electronic device, the method further comprises:
whether the first screen is externally connected with the electronic device is detected.
4. The method of claim 1, wherein outputting the adjustment command to the first screen comprises:
generating an adjustable configuration message to prompt a user; and
and outputting the adjustment instruction to the first screen when receiving an adjustment determination signal, wherein the adjustment determination signal is generated by the user through the electronic device.
5. The color profile adjustment method of claim 3, further comprising:
when the first screen is detected to be externally connected with the electronic device, acquiring a module name of the first screen; and
judging whether the module name accords with a preset naming rule or not;
the step of obtaining the first current color configuration externally connected to the first screen of the electronic device is performed after the module name is determined to meet the predetermined naming rule.
6. An electronic device, comprising:
a port for connecting a first screen;
a second screen; and
and the processing module is used for obtaining a first current color configuration of the first screen when the first screen is externally connected with the port and judging whether the first current color configuration is the same as a second current color configuration of the second screen, wherein when the first current color configuration is judged to be different from the second current color configuration, the processing module outputs an adjusting instruction to the first screen through the port so as to enable the first screen to adjust the first current color configuration according to the adjusting instruction.
7. The electronic device of claim 6, wherein when the first screen is external to the port, the processing module further obtains a supported color configuration of the first screen and determines whether the first screen supports the second current color configuration according to the supported color configuration, wherein the processing module outputs the adjustment command through the port when determining that the first screen supports the second current color configuration and determining that the first current color configuration is different from the second current color configuration.
8. The electronic device of claim 6, wherein the processing module further detects whether the first screen is external to the port.
9. The electronic device of claim 6, wherein when the first current color configuration is different from the second current color configuration, the processing module generates an adjustable configuration message to prompt a user, and outputs the adjustment command to the first screen only when receiving an adjustment determination signal generated by the user through the electronic device.
10. The electronic device of claim 8, wherein when the first screen is detected to be external to the port, the processing module further obtains a module name of the first screen through the port and determines whether the module name complies with a predetermined naming convention, wherein the processing module obtains the first current color configuration of the first screen through the port after determining that the module name complies with the predetermined naming convention.
Background
In recent years, with the high development of modern electronic technology, various electronic devices have been distributed throughout the daily life of the public. In addition, in order to facilitate human-computer interaction between users and electronic devices, most electronic devices are configured with a built-in screen or connected to a main screen.
However, the built-in screen or the connected main screen of the electronic device has a fixed size, and for a user who needs to use and watch multiple windows at the same time, only a single screen is just unable to satisfy the requirement.
Disclosure of Invention
An embodiment of the invention discloses a color configuration adjusting method. The color arrangement adjusting method comprises the following steps: obtaining a first current color configuration of a first screen externally connected to the electronic device; judging whether the first current color configuration is identical to a second current color configuration of a second screen of the electronic device; and when the first current color configuration is different from the second current color configuration, outputting an adjusting instruction to the first screen so as to enable the first screen to adjust the first current color configuration according to the adjusting instruction.
An embodiment of the invention discloses an electronic device. The electronic device comprises a port for externally connecting a first screen, a second screen and a processing module. The processing module is used for obtaining a first current color configuration of the first screen when the first screen is externally connected with the port, and judging whether the first current color configuration is identical to a second current color configuration of the second screen. When the first current color configuration is different from the second current color configuration, the processing module outputs an adjustment instruction to the first screen through the port, so that the first screen adjusts the first current color configuration according to the adjustment instruction.
Drawings
Fig. 1 is a block diagram of an electronic device according to an embodiment of the invention.
Fig. 2 is a flowchart illustrating a color allocation adjustment method according to an embodiment of the invention.
Fig. 3 is a flowchart illustrating a color allocation adjustment method according to an embodiment of the invention.
Fig. 4 is a flowchart illustrating a color allocation adjustment method according to an embodiment of the invention.
FIG. 5 is a diagram illustrating an embodiment of obtaining an instruction format that supports color allocation.
FIG. 6 is a diagram illustrating an embodiment of a format of a reply to an instruction supporting color allocation.
Fig. 7 is a flowchart illustrating a color allocation adjustment method according to an embodiment of the invention.
FIG. 8 is a diagram illustrating an embodiment of a format of an instruction to obtain a current color configuration.
FIG. 9 is a diagram illustrating an exemplary format of an instruction for returning to a current color configuration.
FIG. 10 is a flowchart illustrating step S30 according to an embodiment.
FIG. 11 is a diagram illustrating an exemplary command format for setting a new color scheme.
Fig. 12A and 12B are schematic flowcharts illustrating a color allocation adjustment method according to an embodiment of the invention.
Wherein the reference numerals are as follows:
100 electronic device
110 port
120 second screen
130 processing module
200 first screen
A1 control program
B1 control program
Instruction C1
C11-C16 instruction section
Instruction C2
C21-C24 instruction section
Instruction C3
C31-C36 instruction section
Instruction C4
C41-C44 instruction section
C5 Adjust instruction
C51-C58 instruction section
S10-S82
Detailed Description
In order to make the aforementioned objects, features and advantages of the embodiments of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of further features, integers, steps, operations, elements, components, and/or groups thereof.
Fig. 1 is a block diagram of an electronic device according to an embodiment of the invention. Referring to fig. 1, it is noted that for clarity of the description of the present invention, fig. 1 is a simplified block diagram showing only the components relevant to the present invention. Those skilled in the art will appreciate that the electronic device may also include other components to provide specific functions.
The electronic device 100 may have a screen to display a picture to a user through the screen. In some embodiments, the screen may be built in the electronic device 100. Such as the pen and its built-in screen. However, the invention is not limited thereto, and in other embodiments, the screen may also be connected to the electronic device 100 through an external circuit. For example, the host and screen of a desktop computer (which may be referred to as the home screen). In addition, the electronic device 100 can further connect to at least one screen (which can be referred to as an external screen or an auxiliary screen, which is referred to as the first screen 200) in addition to the original built-in screen (or the main screen, which is referred to as the second screen 120) to meet the multi-screen requirement of the user.
In one embodiment, the electronic device 100 may include at least one port 110, a second screen 120, and a processing module 130. The processing module 130 is coupled to each port 110 and the second screen 120. It should be noted that, although only one port 110 and one first screen 200 connected to the port 110 are shown in fig. 1, the number is not intended to limit the present invention.
Each port 110 is externally connected to the first screen 200, so that the electronic device 100 can provide a plurality of screens for users to use. In some embodiments, the port 110 may be implemented as a High Definition Multimedia Interface (HDMI), a Digital Visual Interface (DVI), a Video Graphics Array (VGA), or other suitable Interface for Video transmission.
The processing module 130 can be used to execute the color configuration adjustment method according to any embodiment of the present invention. In some embodiments, the functions and actions of the processing module 130 can be implemented by a Processor, such as a system on chip (SoC), a Central Processing Unit (CPU), a Microcontroller (MCU), an Application Specific Integrated Circuit (ASIC), an Application Processor (AP), or a Digital Signal Processor (DSP), executing corresponding programs, but the invention is not limited thereto.
Fig. 2 is a flowchart illustrating a color allocation adjustment method according to an embodiment of the invention. Referring to fig. 1 and 2, in an embodiment of the color allocation adjustment method, the processing module 130 can obtain a first current color allocation of the first screen 200 through the port 110 (step S10), and determine whether the first current color allocation of the first screen 200 is the same as a second current color allocation of the second screen 120 (step S20). When the processing module 130 determines that the first current color configuration of the first screen 200 is different from the second current color configuration of the second screen 120, the processing module 130 may generate an adjustment instruction according to the second current color configuration of the second screen 120 and output the adjustment instruction to the first screen 200, so that the first screen 200 may adjust the first current color configuration thereof according to the adjustment instruction (step S30). In this way, the first screen 200 externally connected to the electronic device 100 can be adjusted to display the color profile (color profile) consistent with the second screen 120 of the electronic device 100, so as to optimize the user experience.
In some embodiments, the first current color configuration or the second current color configuration may be sRGB, AdobeRGB, ECO, HDR, DCI-P3, Movie, Graphic, CAD/CAM, Reading, User, Standard, or any other suitable color configuration, and the invention is not limited thereto.
Fig. 3 is a flowchart illustrating a color allocation adjustment method according to an embodiment of the invention. Referring to fig. 1 and fig. 3, in some embodiments, before the step S10, the processing module 130 may detect each port 110 to determine whether the port 110 of the electronic device 100 is externally connected to the first screen 200 (step S40). Moreover, the processing module 130 may continue to perform the following steps when detecting that the port 110 is connected to the first screen 200, for example, step S10.
In some embodiments, the electronic device 100 further includes a control program a1, and the processing module 130 may control the second screen 120 by execution of the control program a 1. The first screen 200 may include a control program B1, and a control program B1 may be used to control the first screen 200. In addition, the electronic device 100 can implement the color allocation adjustment method according to any embodiment of the invention through communication between the control program a1 and the control program B1.
In an embodiment of the color allocation adjustment method, when the processing module 130 detects in step S40 that the first screen 200 is externally connected to the port 110 of the electronic device 100, the processing module 130 may further confirm whether the control program B1 is installed on the first screen 200 through the port 110 (step S51). When the processing module 130 determines that the first screen 200 has the control program B1 installed, the processing module 130 resumes the subsequent steps, such as step S10. When the processing module 130 determines that the control program B1 is not installed in the first screen 200, the processing module 130 may further prompt the user to install the control program B1 before the first screen 200 by jumping out the installation prompt message to the first screen 200 and/or the second screen 120 (step S52).
Fig. 4 is a flowchart illustrating a color allocation adjustment method according to an embodiment of the invention. It should be noted that, although step S40, step S51, and step S52 are not shown in fig. 4, step S40, step S51, and step S52 may be combined in fig. 4. Referring to fig. 1 and 4, in an embodiment of the color allocation adjustment method, before the step S30, the processing module 130 may further obtain the supported color allocation of the first screen 200 through the communication between the control program a1 and the control program B1 via the port 110 (step S60), so as to know which color allocation is supported by the first screen 200. After obtaining the supported color configuration of the first screen 200 and the second current color configuration of the second screen 120 (thereafter, the processing module 130 can determine whether the first screen 200 can support the second current color configuration used by the second screen 120 according to the supported color configuration obtained in step S60 (step S70).
In some embodiments, the control program a1 and the control program B1 may communicate by transferring instructions having a data format common to byte array (byte array) channels using Named Pipe (Named Pipe) technology, but the invention is not limited thereto.
FIG. 5 is a diagram illustrating an embodiment of obtaining an instruction format that supports color allocation. In one embodiment, one embodiment of the command C1 issued by the processing module 130 in step S60 through the control program A1 is shown in FIG. 5. Here, the instruction C1 may include multiple instruction segments C11-C16 that are sequential. The instruction segment C11 is a script (command code) for indicating the purpose of the instruction C1. For example, a value of 0 in segment C11 may be instructed to indicate that a supporting color configuration is obtained. Further, the instruction segment C11 may occupy 2 bytes (bytes) in number. Instruction segment C12 is used to indicate that there are several parameters to follow. For example, a value of 2 in the instruction segment C12 indicates that there are 2 parameters in the rear. Further, the occupied byte number of the instruction segment C12 may be 1 byte. Instruction segment C13 is used to indicate the number of bytes occupied by the following instruction segment. For example, a value of 12 in instruction segment C13 indicates that the number of occupied bytes of instruction segment C14 is 12 bytes. Further, the occupied byte number of the instruction segment C13 may be 4 bytes. The command segment C14 is used to indicate the module name of the screen receiving the command (here, the module name of the first screen 200). For example, instruction segment C14 may include "CP 123". Instruction segment C15 is used to indicate the number of bytes occupied by the following instruction segment. For example, a value of 4 in instruction segment C15 indicates that the number of occupied bytes of instruction segment C16 is 4 bytes. Further, the occupied byte number of the instruction segment C15 may be 4 bytes. Instruction segment C16 is used to represent the index value (index) of the screen receiving this instruction C1. For example, when the command segment C14 is "CP 123" and the value of the command segment C16 is 2, it means that the first screen 200 receiving the command C1 is one of the plurality of first screens 200 having the module name of "CP 123" and having the index value number of 2. It should be noted that the number of occupied bytes of each instruction segment C16 is not limited thereto, and may depend on the design.
FIG. 6 is a diagram illustrating an embodiment of a format of a reply to an instruction supporting color allocation. In one embodiment, an embodiment of the instruction C2 that the control program B1 replies to after receiving the instruction C1 and executing is shown in FIG. 6. Here, the instruction C2 may include multiple instruction segments C21-C24 that are sequential. The instruction segment C21 is an error code (error code) to indicate whether the execution is successful or not. For example, a value of 0 in instruction segment C21 indicates a successful execution, while other values indicate a failed execution. Instruction segment C22 is used to indicate that there are several parameters to follow. For example, a value of 1 in the instruction segment C22 indicates that there are 1 parameters in the rear. Further, the occupied byte number of the instruction segment C22 may be 1 byte. Instruction segment C23 is used to indicate the number of bytes occupied by the following instruction segment. For example, a value of 8 in instruction segment C23 indicates that the number of occupied bytes of instruction segment C24 is 8 bytes. Instruction segment C24 is used to indicate the support color configuration obtained, where each bit in instruction segment C24 represents a different respective color configuration. For example, the instruction segment C24 may be "11000010", indicating that the supported color configuration of the first screen 200 includes three color configurations in total. For example, "1" in "11000010" represents AdobeRGB, HDR, and sRGB, respectively, that is, the three color configurations supported by the first screen 200 are AdobeRGB, HDR, and sRGB. It should be noted that the color configuration represented by each bit in the instruction segment C24 is not limited thereto, and may depend on the design.
In some embodiments, the processing module 130 performs step S30 to output the adjustment command when it determines in step S20 that the first current color configuration of the first screen 200 is the same as the second current color configuration of the second screen 120 and it determines in step S70 that the first screen 200 can support the second current color configuration. It should be noted that the sequence of step S10 and step S60 can be interchanged. Alternatively, the processing module 130 may first execute step S10 and step S20, and when it is determined in step S20 that the first current color configuration of the first screen 200 is different from the second current color configuration of the second screen 120, the processing module 130 continues to execute step S60 and step S70, as shown in fig. 7, but the invention is not limited thereto. It should be noted that, although step S40, step S51, and step S52 are not shown in fig. 7, step S40, step S51, and step S52 may be combined in fig. 7.
FIG. 8 is a diagram illustrating an embodiment of a format of an instruction to obtain a current color configuration. In one embodiment, one embodiment of the command C3 issued by the processing module 130 in step S10 through the control program A1 is shown in FIG. 8. Here, the instruction C3 may include multiple instruction segments C31-C36 that are sequential. The instruction segments C31-C36 of the instruction C3 function substantially the same as the instruction segments C11-C16 of the instruction C1, and the value of the instruction segment C31 may be, for example, 1 to indicate that the current color allocation is obtained.
FIG. 9 is a diagram illustrating an exemplary format of an instruction for returning to a current color configuration. In one embodiment, an embodiment of the instruction C4 that the control program B1 replies to after receiving the instruction C3 and executing is shown in FIG. 9. Here, the instruction C4 may include multiple instruction segments C41-C44 that are sequential. The instruction segments C41-C43 of the instruction C4 function substantially the same as the instruction segments C21-C23 of the instruction C2. Instruction segment C44 is used to indicate the current color configuration obtained, where each bit in instruction segment C44 represents a different respective color configuration. For example, the instruction segment C44 may be "00000010", where "1" may represent sRGB, i.e., the current color of the first screen 200 is configured as sRGB.
Referring to fig. 2 (or fig. 3, fig. 4, fig. 7, or fig. 12A-12B), in an embodiment of step S30, the processing module 130 can directly generate an adjustment instruction through the control program a1 and output the adjustment instruction to the control program B1 of the first screen 200 through the port 110, so that the control program B1 can automatically adjust the first current color configuration of the first screen 200 to a color configuration consistent with the second current color configuration of the second screen 120 according to the adjustment instruction. For example, when the second current color of the current second screen 120 is AdobeRGB, and the first current color of the current first screen 200 is sRGB, the control program B1 may adjust the first current color configuration of the current first screen 200 to AdobeRGB according to the adjustment instruction, but the invention is not limited thereto.
FIG. 10 is a flowchart illustrating step S30 according to an embodiment. Referring to fig. 10, in another embodiment of the step S30, the processing module 130 can generate the adjustable configuration information through the control program a1 to prompt the user (step S31). Thereafter, when the control program a1 receives the adjustment determination signal generated by the user via the electronic device 100, the processing module 130 generates and outputs an adjustment command to the control program B1 of the first screen 200 via the control program a1 (step S32), so that the control program B1 automatically adjusts the first current color configuration of the first screen 200 to a color configuration consistent with the second current color configuration of the second screen 120 according to the adjustment command.
In some embodiments, the control program B1 may adjust the first current color configuration of the first screen 200 through a Scaler (Scaler), but the invention is not limited thereto.
In some embodiments, the adjustable configuration information in step S31 can prompt the user by jumping out (pop) from the display of the second screen 120 and/or the first screen 200, but the invention is not limited thereto. The user may be prompted for the adjustable configuration information in other ways than visually, such as audibly. Further, the adjustment determination signal in step S32 may be generated by the user by touching, clicking on the second screen 120 and/or the first screen 200, or more by other input devices, such as a mouse, a touch pad, a trackball, etc.
FIG. 11 is a diagram illustrating an exemplary command format for setting a new color scheme. In one embodiment, an embodiment of the adjustment command C5 issued by the processing module 130 in step S30 through the control program a1 is shown in fig. 11. Here, the trim command C5 may include multiple command segments C51-C58 that are sequential. The instruction segments C51-C56 of the adjust instruction C5 function substantially the same as the instruction segments C11-C16 of the instruction C1, and the value of the instruction segment C51 may be, for example, 2 to represent the new color allocation. Instruction segment C57 is used to indicate the number of bytes occupied by the following instruction segment. For example, a value of 8 in instruction segment C57 indicates that the number of occupied bytes of instruction segment C58 is 8 bytes. Further, the occupied byte number of the instruction segment C57 may be 4 bytes. The instruction section C58 is used to indicate to which color to configure. For example, instruction segment C58 may be "10000000," and this may indicate that the first current color configuration of the first screen 200 is to be set to AdobeRGB.
In one embodiment, the control program B1 returns an instruction after receiving the adjust instruction C5 and the execution thereof includes only an error code indicating success or failure of the execution, such as the instruction C21 of instruction C2.
In some embodiments, the first screen 200 or the second screen 120 may have a predetermined module name, and the module name of the first screen 200 or the second screen 120 may be set by the manufacturer according to the corresponding naming rule. Generally, the first screen 200 and the second screen 120 with the same naming rule should be the same series of screens, and the first screen 200 and the second screen 120 should have the same color rendering (or close to each other) when they are displayed with the same color configuration. Even if the first screen 200 and the second screen 120 with different naming rules are displayed in the same color configuration, the first screen 200 and the second screen 120 may have obvious color difference due to the configuration file or hardware support, and the user experience may be affected. Therefore, the processing module 130 can also ensure that the color development of the first screen 200 after the color configuration is subsequently adjusted can be exactly the same (or quite close to) the color development of the second screen 120 by determining whether the first screen 200 and the second screen 120 are the same series of screens, so as to improve the user experience.
Fig. 12A and 12B are schematic flowcharts illustrating a color allocation adjustment method according to an embodiment of the invention. Referring to fig. 1, 12A and 12B, in an embodiment of the color allocation adjustment method, when the processing module 130 detects that the first screen 200 is externally connected to the port 110 of the electronic device 100 in step S40, the processing module 130 may further obtain a module name of the first screen 200 through the port 110 (step S81). Moreover, the processing module 130 can determine whether the module name obtained in step S81 meets a predetermined naming rule (step S82). In some embodiments, the predetermined naming rule may be the naming rule of the series to which the second screen 120 belongs, but the invention is not limited thereto.
When the module name obtained in step S82 meets the predetermined naming rule, the display of the first screen 200 externally connected to the electronic device 100 in the same color configuration as the second screen 120 can be the same (or close to the same), and therefore, the processing module 130 can choose to continue the subsequent steps, for example, step S10. In some embodiments, when the module name obtained by the processing module 130 in the step S82 does not conform to the predetermined naming rule, the processing module 130 may not continue to perform the subsequent steps, such as the step S10, but the invention is not limited thereto.
In summary, embodiments of the present invention provide an electronic device and a color allocation adjustment method, which can compare a first current color allocation externally connected to a first screen of the electronic device with a second current color allocation of a second screen of the electronic device, and adjust the first screen to be displayed in the second current color allocation when the first current color allocation is different from the second current color allocation, so that the color rendering of the externally connected first screen can be approximately consistent with the color rendering of the second screen, thereby improving user experience.
The embodiments of the present invention are disclosed above, but not limited to the scope of the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention, therefore, the scope of the present invention should be determined by the appended claims.