Display control method and apparatus
By detecting display area adjustment commands, generating and applying display parameter files, the problem of deteriorated display effects caused by display area adjustments was solved, resulting in a clearer display effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2026-04-14
AI Technical Summary
Adjusting the display area within the display unit may degrade the display quality of the content.
By detecting display area adjustment commands, a display parameter file is generated, instructing the electronic device in the target display area to obtain suitable display parameters and adjust the size and resolution of the display area to match the needs of the displayed content.
It improves the display effect of the target display area and avoids image distortion and blurring caused by size and resolution mismatch.
Smart Images

Figure CN113885990B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and more specifically, to a display control method and apparatus. Background Technology
[0002] Currently, display devices can display content from different electronic devices in separate areas, allowing the content from different electronic devices to be presented in different display areas.
[0003] However, adjusting the display area in the display unit may cause the display effect of the content displayed in the display area to deteriorate. Summary of the Invention
[0004] This application provides a display control method and apparatus.
[0005] One display control method includes:
[0006] A first display content is output in the first display area of the display unit, and a second display content is output in the second display area of the display unit, wherein the first display content and the second display content originate from different electronic devices;
[0007] Upon detecting a display area adjustment command, a display parameter file is generated corresponding to each of the at least one target display area to be adjusted as indicated by the display area adjustment command. The display area adjustment command is used to trigger a change in the size of at least one display area. The target display area belongs to the first display area and the second display area.
[0008] The target electronic device corresponding to the target display area is instructed to obtain the display parameter file of the target display area, wherein the target electronic device is an electronic device that provides display content to the target display area.
[0009] In one possible implementation, generating display parameter files corresponding to each of the at least one target display area to be adjusted as indicated by the display area adjustment instruction includes:
[0010] Determine at least one target display area to be adjusted as indicated by the display area adjustment command, and the appropriate resolution parameters for the adjusted target display area;
[0011] Generate a display parameter file for the target display area, the display parameter file including at least the resolution parameters suitable for the target display area.
[0012] In another possible implementation, determining at least one target display area to be adjusted as indicated by the display area adjustment instruction, and suitable resolution parameters for the adjusted target display area, includes:
[0013] The display area adjustment command indicates at least one target display area to be adjusted, and the aspect ratio of the adjusted target display area is determined.
[0014] Based on the adjusted aspect ratio of the target display area, the appropriate resolution parameters for the target display area are determined.
[0015] In another possible implementation, determining at least one target display area to be adjusted by the display area adjustment instruction and the aspect ratio corresponding to the adjusted target display area includes:
[0016] Determine at least one target display area to be adjusted as indicated by the display area adjustment command, and the target aspect ratio to which the target display area needs to be adjusted.
[0017] From multiple standard aspect ratios, determine the target standard aspect ratio that matches the target aspect ratio.
[0018] In yet another possible implementation, detecting the display area adjustment command includes:
[0019] Based on the adjustment operation that adjusts the size of the target display area, a display area adjustment command triggered by the adjustment operation is obtained;
[0020] or,
[0021] A display adjustment interface is presented, and the size adjustment parameters input for the target display area are obtained in the display adjustment interface, resulting in a display area adjustment command containing the size adjustment parameters;
[0022] The target display area is either the first display area or the second display area.
[0023] In another possible implementation, the adjustment operation based on adjusting the size of the target display area to obtain the display area adjustment instruction triggered by the adjustment operation includes:
[0024] An adjustment operation to adjust the size of the target display area is detected, and upon confirmation that the adjustment operation has ended, a display area adjustment command triggered by the adjustment operation is obtained.
[0025] In another possible implementation, after receiving the display area adjustment instruction, the following is also included:
[0026] Determine the target aspect ratio to which the target display area, as indicated by the display area adjustment command, needs to be adjusted;
[0027] From multiple standard aspect ratios, determine the target standard aspect ratio that matches the target aspect ratio;
[0028] Display a target display area with the target standard aspect ratio according to the size of the target display area indicated by the display area adjustment command.
[0029] In yet another possible implementation, detecting the display area adjustment command includes:
[0030] A display area switching command is detected, which is used to instruct switching between the first display area and the second display area;
[0031] The generation of display parameter files corresponding to each of the at least one target display area to be adjusted as indicated by the display area adjustment command includes:
[0032] Generate the display parameter file for the first display area after switching;
[0033] Generate the display parameter file for the second display area after switching.
[0034] In another possible implementation, the step of generating the display parameter file for the switched first display area includes:
[0035] Determine the appropriate first resolution parameters for the first display area after switching, and generate a first display parameter file containing the first resolution parameters;
[0036] Determine the appropriate second resolution parameters for the switched second display area, and generate a second display parameter file containing the second resolution parameters.
[0037] One of the display control devices includes:
[0038] A display output unit is configured to output first display content in a first display area of a display unit and output second display content in a second display area of a display unit, wherein the first display content and the second display content originate from different electronic devices;
[0039] The file generation unit is configured to detect a display area adjustment instruction and generate display parameter files corresponding to each of the at least one target display area to be adjusted as indicated by the display area adjustment instruction. The display area adjustment instruction is used to trigger a change in the size of at least one display area, and the target display area belongs to the first display area and the second display area.
[0040] The information indication unit is used to instruct the target electronic device corresponding to the target display area to obtain the display parameter file of the target display area, wherein the target electronic device is an electronic device that provides display content to the target display area.
[0041] In another aspect, this application also provides an electronic device including a processor and a memory;
[0042] The processor is used to execute the display control method described in any of the above descriptions;
[0043] The memory is used to store the programs required for the processor to perform operations. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic flowchart of a display control method provided in an embodiment of this application;
[0046] Figure 2 A schematic diagram of the component architecture of an application scenario to which the display control method provided in the embodiments of this application is applicable;
[0047] Figure 3 This is an example diagram of a picture-in-picture display output by a display device in an embodiment of this application;
[0048] Figure 4 This is an example diagram of a picture-in-picture output by a display device in an embodiment of this application;
[0049] Figure 5 This is another schematic flowchart of the display control method provided in the embodiments of this application;
[0050] Figure 6 This is another schematic flowchart of the display control method provided in the embodiments of this application;
[0051] Figure 7 and Figure 8 This is a schematic diagram illustrating the adjustment of the size of the sub-screen area in the PIP in this application;
[0052] Figure 9 A schematic diagram of a display adjustment interface provided in an embodiment of this application;
[0053] Figure 10 This is another schematic flowchart of the display control method provided in the embodiments of this application;
[0054] Figure 11 This is a schematic diagram of the composition structure of a display control device provided in an embodiment of this application;
[0055] Figure 12 This is a schematic diagram of the component architecture of an electronic device provided in an embodiment of this application.
[0056] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings are used to distinguish similar parts and are not necessarily used to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that illustrated herein. Detailed Implementation
[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0058] like Figure 1 The illustration shows a flowchart of a display control method provided in an embodiment of this application. The method of this embodiment can be applied to display devices with image display functions, such as monitors. The display device can be any electronic device with image display functions, without any limitation.
[0059] The method in this embodiment may include:
[0060] S101, output the first display content in the first display area of the display unit, and output the second display content in the second display area of the display unit.
[0061] The first and second displayed content originate from different electronic devices.
[0062] For example, to make it easier to distinguish, the electronic device that provides the first display content to the first display area can be called the first electronic device, while the electronic device that provides the second display content to the second display area can be called the second electronic device.
[0063] It is understandable that both the first and second displayed content originate from electronic devices outside the display device. Of course, it is also possible that one of the first and second displayed content originates from the display device, while the other originates from another electronic device outside that display device.
[0064] To facilitate understanding, let's illustrate with an example from a specific scenario. For instance... Figure 2 This illustrates a scenario in which the solution of this application is applicable. Figure 2 The following explanation uses a monitor as an example of a display device.
[0065] Depend on Figure 2It can be seen that the display 201 is connected to the first electronic device 202 and the second electronic device 203.
[0066] exist Figure 2 Based on this, the display can simultaneously show two display areas within the display unit. Correspondingly, the two display areas can be used to display images input by a first electronic device and images input by a second electronic device, respectively.
[0067] certainly, Figure 2 This is merely one example of a scenario in which the solution of this application is applicable; the same applies to other situations.
[0068] It is understood that there may be a variety of ways in which the first display area and the second display area are displayed in the display unit in this application.
[0069] In one possible implementation, the second display area displayed by the display unit is located above the first display area, or the first display area displayed by the display unit surrounds the second display area, such that the first display area serves as the main display area and the second display area serves as the sub-display area.
[0070] For example, the display unit can display the first and second display areas in a picture-in-picture (PIP) format, where two images of different sizes are superimposed. The first display area can be the main image area in the PIP, while the second display area is the sub-image area. Correspondingly, these two image areas display images from different sources.
[0071] like Figure 3 As shown, this illustrates an example of picture-in-picture output in a display device. Figure 3 As can be seen, the display screen of this device displays a main screen area 301, which is a full-screen display area. A sub-screen area 302 is superimposed on top of the main screen area 301. The size of the sub-screen area is much smaller than the main screen area. Simultaneously, the main screen area can display content input to the display device from the first electronic device 303, and the sub-screen area can display image content input to the display device from the second electronic device 304, such as... Figure 3 As shown, the main screen area and the sub-screen area will display different content.
[0072] In another possible implementation, the display unit can display the first display area and the second display area side by side. For example, the display unit can use PBP (Picture by Picture) to simultaneously display the first display area and the second display area side by side. Here, PBP can be called hard screen splitting or picture-by-picture, etc. The two display areas displayed using PBP do not distinguish between primary and secondary areas and are presented side by side on the screen without overlapping.
[0073] like Figure 4 As shown, this illustrates an example of PBP output in a display device. Figure 4 As can be seen, the display screen of this display device shows a first screen area 401 and a second screen area 402. These two screen areas are displayed side by side on the screen without obstructing or surrounding each other. The first screen area can be used to display content from the first electronic device 403, while the second screen area can be used to display content from the second electronic device 404.
[0074] S102, a display area adjustment command is detected, and a display parameter file corresponding to each of the at least one target display area to be adjusted as instructed by the display area adjustment command is generated.
[0075] The display area adjustment command is used to trigger a change in the size of at least one display area.
[0076] For ease of distinction, the display area to be adjusted by the display area adjustment command is called the target display area, which belongs to the first display area and the second display area.
[0077] Of course, the display area adjustment command can indicate one or two target display areas for adjustment. If there is only one target display area, then the target display area is either the first display area or the second display area; if there are multiple target display areas, then the display area adjustment command indicates that the display areas to be adjusted include the first display area and the second display area.
[0078] It is understandable that since a display area adjustment command can trigger a change in the size of at least one display area, and this change involves adjustments to the state of related parameters, the electronic device providing display content to that display area needs to be aware of these parameter changes so that the display content provided can adapt to the size change. Therefore, this application generates a display parameter file for the required display area after detecting a display adjustment command, thus achieving timely updates to the display parameter file for the required display area.
[0079] The display parameter file is a file used by the display device to record information related to display parameters.
[0080] In this application, different display areas correspond to different display parameter files. Each display area's corresponding display parameter file records at least the relevant display parameters output by the display device, such as the size of the display area and the suitable resolution parameters. The display parameters corresponding to this display area may also include display device-related parameters such as refresh rate and display device model, etc., without limitation.
[0081] In one possible implementation, the display parameter file can be an Extended Display Identification Data (EDID) file.
[0082] It is understood that, upon detecting a display area adjustment command, this application can also present a target display area of a corresponding size based on the size of the target display area indicated by the display area adjustment command.
[0083] S103, instructs the target electronic device corresponding to the target display area to obtain the display parameter file of the target display area.
[0084] The target electronic device is an electronic device that provides display content to the target display area. For example, assuming the target display area is a second display area, then the target electronic device is a second electronic device that provides display content to the second display area.
[0085] In one possible implementation, the display device can store the generated display parameter file in its own memory, such as the memory associated with the display device's microcontroller unit (MCU) (e.g., DDCRM). Based on this, the display device can pull high the level of a pin (e.g., the HDP pin) connecting it to the target electronic device to notify the target electronic device's graphics card that the display parameter file for the target display area has been updated. The graphics card of the target electronic device will then read the display parameter file.
[0086] It is understandable that after obtaining the display parameter file, the target electronic device can control the display content output to the target display area based on the relevant information in the display parameter file, so that the display content can adapt to the adjusted target display area.
[0087] As can be seen from the above, this application outputs first display content in the first display area of the display unit and outputs second display content in the second display area. If a display area adjustment command is detected, a display parameter file corresponding to at least one target display area to be adjusted by the display area adjustment command will be generated. This allows the electronic device corresponding to the target display area to obtain the display parameter file, thereby enabling the electronic device to adjust the display content output by the target display area based on the display parameter file, thereby improving the display effect of the display content in the target display area.
[0088] Understandably, if the size of the display area output by the display device to the display interface does not match the resolution of the image in that display area, it may cause distortion of the content displayed in that display area, resulting in problems such as unclear images.
[0089] Therefore, upon detecting a display area adjustment command, in order to enable the target display area to present the image more clearly, this application may first determine at least one target display area to be adjusted by the display area adjustment command and the suitable resolution parameters for the adjusted target display area. Accordingly, a display parameter file for the target display area can be generated, which includes at least the currently suitable resolution parameters for the target display area, i.e., the suitable resolution parameters for the adjusted target display area.
[0090] It is understandable that determining the appropriate resolution parameters for a target display area refers to determining the appropriate resolution parameters for the image presented by that target display area. For example, these resolution parameters can be some or all of the parameters required to characterize the appropriate resolution for the image, such as horizontal blanking (HBalnking), vertical blanking (Vbalnking), front porch, and back porch.
[0091] The appropriate resolution for the target display area is related to the size of the target display area. Therefore, the appropriate resolution for the target display area can be determined by taking into account the size of the target display area.
[0092] The following section describes one possible approach to determining the appropriate resolution for the target display area.
[0093] like Figure 5 The diagram illustrates a flowchart of another embodiment of a display control method according to this application. The method of this embodiment may include:
[0094] S501, output the first display content in the first display area of the display unit, and output the second display content in the second display area of the display unit.
[0095] The first and second displayed content originate from different electronic devices.
[0096] This step can be referred to in the relevant description of the previous embodiments, and will not be repeated here.
[0097] S502, a display area adjustment command is detected, and at least one target display area to be adjusted as indicated by the display area adjustment command is determined, as well as the aspect ratio of each adjusted target display area.
[0098] This display area adjustment command is used to trigger a change in the size of at least one target display area.
[0099] S503, for each target display area, determines the appropriate resolution parameters for that target display area based on the adjusted aspect ratio.
[0100] Understandably, upon detecting a display area adjustment command, the display device will adjust the size of the target display area or display the target display area of the required size according to the target display area indicated by the command and the size to which the target display area needs to be adjusted.
[0101] To ensure a clearer display of the image in the target display area, it is necessary to determine the appropriate resolution for the target display area based on its adjusted size and other information. Therefore, this application requires determining the aspect ratio of the adjusted target display area.
[0102] In one possible scenario, the aspect ratio of the adjusted target display area can be the target aspect ratio that the target display area needs to be adjusted to, as indicated by the display area adjustment command. In this scenario, the target aspect ratio is the actual aspect ratio that the user sets or inputs.
[0103] Accordingly, the resolution suitable for the target aspect ratio can be determined according to the target aspect ratio indicated by the display area adjustment command. For example, the resolution suitable for the target aspect ratio can be determined according to the mapping algorithm between the set aspect ratio and resolution.
[0104] In another possible scenario, for each target display area, after determining the target aspect ratio to which the target display area needs to be adjusted, a target standard aspect ratio that matches the target aspect ratio can be determined from multiple standard aspect ratios. Correspondingly, the appropriate resolution parameters for the target standard aspect ratio corresponding to the target display area can be determined.
[0105] The standard aspect ratio is a pre-defined aspect ratio that the graphics card of an electronic device typically supports. For example, the standard aspect ratio can include 4:3, 16:9, and 16:10, etc.
[0106] The target standard aspect ratio that matches the target aspect ratio of the target display area can be: the standard aspect ratio that is closest to the target aspect ratio among multiple standard aspect ratios.
[0107] The suitable resolution parameters for a standard aspect ratio can be calculated using an algorithm that determines resolution. Considering that the suitable resolution parameters for a standard aspect ratio are generally fixed, the suitable resolution parameters for each standard aspect ratio can also be pre-set and stored. Correspondingly, the resolution parameters corresponding to the target standard aspect ratio can be determined.
[0108] It is understandable that users may arbitrarily set or adjust the size of the target display area, meaning the resolution suitable for the target aspect ratio indicated by the display area adjustment command may not be the standard resolution supported by the electronic device's graphics card. This could result in the electronic device being unable to output images at the corresponding resolution. Therefore, by determining a standard aspect ratio that matches the target aspect ratio and then determining suitable resolution parameters based on that standard aspect ratio, the occurrence of abnormal display in the target display area due to the electronic device's inability to generate images at the corresponding resolution can be reduced.
[0109] At the same time, after determining the matching target standard aspect ratio according to the target aspect ratio to which the target display area needs to be adjusted, the resolution parameters determined based on the target standard aspect ratio are actually the resolution parameters that are more suitable for the adjusted target display area. This ensures the image display effect of the target display area and avoids the situation where the target display area is abnormal due to the graphics card not supporting a certain resolution.
[0110] Furthermore, in order to ensure that the resolution of the adjusted target display area is consistent with the target standard aspect ratio, this application can also, after detecting the display area adjustment command, display the target display area with the target standard aspect ratio according to the size of the target display area indicated by the display area adjustment command.
[0111] For example, the optimized length and optimized width of the target display area can be determined according to the target length and target width of the target display area indicated by the display area adjustment instruction. The ratio of the optimized length to the optimized width is the target standard aspect ratio corresponding to the target display area, and the optimized length is the length that is closest to the target length under the premise that the ratio of the optimized length to the optimized width is the target standard length; the optimized width is the width that is closest to the target width under the premise that the ratio of the optimized length to the optimized width is the target standard length ratio.
[0112] By combining the size of the target display area indicated by the display area adjustment command with the target standard aspect ratio that matches that target display area, the system ensures that the target display area is as close as possible to the size indicated by the display area adjustment command while also maintaining a standard aspect ratio. Based on this, and taking into account the standard aspect ratio of the target display area, the system determines the appropriate resolution parameters for that area. This results in resolution parameters that perfectly match the target display area, allowing the graphics card to provide display content to the target display area at a suitable resolution, thereby improving the overall display quality.
[0113] S504 generates a display parameter file for each target display area.
[0114] The display parameter file should include at least the resolution parameters suitable for the target display area.
[0115] S505 instructs the target electronic device corresponding to the target display area to obtain the display parameter file of the target display area.
[0116] The target electronic device is an electronic device that provides display content to the target display area.
[0117] This step can be referred to in the relevant description of the previous embodiments, and will not be repeated here.
[0118] It is understood that, in the embodiments of this application, there are multiple possibilities for the target display area to be adjusted by the display area adjustment command, and there are also multiple possibilities for the generation of display area adjustment quality. These will be explained in detail below.
[0119] In one possible implementation, the display area adjustment command can be a size adjustment command for a display area, which can be either a first display area or a second display area. For ease of distinction, the display area to be adjusted by the display area adjustment command will still be referred to as the target display area.
[0120] In this application, there are multiple possibilities for adjusting the size of the target display area. Depending on the different implementations of adjusting the size of the target display area, the way the display device receives the display area adjustment command will also differ.
[0121] In one implementation of adjusting the size of a target display area, a display area adjustment command triggered by the adjustment operation can be obtained based on the adjustment operation that adjusts the size of the target display area.
[0122] The adjustment operation is an input operation applied to the displayed target area, which can directly trigger a change in the size of the target display area. For example, the adjustment operation can be a drag operation applied to at least one border of the target display area and dragging that border, which can adjust the size of the target display area to be larger or smaller.
[0123] The display control method of this application is described below, based on an adjustment operation acting on the target display area, which triggers a display area adjustment command. For example... Figure 6 The diagram illustrates a flowchart of another embodiment of a display control method according to this application. The method of this embodiment may include:
[0124] S601, outputs the first display content in the first display area of the display unit, and outputs the second display content in the second display area of the display unit.
[0125] The first and second displayed content originate from different electronic devices.
[0126] S602, An adjustment operation to adjust the size of the target display area is detected, and upon confirmation that the adjustment operation has ended, a display area adjustment command triggered by the adjustment operation is obtained.
[0127] It is understandable that, since the adjustment operation is applied directly to the target display area and is an input operation used to change the size of the target display area, the size of the target display area in the display unit will change with the adjustment operation after the adjustment operation is applied to the target display area.
[0128] The adjustment operation can be the drag operation mentioned earlier, which applies to the target display area and drags at least one border of the target display area. This drag operation can be performed using a mouse or a finger; there are no restrictions on which method is used.
[0129] To facilitate understanding, let's take the example of a display device using the PIP method to display the main screen area and the sub-screen area in the display unit.
[0130] like Figure 7 As shown, the display unit of the display device presents a main screen area 701 and a sub-screen area 702. Furthermore, if the user wants to change the size of the sub-screen area, they can drag the left vertical border 703 and the bottom horizontal border 704 of the sub-screen area using the mouse, as shown below. Figure 7 As shown, the mouse cursor is located at the intersection of the left vertical border 703 and the bottom horizontal border 704. Figure 7By dragging the mouse cursor to the lower left, you can move the left vertical border 703 of the sub-screen area 702 to the left, and drag the lower horizontal border 704 downwards. Figure 7 As indicated by the mouse cursor.
[0131] exist Figure 7 Based on this, as the mouse moves to the lower left, the area of the sub-screen area expands to the lower left, as shown below. Figure 8 A schematic diagram of the enlarged sub-screen area 801 is shown. Among them, Figure 8 The dotted lines within the sub-screen area 801 indicate the positions of the left vertical border and the bottom horizontal border of the sub-screen area before adjustment.
[0132] Figure 7 and Figure 8 This example illustrates adjusting the size of the sub-screen area in PIP. The process of adjusting the size of the main screen area in PIP or the size of each display area in PBP is similar and will not be elaborated further.
[0133] Of course, adjustment operations can also be other forms of operations that act on the target display area, as long as they can change the size of the target display area, there are no restrictions on this.
[0134] The adjustment operation can end by either releasing the adjustment operation or stopping the adjustment operation; there are no restrictions on this.
[0135] Understandably, if the size of the target display area is not the size the user expects, the user will continue to adjust the target display area. If the adjustment is completed and it means that the current adjusted size of the target display area meets the user's needs, a display area adjustment command is triggered so that the display parameter file of the target display area can be updated subsequently. This can reduce the number of times the display parameter file is updated and the amount of data interaction between the display device and the target electronic device associated with the target display area, while still meeting the user's needs.
[0136] It is understood that this implementation uses the example of obtaining a display area adjustment command after the adjustment operation is completed. In order to dynamically update the resolution of the screen displayed in the target display area as the adjustment operation is performed, this application can also trigger the generation of a display area adjustment command at a set time interval during the detection of the adjustment operation. This allows for the continuous generation of display parameter files during the adjustment operation, enabling the electronic device associated with the target display area to obtain the display parameter files in a timely manner, and thus update the resolution of the screen displayed in the target display area in real time during the adjustment operation.
[0137] In this embodiment, the display area adjustment command can also be called a size adjustment command.
[0138] S603, in response to the display area adjustment command, determines the target aspect ratio to which the target display area is adjusted.
[0139] The aspect ratio of the target display area is the ratio of the actual length to the actual width of the target display area at the end of the adjustment operation.
[0140] S604, determine the target standard aspect ratio that matches the target aspect ratio from multiple standard aspect ratios.
[0141] S605 generates a display parameter file containing the resolution parameters suitable for the target standard aspect ratio for the target display area.
[0142] The steps S603 to S605 above can be found in the relevant descriptions of the previous embodiments, and will not be repeated here.
[0143] It should be noted that this embodiment uses the standard aspect ratio of the target display area to determine the appropriate resolution parameters for the target display area as an example. However, the method of determining the resolution parameters directly based on the target aspect ratio of the target display area is also applicable to this embodiment.
[0144] S606, the display parameter file is stored in a designated memory, and the target electronic device associated with the target display area is instructed to read the display parameter file, so that the target electronic device reads the display parameter file from the designated memory.
[0145] It should be noted that, in order to facilitate understanding of the solution of this application, step S606 is described as an example of an implementation in which the display device instructs the target electronic device to obtain the display parameter file of the target display area. However, the same applies to other methods of instructing the target electronic device to read the display parameter file.
[0146] Understandably, since the target display parameter file includes resolution parameters suitable for the target display area, the target electronic device can transmit target display content suitable for that target display area to the display device according to those resolution parameters. The resolution parameters of this target display content are those display content with resolution parameters suitable for that target display area.
[0147] Of course, in practical applications, to reduce the amount of data transmitted, the target electronic device can also transmit compressed target display content to the display device. Based on this, the display device can decompress the compressed target display content to obtain display content with resolution parameters suitable for the target display area and output it to the target display area.
[0148] It is understood that, in the embodiments of this application, after obtaining the adjustment operation, the size of the target display area can be adjusted in conjunction with the adjustment operation so that the target display area presents the actual size after the adjustment operation.
[0149] However, as mentioned above, if the target aspect ratio of the target display area is not the standard aspect ratio, although the standard resolution parameter corresponding to the standard aspect ratio that matches the target aspect ratio can be used as the suitable resolution parameter for the target display area, there is still a certain gap between the target aspect ratio of the target display area and the standard aspect ratio. Therefore, the target display area may still have slight distortion of the displayed content or black border areas.
[0150] Based on the above problems, after obtaining the display area adjustment, this application can also determine the target aspect ratio that the target display area to be adjusted to, as indicated by the display area adjustment instruction, determine the target standard aspect ratio that matches the target aspect ratio from multiple standard aspect ratios, and then display the target display area with the target standard aspect ratio according to the size of the target display area indicated by the display area adjustment instruction.
[0151] In another implementation of adjusting the size of the target display area and obtaining the size adjustment command in this application, this application can present a display adjustment interface, obtain the size adjustment parameters input for the target display area in the display adjustment interface, and obtain the display area adjustment command (i.e., the size adjustment command) containing the size adjustment parameters.
[0152] In practical applications, users can trigger the display device to display the adjustment interface by clicking a specified button or performing a specified operation.
[0153] The display adjustment interface can be an on-screen display (OSD) menu or other forms of menu interface, without any restrictions.
[0154] This display adjustment interface can include input boxes for setting the desired size of the target display area. For example... Figure 9 As shown, it illustrates a schematic diagram of the display adjustment interface.
[0155] In Figure 9 Taking PIP mode as an example, the display adjustment interface includes source device settings 901 for the sub-screen area, as well as size input boxes 902 for setting the length and width of the sub-screen area to be adjusted.
[0156] The size adjustment parameter may include values such as the length and width that the target display area needs to be adjusted to.
[0157] Understandably, after the user enters the desired size adjustment parameters for the target display area in the display adjustment interface, clicking the confirmation button in the display adjustment interface will trigger the display device to receive the display area adjustment command.
[0158] It is understood that after receiving the display area adjustment instruction, this application can determine the appropriate resolution parameters for the target display area and generate the corresponding display parameter file in accordance with the methods of the preceding embodiments. For details, please refer to the relevant description of any of the preceding embodiments, which will not be repeated here.
[0159] It should be noted that the above explanation uses two methods of obtaining display area size adjustment instructions as examples. In practical applications, there are other ways to obtain size adjustment instructions. For example, the electronic device that provides display content to the display area can input the size adjustment instructions associated with that electronic device. For example, the electronic device can transmit the size adjustment instructions to the display device based on the communication protocol between the graphics card and the display device (such as the DDCCI protocol).
[0160] Of course, other methods of obtaining size adjustment instructions are also applicable to this application, and there are no restrictions on them.
[0161] In another possible implementation of this application, the display area adjustment instruction can be a display area switching instruction used to trigger the switching between the first display area and the second display area. Switching between the first and second display areas can involve exchanging the size and position of the first and second display areas.
[0162] Understandably, after the first and second display areas are swapped, the sizes of both the first and second display areas change. In this case, in order for the electronic devices corresponding to the first and second display areas to adaptively adjust the parameters of the displayed content, this application needs to generate not only the display parameter file for the switched first display area, but also the display parameter file for the switched second display area.
[0163] The following explanation will consider one possible scenario, such as... Figure 10 The diagram illustrates a flowchart of another embodiment of a display control method according to this application. The method of this embodiment may include:
[0164] S1001, output the first display content in the first display area of the display unit, and output the second display content in the second display area of the display unit.
[0165] The first display content originates from the first electronic device, and the second display content originates from the second electronic device.
[0166] This step can be referred to in the relevant description of the previous embodiments, and will not be repeated here.
[0167] S1002, a display area switching command has been detected.
[0168] This display area switching command is used to indicate switching between the first and second display areas.
[0169] For example, in PIP mode, the display switching command can trigger the switching between the main display screen and the sub-display screen, so that the main display screen becomes the sub-display screen, and the original sub-display screen becomes the main display screen.
[0170] There are several possible ways to obtain the display area switching command. In one possible implementation, the display device can output a display adjustment interface on the display unit, which may include a display area switching button. Based on this, if the touch of the display area switching button is detected, a display area switching command is obtained.
[0171] For example, the interface display can be adjusted by activating the display area, such as activating the OSD menu. Figure 9 As shown, the display area switching button 903 is displayed in the display area adjustment interface. When the user clicks the display area switching button 903, the user inputs a display area switching command to the display device.
[0172] S1003, determine the suitable first resolution parameters for the first display area after switching, and generate a first display parameter file containing the first resolution parameters.
[0173] Since the first display area and the second display area have swapped sizes, the size of the first display area has changed after the switch. Therefore, the suitable first resolution parameter for the switched first display area is related to the size of the switched first display area.
[0174] For example, in one possible implementation, the aspect ratio of the first display area after switching can be determined first, and then the first resolution parameter suitable for the aspect ratio of the first display area can be determined.
[0175] The process of determining the aspect ratio of the first display area after switching is the same as the process of determining the aspect ratio of the target display area.
[0176] For example, it could be to determine the target aspect ratio that the first display area needs to be adjusted to after switching, and use the resolution parameter that is suitable for the target aspect ratio as the first resolution parameter.
[0177] For example, after determining the target aspect ratio that the first display area needs to be adjusted to after switching, it is also possible to determine the target standard aspect ratio that matches the target aspect ratio, and then determine the first resolution parameter suitable for the target standard aspect ratio.
[0178] S1004, instructing the first electronic device associated with the first display area to obtain the first display parameter file.
[0179] This step can be referred to in the relevant description of the previous embodiments, and will not be repeated here.
[0180] S1005, determine the appropriate second resolution parameters for the switched second display area, and generate a second display parameter file containing the second resolution parameters.
[0181] The process of determining the appropriate second resolution parameters for the switched second display area is similar to the process of determining the appropriate resolution parameters for the target display area.
[0182] In one possible implementation, the aspect ratio of the second display area after switching can be determined first, and then the appropriate resolution parameters for the aspect ratio of the second display area can be determined.
[0183] For example, it could be to determine the target aspect ratio that the second display area needs to be adjusted to after switching, and use the resolution parameter that is suitable for the target aspect ratio as the second resolution parameter.
[0184] For example, after determining the target aspect ratio that the second display area needs to be adjusted to after switching, it is also possible to determine the target standard aspect ratio that matches the target aspect ratio, and then determine the second resolution parameter that is suitable for the target standard aspect ratio.
[0185] S1006, instructing the second electronic device associated with the second display area to obtain the second display parameter file.
[0186] This step can also be found in the relevant descriptions of the previous embodiments, and will not be repeated here.
[0187] As can be seen from the above, this embodiment can determine the suitable resolution parameters for the first and second display areas after the display area is switched after the display area is detected, and generate display parameter files containing the corresponding resolution parameters for the first and second display areas after the switch, so that the electronic devices corresponding to each display area after the switch can obtain the corresponding display parameter files in a timely manner, which is conducive to timely and accurate adjustment of the resolution of the display screen suitable for the switched display area.
[0188] In accordance with the display control method of this application, this application also provides a display control device.
[0189] like Figure 11 The diagram illustrates the structural composition of a display control device according to an embodiment of this application. The device in this embodiment may include:
[0190] Display output unit 1101 is used to output first display content in a first display area of display unit and output second display content in a second display area of display unit, wherein the first display content and the second display content originate from different electronic devices;
[0191] The file generation unit 1102 is used to detect a display area adjustment instruction and generate display parameter files corresponding to each of the at least one target display area to be adjusted by the display area adjustment instruction. The display area adjustment instruction is used to trigger a change in the size of at least one display area. The target display area belongs to the first display area and the second display area.
[0192] The information indication unit 1103 is used to instruct the target electronic device corresponding to the target display area to obtain the display parameter file of the target display area, wherein the target electronic device is an electronic device that provides display content to the target display area.
[0193] In one possible implementation, the file generation unit includes:
[0194] A resolution determination unit is used to detect a display area adjustment command, determine at least one target display area to be adjusted as indicated by the display area adjustment command, and determine the appropriate resolution parameters for the adjusted target display area.
[0195] A parameter file generation unit is used to generate a display parameter file for the target display area, wherein the display parameter file includes at least the resolution parameters suitable for the target display area;
[0196] In one possible implementation, the resolution determination unit includes:
[0197] An aspect ratio determination subunit is used to detect a display area adjustment command, determine at least one target display area to be adjusted by the display area adjustment command, and the aspect ratio of the adjusted target display area.
[0198] The resolution determination subunit is used to determine the appropriate resolution parameters for the target display area based on the adjusted aspect ratio of the target display area.
[0199] In one possible implementation, the aspect ratio determines the sub-unit, including:
[0200] A target aspect ratio determination unit is used to detect a display area adjustment command, determine at least one target display area to be adjusted by the display area adjustment command, and the target aspect ratio to which the target display area needs to be adjusted.
[0201] The standard aspect ratio determination unit is used to determine a target standard aspect ratio that matches the target aspect ratio from multiple standard aspect ratios.
[0202] In yet another possible implementation, the file generation unit includes:
[0203] The first instruction obtaining unit is used to obtain a display area adjustment instruction triggered by the adjustment operation based on the adjustment operation that adjusts the size of the target display area.
[0204] or,
[0205] The second instruction obtaining unit is used to present a display adjustment interface, obtain the size adjustment parameters input for the target display area in the display adjustment interface, and obtain a display area adjustment instruction containing the size adjustment parameters.
[0206] The target display area is either the first display area or the second display area.
[0207] In another possible implementation, the first instruction obtaining unit is specifically configured to detect an adjustment operation that adjusts the size of the target display area, and upon confirming that the adjustment operation has ended, obtain a display area adjustment instruction triggered by the adjustment operation.
[0208] In yet another possible implementation, the device further includes:
[0209] The aspect ratio determination unit is used to determine the target aspect ratio to which the target display area to be adjusted, as indicated by the display area adjustment instruction, is required after the first instruction obtaining unit or the second instruction obtaining unit obtains the display area adjustment instruction.
[0210] The target aspect ratio determination unit is used to determine a target standard aspect ratio that matches the target aspect ratio from multiple standard aspect ratios;
[0211] A locking ratio unit is used to display a target display area having the target standard aspect ratio according to the size of the target display area indicated by the display area adjustment command.
[0212] In another possible implementation, the file generation unit includes:
[0213] The third instruction acquisition unit is used to detect a display area switching instruction, which is used to instruct switching between the first display area and the second display area;
[0214] The first file generation unit is used to generate the display parameter file for the switched first display area;
[0215] The second file generation unit is used to generate the display parameter file for the switched second display area.
[0216] In one possible implementation, the first file generation unit is specifically used to determine the first resolution parameters suitable for the first display area after switching, and generate a first display parameter file containing the first resolution parameters;
[0217] The second file generation unit is specifically used to determine the suitable second resolution parameters for the switched second display area and generate a second display parameter file containing the second resolution parameters.
[0218] Furthermore, this application also provides an electronic device, such as Figure 12 As shown, it illustrates a schematic diagram of the composition structure of the electronic device. The electronic device can be any type of electronic device, and the electronic device includes at least a memory 1201, a processor 1202, and a display unit 1203.
[0219] The processor 1201 is used to execute the display control method in any of the above embodiments.
[0220] The memory 1202 is used to store the programs required for the processor to perform operations.
[0221] Understandably, the electronic device may also include an input unit 1204.
[0222] Of course, the electronic device can also have more than Figure 12 There are no restrictions on the number of components, whether more or fewer.
[0223] On the other hand, this application also provides a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the display control method as described in any of the above embodiments.
[0224] This application also proposes a computer program comprising computer instructions stored in a computer-readable storage medium. When executed on an electronic device, the computer program performs the display control method as described in any of the above embodiments.
[0225] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. Furthermore, the features described in the various embodiments of this specification can be substituted or combined with each other, enabling those skilled in the art to implement or use this application. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0226] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a set of field elements includes not only those elements but also other elements not expressly stated, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a…" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0227] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0228] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A display control method applied to a display, the method comprising: A first display content is output in the first display area of the display unit, and a second display content is output in the second display area of the display unit, wherein the first display content and the second display content originate from different electronic devices; Upon detecting a display area adjustment command, a display parameter file is generated corresponding to each of the at least one target display area to be adjusted as indicated by the display area adjustment command. The display area adjustment command is used to trigger a change in the size of at least one display area. The target display area belongs to the first display area and the second display area. The display parameter file includes an extended display identification data file. The target electronic device corresponding to the target display area is instructed to obtain the display parameter file of the target display area through the graphics card. The target electronic device controls the display content output to the target display area according to the relevant information in the display parameter file. The target electronic device is an electronic device that provides display content to the target display area.
2. The method according to claim 1, wherein generating display parameter files corresponding to each of the at least one target display area indicated by the display area adjustment instruction comprises: Determine at least one target display area to be adjusted as indicated by the display area adjustment command, and the appropriate resolution parameters for the adjusted target display area; Generate a display parameter file for the target display area, the display parameter file including at least the resolution parameters suitable for the target display area.
3. The method according to claim 2, wherein determining at least one target display area to be adjusted as indicated by the display area adjustment command and suitable resolution parameters for the adjusted target display area comprises: The display area adjustment command indicates at least one target display area to be adjusted, and the aspect ratio of the adjusted target display area is determined. Based on the adjusted aspect ratio of the target display area, the appropriate resolution parameters for the target display area are determined.
4. The method according to claim 3, wherein determining at least one target display area to be adjusted as indicated by the display area adjustment command and the aspect ratio corresponding to the adjusted target display area comprises: Determine at least one target display area to be adjusted as indicated by the display area adjustment command, and the target aspect ratio to which the target display area needs to be adjusted. From multiple standard aspect ratios, determine the target standard aspect ratio that matches the target aspect ratio.
5. The method according to any one of claims 1 to 4, wherein detecting the display area adjustment command includes: Based on the adjustment operation that adjusts the size of the target display area, a display area adjustment command triggered by the adjustment operation is obtained; or, A display adjustment interface is presented, and the size adjustment parameters input for the target display area are obtained in the display adjustment interface, resulting in a display area adjustment command containing the size adjustment parameters; The target display area is either the first display area or the second display area.
6. The method according to claim 5, wherein obtaining the display area adjustment instruction triggered by the adjustment operation based on adjusting the size of the target display area includes: An adjustment operation to adjust the size of the target display area is detected, and upon confirmation that the adjustment operation has ended, a display area adjustment command triggered by the adjustment operation is obtained.
7. The method according to claim 5, further comprising, after receiving the display area adjustment instruction: Determine the target aspect ratio to which the target display area, as indicated by the display area adjustment command, needs to be adjusted; From multiple standard aspect ratios, determine the target standard aspect ratio that matches the target aspect ratio; Display a target display area with the target standard aspect ratio according to the size of the target display area indicated by the display area adjustment command.
8. The method according to claim 1, wherein detecting the display area adjustment command includes: A display area switching command is detected, which is used to instruct switching between the first display area and the second display area; The generation of display parameter files corresponding to each of the at least one target display area to be adjusted as indicated by the display area adjustment command includes: Generate the display parameter file for the first display area after switching; Generate the display parameter file for the second display area after switching.
9. The method according to claim 8, wherein generating the display parameter file for the switched first display area comprises: Determine the appropriate first resolution parameters for the first display area after switching, and generate a first display parameter file containing the first resolution parameters; Determine the appropriate second resolution parameters for the switched second display area, and generate a second display parameter file containing the second resolution parameters.
10. A display control device, applied to a display, the device comprising: A display output unit is configured to output first display content in a first display area of a display unit and output second display content in a second display area of a display unit, wherein the first display content and the second display content originate from different electronic devices; The file generation unit is configured to detect a display area adjustment instruction and generate display parameter files corresponding to each of the at least one target display area to be adjusted by the display area adjustment instruction. The display area adjustment instruction is used to trigger a change in the size of at least one display area. The target display area belongs to the first display area and the second display area. The display parameter file includes an extended display identification data file. An information indication unit is used to instruct a target electronic device corresponding to the target display area to obtain a display parameter file of the target display area through a graphics card. The target electronic device controls the display content output to the target display area according to the relevant information in the display parameter file. The target electronic device is an electronic device that provides display content to the target display area.
Citation Information
Patent Citations
Showing method and device of wireless screen transmission and storage medium
CN107450871A
Screen projection method and device
CN111552450A