Display method and device, server and storage medium
By determining the target display mode in multiple display modes and dynamically switching the display parameters, the problem that the display system in the prior art cannot dynamically adjust the display parameters according to user needs is solved, and better display effect and user experience are achieved.
Patent Information
- Application Number
- CN202510260680.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-27
AI Technical Summary
After connecting to the display port, existing display systems can usually only output a fixed display parameter combination, and cannot dynamically adjust the display parameters according to user needs.
A display method and device are provided, by determining a target display mode in a plurality of display modes, dynamically switching display parameters, such as preferential maximum resolution when displaying video, preferential maximum frame rate when displaying games, and in other cases using initial parameters.
It realizes dynamic adjustment of display parameters according to user needs, meets the display needs of different usage scenarios, and improves the display effect and user experience.
Smart Images

Figure CN120215867A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a display method, apparatus, server, and storage medium. Background Art
[0002] After a current display system is connected to a DisplayPort (DP) monitor, it usually can only output a fixed combination of display parameters (such as a fixed resolution and frame rate) to display content. However, different users and different usage scenarios may have different requirements for the display parameters of the monitor.
[0003] Therefore, how to display the display content has become a technical problem that the industry urgently needs to solve. Summary of the Invention
[0004] Embodiments of this application provide a display method, apparatus, server, and storage medium, which can display the display content according to user requirements to at least partially solve the above technical problem.
[0005] On the one hand, embodiments of this application provide a display method, including:
[0006] Determining a target display mode among multiple display modes;
[0007] Determining target display parameters of the current display content based on the target display mode, and displaying the current display content based on the target display parameters;
[0008] Among them, the display mode includes a dynamic switching mode, and the dynamic switching mode includes:
[0009] When the current display content includes the first content, determining that the target display parameter includes the maximum resolution; when the current display content includes the second content, determining that the target display parameter includes the maximum frame rate; when the current display content includes the third content, determining that the target display parameter is the initial parameter.
[0010] On the other hand, embodiments of this application also provide a display apparatus, including:
[0011] A determining module, configured to determine a target display mode among multiple display modes;
[0012] A display module, configured to determine target display parameters of the current display content based on the target display mode, and display the current display content based on the target display parameters;
[0013] Among them, the display mode includes a dynamic switching mode, and the dynamic switching mode includes:
[0014] When the current display content includes the first content, determine that the target display parameter includes the maximum resolution; when the current display content includes the second content, determine that the target display parameter includes the maximum frame rate; when the current display content includes the third content, determine that the target display parameter is the initial parameter.
[0015] On the other hand, an embodiment of the present application further provides a server, including a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the steps in any of the display methods provided by the embodiments of the present application.
[0016] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program is loaded by a processor to execute the steps in any of the display methods provided by the embodiments of the present application.
[0017] On the other hand, an embodiment of the present application further provides a computer program product, including a computer program or instruction. When the computer program or instruction is executed by a processor, the steps in any of the display methods provided by the embodiments of the present application are implemented.
[0018] The display method, device, server, and storage medium provided by the embodiments of the present application have multiple display modes, enabling users to select a target display mode from multiple display modes according to their needs; through the target display mode, the target display parameters of the current display content can be determined, and the current display content can be displayed according to the target display parameters, so that the display parameters can be set according to the user's needs to display the display content; the display modes of the embodiments of the present application include a dynamic switching mode, and through the dynamic switching mode, specific display parameters can be determined according to the display type of the current display content, so that the dynamic adjustment of the display parameters in various display scenarios can be achieved. Description of the Drawings
[0019] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.
[0020] Figure 1 is one of the flow diagrams of the display method provided by the embodiments of the present application;
[0021] Figure 2 is the structural diagram of the display system provided by the embodiments of the present application;
[0022] Figure 3It is the second schematic flowchart of the display method provided by the embodiments of the present application;
[0023] Figure 4 It is the schematic structural diagram of the display device provided by the embodiments of the present application;
[0024] Figure 5 It is the schematic structural diagram of the server provided by the embodiments of the present application. Detailed implementation manners
[0025] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0026] In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise specified. Therefore, these steps and operations will be mentioned several times as being executed by a computer. The computer execution referred to in the present application includes the operation of a computer processing unit that represents electronic signals in a structured form of data. This operation transforms the data or maintains it at a position in the memory system of the computer, which can be reconfigured or otherwise changed in a manner well known to those skilled in the art. The data structure maintained by the data is the physical position of the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the above text, which does not represent a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware.
[0027] The term "module" or "unit" used in the present application can be regarded as a software object executed on the computing system. Different components, modules, engines, and services described in the present application can be regarded as implementation objects on the computing system. The devices and methods described in the present application are preferably implemented in software, and of course, can also be implemented in hardware, all within the protection scope of the present application.
[0028] Those skilled in the art can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "said" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the description of this application means the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. It should be understood that when we say an element is "connected" or "coupled" to another element, it can be directly connected or coupled to other elements, or there may also be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more related listed items.
[0029] In the technical solution of this application, the processing of collection, storage, use, processing, transmission, provision and disclosure of user information and the like all comply with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and it does not violate public order and good customs.
[0030] The display method provided in the embodiments of this application is applicable to a terminal, and the terminal can be various electronic devices with a display screen and supporting web browsing, including but not limited to servers, smart phones, tablet computers, laptop computers, desktop computers, etc.
[0031] Figure 1 One of the schematic flowcharts of the display method provided in the embodiments of this application is as Figure 1 shown, and this method includes step 110 and step 120. The flow steps of this method are only a possible implementation manner of this application.
[0032] Step 110: Determine a target display mode among multiple display modes.
[0033] Specifically, the execution subject of the display method provided in the embodiments of this application is a display device, and this device can be a hardware device independently set in the display system of the terminal, or a software program running in the display system of the terminal.
[0034] Figure 2 is the schematic structural diagram of the display system provided in the embodiments of this application; as Figure 2As shown, the display system includes a display port setting menu, display port display framework code, and an interface content monitoring service. The display port setting menu may include selection items for each display mode. The display port display framework code is used to determine a target display mode and target display parameters based on the selection item selected by the user in the display port setting menu and display the display content according to the target display parameters. When the target display mode requires monitoring of the display content, the interface content monitoring service is started, and the interface content monitoring service notifies the display port display framework code to dynamically adjust the display parameters according to the current display content.
[0035] A display mode refers to multiple display parameter configuration methods provided by the terminal according to different usage scenarios and user requirements. These modes may include settings of parameters such as resolution and frame rate, aiming to optimize the display effect in a specific application or environment.
[0036] The target display mode is the display mode selected by the user according to their own needs and / or usage scenarios.
[0037] After the terminal is powered on or the software is opened, a pop-up window showing the display port setting menu can be generated, and the user can select the selection item corresponding to the target display mode in the display port setting menu. The user can also, during the process of using the terminal, open the display port setting menu and select the selection item corresponding to the target display mode.
[0038] There are multiple selection items in the display port setting menu, and each selection item corresponds to a display mode. The display modes may include a dynamic switching mode, a high-resolution mode, a high-frame-rate mode, and a custom mode, etc.
[0039] After the user selects the selection item corresponding to the target display mode, the identifier of this selection item can be stored in the database, that is, the identifier of the target display mode is stored in the database. The identifier of the latest target display mode is stored in the database, so the identifier of the target display mode selected by the user among multiple display modes can be obtained from the database, thereby determining the target display mode selected by the user among multiple display modes.
[0040] The identifier of each display mode can be set according to the actual situation. For example, each display mode can be identified by a digital code. The identifier of each display mode corresponds one-to-one with each display mode.
[0041] Step 120: Determine the target display parameters of the current display content based on the target display mode, and display the current display content based on the target display parameters;
[0042] Among them, the display mode includes a dynamic switching mode, and the dynamic switching mode includes:
[0043] When the current display content includes the first content, it is determined that the target display parameter includes the maximum resolution; when the current display content includes the second content, it is determined that the target display parameter includes the maximum frame rate; when the current display content includes the third content, it is determined that the target display parameter is the initial parameter.
[0044] Specifically, the display content refers to the specific information or images presented to the user on the display system of the terminal. The display content can include various forms of data such as text, graphics, and videos. The display system can include a Central Processing Unit (CPU) and a display, etc.
[0045] The initial parameter refers to a set of basic configuration values preset when the terminal is started or initialized. The initial parameters in the embodiments of the present application can involve default resolution and frame rate, etc.
[0046] The display parameters can include resolution and frame rate.
[0047] After determining the target display mode, the target display parameter of the target display mode under the current display content can be obtained, and the current display content can be displayed according to the target display parameter.
[0048] Among multiple display modes, there can be a dynamic switching mode, which refers to a mode of determining how to display the current display content according to the type of the current display content.
[0049] Because different types of display content have different requirements for display parameters. For example, when the current display content is a game, high frame rate display (ordinary resolution is sufficient) is required to pursue low latency; when the current display content is a video, high resolution display (ordinary frame rate is sufficient) is required for clear picture quality. Since many current display systems cannot meet the requirements of both high resolution and high frame rate at the same time, it is necessary to set the priorities of high resolution and high frame rate according to the type of the current display content to adapt to more scenarios and improve the display effect. The dynamic switching mode in the embodiments of the present application classifies the current display content, and different categories of the current display content have different priorities for high resolution and high frame rate.
[0050] The first content in the embodiments of the present application is the display content with higher requirements for resolution. Therefore, when the current display content includes the first content, high resolution is prioritized, and the display parameter where the maximum resolution is located can be selected as the target display parameter.
[0051] The second content in the embodiments of the present application is the display content with higher requirements for frame rate. Therefore, when the current display content includes the second content, high frame rate is prioritized, and the display parameter where the maximum frame rate is located can be selected as the target display parameter.
[0052] The third content of the embodiment of this application is the display content that has no obvious requirements for display parameters. Therefore, when the current display content includes the third content, the initial parameters can be directly used as the target display parameters.
[0053] For example, the first content is a video, the second content is a game, and the third content is the content other than the video and the game. When the target display mode is the dynamic switching mode, all the display parameters supported by the display system are traversed. Each set of display parameters includes the resolution and the frame rate, and the display parameter A with the maximum resolution and the display parameter B with the maximum frame rate are obtained. The start interface content monitoring service is started. This service will cyclically detect whether the current display content is a game or a video. If the current display content is a game, the flag D_Is_play = True and D_Is_video = False are set; if the current display content is a video, the flag D_Is_video = True and D_Is_play = False are set. If the current display content is neither a game nor a video, the flag D_Is_video = False and D_Is_play = False are set. The two flags D_Is_play and D_Is_video of the monitoring service are cyclically checked. When D_Is_play = True, the high frame rate display parameter B is enabled. When D_Is_video = True, the high resolution display parameter A is enabled. When both are False, the initial parameters are enabled.
[0054] D_Is_play represents the flag for the game, and D_Is_video represents the flag for the video; True represents that the flag takes effect, and False represents that the flag does not take effect. That is, D_Is_play = True indicates that the current display content is a game, D_Is_play = False indicates that the current display content is not a game, D_Is_video = True indicates that the current display content is a video, and D_Is_video = False indicates that the current display content is not a video.
[0055] Figure 3 It is the second flow schematic diagram of the display method provided by the embodiment of this application. As Figure 3 shown, after the terminal is powered on, the user can select the target display mode through the display port setting menu. The selection items include the dynamic switching mode, the high resolution mode, the high frame rate mode, and the custom mode. The identifiers of these modes correspond to 1, 2, 3, and 4 respectively.
[0056] 1. When the identifier of the target display mode stored in the database is 1, that is, "Tag = 1", it is determined that the target display mode is the dynamic switching mode.
[0057] Obtain display parameter A with the maximum resolution and display parameter B with the maximum frame rate. Start the interface content monitoring service to detect the type of the current displayed content, and determine whether the target display parameter is display parameter B, display parameter A, or the initial parameter according to the type of the current displayed content.
[0058] 2. When the identifier of the target display mode stored in the database is 2, that is, "Tag = 2", determine that the target display mode is the high-resolution mode.
[0059] Obtain display parameter A with the maximum resolution, and determine that the target display parameter is display parameter A.
[0060] 3. When the identifier of the target display mode stored in the database is 3, that is, "Tag = 3", determine that the target display mode is the high-frame-rate mode.
[0061] Obtain display parameter B with the maximum frame rate, and determine that the target display parameter is display parameter B.
[0062] 4. When the identifier of the target display mode stored in the database is 4, that is, "Tag = 4", determine that the target display mode is the custom mode.
[0063] Obtain the resolution and frame rate set by the user in the settings menu, and check whether there is such a resolution and frame rate among all the display parameters supported by the display system. If so, display this resolution and frame rate; if not, do not display it.
[0064] The display method provided by the embodiments of the present application has multiple display modes, enabling the user to select the target display mode from multiple display modes according to requirements; through the target display mode, the target display parameter of the current displayed content can be determined, and the current displayed content is displayed according to the target display parameter, so that the corresponding display parameter can be set according to the user's requirements to display the displayed content; the display mode of the embodiments of the present application includes a dynamic switching mode, and through the dynamic switching mode, the specific display parameter can be determined according to the display type of the current displayed content, so that the dynamic adjustment of the display parameter in various display scenarios can be realized.
[0065] It should be noted that the steps of the method flow are merely a possible implementation manner of the present application. Each implementation manner of the present application can be freely combined, the order can be swapped, or it can be executed independently, and does not need to rely on or depend on a fixed execution order.
[0066] In some embodiments, before step 110, it further includes:
[0067] Obtain each resolution and each frame rate supported by the current display system;
[0068] Construct multiple groups of display parameters based on each of the resolutions and each of the frame rates;
[0069] Construct a parameter set based on multiple groups of the display parameters; the parameter set is used to provide corresponding display parameters for each of the display modes.
[0070] Specifically, the display parameters are in groups, and each group of display parameters includes a resolution and a frame rate. Each group of display parameters in the parameter set is a display parameter supported by the current display system, that is, content can be displayed in the display system according to each group of display parameters in the parameter set.
[0071] The parameter set refers to a set of display parameters supported by the current display system, and this set can be in the form of a list or other forms, which is not limited herein.
[0072] After the terminal is powered on, the display port display framework code will run automatically. The display port display framework code is divided into a driver part and an upper layer part. When the driver detects that a display port monitor is inserted into a Universal Serial Bus (USB) port, it will report an insertion event to the display port display service. At the same time, the driver will obtain a parameter set of all resolutions and frame rates supported by the display system through the display port and report this parameter set to the upper layer. After receiving the display port insertion event, the upper layer will judge the identifier in the display port setting menu database to determine the target display mode, and select target display parameters from the parameter set according to the target display mode to display the current display content.
[0073] The display method provided by the embodiments of the present application constructs a parameter set through each resolution and each frame rate supported by the current display system, and can directly select target display parameters from the parameter set after determining the target display mode, thereby improving the display efficiency.
[0074] In some embodiments, the display method provided by the embodiments of the present application further includes:
[0075] Obtain process information of the currently running process, where the process information includes a process identifier and / or an installation package identifier of the installation package corresponding to the currently running process;
[0076] When the process identifier and / or the installation package identifier is in a first preset list, determine that the current display content includes the first content;
[0077] When the process identifier and / or the installation package identifier is in a second preset list, determine that the current display content includes the second content; and
[0078] When the process identifier and the installation package identifier are not in the first preset list and not in the second preset list, determine that the current display content includes the third content.
[0079] Specifically, the process identifier can be the process name or the identifier of the process type; the installation package identifier can be the installation package name or the identifier of the installation package type.
[0080] It is possible to obtain the information of the currently running process, determine whether the process belongs to known first content or second content based on the process information, and maintain a first preset list including the relevant identifiers of the first content and a second preset list including the relevant identifiers of the second content. The relevant identifier has the same identifier type as the process identifier and / or the installation package identifier. For example, if the process identifier is the process name, the relevant identifier of the first content is the name of the first content.
[0081] The first preset list and the second preset list can be two lists or one list.
[0082] The first preset list is a list that records the relevant identifiers including the first content. For example, if the first content is a video, the first preset list can be a list containing the names of known video playback software. The second preset list is a list that records the relevant identifiers including the second content. For example, if the second content is a game, the second preset list can be a list containing the names of game software.
[0083] Match the process identifier and the installation package identifier with the content recorded in the first preset list and the second preset list. According to the matching result, it can be determined whether the currently displayed content includes the first content, the second content, or the third content.
[0084] For example, the first content is a video, the second content is a game, and the third content is content other than videos and games. It is possible to maintain a first preset list including the names of common video playback software and a second preset list including the names of game software. If the process name is in the first preset list, set the flag D_Is_video to True; if the process name is in the second preset list, set the flag D_Is_play to True. If the process name is neither in the first preset list nor in the second preset list, it is possible to further determine whether it is a video or a game by analyzing the installation package name or characteristics of the process. For example, certain specific file extensions (such as.mp4 and.avi, etc.) may indicate that this is a video installation package, while certain specific file extensions (such as.exe and.apk, etc.) may indicate that this is an executable file, thus inferring that it may be a game installation package. Based on the above information, it can be determined whether the currently displayed content is a video, a game, or other, and the flags D_Is_video and D_Is_play can be set accordingly.
[0085] The display method provided by the embodiments of the present application can determine the type of the current display content through the process information of the currently running process, so as to dynamically adjust the display parameters and improve the user experience.
[0086] In some embodiments, the display method provided by the embodiments of the present application further includes:
[0087] Obtain the current display content shown on the display interface of the current display system, identify the current display content, and determine whether the current display content includes the first content, the second content, or the third content according to the identification result.
[0088] The current display content can be identified through an identification model, and the identification model can be constructed by using a convolutional neural network model, a fully connected neural network model, a recurrent neural network model, a long short-term memory neural network model, etc.
[0089] The identification model is obtained by training an initial identification model based on sample display content and samples of the content type (the first content, the second content, or the third content) corresponding to the sample display content.
[0090] Input the current display content into the identification model, and the identification model will analyze the input current display content and extract key features, which may include object categories and scene features, etc. The identification model matches these features with the features of the first content and the second content, and outputs an identification result according to the matching result. The identification result includes which type the current display content belongs to. For example, the identification result includes that the current display content includes the first content, the current display content includes the second content, or the current display content includes the third content.
[0091] The type of the current display content can also be comprehensively determined according to the identification result output by the identification model and the content type determined according to the process information above.
[0092] For example, when the identification result output by the identification model is the same as the content type determined according to the process information, it is determined that the identification result is correct; when the identification result output by the identification model is different from the content type determined according to the process information, obtain new current display content again or after a preset time interval; input the new current display content into the identification model to obtain a new identification result output by the identification model; compare the new identification result with the content type of the new current display content determined according to the process information. Among them, the preset time can be set according to specific circumstances.
[0093] The display method provided by the embodiments of the present application can determine the type of the current display content through the identification model, so as to dynamically adjust the display parameters and improve the user experience; through the identification model, it can also be combined with the process information to identify the type of the current display content and improve the accuracy of identification.
[0094] In some embodiments, after determining that the target display parameter includes the maximum resolution, the method further includes:
[0095] Obtaining a parameter set, where the parameter set includes multiple groups of display parameters, and each group of display parameters includes the resolution and frame rate supported by the current display system;
[0096] Traversing each resolution in the parameter set, and determining the maximum resolution in the parameter set as the maximum resolution;
[0097] Taking the display parameter where the maximum resolution in the parameter set is located as the candidate display parameter, and there is at least one group of candidate display parameters;
[0098] Obtaining the candidate display parameter where the maximum frame rate in the candidate display parameters is located to obtain the target display parameter.
[0099] Specifically, since the target display parameter includes the maximum resolution, that is, the current display content has a higher requirement for resolution, a parameter set is obtained, and the maximum resolution is determined in the parameter set. The maximum resolution in the parameter set is the maximum resolution supported by the display system.
[0100] Because the display parameters include resolution and frame rate, the maximum resolution may be in multiple groups of display parameters in the parameter set. Taking the display parameter where the maximum resolution is located as the candidate display parameter, and selecting the target display parameter from the candidate display parameters.
[0101] The candidate display parameter where the maximum frame rate in the candidate parameters can be selected and used as the target display parameter, so that while giving priority to ensuring the maximum resolution, the frame rate can also be made as large as possible.
[0102] The maximum resolution in the embodiments of the present application is the largest in the parameter set, and the maximum frame rate is the largest in the candidate parameters.
[0103] The display method provided by the embodiments of the present application can, when the current display content has a higher requirement for resolution, while giving priority to ensuring the maximum resolution, also ensure that the frame rate is as large as possible, and can ensure a better display effect.
[0104] In some embodiments, after determining that the target display parameter includes the maximum frame rate, the method further includes:
[0105] Obtaining a parameter set, where the parameter set includes multiple groups of display parameters supported by the current display system;
[0106] Traversing each frame rate in the parameter set, and determining the maximum frame rate in the parameter set as the maximum frame rate;
[0107] Use the display parameter where the maximum frame rate is located in the parameter set as the candidate display parameter, and there is at least one set of candidate display parameters;
[0108] Obtain the candidate display parameter where the maximum resolution is located among the candidate display parameters to obtain the target display parameter.
[0109] Specifically, the target display parameter includes the maximum frame rate, that is, the current display content has a higher requirement for the frame rate. Therefore, obtain the parameter set, determine the maximum frame rate in the parameter set, and the maximum frame rate in the parameter set is the maximum frame rate supported by the display system.
[0110] Because the display parameters include the frame rate and the resolution, the maximum frame rate may be in multiple sets of display parameters in the parameter set. Use the display parameter where the maximum frame rate is located as the candidate display parameter, and select the target display parameter from the candidate display parameters.
[0111] The candidate display parameter where the maximum resolution is located among the candidate parameters can be selected and used as the target display parameter, so that while ensuring the maximum frame rate, the resolution can also be ensured to be as large as possible.
[0112] The maximum frame rate in the embodiment of the present application is the largest in the parameter set, and the maximum resolution is the largest among the candidate parameters.
[0113] The display method provided by the embodiment of the present application can ensure a better display effect by ensuring the maximum frame rate and the resolution as large as possible when the current display content has a higher requirement for the frame rate.
[0114] In some embodiments, the display mode further includes a custom mode. When the target display mode is the custom mode, determining the target display parameter of the current display content based on the target display mode includes:
[0115] Obtain custom display parameters;
[0116] Match the custom display parameters with the supported display parameters supported by the current display system;
[0117] When the custom display parameters match the supported display parameters, use the custom display parameters as the target display parameter;
[0118] When the custom display parameters do not match the supported display parameters, generate a prompt message for changing the display parameters and display the prompt message on the display interface.
[0119] Specifically, the custom mode is a mode in which the resolution and frame rate are manually set. When the user selects the option of the custom mode, the display system will prompt the user to enter the specific resolution and frame rate, and write the entered resolution and frame rate into the database.
[0120] Since the display parameters supported by the display system are limited, if the display system does not support the display parameters entered by the user, the content cannot be displayed. Therefore, it is necessary to determine whether the display system supports the display parameters entered by the user.
[0121] The custom display parameters entered by the user can be obtained, and whether there is such a custom display parameter is searched among the supported display parameters supported by the current display system. If there is, the custom display parameter is used as the target display parameter to display the content; if not, a prompt message for changing the display parameter is generated to prompt the user to change the custom display parameter.
[0122] The prompt message for changing the display parameter refers to the message that prompts the user to change the currently set custom display parameter. The prompt message can include the range of display parameters recommended for the user to change and the reason why the current display system does not support the custom display parameter.
[0123] For example, the prompt message can be "The maximum resolution supported by the display system is C, and the current resolution is greater than C", so as to prompt the user to lower the currently set resolution.
[0124] The prompt message can be displayed in the form of a pop-up window on the display interface.
[0125] The display method provided by the embodiment of the present application, the display mode can also include a custom mode, which allows the user to set specific display parameters according to their own needs, and reminds the user to change them in time when the set display parameters are unreasonable, improving the display efficiency.
[0126] In some embodiments, the display mode further includes a high-resolution mode and a high-frame-rate mode; when the target display mode is the high-resolution mode, the target display parameter includes the maximum resolution; when the target display mode is the high-frame-rate mode, the target display parameter includes the maximum frame rate.
[0127] Specifically, the high-resolution mode is the same as the display method when the current display content includes the first content in the dynamic switching mode. Select the display parameters of the maximum frame rate in the parameter set to obtain at least one set of candidate display parameters, and then select the candidate display parameter where the maximum resolution is located among the candidate parameters as the target display parameter.
[0128] The display method when the current display content includes the second content in the high-resolution mode and the dynamic switching mode is the same. Select the display parameters with the maximum resolution from the parameter set to obtain at least one set of candidate display parameters, and then select the candidate display parameters with the maximum frame rate among the candidate parameters as the target display parameters.
[0129] The display method provided by the embodiments of the present application further includes a high-resolution mode and a high-frame-rate mode, which enables users to select corresponding display modes according to their own needs, thus being applicable to more application scenarios and improving the user experience.
[0130] To facilitate better implementation of the display method provided by the embodiments of the present application, the embodiments of the present application also provide a device based on the above display method. The meanings of the nouns are the same as those in the above display method, and the specific implementation details can refer to the descriptions in the method embodiments.
[0131] Please refer to Figure 4 , Figure 4 is a schematic structural diagram of the display device provided by the embodiments of the present application. The display device may include a determination module 410 and a display module 420, where:
[0132] The determination module 410 is configured to determine a target display mode among multiple display modes;
[0133] The display module 420 is configured to determine target display parameters of the current display content based on the target display mode, and display the current display content based on the target display parameters;
[0134] Among them, the display mode includes a dynamic switching mode, and the dynamic switching mode includes:
[0135] When the current display content includes the first content, determining the target display parameters includes the maximum resolution; when the current display content includes the second content, determining the target display parameters includes the maximum frame rate; when the current display content includes the third content, determining the target display parameters as the initial parameters.
[0136] In some embodiments, the display device further includes a determination module, and the determination module is specifically configured to:
[0137] Obtain process information of the currently running process, where the process information includes a process identifier and / or an installation package identifier of the installation package corresponding to the currently running process;
[0138] When the process identifier and / or the installation package identifier are in the first preset list, determine that the current display content includes the first content;
[0139] When the process identifier and / or the installation package identifier are in the second preset list, determine that the current display content includes the second content; and
[0140] When the process identifier and the installation package identifier are not in the first preset list and not in the second preset list, determine that the current display content includes the third content.
[0141] In some embodiments, the determining module is further configured to:
[0142] Obtain a parameter set, where the parameter set includes multiple groups of display parameters, and each group of display parameters includes a resolution and a frame rate supported by the current display system;
[0143] Traverse each resolution in the parameter set, and determine the maximum resolution in the parameter set as the maximum resolution;
[0144] Use the display parameter where the maximum resolution is located in the parameter set as the candidate display parameter, and there is at least one group of candidate display parameters;
[0145] Obtain the candidate display parameter where the maximum frame rate is located in the candidate display parameters to obtain the target display parameter.
[0146] In some embodiments, the determining module is further configured to:
[0147] Obtain a parameter set, where the parameter set includes multiple groups of display parameters supported by the current display system;
[0148] Traverse each frame rate in the parameter set, and determine the maximum frame rate in the parameter set as the maximum frame rate;
[0149] Use the display parameter where the maximum frame rate is located in the parameter set as the candidate display parameter, and there is at least one group of candidate display parameters;
[0150] Obtain the candidate display parameter where the maximum resolution is located in the candidate display parameters to obtain the target display parameter.
[0151] In some embodiments, the display mode further includes a custom mode. When the target display mode is the custom mode, the display module 420 is specifically configured to:
[0152] Obtain custom display parameters;
[0153] Match the custom display parameters with the supported display parameters supported by the current display system;
[0154] When the custom display parameters match the supported display parameters, use the custom display parameters as the target display parameters;
[0155] When the custom display parameters do not match the supported display parameters, generate a prompt message for changing the display parameters and display the prompt message on the display interface.
[0156] In some embodiments, the display mode further includes a high-resolution mode and a high-frame-rate mode; when the target display mode is the high-resolution mode, the target display parameters include the maximum resolution; when the target display mode is the high-frame-rate mode, the target display parameters include the maximum frame rate.
[0157] In some embodiments, the display device further includes a construction module, and the construction module is specifically configured to:
[0158] Obtain each resolution and each frame rate supported by the current display system;
[0159] Construct multiple groups of display parameters based on each of the resolutions and each of the frame rates;
[0160] Construct a parameter set based on the multiple groups of display parameters; the parameter set is used to provide corresponding display parameters for each of the display modes.
[0161] It should be noted here that the display device provided in the embodiments of the present application can implement all the method steps implemented in the embodiments of the above display method, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments will not be specifically described in this embodiment.
[0162] The embodiments of the present application also provide a server, as Figure 5 shown, which shows a schematic structural diagram of the server involved in the embodiments of the present application. Specifically:
[0163] The server may include a processor 510 with one or more processing cores, a memory 520 with one or more computer-readable storage media, a power supply 530, an input unit 540, and other components. Those skilled in the art can understand that Figure 5 the server structure shown in does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components.
[0164] Among them:
[0165] The processor 510 is the control center of the server, connecting various parts of the entire server through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 520, and by invoking the data stored in the memory 520, it performs various functions of the server and processes data, thereby monitoring the server as a whole. Optionally, the processor 510 may include one or more processing cores; preferably, the processor 510 may integrate an application processor and a modem processor. Among them, the application processor mainly processes operations on storage media, user interfaces, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 510 either.
[0166] The memory 520 can be used to store software programs and modules. The processor 510 executes various functional applications and data processing by running the software programs and modules stored in the memory 520. The memory 520 mainly includes a program storage area and a data storage area. Among them, the program storage area can store applications required for operating the storage medium and at least one function (such as the sound playback function, the image playback function, etc.); the data storage area can store data created according to the use of the server, etc. In addition, the memory 520 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. Correspondingly, the memory 520 may also include a memory controller to provide the processor 510 with access to the memory 520.
[0167] The server also includes a power supply 530 that powers each component. Preferably, the power supply 530 can be logically connected to the processor 510 through a power management storage medium, thereby realizing functions such as management of charging, discharging, and power consumption management through the power management storage medium. The power supply 530 may also include any components such as one or more DC or AC power supplies, a rechargeable storage medium, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0168] The server may also include an input unit 540, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0169] Although not shown, the server may also include a display unit, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 510 in the server will load the executable files corresponding to the processes of one or more application programs into the memory 520 according to the following instructions, and the processor 510 will run the application programs stored in the memory 520 to achieve various functions as follows:
[0170] Determine a target display mode among multiple display modes;
[0171] Determine target display parameters of the current display content based on the target display mode, and display the current display content based on the target display parameters;
[0172] Wherein, the display mode includes a dynamic switching mode, and the dynamic switching mode includes:
[0173] When the current display content includes the first content, determining that the target display parameters include the maximum resolution; when the current display content includes the second content, determining that the target display parameters include the maximum frame rate; when the current display content includes the third content, determining that the target display parameters are initial parameters.
[0174] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0175] For this reason, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program is loaded by a processor to execute the steps in any of the display methods provided by the embodiments of the present application. For example, when the computer program is loaded by a processor, the following steps can be executed:
[0176] Determine a target display mode among multiple display modes;
[0177] Determine target display parameters of the current display content based on the target display mode, and display the current display content based on the target display parameters;
[0178] Wherein, the display mode includes a dynamic switching mode, and the dynamic switching mode includes:
[0179] When the current display content includes the first content, determining that the target display parameters include the maximum resolution; when the current display content includes the second content, determining that the target display parameters include the maximum frame rate; when the current display content includes the third content, determining that the target display parameters are initial parameters.
[0180] For the specific implementation of the above operations / steps, reference can be made to the previous embodiments, which will not be elaborated here.
[0181] Among them, the computer-readable storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disc, etc.
[0182] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the display methods provided in the embodiments of the present application, the beneficial effects achievable by any of the display methods provided in the embodiments of the present application can be realized. For details, refer to the previous embodiments and will not be elaborated here.
[0183] The embodiments of the present application further provide a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the methods provided in the various alternative implementations in the above embodiments.
[0184] The above has introduced in detail a display method, device, server and storage medium provided by the embodiments of the present application. Specific examples are used in the present application to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A display method, characterized in that: include: determining a target display mode among multiple display modes; Determining target display parameters of currently displayed content based on the target display mode, and displaying the currently displayed content based on the target display parameters; The display mode includes a dynamic switching mode, and the dynamic switching mode includes: When the currently displayed content includes the first content, the target display parameters are determined to include the maximum resolution; when the currently displayed content includes the second content, the target display parameters are determined to include the maximum frame rate; when the currently displayed content includes the third content, the target display parameters are determined to be initial parameters.
2. The display method according to claim 1, characterized in that: Also includes: Obtaining process information of a currently running process, wherein the process information includes a process identifier and / or an installation package identifier of an installation package corresponding to the currently running process; When the process identifier and / or the installation package identifier is in the first preset list, determining that the currently displayed content includes the first content; When the process identifier and / or the installation package identifier is in the second preset list, determining that the currently displayed content includes the second content; as well as When the process identifier and the installation package identifier are not in the first preset list and are not in the second preset list, it is determined that the currently displayed content includes the third content.
3. The display method according to claim 1, characterized in that: After determining that the target display parameter includes the maximum resolution, the method further includes: Acquire a parameter set, wherein the parameter set includes multiple groups of display parameters, each group of display parameters includes a resolution and a frame rate supported by the current display system; Traversing each of the resolutions in the parameter set, and determining the largest resolution in the parameter set as the maximum resolution; Taking the display parameter where the maximum resolution is located in the parameter set as a candidate display parameter, wherein there is at least one set of candidate display parameters; The candidate display parameters with the largest frame rate among the candidate display parameters are obtained to obtain the target display parameters.
4. The display method according to claim 1, characterized in that: After determining that the target display parameter includes the maximum frame rate, the method further includes: Acquire a parameter set, wherein the parameter set includes multiple groups of display parameters supported by the current display system; Traversing each of the frame rates in the parameter set, and determining that the maximum frame rate in the parameter set is the maximum frame rate; taking the display parameter where the maximum frame rate is located in the parameter set as a candidate display parameter, wherein there is at least one set of candidate display parameters; The candidate display parameters with the largest resolution among the candidate display parameters are acquired to obtain the target display parameters.
5. The display method according to claim 1, characterized in that: The display mode also includes a custom mode. When the target display mode is the custom mode, determining the target display parameters of the currently displayed content based on the target display mode includes: Get custom display parameters; Matching the custom display parameters with supported display parameters supported by the current display system; In a case where the custom display parameter matches the supported display parameter, using the custom display parameter as the target display parameter; In the case where the custom display parameters do not match the supported display parameters, a prompt message for changing the display parameters is generated, and the prompt message is displayed on the display interface.
6. The display method according to claim 1, characterized in that: The display mode also includes a high-resolution mode and a high-frame rate mode; when the target display mode is the high-resolution mode, the target display parameters include the maximum resolution; when the target display mode is the high-frame rate mode, the target display parameters include the maximum frame rate.
7. The display method according to any one of claims 1 to 6, characterized in that: Before determining the target display mode among the multiple display modes, the method further includes: Get each resolution and each frame rate supported by the current display system; constructing a plurality of sets of display parameters based on each of the resolutions and each of the frame rates; A parameter set is constructed based on the multiple groups of display parameters; the parameter set is used to provide corresponding display parameters for each of the display modes.
8. A display device, characterized in that: include: A determination module, used for determining a target display mode among multiple display modes; A display module, configured to determine a target display parameter of a currently displayed content based on the target display mode, and display the currently displayed content based on the target display parameter; The display mode includes a dynamic switching mode, and the dynamic switching mode includes: When the currently displayed content includes the first content, the target display parameters are determined to include the maximum resolution; when the currently displayed content includes the second content, the target display parameters are determined to include the maximum frame rate; when the currently displayed content includes the third content, the target display parameters are determined to be initial parameters.
9. A server, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to execute the steps in the display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the display method according to any one of claims 1 to 7.