Image special effects parameter processing method, device and storage medium

By obtaining and displaying the target special effects parameters of the target image, the problem of overall rendering process errors caused by special effects rendering errors is solved, and the purpose of quickly positioning the rendering problem code is achieved, and the efficiency of error detection is improved.

CN113918442BActive Publication Date: 2025-02-18DOUYIN VISION CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010660836.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2025-02-18
Estimated Expiration
2040-08-17

AI Technical Summary

Technical Problem

During the special effects rendering process of images or videos, if an error occurs in the rendering of a particular effect, it will lead to errors in the overall rendering process. Since the special effects implementation code is large, it is difficult to locate the wrong code.

Method used

By obtaining and displaying the target special effect parameters of the target image, the user can observe and discover abnormal special effect parameters, thereby positioning the code corresponding to the special effect parameters. This method includes obtaining target special effects parameters and displaying these parameters. The number of codes corresponding to a specific special effects parameter is much smaller than the number of codes for the complete image special effects, achieving the purpose of quickly positioning the rendering problem code.

Benefits of technology

Through the visual presentation of special effects parameters, users can quickly locate the code of rendering problems, improving error detection efficiency and reducing workload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918442B_ABST
    Figure CN113918442B_ABST
Patent Text Reader

Abstract

The present application relates to an image special effect parameter processing method, device and storage medium. In the process of implementing the technical solution of the present application, the inventor discovered that errors in the target special effect processing process can be reflected by the target special effect parameters. By obtaining and displaying the target special effect parameters collected during the target special effect processing process, the user can observe and find the target special effect parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effect parameters. The amount of code corresponding to a specific target special effect parameter is much smaller than the amount of code for the complete image special effect, so the purpose of quickly locating the rendering problem code can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an image special effect parameter processing method, device and storage medium. Background Art

[0002] Current photo and video software, as well as photo editing software, all provide a variety of special effects rendering functions. Using the above software, you can overlay multiple special effects on the target object in the picture or video. During the rendering process, you need to render each special effect in turn. During this process, if an error occurs in the rendering of a special effect, it will cause an error in the overall rendering process, and ultimately present an abnormal rendering effect.

[0003] When rendering errors occur, it is necessary to locate the erroneous special effect implementation code in order to correct the code error. However, the implementation code of special effects is large, and it is difficult to locate the erroneous code from a large amount of code. Summary of the invention

[0004] In order to solve the problem of how to quickly locate erroneous special effect implementation codes, the embodiments of the present application propose an image special effect parameter processing method, device and storage medium.

[0005] In a first aspect, an embodiment of the present application provides a method for processing image special effect parameters, the method comprising:

[0006] Obtaining a target special effect parameter of a target image, wherein the target special effect parameter is collected during the process of performing special effect processing on the target image, and is used to reflect whether the target special effect in the process of special effect processing is abnormal;

[0007] Display the above target special effect parameters obtained.

[0008] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects processing process can be reflected by special effects parameters. By obtaining and displaying the target special effects parameters collected during the special effects processing process, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved.

[0009] Optionally, the target special effect parameter may include a first special effect parameter and a second special effect parameter. Accordingly, the implementation method of displaying the acquired target special effect parameter may include:

[0010] Displaying the first special effect parameters and button controls on the display interface;

[0011] In response to a triggering event of the button control, the second special effect parameter is displayed.

[0012] The method provided in the embodiment of the present application can classify the target special effect parameters according to actual needs and product characteristics, display the first special effect parameters and button controls of the target special effect processing process on the display interface, and display the second special effect parameters in response to the trigger event of the button control. The display method is flexible and convenient.

[0013] On this basis, the implementation of displaying the second special effect parameter may include: displaying the second special effect parameter in a display area that does not cover the button control. Accordingly, the display of the second special effect parameter may be canceled in response to a triggering event of the button control while the second special effect parameter is displayed.

[0014] The method provided in the embodiment of the present application cancels the display of the second special effect parameter when the button control is triggered again. In this way, the second special effect parameters of different special effect processing can be displayed on the same display interface, which is convenient for users to compare and check.

[0015] Optionally, the first special effect parameter may include an instance address of an input texture and an instance address of an output texture of the target special effect.

[0016] In the process of implementing the technical solution of the present application, the applicant discovered that the instance address of the input texture and the instance address of the output texture of the target special effect are special effect parameters with a higher probability of error. Therefore, displaying these two special effect parameters on the display interface without the user clicking the corresponding button to trigger the display helps improve the efficiency of error troubleshooting.

[0017] Based on any of the above method embodiments, the target special effect parameters include:

[0018] The special effect parameters collected during the execution phase of the central processing unit in the special effect processing process, and / or the special effect parameters collected during the execution phase of the graphics processing unit in the special effect processing process.

[0019] If the target special effect parameters include special effect parameters collected by the central processing unit during the special effect processing process, then the implementation method of obtaining the target special effect parameters of the target image may include: the rendering controller in the central processing unit obtains the target special effect parameters of the target image from the cache of the central processing unit, and the target special effect parameters are collected by the special effect processing module in the central processing unit during the execution phase of the central processing unit and saved in the cache.

[0020] If the target special effect parameters include special effect parameters collected during the graphics processor execution phase of the special effect processing process, then the implementation method of obtaining the target special effect parameters of the target image may include: the rendering controller in the central processing unit obtains the target special effect parameters of the target image from the rendering kernel in the graphics processor, and the target special effect parameters are obtained by the rendering kernel through intercepting hardware command parsing during the graphics processor execution phase.

[0021] In a second aspect, an embodiment of the present invention provides an electronic device, including:

[0022] A special effect parameter acquisition module, used for acquiring target special effect parameters of a target image, wherein the target special effect parameters are collected during the process of performing special effect processing on the target image, and are used for reflecting whether the target special effect in the process of special effect processing is abnormal;

[0023] The special effect parameter display module is used to display the acquired target special effect parameters.

[0024] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects processing process can be reflected by special effects parameters. By obtaining and displaying the target special effects parameters collected during the special effects processing process, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved.

[0025] Optionally, the above-mentioned target special effect parameters may include a first special effect parameter and a second special effect parameter. Accordingly, the special effect parameter display module can display the first special effect parameter and a button control on the display interface; and display the second special effect parameter in response to a trigger event of the button control.

[0026] The electronic device provided in the embodiment of the present application can classify target special effect parameters according to actual needs and product characteristics, display the first special effect parameters and button controls of the target special effect on the display interface, and display the second special effect parameters in response to a trigger event of the button control. Its display method is flexible and convenient.

[0027] On this basis, the special effect parameter display module can display the second special effect parameter in the display area that does not cover the button control. Correspondingly, the display of the second special effect parameter can also be canceled in response to a triggering event of the button control while the second special effect parameter is displayed.

[0028] The electronic device provided in the embodiment of the present application cancels the display of the second special effect parameter when the button control is triggered again. In this way, the second special effect parameters of different special effects can be displayed on the same display interface, which is convenient for users to compare and check.

[0029] Optionally, the first special effect parameter may include an instance address of an input texture and an instance address of an output texture of the target special effect.

[0030] In the process of implementing the technical solution of the present application, the applicant discovered that the instance address of the input texture and the instance address of the output texture of the target special effect are special effect parameters with a higher probability of error. Therefore, displaying these two special effect parameters on the display interface without the user clicking the corresponding button to trigger the display helps improve the efficiency of error troubleshooting.

[0031] Based on any of the above electronic device embodiments, the target special effect parameters include:

[0032] The special effect parameters collected during the execution phase of the central processing unit in the special effect processing process, and / or the special effect parameters collected during the execution phase of the graphics processing unit in the special effect processing process.

[0033] If the target special effect parameters include special effect parameters collected by the central processing unit during the special effect processing process, then the implementation method of the special effect parameter acquisition module may include: obtaining the target special effect parameters of the target graphic from the cache of the central processing unit, and the target special effect parameters are collected by the special effect processing module in the central processing unit during the execution phase of the central processing unit and saved in the cache.

[0034] If the target special effect parameters include special effect parameters collected during the graphics processor execution phase of the special effect processing process, then the implementation method of the special effect parameter acquisition module may include: acquiring the target special effect parameters of the target graphics from the rendering kernel in the graphics processor, the target special effect parameters being obtained by the rendering kernel through intercepting hardware command parsing during the graphics processor execution phase.

[0035] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;

[0036] The memory is used to store a program for executing any of the above method embodiments;

[0037] The processor is configured to execute the program stored in the memory.

[0038] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects processing process can be reflected by special effects parameters. By obtaining and displaying the target special effects parameters collected during the special effects processing process, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved.

[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a program for implementing any of the above method embodiments.

[0040] The program stored in the computer-readable storage medium provided by the embodiment of the present application.

[0041] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects processing process can be reflected by special effects parameters. By obtaining and displaying the target special effects parameters collected during the special effects processing process, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flow chart of the image special effect parameter processing method provided in the embodiment of the present application;

[0043] Figure 2 A display state diagram of a display interface provided in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of another display state of the display interface provided in an embodiment of the present application;

[0045] Figure 4 A block diagram of an electronic device provided for one embodiment of the present application;

[0046] Figure 5 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In some processes described in the specification and claims of this application and the above-mentioned drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these processes may include more or fewer operations, and these operations may be performed sequentially or in parallel.

[0049] The amount of code for image special effects is often large. Taking face special effects as an example, the amount of code for a single face special effect is often tens of thousands or even hundreds of thousands of lines. When the rendering result of the rendering process that implements multiple special effects is wrong, if the code of the special effects processing process is traversed and checked line by line, the workload is huge. In view of this, an embodiment of the present application provides an image special effects parameter processing method, which presents the target special effects parameters collected during the special effects processing process in a visual manner. Users can find abnormal special effects parameters by checking them, so that the problem code can be locked to the code corresponding to the abnormal special effects parameters. The amount of code corresponding to the abnormal special effects parameters is often only a few lines or a dozen lines, which reduces the workload of problem troubleshooting and improves troubleshooting efficiency.

[0050] The method provided in the embodiment of the present application can be applied to a virtual machine simulating the operating environment of a mobile terminal, or can be applied to a mobile terminal, and the embodiment of the present application does not limit this. Figure 1 As shown, the method provided in the embodiment of the present application includes the following operations:

[0051] Step 101: Obtain target special effect parameters of a target image.

[0052] Among them, the target special effect parameters are generated during the special effect processing of the target image, and reflect whether the target special effect is abnormal.

[0053] Among them, if it is necessary to render multiple special effects for the target image, the special effect that needs to use the method provided by the embodiment of the present application to display the special effect parameters is called the target special effect. In practical applications, each special effect of the target image can be specified as a target special effect processing process, or some of the special effects can be specified as target special effects as needed. The rendering process for the target image (i.e., special effects processing) can be divided into a central processing unit execution stage and a graphics processor execution stage. In the graphics processor execution stage, each special effect is rendered in sequence according to the specified order. The input texture of the first special effect is the texture of the original target image. The original target image can be an image output by an image acquisition device (such as a camera) or a pre-stored image. The input texture of each subsequent image special effect is the output texture of the previous image special effect, and the output texture of each image special effect is a texture superimposed with the rendering effect of the image special effect.

[0054] In practical applications, the target parameters can be obtained in real time during the image special effects processing, or the target special effects parameters generated in the process can be obtained after the image special effects processing is completed.

[0055] In practical applications, the target special effect parameters to be obtained can be configured according to product characteristics and needs.

[0056] Step 102: Display the acquired target special effect parameters.

[0057] In practical applications, the target special effect parameters may be displayed after the special effect processing of the target image is completed, or the target special effect parameters may be displayed after receiving a special effect parameter display instruction.

[0058] In actual applications, the special effect parameters of all image special effects may be displayed on one display interface, or part of the special effect parameters may be displayed according to instructions.

[0059] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects rendering process can be reflected by the special effects parameters. By obtaining and displaying the target special effects parameters generated during the image special effects processing, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific target special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved.

[0060] In the method provided in the embodiment of the present application, the above-mentioned target special effect parameters can be classified according to factors such as product needs and product characteristics. Accordingly, the above-mentioned target special effect parameters may include a first special effect parameter and a second special effect parameter. The first special effect parameter of each of the above-mentioned target special effects and the button controls corresponding to each of these target special effects are displayed on the display interface; in response to a trigger event of the button control, the second special effect parameter of the target special effect corresponding to the button control where the trigger event occurs is displayed.

[0061] The embodiment of the present application does not limit the division method of the first special effect parameter and the second special effect parameter. As an example and not a limitation, the target special effect parameter with a higher probability of error can be selected as the first special effect parameter based on factors such as experience, and other special effect parameters can be used as the second rendering parameter. In a specific scenario, the instance address of the input texture and the instance address of the output texture of the target special effect have a higher probability of error. Then, the instance address of the input texture and the instance address of the output texture are set as the first special effect parameter. When the special effect parameter needs to be displayed, the instance address of the input texture and the instance address of the output texture of each target special effect are displayed on the above display interface, and the label buttons corresponding to each target special effect are also displayed on the display interface at the same time. When the user clicks the label button corresponding to a certain target special effect, a trigger event of the label button occurs, and the second special effect parameter of the target special effect (other target special effect parameters other than the instance address of the input texture and the instance address of the output texture) is displayed in response to the trigger event. In practical applications, the target special effect parameter that needs to be compared across target special effects can also be used as the first special effect parameter, and the first special effect parameters of multiple target special effects are displayed simultaneously on the display interface to facilitate user observation and comparison.

[0062] The method provided in the embodiment of the present application can classify the target special effect parameters according to actual needs and product characteristics, display the first special effect parameters of each target special effect and the button controls corresponding to each target special effect on the display interface, and display the second special effect parameters of the corresponding target special effect in response to the trigger event of the button control. The display method is flexible and convenient.

[0063] In actual applications, if the number of target special effects is so large that it is inconvenient to display their first special effect parameters on the display interface at the same time, they can be displayed in a scrolling manner.

[0064] In one embodiment, a display control is called to display the second special effect parameter of the target special effect corresponding to the button control where the trigger event occurs. The embodiment of the present application does not limit the display control. As an example and not a limitation, the display control can be a label control, and of course it can also be other display controls for displaying target special effect parameters. The method provided in the embodiment of the present application displays the second special effect parameter in the form of a display control, and does not need to display the second special effect parameter by switching the display interface, so that the user can observe multiple target special effect parameters at the same time on the same display interface for comparison and investigation.

[0065] On this basis, the method provided in the embodiment of the present application can also close the display control in response to the triggering event of the corresponding button control when the second special effect parameter is displayed. In the method provided in the embodiment of the present application, the display control is closed when the corresponding button control is triggered again, rather than being closed in response to the triggering event of other button controls. In this way, the second special effect parameters of different target special effects can be displayed on the same display interface, which is convenient for users to compare and check.

[0066] In another embodiment, the display interface is switched to display the second special effect parameter of the target special effect corresponding to the button control where the trigger event occurs.

[0067] In another embodiment, the second special effect parameter is displayed in a display area that does not cover the button control. Accordingly, the display of the second special effect parameter can be canceled in response to a triggering event of the button control while the second special effect parameter is displayed.

[0068] The method provided in the embodiment of the present application cancels the display of the second special effect parameter when the button control is triggered again. In this way, the second special effect parameters of different special effect processing can be displayed on the same display interface, which is convenient for users to compare and check.

[0069] Based on any of the above method embodiments, the above target special effect parameters may include: special effect parameters collected during the central processing unit execution phase of the special effect processing process, and / or special effect parameters collected during the graphics processing unit execution phase of the special effect processing process.

[0070] If the target special effect parameters include special effect parameters collected by the central processing unit during the special effect processing process, then the implementation method of obtaining the target special effect parameters of the target image may include: the rendering controller in the central processing unit obtains the target special effect parameters of the target image from the cache of the central processing unit, and the target special effect parameters are collected by the special effect processing module in the central processing unit during the execution phase of the central processing unit and saved in the cache.

[0071] If the target special effect parameters include special effect parameters collected during the graphics processor execution phase of the special effect processing process, then the implementation method of obtaining the target special effect parameters of the target image may include: the rendering controller in the central processing unit obtains the target special effect parameters of the target image from the rendering kernel in the graphics processor, and the target special effect parameters are obtained by the rendering kernel through intercepting hardware command parsing during the graphics processor execution phase.

[0072] Based on any of the above method embodiments, after the rendering operation of each target special effect is completed, the rendering result of the target special effect is obtained by capturing frames, and the rendering result is rendered as a display image, and the display image and the target special effect parameters of the target special effect are superimposed and displayed, wherein the target special effect parameters are displayed on the upper layer of the display image.

[0073] The present application embodiment does not limit the data structure of the target special effect parameters. In practical applications, the data structure can be defined as needed. As an example but not a limitation, a feasible data structure of the target special effect parameters is a three-layer data structure as follows:

[0074] The target image is superimposed with N image effects (all as target effects), and each image effect is counted as F i , the value range of i is 1 to N, and the outermost structure of the special effect parameter data structure of the N special effects of the target image is: {F 1 , F 2 ..., F N}; Each image effect F i There are M special effect parameters, each special effect parameter is counted as A j , j ranges from 1 to M, and each image effect F of the target image i The special effect parameter data structure is: 1 , A 2 , ... A M ]; The data structure of each special effect parameter can be represented in the form of a key-value pair.

[0075] It should be noted that, depending on the product characteristics, a nested structure may also appear, that is, some or all of the image effects contain at least one sub-image effect. In a specific example of a nested structure, the data structure of the image effect is as follows: [A1 , A 2 , ... A M , F x ], where Fx is its sub-image special effect, then the value (key value) in the key-value pair of the sub-image special effect Fx can be expressed as [A 1 , A 2 , ...]. Accordingly, while displaying the second special effect parameter of the image special effect, a button control corresponding to the sub-image special effect of the image special effect may also be displayed.

[0076] The method provided by the embodiment of the present application is described in detail below in conjunction with specific application scenarios. During the R&D testing stage, if the R&D tester needs to test the software product that implements image special effects, the method provided by the embodiment of the present application can be implemented on a virtual machine, which simulates the CPU (central processing unit) and GPU to work together to achieve image rendering. The software product implements the following functions: Real-time special effects rendering of face images captured by the camera.

[0077] The R&D tester runs the software product on a virtual machine and selects the image effects to be superimposed through the human-computer interaction interface of the software product, which are: filter, beautification, plastic surgery, and adding decorations. These four image effects constitute a rendering chain, where the input of the filter is the texture output by the camera, and the output is a texture with the filter effect added. The input of the beauty is the texture with the filter effect added, and the output is a texture with the beauty effect superimposed. The input of the plastic surgery is the texture with the beauty effect superimposed, and the output is a texture with the plastic surgery effect superimposed. The input of the decoration is the texture with the plastic surgery effect superimposed, and the output is a texture with the decoration effect superimposed.

[0078] Among them, the filter is to superimpose a mask on the input texture, the beautification is to achieve effects such as skin smoothing, acne removal, and freckle removal, the plastic surgery is to achieve effects such as deformation adjustment of eyes, eyebrows, lips, face, nose and other parts, and adding decorations is to add decorative effects such as glasses and headwear.

[0079] In response to a user trigger, the software product calls the effect rendering SDK to execute the rendering process of the image special effects, and calls the render manager module to collect at least one of the following attribute information of each image special effect as a special effect parameter during the rendering process: the instance address of the image special effect, the instance address of the protocol used by the image special effect, the name of the image special effect, the width of the image special effect output texture, and the height of the image special effect output texture.

[0080] At the end of the image special effect rendering process, the effect rendering SDK sends the content to be rendered to the GPU, and the rendering core in the GPU intercepts the hardware command and records the current OpenGL operation to be executed and the state parameters corresponding to the operation. Among them, at least one of the OpenGL operation parameters and state parameters is used as the special effect parameter.

[0081] The software product organizes the acquired special effect parameters of each image special effect according to the data structure provided in the above embodiment, and sends them to the UI interface display module in the form of a message.

[0082] The UI interface display module displays the final rendering result on the rendering result display interface, which also displays a special effect parameter display button control. When the R&D tester finds that the rendering result is abnormal, he clicks the special effect parameter display button control. The UI interface display module responds to the trigger event of the special effect parameter display button control, calls the special effect parameter display interface, and Figure 2 The special effect parameter display interface shown shows the input texture address, output texture address and corresponding button controls of each image special effect ( Figure 2 ).

[0083] If the R&D tester finds that the input texture address or output texture address of one or several image effects is abnormal, or does not find that the input texture address and output texture address of any image effect are abnormal, it may be necessary to further check other special effect parameters of the image effect. Then, the R&D tester will click the button control corresponding to the image effect whose special effect parameters need to be further checked. The UI interface display module responds to the trigger event of the button control corresponding to a certain image effect, checks the status of the label control corresponding to the button control, and calls Figure 3 The label control shown is used to display other special effect parameters of the corresponding image special effect (such as the instance address of the image special effect, the instance address of the protocol used by the image special effect, the name of the image special effect, the width of the image special effect output texture, and the height of the image special effect output texture).

[0084] If the R&D tester clicks the button control again, the UI interface display module responds to the triggering event of the button control corresponding to a certain image special effect, checks the state of the label control corresponding to the button control, determines that the label control is open, and then closes the label control.

[0085] By checking these special effect parameters, R&D testers can quickly locate the special effect parameters that are abnormal. For example, if the input texture address of the shaping is the output texture address of the filter, then the input texture address of the shaping is abnormal; for another example, if the output texture height of the beauty function is inconsistent with the texture height output by the camera, then the output texture height of the beauty function is abnormal.

[0086] Next, R&D testers only need to find the code corresponding to the abnormal special effect parameters in the program code of the software product to perform error troubleshooting.

[0087] It should be noted that during the R&D and testing phase, R&D and testing personnel can also run the above method on a mobile terminal to implement testing of the software product.

[0088] Of course, you can also configure corresponding functional modules on the online software products. When the user uses the software product, if the rendering process fails, the software product will actively call out the functional module (or the user will call out the functional module) to obtain special effect parameters, and report the obtained special effect parameters to the server. The server will display the received special effect parameters on the display to which it is connected, or send the received special effect parameters to the terminal device used by the R&D testers, which will display the special effect parameters after obtaining them.

[0089] Based on the same inventive concept as the method, the embodiment of the present application provides an electronic device, such as Figure 4 As shown, including:

[0090] The special effect parameter acquisition module 401 is used to acquire the target special effect parameters of the target image, wherein the target special effect parameters are collected during the process of performing special effect processing on the target image, and are used to reflect whether the target special effect in the process of special effect processing is abnormal;

[0091] The special effect parameter display module 402 is used to display the acquired special effect parameters.

[0092] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects processing process can be reflected by special effects parameters. By obtaining and displaying the target special effects parameters collected during the special effects processing process, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved.

[0093] Optionally, the above-mentioned target special effect parameters may include a first special effect parameter and a second special effect parameter. Accordingly, the special effect parameter display module can display the first special effect parameter and a button control on the display interface; and display the second special effect parameter in response to a trigger event of the button control.

[0094] The electronic device provided in the embodiment of the present application can classify target special effect parameters according to actual needs and product characteristics, display the first special effect parameters and button controls of the target special effect on the display interface, and display the second special effect parameters in response to a trigger event of the button control. Its display method is flexible and convenient.

[0095] On this basis, the special effect parameter display module can display the second special effect parameter in the display area that does not cover the button control. Correspondingly, the display of the second special effect parameter can also be canceled in response to a triggering event of the button control while the second special effect parameter is displayed.

[0096] The electronic device provided in the embodiment of the present application cancels the display of the second special effect parameter when the button control is triggered again. In this way, the second special effect parameters of different special effects can be displayed on the same display interface, which is convenient for users to compare and check.

[0097] Optionally, the first special effect parameter may include an instance address of an input texture and an instance address of an output texture of the target special effect.

[0098] In the process of implementing the technical solution of the present application, the applicant discovered that the instance address of the input texture and the instance address of the output texture of the target special effect are special effect parameters with a higher probability of error. Therefore, displaying these two special effect parameters on the display interface without the user clicking the corresponding button to trigger the display helps improve the efficiency of error troubleshooting.

[0099] Based on any of the above electronic device embodiments, the target special effect parameters include:

[0100] The special effect parameters collected during the execution phase of the central processing unit in the special effect processing process, and / or the special effect parameters collected during the execution phase of the graphics processing unit in the special effect processing process.

[0101] If the target special effect parameters include special effect parameters collected by the central processing unit during the special effect processing process, then the implementation method of the special effect parameter acquisition module may include: obtaining the target special effect parameters of the target graphic from the cache of the central processing unit, and the target special effect parameters are collected by the special effect processing module in the central processing unit during the execution phase of the central processing unit and saved in the cache.

[0102] If the target special effect parameters include special effect parameters collected during the graphics processor execution phase of the special effect processing process, then the implementation method of the special effect parameter acquisition module may include: acquiring the target special effect parameters of the target graphics from the rendering kernel in the graphics processor, the target special effect parameters being obtained by the rendering kernel through intercepting hardware command parsing during the graphics processor execution phase.

[0103] Based on the same inventive concept as the method, an embodiment of the present application provides an electronic device, including a processor and a memory;

[0104] The memory is used to store a program for executing any of the above method embodiments;

[0105] The processor is configured to execute the program stored in the memory.

[0106] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects processing process can be reflected by special effects parameters. By obtaining and displaying the target special effects parameters collected during the special effects processing process, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved.

[0107] like Figure 5 As shown, the electronic device provided in the embodiment of the present application includes not only a processor and a memory, but also an I / O interface (input and output interface) and a bus.

[0108] Among them, the processor (such as a central processing unit) can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage device to the random access memory (RAM). In the RAM, various programs and data required for the operation of the server are also stored. ROM, RAM and storage devices are collectively referred to as memories, and the processor, ROM, RAM and storage devices are connected to each other through a bus. The I / O interface is also connected to the bus. Typically, the following devices can be connected to the I / O interface: input devices such as touch screens, touch pads, keyboards, mice, cameras, microphones, etc.; output devices such as liquid crystal displays (LCDs), speakers, etc.; storage devices such as magnetic tapes, hard disks, etc.; and communication devices. The communication device allows the server to communicate with other devices wirelessly or wired to exchange data. Although Figure 5 A server having various devices is shown, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.

[0109] Based on the same inventive concept as the method, an embodiment of the present application provides a computer-readable storage medium storing a program for implementing any of the above method embodiments.

[0110] In the process of implementing the technical solution of the present application, the inventor discovered that errors in the special effects processing process can be reflected by special effects parameters. By obtaining and displaying the target special effects parameters collected during the special effects processing process, the user can observe and find the target special effects parameters with problems, thereby locating the rendering problem to the code corresponding to the target special effects parameters. The amount of code corresponding to a specific special effects parameter is much smaller than the amount of code for the complete image special effects, so the purpose of quickly locating the rendering problem code can be achieved.

[0111] A person 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 instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0112] The embodiments described above are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

Claims

1. A method for processing image special effects parameters, characterized in that: The method comprises: Obtain target special effect parameters of a target image, wherein the target special effect parameters are collected during the process of performing special effect processing on the target image, and are used to reflect whether the target special effect is abnormal during the special effect processing; the target special effect parameters include attribute information of the target special effect during the process of performing special effect processing on the target image; the target special effect parameters include at least one of the following: an instance address of an input texture of the target special effect, an instance address of an output texture of the target special effect, an instance address of the target special effect, an instance address of a protocol used by the target special effect, a name of the target special effect, a width of an output texture of the target special effect, and a height of an output texture of the target special effect; The acquired target special effect parameters are displayed. If the target special effect is abnormal, the abnormal special effect parameters are determined in the target special effect parameters, and the codes corresponding to the abnormal special effect parameters are located for error troubleshooting.

2. The method according to claim 1, characterized in that The target special effect parameters include a first special effect parameter and a second special effect parameter, and the display of the acquired target special effect parameters includes: Displaying the first special effect parameters and button controls on the display interface; In response to a triggering event of the button control, the second special effect parameter is displayed.

3. The method according to claim 2, characterized in that The displaying of the second special effect parameter includes: Displaying the second special effect parameter in a display area that does not cover the button control; The method further comprises: When the second special effect parameter is displayed, in response to a triggering event of the button control, the display of the second special effect parameter is canceled.

4. The method according to claim 2, characterized in that: The first special effect parameter includes an instance address of an input texture and an instance address of an output texture of a target special effect.

5. The method according to any one of claims 1 to 4, characterized in that: The target special effect parameters include: The special effect parameters collected during the execution phase of the central processing unit in the special effect processing process, and / or the special effect parameters collected during the execution phase of the graphics processing unit in the special effect processing process.

6. The method according to claim 5, characterized in that The step of obtaining target special effect parameters of a target image includes: The rendering controller in the central processing unit obtains target special effect parameters of the target graphics from the cache of the central processing unit. The target special effect parameters are collected by the special effect processing module in the central processing unit during the execution phase of the central processing unit and saved in the cache.

7. The method according to claim 5, characterized in that The step of obtaining target special effect parameters of a target image includes: The rendering controller in the central processing unit obtains target special effect parameters of the target graphics from the rendering kernel in the graphics processor, and the target special effect parameters are obtained by the rendering kernel through intercepting hardware commands and parsing during the execution phase of the graphics processor.

8. An electronic device, characterized in that: include: A special effect parameter acquisition module, used for acquiring target special effect parameters of a target image, wherein the target special effect parameters are collected during the process of performing target special effect processing on the target image, and are used for reflecting whether the target special effect in the process of special effect processing is abnormal; The target special effect parameters include attribute information of the target special effect in the process of performing special effect processing on the target image; the target special effect parameters include at least one of the following: the instance address of the input texture of the target special effect, the instance address of the output texture of the target special effect, the instance address of the target special effect, the instance address of the protocol used by the target special effect, the name of the target special effect, the width of the output texture of the target special effect, and the height of the output texture of the target special effect; The special effect parameter display module is used to display the acquired target special effect parameters. If the target special effect is abnormal, the abnormal special effect parameters are determined in the target special effect parameters, and the codes corresponding to the abnormal special effect parameters are located for error troubleshooting.

9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store a program for executing the method according to any one of claims 1 to 7; The processor is configured to execute the program stored in the memory.

10. A computer-readable storage medium, characterized in that: A program for executing the method according to any one of claims 1 to 7 is stored.

Citation Information

Patent Citations

  • Special effect data detection method, device and equipment and storage medium

    CN110838166A

  • Node relation graph display method, device and equipment

    CN111274308A

  • Image processing effect adjusting method and device, equipment and medium

    CN111343472A