Screen post-processing method and device, medium and product
The filter layer handles filter requests and configuration files to achieve customized filter effects, solving the rendering problems in special effects methods and resource occupation problems in ordinary methods, improving rendering efficiency and development efficiency, and simplifying the collaboration process.
Patent Information
- Application Number
- CN202410953270.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, transparent objects may be ignored or rendered incorrectly when making filters using special effects methods, resulting in a decrease in rendering efficiency; ordinary screen post-processing methods limit the implementation of customized filter effects due to excessive resource usage, and Collaboration in different positions is difficult and affects development efficiency.
Process filter requests through the filter layer, control the number of basic filter types, use configuration files to achieve customized filter effects, avoid excessive resource utilization, and decouple the formulation and implementation process of visual effects, allowing artists to directly participate in visual effects creation .
It improves rendering efficiency and performance, supports a variety of customized filter effects, simplifies the collaboration process, and improves the development efficiency and visual effect implementation speed.
Smart Images

Figure CN118967426A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a screen post-processing method, device, medium and product. Background Art
[0002] In game development, by using filters properly, you can greatly enrich the visual performance of the game while expressing the plot, enhance the narrative depth, and provide a richer and more multi-layered player experience.
[0003] Among them, the conventional technical solutions for filters mainly include the following two:
[0004] (1) Filters are made entirely using special effects. By fixing the special effects film in front of the game camera, the original image of the game scene captured by the camera is blocked and modified. In this way, the game screen seen by the player is actually the effect after being processed by the special effects film.
[0005] (2) Use common screen post-processing methods to create filters. For each desired filter effect, game developers usually create a dedicated post-processing function or module. The game client program will decide when to turn on or off a specific filter effect based on the game logic or the player's operation at runtime.
[0006] However, the inventors found that there are at least the following technical problems in the related art:
[0007] (1) In the scheme of making filters entirely using special effects:
[0008] In the rendering order of the rendering pipeline, transparent objects such as glass and water are usually rendered after other objects to ensure the correct display of transparency and reflection effects. When using special effects methods to create filters, especially to achieve blur or distortion effects, they need to be modified based on the original picture of the game scene. If the special effects film is simply overlaid in front of the camera, and the special effects film does not contain relevant information about the transparent object, then when rendering the transparent object, the transparent object may be ignored or the transparent object may be mistakenly mixed with the special effects film, which will cause the transparent object to appear to "disappear" or "goof up" in the rendered picture, which does not conform to the actual visual effect.
[0009] In addition, in actual applications, multiple special effects sheets are often stacked together, so that each layer of special effects is rendered separately and then synthesized with the next layer or the original picture to achieve a more complex filter effect. When these special effects sheets are full-screen sheets covering the entire screen view, even if some special effects may only be effective in a specific area of the screen view, each special effects sheet will draw the entire screen view, which will cause many pixels on the screen view to be repeatedly drawn and generate overdraw. The generation of overdraw further requires the GPU to process more pixel shading operations, increasing the GPU's workload and resulting in reduced rendering efficiency.
[0010] (2) In the scheme of using ordinary screen post-processing methods to make filters:
[0011] Since post-processing effects can be turned on or off at any time according to the needs of the game, in order to ensure the fast response of post-processing effects, the related shaders and texture resources are usually loaded and resident in memory, even if they are not used at certain times. If a large number of different post-processing effects are used in the game, each post-processing effect has its own shader and texture resources. Then these large amounts of post-processing resources will take up too much memory and affect the performance of the game. Therefore, in order to balance performance and resource management, in ordinary screen post-processing methods, highly customized filter effects cannot be supported. Instead, the types of supported filter effects are usually limited, and only some commonly used and less performance-impacting filter effects are provided for developers to choose.
[0012] In addition, in game development, the configuration of the parameters of post-processing effects (such as color adjustment, blur intensity, etc.) generally involves technical implementation and runtime logic to adapt to different scenes and plot requirements. It is difficult for artists who are responsible for designing and implementing the visual elements of the game to directly participate in this process. Therefore, it is necessary to indirectly adjust the filter effect through colleagues in other positions. Specifically, it is usually done by planners who are responsible for designing the gameplay and storyline of the game, or by programmers who are responsible for implementing these designs. In other words, when it is necessary to implement complex filter performance in the game process, people from multiple positions such as artists, planners and programmers need to work together. Due to differences in professional backgrounds and working methods of people in different positions, communication barriers, differences in understanding and technical limitations may arise during the collaboration process, increasing the difficulty of collaboration. If the collaboration process is not smooth enough, it may lead to reduced development efficiency, extend the implementation cycle of filter effects, and even affect the final visual effects and game experience. Summary of the invention
[0013] One purpose of the present application is to provide a screen post-processing method, device, medium and product, at least to solve the technical problems existing in the related art in the scheme of making filters completely using special effects methods and the scheme of making filters using ordinary screen post-processing methods.
[0014] To achieve the above objectives, some embodiments of the present application provide the following aspects:
[0015] In the first aspect, some embodiments of the present application also provide a screen post-processing method, which includes: obtaining a filter request; the filter request carries selection information for a basic filter type; processing the selection information through a filter layer to obtain a target filter effect; wherein different configuration files are stored in the filter layer, and different configuration files correspond to different basic filter types.
[0016] In a second aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.
[0017] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.
[0018] In a fourth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.
[0019] Optionally, different configuration files further include: parameter curves corresponding to different basic filter types; the parameter curves are used to characterize the dynamic changes of parameter data of the basic filter types. In this way, the combination of basic filter types at different stages can be achieved according to the parameter curves corresponding to the different basic filter types to obtain the combined filter effect.
[0020] Optionally, the method further includes: determining the master control parameter used to characterize the overall filter strength according to the parameter data of different basic filter types; establishing a mapping relationship between the parameter data of different basic filter types and the master control parameter; the mapping relationship is stored in the filter layer; correspondingly, the selection information at least includes the master control parameter; the processing of the selection information through the filter layer to obtain the target filter effect specifically includes: determining the target parameter data of the basic filter type obtained after being mapped by the master control parameter according to the master control parameter and the mapping relationship; obtaining the target filter effect according to the target parameter data. In this way, the overall effect of the filter will change according to the change of the master control parameter, which is convenient for relevant personnel to intuitively control the filter strength, so that the change of the filter effect is smoother and in line with expectations. That is to say, in actual applications, relevant personnel only need to control the master control parameter used to characterize the overall filter strength to drive the parameter changes that affect all basic filter types associated with the master control parameter, thereby achieving the overall rich changes of the target filter effect.
[0021] Optionally, processing the selection information through the filter layer to obtain the target filter effect includes: determining whether there is a conflict between the filter request and the enabled filter effect based on the selection information, and obtaining a first determination result; and obtaining the target filter effect based on the first determination result. It is understandable that in actual business, conflicts may occur when multiple game modules or functions issue filter requests at the same time, and the filter layer needs to be able to handle the conflict. The solution provided by the embodiment of the present application can improve the orderliness of processing filter requests; when there is a conflict between the filter request and the enabled filter effect, it is easy to decide which filter effects should be applied, so that the filter layer can adapt to different usage scenarios and needs, thereby improving the flexibility and effectiveness of the filter layer.
[0022] Optionally, obtaining the target filter effect according to the first determination result includes: if the first determination result indicates that there is a conflict between the filter request and the enabled filter effect, then comparing the priorities of the filter request and the enabled filter effect according to the selection information; and obtaining the target filter effect according to the comparison result of the priorities. In this way, by cleverly adopting the priority method, it is possible to determine which target filter effect should be displayed first. This can solve the technical problem of conflicts that may occur when multiple game modules or functions simultaneously issue filter requests in actual business.
[0023] Optionally, obtaining the target filter effect according to the comparison result of the priorities includes: if the priority of the filter request is higher than the priority of the enabled filter effect, interrupting the enabled filter effect and responding to the filter request; if the priority of the filter request is lower than the priority of the enabled filter effect, placing the filter request in a waiting list. Thus, a specific implementation method for obtaining the target filter effect according to the comparison result of the priorities is provided.
[0024] Optionally, the priority determination method includes: determining first priorities corresponding to different groups according to the target filter effect; determining second priorities of each basic filter type in each group; and obtaining the priority according to the first priority and the second priority. This allows relevant personnel to more effectively manage and control the application of target filter effects, ensuring that filter effects can be applied in the expected priority order in different game business scenarios. This priority management mechanism helps ensure that the visual performance and user experience of the game can achieve the best results in different situations, while allowing developers to flexibly adjust the application strategy of the target filter effect based on the filter layer according to specific needs.
[0025] Optionally, after the selection information is processed by the filter layer to obtain the target filter effect, the method further includes: determining whether the filter request is in a waiting list according to the indication information for indicating the cancellation of the filter request, and obtaining a second determination result; according to the second determination result, removing the filter request from the waiting list, or stopping the filter effect currently being applied. In this way, it can be ensured that the filter request can be cancelled smoothly, and the scalability and maintainability of the filter layer are improved.
[0026] Compared with the related art, the solution provided in the embodiment of the present application does not adopt a solution for making filters entirely using special effects, and therefore can avoid the technical problems existing in the corresponding solution for making filters entirely using special effects.
[0027] Since the filter layer agent is responsible for processing the selection information and obtaining the target filter effect, after receiving the filter request carrying the selection information of the basic filter type, the number of basic filter types used can be controlled by the filter layer to ensure that it does not exceed the limitation of hardware resources, so that the solution provided by the embodiment of the present application allows relevant personnel to create a variety of customized target filter effects according to specific needs under relatively controllable performance consumption, and run normally on the platform to meet the needs of different business scenarios and plots, ensuring that relevant personnel can enjoy a smooth experience when using the target filter effect and achieve better performance. Therefore, post-processing resources will not take up too much memory and affect the performance of the game.
[0028] Since the filter layer acts as an intermediary and is responsible for receiving filter requests from different game modules or business scenarios. Therefore, it is convenient to add new basic filter types or modify the parameters of existing basic filter types without modifying the internal logic of the filter layer; different configuration files are stored in the filter layer, and different configuration files correspond to different basic filter types, so that the processing logic of the screen post-processing method provided in the embodiment of the present application can be encapsulated inside the filter layer by means of configuration files, and after receiving the filter request, the filter layer can be used as a proxy to allow the basic filter type to be customized and adjusted through the configuration file, so as to achieve the desired visual performance of the target filter effect, and meet the richness requirements of the target filter effect in different business scenarios. In this way, more abundant target filter effects can be provided for relevant selection, which solves the technical problem that in the solution of using ordinary screen post-processing methods to make filters, only some more commonly used and less performance-impacted filter effects are provided for developers to choose.
[0029] By designing the filter layer as a proxy role in the entire game project instead of directly processing the game logic, the filter request and the actual processing logic are decoupled, making it easier to modify and expand the target filter effect; in this way, the formulation of post-processing effects, which was originally the responsibility of planners, is transferred to the scope of work of artists, so that artists can participate more in the creation and implementation of visual effects without having to deeply understand the complex implementation details behind them. In this way, the work of planners is simplified to the path of the configuration file and the relevant parameters of the intensity change to complete the production, without having to deeply care about various problems in visual performance, but focusing on game design and plot arrangement; artists can focus more on the creation and optimization of visual effects in the local development environment, and use the filter layer to simply make and adjust the visual performance of post-processing effects. By transferring the formulation and implementation of visual effects from planning to art, the work of each link can be better decoupled, so that each role can focus on his or her own professional field, thereby improving overall work efficiency. Therefore, it is possible to solve the problem of using ordinary screen post-processing methods to make filters. Due to the differences in professional backgrounds and working methods of personnel in different positions, there may be communication barriers, differences in understanding, and technical limitations in the collaboration process. This is conducive to improving development efficiency, shortening the implementation cycle of filter effects, and obtaining the target filter effect more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0031] Figure 1 This is an exemplary flow chart of a screen post-processing method provided according to some embodiments of the present application;
[0032] Figure 2 This is an exemplary schematic diagram of achieving the target filter effect by adjusting a parameter curve in a screen post-processing method provided according to some embodiments of the present application;
[0033] Figure 3 Another exemplary schematic diagram of achieving the target filter effect by adjusting a parameter curve in a screen post-processing method provided according to some embodiments of the present application;
[0034] Figure 4 An exemplary schematic diagram of determining, according to the master control parameters, a target parameter curve of a basic filter type obtained after being mapped by the master control parameters in a screen post-processing method provided according to some embodiments of the present application;
[0035] Figure 5 This is an exemplary flow chart of step S101 in a screen post-processing method provided according to some embodiments of the present application;
[0036] Figure 6 An exemplary flow chart of a method for determining the priority in a screen post-processing method provided according to some embodiments of the present application;
[0037] Figure 7 An exemplary flow chart of a processing mechanism for receiving indication information representing cancellation of the filter request after the selection information is processed by the filter layer to obtain the target filter effect in a screen post-processing method provided according to some embodiments of the present application;
[0038] Figure 8 This is a schematic diagram of an exemplary structure of an electronic device provided according to some embodiments of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] The following terms are used in this article.
[0041] Screen post-processing: A graphics rendering technology that refers to the additional secondary processing of the screen image obtained by rendering the entire scene during the game development process to achieve the effect of overall adjustment of the picture. This process can also be called digital image processing or screen post-processing.
[0042] Filters: They are mainly used to achieve various special effects for images and video clips. In film and television works, some special shooting techniques are often used to simulate the effects of old movies, such as long exposure to simulate dizziness, yellowing of the picture, lens stains, etc.
[0043] Special effects film: It can be understood as a 2D image or texture that contains visual information used to change the picture effect. This information can be color filters, blur effects, halos, stains, etc.
[0044] Rendering pipeline: The program flow of drawing pictures in the game engine.
[0045] Overdraw: refers to the phenomenon that the same pixel is drawn multiple times during the rendering process. If the semi-transparent material patches are stacked and rendered multiple times, it is easy to cause performance problems.
[0046] Shader: The Chinese name is shader. It is a program used by the GPU when rendering objects. It is used to control the material, lighting, shadow and other visual effects of the 3D model.
[0047] Proxy: A concept in engineering design. It refers to adding a proxy as a bridge in the middle to prevent users from directly accessing important source data in the system. The proxy receives user requests and checks the rationality and priority of the permissions requested by the user. After the proxy confirms the permissions requested by the user, it actually executes the user request to access the source data.
[0048] First embodiment
[0049] The first embodiment of the present application relates to a screen post-processing method. Figure 1 As shown, the method may include the following steps:
[0050] Step S101, obtaining a filter request; the filter request carries selection information for a basic filter type;
[0051] Step S102, processing the selection information through the filter layer to obtain a target filter effect; wherein the filter layer stores different configuration files, and different configuration files correspond to different basic filter types.
[0052] The following is a detailed description of each of the above steps.
[0053] For step S101, specifically, the filter layer can provide a corresponding interface to obtain the filter request; the user can issue the filter request according to actual needs, and the filter request carries selection information based on the basic filter type, and the selection information mainly includes the user's selection, combination and parameter setting of the basic filter type. In this way, when the user needs to apply the target filter effect, it is not necessary to directly hard-code the basic filter type and the parameters of the basic filter type corresponding to the target filter effect based on the code, but the selection information can be directly encapsulated by creating a request object. For example, if the basic filter type to be enabled is radial blur, the user can specify the RadialBlur type and provide parameters such as blur intensity. In addition, the filter layer can also provide a corresponding interface to receive modification information of the filter request. For example, the modification information can be used to adjust the parameters of various basic filter types of the target filter effect, such as color, blur, pattern, etc.
[0054] For step S102, specifically, the filter layer stores a plurality of different configuration files, each of which may include detailed parameter data for implementing each basic filter type. For example, the parameter data of the basic filter type may include but is not limited to: specific values for adjusting colors, specific blur degree data, and the like.
[0055] Exemplarily, the basic filter types may mainly include: ColorGrading (full screen color filter), RadialBlur (radial blur filter), Vignette (screen vignetting filter), Chromatic Aberration (dispersion filter), Gaussian Blur (Gaussian blur filter), PP Pattern (pattern overlay filter), LensGlitch (screen distortion filter), Blink (blinking filter), etc. In addition, Stack may be used to represent a combination of filters selected by the user. That is, the target filter effect may be obtained by combining the filter effects corresponding to a plurality of basic filter types and applying them together.
[0056] Among them, ColorGrading (full-screen color grading filter) allows users to adjust the color balance and tone of the entire picture.
[0057] Among them, RadialBlur (radial blur filter) makes the center of the picture clear and the surrounding area gradually blurred. It is often used to simulate the effect of rapid rotation or movement.
[0058] Among them, Vignette (vignette filter) adds vignetting to the edges of the picture, usually used to emphasize the subject in the center of the picture.
[0059] Among them, Chromatic Aberration (dispersion filter) simulates lens chromatic aberration, causing color edges to appear separated, creating a special visual effect.
[0060] Among them, Gaussian Blur (Gaussian blur filter), a blur effect, makes the picture look soft and is often used to eliminate details or simulate motion blur.
[0061] Among them, PPPattern (pattern overlay filter) superimposes patterns on the picture, which may be used to create texture or special visual effects.
[0062] Among them, LensGlitch (screen distortion filter) simulates lens failure or digital interference to produce a distorted picture effect.
[0063] It should be noted that in the embodiment of the present application, by adding a filter layer in the post-processing process, the filter layer is used to manage and implement various basic filter types, and various commonly used basic filter types are separated, so that each separated post-processing function is implemented in an independent module or component; each module can provide a series of adjustable parameters to allow relevant personnel to customize the target filter effect as needed. In this way, each basic filter type is actually stored in an asset in the form of a set of parameters. The asset is a container for storing resources (such as textures, models, shaders, etc.) in game development. By parameterizing the filter effects corresponding to each basic filter type, relevant personnel can quickly try and adjust and combine different target filter effects by modifying these parameters, without the need for complex programming work every time. Therefore, the overall process is relatively simple and intuitive, and does not require relevant personnel to deeply understand the technical details of post-processing, thereby improving development efficiency.
[0064] It is not difficult to find that, compared with the related art, in the solution provided by the embodiment of the present application:
[0065] Since the solution of making filters entirely using special effects is not adopted, the technical problems existing in the solution of making filters entirely using special effects can be avoided.
[0066] Since the filter layer agent is responsible for processing the selection information and obtaining the target filter effect, after receiving the filter request carrying the selection information of the basic filter type, the number of basic filter types used can be controlled by the filter layer to ensure that it does not exceed the limitation of hardware resources, so that the solution provided by the embodiment of the present application allows relevant personnel to create a variety of customized target filter effects according to specific needs under relatively controllable performance consumption, and run normally on the platform to meet the needs of different business scenarios and plots, ensuring that relevant personnel can enjoy a smooth experience when using the target filter effect and achieve better performance. Therefore, post-processing resources will not take up too much memory and affect the performance of the game.
[0067] Since the filter layer acts as an intermediary and is responsible for receiving filter requests from different game modules or business scenarios. Therefore, it is convenient to add new basic filter types or modify the parameters of existing basic filter types without modifying the internal logic of the filter layer; different configuration files are stored in the filter layer, and different configuration files correspond to different basic filter types, so that the processing logic of the screen post-processing method provided in the embodiment of the present application can be encapsulated inside the filter layer by means of configuration files, and after receiving the filter request, the filter layer can be used as a proxy to allow the customization and adjustment of the basic filter type through the configuration file, so as to achieve the desired visual performance of the target filter effect, and meet the richness requirements of the target filter effect in different business scenarios. In this way, more abundant target filter effects can be provided for developers to choose from, which solves the technical problem that in the solution of using ordinary screen post-processing methods to make filters, only some more commonly used and less performance-impacted filter effects are provided for developers to choose from.
[0068] By designing the filter layer as a proxy role in the entire game project instead of directly processing the game logic, the filter request and the actual processing logic are decoupled, making it easier to modify and expand the target filter effect; in this way, the formulation of post-processing effects, which was originally the responsibility of planners, is transferred to the scope of work of artists, so that artists can participate more in the creation and implementation of visual effects without having to deeply understand the complex implementation details behind them. In this way, the work of planners is simplified to the path of the configuration file and the relevant parameters of the intensity change to complete the production, without having to deeply care about various problems in visual performance, but focusing on game design and plot arrangement; artists can focus more on the creation and optimization of visual effects in the local development environment, and use the filter layer to simply make and adjust the visual performance of post-processing effects. By transferring the formulation and implementation of visual effects from planning to art, the work of each link can be better decoupled, so that each role can focus on his or her own professional field, thereby improving overall work efficiency. Therefore, it is possible to solve the problem of using ordinary screen post-processing methods to make filters. Due to the differences in professional backgrounds and working methods of personnel in different positions, there may be communication barriers, differences in understanding, and technical limitations in the collaboration process. This is conducive to improving development efficiency, shortening the implementation cycle of filter effects, and obtaining the target filter effect more efficiently.
[0069] Second embodiment
[0070] The second embodiment of the present application relates to a screen post-processing method. The second embodiment is an improvement on the first embodiment, and the specific improvement is: in the second embodiment of the present application, the configuration file also includes: parameter curves corresponding to different basic filter types.
[0071] Specifically, different configuration files further include: parameter curves corresponding to different basic filter types respectively; the parameter curves are used to characterize the dynamic changes of parameter data of the basic filter types.
[0072] Exemplarily, the intensity of the filter effect corresponding to each basic filter type can be dynamically adjusted according to its parameter curve, and the intensities of the filter effects of different basic filter types are superimposed to form the overall filter intensity. The filter intensity refers to the intensity corresponding to the filter effect. The parameter curve can be used to indicate the dynamic process of the intensity of the filter effect represented by the parameter data of the basic filter type changing over time. For example, the filter effect gradually increases or decreases over time, so that a smoother and more natural transition of the filter effect can be achieved.
[0073] For example, in some examples, in order to achieve the target filter effect, the filter strengths of the two basic filter types, Color Grading (full screen color filter) and PP Pattern (pattern overlay filter), are synchronously, evenly and smoothly increased without sudden changes; the filter strength of Chromatic Aberration (dispersion filter) does not rise evenly, but suddenly increases at a certain time point. By adopting different parameter curves for different basic filter types, the entire change process of the filter effect can be made richer and more dynamic, thereby increasing the visual appeal.
[0074] Exemplarily, in some examples, the target filter effect may correspond to multiple stages:
[0075] Early stage: At this stage, the filter effects mainly include PP Pattern (such as noise) and RadialBlur (such as radial blur filter). These effects may be relatively mild, laying the foundation for subsequent changes. Mid-late stage: As time goes by, the filter effects of PP Pattern and Color Grading begin to increase rapidly. PP Pattern may become more obvious or more complex, and Color Grading may increase the saturation, contrast or other color effects of the color, making the overall visual effect richer and more prominent. Late stage: At this stage, the filter effect of PP Pattern begins to decrease rapidly, perhaps by reducing the intensity or transparency of the pattern, so that the pattern gradually fades out of the picture. Then use Blink to make the screen quickly turn pure white.
[0076] For example, see Figure 2 As shown, by adjusting the parameter curves of basic filter types such as ColorGrading (full screen color grading filter) and PPPattern (pattern overlay filter), the transition of the target filter effect can be made not linear, but an uneven transition with fast changes in some places and slow changes in other places can be achieved. Figure 2 In the figure, when the overall filter strength increases from 0.1 to 0.4, only the filter effect at the edge of the screen begins to appear; when the overall filter strength increases from 0.4 to 1, filter effects such as edge color adjustment, dispersion, and edge blur begin to appear.
[0077] For example, Figure 3As shown, the parameter curves of different basic filter types can be adjusted and staggered to make them appear at different stages of overall filter strength. In other words, three distinct visual stages can be created by staggering the parameter curves, achieving the filter combination effect of three different stages of basic filter types. Figure 3 In the first stage, the overall filter strength is 0.4, and the filter effect is to darken the picture; in the second stage, the overall filter strength is 0.7, and the filter effect enhances the radial blur effect and improves the contrast; in the third stage, the overall filter strength is 1.0, and the filter effect quickly transitions to full screen white. This example can be applied to the blank screen after the target object explodes in the game.
[0078] From the above examples, it can be seen that by adjusting the parameter curves of different basic filter types, relevant personnel can create rich, complex, and multi-stage filter effects in a simple way.
[0079] It is not difficult to find that in the embodiment of the present application, since different configuration files also include: parameter curves corresponding to different basic filter types; the parameter curves are used to characterize the dynamic changes of the parameter data of the basic filter types. In this way, the combination of basic filter types at different stages can be realized according to the parameter curves corresponding to the different basic filter types, and the combined filter effect can be obtained. In this way, it is conducive to ensuring a smooth transition between filter effects and avoiding abrupt or unnatural filter effects when switching filters, so as to achieve the purpose of providing players with a coherent visual experience. In other words, in order to meet the dynamic change requirements of customized filter effects, so that the filter effects can be adjusted in real time according to different business scenarios of the game or the interaction of players, the filter layer supports associating a specific parameter curve for each basic filter type (such as blur, color adjustment, brightness control, etc.), and the parameter curve is used to represent the strength of the filter effect corresponding to each basic filter type over time or other parameters. By configuring different parameter curves for each basic filter type, a variety of dynamic effects can be achieved.
[0080] Third embodiment
[0081] The third embodiment of the present application relates to a screen post-processing method. The third embodiment is an improvement on the second embodiment, and the specific improvement is: in the third embodiment of the present application, a technical solution for the mapping relationship between parameter data of different basic filter types and the master control parameters is provided.
[0082] Specifically, the screen post-processing method may further include:
[0083] Step S201, determining a main control parameter for characterizing the overall filter strength according to parameter data of different basic filter types;
[0084] Step S202, establishing a mapping relationship between parameter data of different basic filter types and the master control parameters; the mapping relationship is stored in the filter layer;
[0085] Correspondingly, the selection information at least includes the master control parameter;
[0086] The step of processing the selection information through the filter layer to obtain the target filter effect, i.e. step S101, may further include the following steps:
[0087] Step S1011', determining a target parameter curve of a basic filter type obtained after mapping the master control parameters according to the master control parameters and the mapping relationship;
[0088] Step S1012', obtaining a target filter effect according to the target parameter curve.
[0089] Exemplarily, relevant personnel can determine which parameters in each different basic filter type need to be affected by the master control parameters so as to be controlled by the master control parameters according to the artistic design and performance requirements of the basic filter type, and establish a mapping relationship between the parameter data of different basic filter types and the master control parameters and store them in the configuration file.
[0090] Furthermore, the main control parameters in the selection information and the mapping relationship in the filter layer can be combined to obtain target parameter data of the basic filter type after being mapped by the main control parameters. In this way, a one-time dynamic adjustment of the target parameters can be achieved, which is conducive to making the target filter effect more in line with the requirements.
[0091] For example, see Figure 4 As shown. According to the direction indicated by the arrow (from right to left), the FilterStength in the figure is used to represent the master control parameter, and the master control parameter is used to characterize the overall filter strength required at the current moment. In this example, according to the master control parameter and the mapping relationship, the target parameter curves obtained after being mapped by the master control parameter include: ColorGrading Curve, RadialBlur Curve, Vignette Curve, ChromaticAberration Curve, GaussianBlur Curve and PPPattern Curve.
[0092] ColorGrading Curve represents the parameter curve that controls the filter strength of the basic filter type ColorGrading (full screen color grading filter); for example, the parameters of the ColorGrading (full screen color grading filter) may include: TotalColor, HighlightColor, ShadowColor, Center, Radius, etc. Among them, TotalColor is used to affect the color adjustment of the entire image or video. HighlightColor is used to adjust the color of the highlight part of the image or video. ShadowColor corresponds to HighlightColor and is used to adjust the color of the shadow part of the image or video. Center is used to adjust the color or brightness of the middle area. Radius is used to adjust the range or intensity of the impact during color grading.
[0093] RadialBlur Curve, represents the parameter curve that controls the filter strength of the basic filter type RadialBlur (radial blur filter); for example, the parameters of the RadialBlur (radial blur filter) include: BlurRadius, BlurFeather, Center, etc. Among them, BlurRadius is used to represent the diffusion strength of the blur effect from the center point outward. BlurFeather: Feather is a gradient effect used to smooth the transition between blurred areas and non-blurred areas. The BlurFeather parameter is used to adjust the strength of the feather effect. Center is used to define the center point of the blur effect.
[0094] Vignette Curve, represents the parameter curve for controlling the filter intensity of the basic filter type Vignette (image vignetting filter); for example, the parameters of the Vignette (image vignetting filter) include: Intensity, Smoothness, etc. Among them, Intensity is used to control the intensity of the vignetting effect and determine the depth and range of the vignetting. Smoothness is used to affect the gradual smoothness of the vignetting effect.
[0095] ChromaticAberration Curve, represents the parameter curve for controlling the filter intensity of the basic filter type Chromatic Aberration (dispersion filter); for example, the parameters of the Chromatic Aberration (dispersion filter) include: Intensity, FilterColorA. Among them, Intensity is used to control the intensity of the dispersion effect and determine the slight or significant degree of the dispersion effect. FilterColorA is used to specify the main color that appears in the dispersion effect.
[0096] GaussianBlur Curve, represents the parameter curve for controlling the filter intensity of the basic filter type Gaussian Blur (Gaussian blur filter); for example, the parameters of the Gaussian Blur (Gaussian blur filter) include: BlurScale, Intensity, Center. Among them, BlurScale is used to control the radius or range of the blur. Intensity is used to control the intensity of the blur. Center is used to define the center point of the blur effect.
[0097] PPPattern Curve represents the parameter curve that controls the filter strength of the basic filter type PPPattern (pattern overlay filter); for example, the parameters of the PPPattern (pattern overlay filter) include: Progress, Noise, MainTex, and Color. Among them, Progress is used to control the strength of the pattern overlay effect. Noise is used to add random textures or graininess to simulate film grain or other natural texture effects. MainTex is used to represent the input of the main texture (MainTexture). Relevant personnel can select or upload a specific pattern or texture image as the basis for overlay. Color: used to allow users to adjust the color of the overlay pattern.
[0098] Exemplarily, target parameter data may be determined based on the target parameter curve; and then a target filter effect may be obtained based on the determined target parameter data.
[0099] In some examples, the target parameter curve is a RadialBlur Curve, that is, in a parameter curve for controlling the filter strength of a basic filter type of RadialBlur (radial blur filter), the filter strength represented by the parameter curve is 0.5. Then:
[0100] The parameter BlurRadius will be adjusted to 0.5 times the original setting value. Because the filter strength is set to half of the original value, the diffusion strength of the blur effect will be halved from the center point outward. The parameters BlurFeather and Center are not affected by the target parameter curve. As mentioned above, these parameters affected by the master control parameters are set in advance by relevant personnel based on the art design and performance requirements of the basic filter type.
[0101] It should be noted that, in practical applications, the value of the main control parameter may be set within the range of 0-1.
[0102] It should be noted that the third embodiment of the present application may also be an improvement based on the first embodiment.
[0103] It is not difficult to find that in the embodiment of the present application, by determining the target parameter curve of the basic filter type obtained after being mapped by the master control parameter according to the master control parameter and the mapping relationship, it is achieved that the parameter data of all basic filter types associated with it are affected by adjusting one master control parameter. In this way, the overall effect of the filter will change according to the change of the master control parameter, which is convenient for relevant personnel to intuitively control the filter strength, making the change of the filter effect smoother and in line with expectations. In other words, in actual applications, relevant personnel only need to control the master control parameter used to characterize the overall filter strength to drive the parameter changes that affect all basic filter types associated with the master control parameter, thereby achieving the overall rich changes of the target filter effect.
[0104] Fourth embodiment
[0105] The fourth embodiment of the present application relates to a screen post-processing method. The fourth embodiment is an improvement on the first embodiment, and the specific improvement is: in the fourth embodiment of the present application, a technical solution is provided that takes into account whether there is a conflict between the filter request and the enabled filter effect.
[0106] Specifically, the selection information is processed through the filter layer to obtain the target filter effect, that is, step S101 may further include the following steps: Figure 5 As shown:
[0107] Step S1011, determining whether there is a conflict between the filter request and the enabled filter effect according to the selection information, and obtaining a first determination result;
[0108] Step S1012: obtaining a target filter effect according to the first determination result.
[0109] Exemplarily, it may be determined based on the selection information whether the filter request and the enabled filter effect cannot be applied at the same time and thus there is a conflict.
[0110] Exemplarily, if the first determination result indicates that there is no conflict between the filter request and the enabled filter effect, the corresponding filter effect can be enabled directly according to the selection information of the basic filter type carried by the filter request. At this time, the corresponding filter effect just enabled and the enabled filter effect together form the target filter effect. At this point, the processing of the filter request ends.
[0111] Optionally, in some embodiments, obtaining a target filter effect according to the first determination result, that is, step S1012 may further include the following steps:
[0112] Step S10121: if the first determination result indicates that there is a conflict between the filter request and the enabled filter effect, comparing the priorities of the filter request and the enabled filter effect according to the selection information;
[0113] Step S10122, obtaining the target filter effect according to the comparison result of the priority.
[0114] Optionally, in some embodiments, the target filter effect is obtained according to the comparison result of the priority, that is, step S10122 may further include the following steps:
[0115] Step S101221: if the priority of the filter request is higher than the priority of the enabled filter effect, interrupting the enabled filter effect and responding to the filter request;
[0116] Step S101222: If the priority of the filter request is lower than the priority of the enabled filter effect, the filter request is placed in a waiting list.
[0117] Exemplarily, the selection information may also be the setting information of the priority by the relevant personnel. If the priority of the filter request is higher than the priority of the enabled filter effect, when the enabled filter effect is interrupted, the interrupted enabled filter effect can be put into the waiting list, which means that the previously enabled filter effect will be paused and wait for possible reopening in the future; at the same time, the filter request is responded to so as to enable the filter effect corresponding to the filter request.
[0118] Exemplarily, if the priority of the filter request is lower than the priority of the enabled filter effect, the filter request will not be responded to immediately, and the filter request can be temporarily placed in a waiting list, waiting for the enabled filter effect with a higher current priority to be canceled or ended, and then it may be enabled.
[0119] In this way, by cleverly adopting the priority method, it is possible to determine which target filter effect should be displayed first, thereby solving the technical problem of conflicts that may occur when multiple game modules or functions simultaneously issue filter requests in actual business.
[0120] It should be noted that the fourth embodiment of the present application may also be an improvement based on the second embodiment and / or the third embodiment.
[0121] It is not difficult to find that in the embodiment of the present application, by determining whether there is a conflict between the filter request and the enabled filter effect according to the selection information, and obtaining the target filter effect according to the first determination result, a specific implementation method is provided for obtaining the target filter effect by processing the selection information through the filter layer. It can be understood that in actual business, conflicts may occur when multiple game modules or functions issue filter requests at the same time, and the filter layer needs to be able to handle the conflict. The scheme provided by the embodiment of the present application can improve the orderliness of processing filter requests; when there is a conflict between the filter request and the enabled filter effect, it is easy to decide which filter effects should be applied, so that the filter layer can adapt to different usage scenarios and needs, thereby improving the flexibility and effectiveness of the filter layer.
[0122] Fifth embodiment
[0123] The fifth embodiment of the present application relates to a screen post-processing method. The fifth embodiment is an improvement on the fourth embodiment, and the specific improvement is: in the fifth embodiment of the present application, a method for determining the priority is provided.
[0124] Specifically, the priority determination method may include the following steps: Figure 6 As shown:
[0125] Step S301, determining first priorities corresponding to different groups according to the target filter effect;
[0126] Step S302, determining the second priority of each basic filter type in each group;
[0127] Step S303: Obtain the priority according to the first priority and the second priority.
[0128] Exemplarily, the first priority can be determined according to the group (Group) to which the target filter effect belongs. Generally speaking, different business scenarios correspond to different target filter effects. Therefore, the first priorities corresponding to different groups can also be determined according to the business scenarios. Among them, the business scenarios can include task triggering scenarios, play area scenarios, performance scenarios, etc., and different groups correspond to different priorities. For example, after the player character in the game walks to the target position, a target filter effect (first business scenario) is triggered, and then the player character and another player character have a dialogue, and the dialogue triggers another target filter effect (second business scenario). Therefore, in this example, it is necessary to set the first priority of the group to which the target filter effect belongs in the second business scenario to be higher than the first priority of the group to which the target filter effect belongs in the first business scenario. Simply put, in the first priority, a target filter effect with a high priority can cover a target filter effect with a low priority. A target filter effect with a low priority will be covered by a target filter effect with a high priority.
[0129] Here, by grouping according to the target filter effects and obtaining the first priorities corresponding to different groups, their usage in different game business scenarios can be more clearly defined.
[0130] Exemplarily, within the same business scenario, the priority of each basic filter type in each group can be further subdivided to deal with the relative importance of different basic filter types in the same business scenario. For example, the second priority can further include low priority, medium priority and high priority. The low priority can be used for filter effects that have little impact on the gaming experience or can be covered by other basic filter types; the medium priority can be used for filter effects that have a certain impact on the gaming experience but are not the most critical; the high priority can be used for filter effects that are crucial to the gaming experience or need to be displayed first.
[0131] It should be noted that the fifth embodiment of the present application may also be an improvement based on any one or more of the first to third embodiments.
[0132] It is not difficult to find that, compared with the related art, in the embodiment of the present application, by providing a method for determining the priority, relevant personnel can more effectively manage and control the application of the target filter effect, ensuring that the filter effect can be applied in the expected priority order in different game business scenarios. This priority management mechanism helps to ensure that the visual performance and user experience of the game can achieve the best effect in different situations, while allowing developers to flexibly adjust the application strategy of the target filter effect based on the filter layer according to specific needs.
[0133] Sixth embodiment
[0134] The sixth embodiment of the present application relates to a screen post-processing method. The sixth embodiment is an improvement on the first embodiment, and the specific improvement is: in the sixth embodiment of the present application, a processing mechanism is provided for receiving indication information for indicating cancellation of the filter request after the selection information is processed through the filter layer to obtain the target filter effect.
[0135] Specifically, after the selection information is processed by the filter layer to obtain the target filter effect, the method may further include the following steps: Figure 7 As shown:
[0136] Step S401, determining whether the filter request is in a waiting list according to the indication information for indicating cancellation of the filter request, and obtaining a second determination result;
[0137] Step S402: according to the second determination result, the filter is removed from the waiting list, or the filter effect currently being applied is stopped.
[0138] Exemplarily, the filter layer may provide a corresponding interface to receive the indication information; when a relevant person wishes to stop a filter effect being used, or needs to withdraw a filter effect that has been queued in the waiting list and is to be displayed, an indication information for indicating the cancellation of the filter request may be issued. Thus, the filter layer may determine whether the filter request is in the waiting list and is in a pending state according to the indication information.
[0139] If the second determination result indicates that the filter request is in the waiting list, the filter request may be directly removed from the waiting list.
[0140] If the second determination result indicates that the filter request is not in the waiting list, it can indicate to some extent that the filter effect of the filter request is being implemented and is in the application stage. At this time, the filter effect currently being applied can be stopped.
[0141] Optionally, in some embodiments, while stopping the filter effect currently being applied, it can be checked whether the stopped filter effect conflicts with other filter requests in the waiting list. If there is at least one target filter request in the waiting list that conflicts with the filter effect, and since the filter effect has been stopped, the target filter request can be enabled. If there is no target filter request in the waiting list that conflicts with the filter effect, or no other filter request is received after stopping the filter effect currently being applied, the current process ends. In this way, by determining whether it is necessary to enable other filter requests in the waiting list according to the conflict rules, automatic dynamic adjustment of the filter effects being applied is achieved to adapt to changing business needs, thereby improving the flexibility and response efficiency of the technical solution provided in the embodiments of the present application.
[0142] It is worth mentioning that, in combination with the technical solution provided in the fifth embodiment, if the indication information is used to indicate closing a specific basic filter type in the target group among the different groups, only the corresponding basic filter type will be closed; if the indication information is used to indicate the overall target filter effect of the target group among the different groups, then all basic filter types corresponding to the overall target filter effect of the target group will be closed.
[0143] It should be noted that the embodiments of the present application may also be improvements based on any one or more of the second to fifth embodiments.
[0144] It is not difficult to find that in the embodiment of the present application, by determining whether the filter request is in the waiting list according to the indication information used to characterize the cancellation of the filter request, a second determination result is obtained; according to the second determination result, the filter request is removed from the waiting list, or the filter effect currently being applied is stopped, providing a processing mechanism for receiving the indication information used to characterize the cancellation of the filter request after the selection information is processed by the filter layer to obtain the target filter effect. The technical solution provided by the embodiment of the present application can ensure that the filter request can be canceled smoothly, improving the scalability and maintainability of the filter layer.
[0145] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0146] In addition, some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.
[0147] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Figure 8 An exemplary structural diagram of the electronic device is disclosed. Figure 8 As shown, the electronic device includes: one or more processors 1101, memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0148] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0149] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a track ball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0150] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0151] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.
[0152] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.
[0153] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0154] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0155] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0156] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0157] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0158] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0159] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0160] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.
[0161] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily mention changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.
Claims
1. A screen post-processing method, It is characterized in that The method comprises: Obtaining a filter request; the filter request carries selection information for a basic filter type; The selection information is processed by a filter layer to obtain a target filter effect; wherein different configuration files are stored in the filter layer, and different configuration files correspond to different basic filter types.
2. The method according to claim 1, It is characterized in that Different configuration files also include: parameter curves corresponding to different basic filter types; the parameter curves are used to characterize the dynamic changes of parameter data of the basic filter types.
3. The method according to claim 2, It is characterized in that The method further comprises: According to the parameter data of different basic filter types, the main control parameters used to characterize the overall filter strength are determined; Establishing a mapping relationship between parameter data of different basic filter types and the master control parameters; the mapping relationship is stored in the filter layer; Correspondingly, the selection information at least includes the master control parameter; The step of processing the selection information through the filter layer to obtain the target filter effect specifically includes: Determining target parameter data of a basic filter type obtained after being mapped by the master control parameter according to the master control parameter and the mapping relationship; According to the target parameter data, a target filter effect is obtained.
4. The method according to any one of claims 1 to 3, It is characterized in that Processing the selection information through the filter layer to obtain the target filter effect includes: Determine, according to the selection information, whether there is a conflict between the filter request and the enabled filter effect, and obtain a first determination result; According to the first determination result, a target filter effect is obtained.
5. The method according to claim 4, It is characterized in that Obtaining a target filter effect according to the first determination result includes: If the first determination result indicates that there is a conflict between the filter request and the enabled filter effect, comparing the priorities of the filter request and the enabled filter effect according to the selection information; According to the comparison result of the priority, the target filter effect is obtained.
6. The method according to claim 5, It is characterized in that The step of obtaining the target filter effect according to the comparison result of the priority level includes: If the priority of the filter request is higher than the priority of the enabled filter effect, interrupting the enabled filter effect and responding to the filter request; If the priority of the filter request is lower than the priority of the enabled filter effect, the filter request is placed in a waiting list.
7. The method according to claim 5 or 6, It is characterized in that The method for determining the priority includes: Determining first priorities corresponding to different groups according to the target filter effect; Determine the second priority of each basic filter type in each group; The priority is obtained according to the first priority and the second priority.
8. The method according to claim 1, It is characterized in that After the selection information is processed by the filter layer to obtain the target filter effect, the method further includes: determining, according to the indication information for indicating cancellation of the filter request, whether the filter request is in a waiting list, to obtain a second determination result; According to the second determination result, the filter is removed from the waiting list, or the filter effect currently being applied is stopped.
9. An electronic device, It is characterized in that The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 8.
10. A computer readable medium having a computer program / instructions stored thereon, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
