Special effects display method, device and computer storage medium

By providing special effects display methods and devices in the operating system of the terminal device and processing special effects display operations initiated by applications, the problem that the operating system cannot meet the application's special effects display requirements is solved, custom special effects display is realized, and the user experience is improved.

CN113672312BInactive Publication Date: 2024-09-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010403075.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-13
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The operating system of the terminal device cannot meet the special effects display requirements of various applications, affecting the user experience.

Method used

Provide a special effects display method and device, which determines the display effect by receiving the special effects display operation initiated by the application, processes the size and position of the object, and performs blurring, color mixing or shadow effects processing according to the special effects display information, and draws it to the display interface.

Benefits of technology

It implements customized special effects display functions for various applications to meet special effects display needs and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113672312B
    Figure CN113672312B
Patent Text Reader

Abstract

The present disclosure is about a special effect display method, device and computer storage medium, and relates to a terminal device display technology of a terminal device. The present disclosure provides a special effect display method, which is applied to a terminal device, including: when receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of the special effect display in the application according to the display effect selected by the special effect display operation; determining the size and position of the object in the display interface; performing corresponding special effect display processing on the object according to the special effect display information, and drawing the object after the special effect display processing into the display interface for display according to the size and position of the object; the display effect includes at least any one of a blur effect, a color mixing effect and a shadow effect. The technical solution of this embodiment can provide customized special effect display functions for various applications according to the calls of various applications, thereby meeting the special effect display requirements of various applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a terminal device display technology of a terminal device, and more particularly to a special effect display method, device and computer storage medium. Background Art

[0002] In the related art, the display effects of controls / windows in the display interface of the terminal device are generally realized by application settings. For example, various applications have various special effects display, including blur effect, color mixing effect, shadow effect, etc. However, the operating system of the terminal device itself does not have the function of providing special effects display for various applications, that is, it cannot meet the special effects display requirements of various applications, affecting the user experience of the application. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a special effect display method, device and computer storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a special effect display method is provided, which is applied to a terminal device, and includes:

[0005] When receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation;

[0006] Determining the size and position of the object in the display interface;

[0007] According to the special effect display information, performing corresponding special effect display processing on the object;

[0008] According to the size and position of the object in the display interface, drawing the object after the special effect display processing into the display interface of the application for display;

[0009] The display effect at least includes any one of a blur effect, a color mixing effect and a shadow effect, and the object displayed by the special effect at least includes a control and / or a window.

[0010] Among them, in the above-mentioned special effect display method, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation includes:

[0011] When the display effect includes a blur effect, determining that the special effect display information at least includes a blur coefficient;

[0012] When the display effect includes a color mixing effect, determining that the special effect display information at least includes a color of the color mixing and a color mixing mode;

[0013] When the display effect includes a shadow effect, it is determined that the special effect display information at least includes shadow offset information, shadow color, and shadow scaling factor.

[0014] Among them, in the above-mentioned special effect display method, performing corresponding special effect display processing on the object according to the special effect display information includes:

[0015] Acquire an image corresponding to the display interface of the application, and reduce the image to a preset ratio to obtain a processed image;

[0016] According to the special effect display information, performing corresponding special effect display processing on the special effect display object in the processed image;

[0017] Drawing the object after the special effect display processing to the display interface of the application for display according to the size and position of the object in the display interface includes:

[0018] Determining the size and position of the object in the processed image according to the size and position of the object in the display interface and the preset ratio;

[0019] Drawing the object after special effect display processing into the processed image according to the size and position of the object in the processed image;

[0020] The processed image is enlarged to the size of the display interface to obtain a display interface with special effect display processing for display.

[0021] Wherein, the above special effect display method further includes:

[0022] Performing non-special effects image processing on the object, wherein the non-special effects image processing includes at least one of color saturation adjustment, brightness adjustment, and luminance adjustment;

[0023] Drawing the object after the special effect display processing to the display interface of the application for display includes:

[0024] The objects that have undergone special effect display processing and non-special effect image processing are drawn into the display interface of the application for display.

[0025] Wherein, the above special effect display method further includes:

[0026] Determining appearance information of the object, the appearance information at least including rounding angle and / or line information;

[0027] Drawing the object after the special effect display processing to the display interface of the application for display, including:

[0028] The object after the special effect display processing is drawn according to the appearance information to the display interface of the application for display.

[0029] According to a second aspect of an embodiment of the present disclosure, a special effect display device is provided, the device comprising:

[0030] The first module is used to determine, when receiving a special effect display operation initiated by any application, special effect display information corresponding to an object of special effect display in the application according to a display effect selected by the special effect display operation;

[0031] The second module is used to determine the size and position of the object in the display interface;

[0032] A third module is used to perform corresponding special effect display processing on the object according to the special effect display information;

[0033] A fourth module is used to draw the object after the special effect display processing into the display interface of the application for display according to the size and position of the object in the display interface;

[0034] The display effect at least includes any one of a blur effect, a color mixing effect and a shadow effect, and the object displayed by the special effect at least includes a control and / or a window.

[0035] Wherein, in the above-mentioned special effect display device, the first module includes:

[0036] A fuzzy parameter determination submodule, for determining that the special effect display information at least includes a fuzzy coefficient when the display effect includes a fuzzy effect;

[0037] A color mixing parameter determination submodule, for determining, when the display effect includes a color mixing effect, that the special effect display information at least includes a color of the color mixing and a color mixing mode;

[0038] The shadow parameter determination submodule is used to determine that the special effect display information at least includes shadow offset information, shadow color and shadow scaling factor when the display effect includes a shadow effect.

[0039] Wherein, in the above-mentioned special effect display device, the third module includes:

[0040] A processing submodule, used to obtain an image corresponding to the display interface of the application, reduce the image to a preset ratio, and obtain a processed image;

[0041] A special effect display processing submodule, used for performing corresponding special effect display processing on the special effect display object in the processed image according to the special effect display information;

[0042] The fourth module comprises:

[0043] A conversion submodule, used to determine the size and position of the object in the processed image according to the size and position of the object in the display interface and the preset ratio;

[0044] A drawing submodule, used for drawing the object after the special effect display processing into the processed image according to the size and position of the object in the processed image;

[0045] The restoration submodule is used to enlarge the processed image to the size of the display interface to obtain a display interface with special effect display processing for display.

[0046] Wherein, the above-mentioned special effect display device further includes:

[0047] A non-special effects display processing module, used for performing non-special effects image processing on the object, wherein the non-special effects image processing includes at least one of color saturation adjustment, brightness adjustment and luminance adjustment;

[0048] The fourth module draws the object after the special effect display processing and the non-special effect image processing into the display interface of the application for display.

[0049] Wherein, the above-mentioned special effect display device further includes:

[0050] An appearance information module, used to determine the appearance information of the object, wherein the appearance information at least includes rounded angle and / or line information;

[0051] The fourth module draws the object after the special effect display processing according to the appearance information into the display interface of the application for display.

[0052] According to a third aspect of an embodiment of the present disclosure, a special effect display method and device is provided, including:

[0053] processor;

[0054] a memory for storing processor-executable instructions;

[0055] Wherein, the processor is configured to:

[0056] When receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation;

[0057] Determine the size and position of the object on the display interface;

[0058] According to the special effect display information, the object is subjected to corresponding special effect display processing, and according to the size of the object and the position on the display interface, the object after the special effect display processing is drawn into the display interface of the application for display;

[0059] The display effect at least includes any one or more effects of blur effect, color mixing effect and shadow effect, and the object of special effect display at least includes controls and / or windows.

[0060] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to perform a special effect display method, the method comprising:

[0061] When receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation;

[0062] Determine the size and position of the object on the display interface;

[0063] According to the special effect display information, the object is subjected to corresponding special effect display processing, and according to the size of the object and the position on the display interface, the object after the special effect display processing is drawn into the display interface of the application for display;

[0064] The display effect at least includes any one or more effects of blur effect, color mixing effect and shadow effect, and the object of special effect display at least includes controls and / or windows.

[0065] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0066] The technical solution of this embodiment can provide customized special effect display functions for various applications according to the calls of various applications, thereby meeting the special effect display requirements of various applications and improving the user experience of the application.

[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0069] Figure 1 The figure is a flow chart of a special effect display method according to an exemplary embodiment.

[0070] Figure 2 The figure is a flow chart of a special effect display method according to an exemplary embodiment.

[0071] Figure 3 The figure is a block diagram of a special effect display device according to an exemplary embodiment.

[0072] Figure 4 The figure is a block diagram of a special effect display device according to an exemplary embodiment. DETAILED DESCRIPTION

[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0074] Figure 1 This is a flow chart of a special effect display method according to an exemplary embodiment. The method can be applied to a terminal device, and includes the following operations:

[0075] Step S101, upon receiving a special effect display operation initiated by any application, determining special effect display information corresponding to an object of special effect display in the application according to a display effect selected by the special effect display operation;

[0076] Step S102, determining the size and position of the object in the display interface;

[0077] Step S103, performing corresponding special effect display processing on the object according to the special effect display information;

[0078] Step S104, drawing the object after the special effect display processing into the display interface of the application for display according to the size and position of the object in the display interface;

[0079] The display effect includes at least any one of a blur effect, a color mixing effect and a shadow effect, and the object of the special effect display includes at least a control and / or a window.

[0080] In the above step S101, the applications involved include various functional applications provided by the operating system of the terminal device, and third-party applications installed on the terminal device, etc. For example, the control center application provided by the operating system, or the third-party email application installed on the terminal device, etc., are all applications referred to in this embodiment.

[0081] The special effect display operation initiated by any application may include various forms of operations. For example, when any application receives a user operation to determine that special effect display is required, it may initiate a special effect display operation in the form of a command to the operating system. For another example, when any application enters a specified display mode (i.e., a display mode that includes special effect display effects), it may call the special effect display function interface of the operating system, at which point it is considered that the special effect display operation initiated by the application has been received.

[0082] In step S102, when determining the size of the object and the position on the display interface, various methods can be used to determine the size of the object. The determined size of the object and the position on the display interface are mainly used for drawing the object at the corresponding position of the entire display interface according to the initial size after special effect display processing.

[0083] According to the special effect display information, performing corresponding special effect display processing on the object includes a variety of operations. For example, when the display effect selected by the special effect display operation in step S101 includes a blur effect, blur processing can be performed on the special effect display object according to the display information of the blur effect. When the display effect selected by the special effect display operation includes a mixed color effect, mixed color processing can be performed on the special effect display object according to the display information of the mixed color effect. When the display effect selected by the special effect display operation includes a shadow effect, shadow processing can be performed on the special effect display object according to the display information of the shadow effect.

[0084] In this embodiment, there may be one or more objects for special effect display. That is, the special effect display operation initiated by the application may be proposed for a certain control or window in the display interface of the application, or it may be proposed for multiple controls and / or windows in the display interface of the application. When there are multiple objects for special effect display, in the above step S101, the special effect display information corresponding to the object is determined. Different special effect display information may be determined for different objects (that is, the display effects of different objects are different), or the same special effect display information may be determined for multiple objects (that is, the display effects of all objects are the same). Correspondingly, in the above step S103, it is necessary to perform special effect display processing on multiple objects separately. In the above step S104, it is necessary to draw each object after the special effect display processing to the corresponding position of the display interface of the application for display according to the size and position of different objects in the display interface.

[0085] From the above embodiments, it can be seen that the technical solution herein adds a special effect display function to the operating system of the terminal device. In this way, various applications can initiate special effect display operations to the operating system according to their own needs, triggering the operating system to perform customized special effect display processing for the application, without the need for the application to set various display modes by itself. This satisfies the special effect display needs of the application and improves the user experience.

[0086] This embodiment further provides a special effect display method, wherein, according to the display effect selected by the special effect display operation, special effect display information corresponding to the object of special effect display in the application is determined, including:

[0087] When the display effect includes a blur effect, determining that the special effect display information includes at least a blur coefficient;

[0088] When the display effect includes a color mixing effect, determining that the special effect display information includes at least a color of the color mixing and a color mixing mode;

[0089] When the display effect includes a shadow effect, it is determined that the special effect display information includes at least shadow offset information, shadow color, and shadow scaling factor.

[0090] The above fuzzy coefficient is used to characterize the degree of fuzziness displayed by the fuzzy effect. The fuzzy coefficient is a basic parameter required to realize fuzzy display processing.

[0091] The color of the mixed color is used to represent the two or more colors involved in the color mixing process. The color mixing mode is used to represent the way of color mixing, that is, how to mix and display the mixed colors. The color of the mixed color and the color mixing mode are the basic parameters required to realize the color mixing process.

[0092] The shadow offset information is used to represent the offset between the spatial positions of the shadow part and the object to be processed on the display interface. The shadow color is used to represent the color of the shadow. The shadow scaling factor is used to represent the ratio between the size of the shadow part and the size of the object to be processed. The shadow offset information, shadow color and shadow scaling factor are the basic parameters required to implement shadow processing.

[0093] The technical solution of this embodiment determines corresponding display information, that is, basic parameters required for special effect display, according to different special effect display effects, so that the terminal device can realize the function of multiple special effect display for various applications.

[0094] This embodiment further provides a special effect display method, wherein, according to the special effect display information, a corresponding special effect display processing is performed on an object, and according to the size of the object and the position of the object on the display interface, the object after the special effect display processing is drawn to the display interface of the application for display, including:

[0095] Obtain an image corresponding to the display interface of the application, reduce the image to a preset ratio, and obtain a processed image;

[0096] According to the special effect display information, performing corresponding special effect display processing on the special effect display object in the processed image;

[0097] Determine the size and position of the object in the processed image according to the size and position of the object in the display interface and the preset ratio;

[0098] Drawing the object after the special effect display processing into the processing image according to the size and position of the object in the processing image;

[0099] The processed image is enlarged to the size of the display interface to obtain a display interface with special effect display processing for display.

[0100] The image corresponding to the display interface of the application can be obtained by sampling, and then the sampled image can be reduced according to a preset ratio to obtain a processed image.

[0101] Since the processed image is reduced according to a preset ratio, the size and position of the object in the processed image can be determined according to the size and position of the object in the display interface and the preset ratio. The size of the object in the display interface is the original size of the object. On the basis of reducing the processed image, the size of the object is directly reduced according to the preset ratio of the processed image reduction, which is the size of the object in the processed image. The position of the object in the display interface is the original position of the object in the display interface. Any point on the original position of the object (for example, the left or upper right corner vertex of the object, or the center point of the object) can be used as a reference point, and then according to the reduction ratio of the processed image, the corresponding position of the reference point in the processed image can be determined, and thus the corresponding position of the reference point and the reduced size of the object can determine the entire position area of ​​the object in the processed image.

[0102] It can be seen that this embodiment mainly performs special effect display processing on the processed image, that is, the image of the reduced display interface. In this way, the size of the special effect display object will be reduced as the processed image is reduced, and correspondingly, the size of the resources occupied by the special effect display object will also be reduced as the size is reduced. Since the size of the resources occupied by the special effect display object is reduced, the amount of calculation for the special effect display processing for the special effect display object will also be reduced, so that the phenomenon of jamming can be greatly reduced.

[0103] This embodiment also provides a special effect display method, which further includes:

[0104] Performing non-special effects image processing on the object, where the non-special effects image processing includes at least one of color saturation adjustment, brightness adjustment, and luminance adjustment;

[0105] Draw the object after the special effect display processing to the display interface of the application for display, including:

[0106] Draw the objects that have undergone special effect display processing and non-special effect image processing into the display interface of the application for display.

[0107] Among them, non-special effects image processing refers to image processing other than special effects display, which includes a variety of commonly used image processing operations. For example, color saturation adjustment, lightness adjustment, and brightness adjustment. The adjustment range of color saturation, lightness, and brightness can be set by the application that initiates the special effects display operation, or it can be intelligently displayed by the operating system of the terminal device itself, so as to provide a display effect that better satisfies the user's visual experience.

[0108] It can be seen that this embodiment, while providing a special effect display function for a control or a window, also provides richer display effects and improves the user experience.

[0109] This embodiment also provides a special effect display method, which further includes:

[0110] Determine appearance information of the object, the appearance information at least including round angle and / or line information;

[0111] Drawing the object after the special effect display processing to the display interface of the application for display, including:

[0112] The object after the special effect display processing is drawn according to the appearance information to the display interface of the application for display.

[0113] The appearance information of the object is used for representation, and the appearance shape, lines and other information of the object are displayed in a special effect in the original display interface.

[0114] During the special effect display processing, the appearance of the special effect display object may be affected. For example, when the special effect display is blurred, the rounded corners or lines of the object after the blurred display processing are affected by the blur processing, and the rounded corners or lines of the original display interface are changed. At this time, the appearance shape, lines and other information of the object can be adjusted according to the appearance information of the object. Make the display interface after the special effect display processing similar to the original display interface to the greatest extent, and only make changes in the display.

[0115] Figure 2 FIG. 1 is a flowchart of a special effect display method according to an exemplary embodiment. The method takes the Android operating system as an example to illustrate the implementation process of the special effect display method of the display interface of the terminal device. The process is as follows Figure 2 As shown, the following operations are included:

[0116] Step S201, when a special effect display operation initiated by any application is received, special effect display information corresponding to an object of special effect display is determined according to a display effect selected in the special effect display operation.

[0117] Among them, any application includes various functional applications that come with the operating system of the terminal device, as well as third-party applications installed on the terminal device.

[0118] The display effect selected in the special effect display operation includes at least one or more of a blur effect, a color mixing effect and a shadow effect.

[0119] The objects displayed by the special effects may at least include controls and / or windows.

[0120] When the selected display effect includes a blur effect, it is determined that the corresponding special effect display information includes at least a blur coefficient.

[0121] When the selected display effect includes a color mixing effect, it is determined that the corresponding special effect display information includes at least two or more colors of the color mixing and a color mixing mode.

[0122] When the selected display effect includes a shadow effect, the corresponding special effect display parameters are determined to include at least a blur coefficient, shadow offset information, shadow color, shadow scaling coefficient, and the like.

[0123] In some application scenarios, when the appearance of an object displayed by special effects has features such as rounded corners, when determining the corresponding display information in the above steps, appearance parameters such as rounded corners of the control or window displayed by the special effects can also be determined.

[0124] Step S202, determining the size of the control or window to be displayed with special effects, its position on the display interface and other information.

[0125] In this step, you can create FBO (frame buffer object) and Texture. You can get the size of the control or window where the special effect is displayed through the callback parameters, calculate the corresponding initialization MVP matrix (that is, the size of the control or window), and create the required Texture.

[0126] Step S203, determining the content corresponding to the control or window displayed with special effects, and storing the initial texture and intermediate processed texture of the control or window.

[0127] In this step, you can create mFboTexture to store the initial texture of the control or window (that is, the initial display effect of the control or window). Create mTempTexture to store the intermediate processing texture of the control or window (that is, the display effect of the control or window during the special effect display processing). Create Fbo (mFbo) for texture rendering during the special effect display processing.

[0128] Step S204, sampling the display interface, reducing the image of the display interface according to a preset reduction ratio, and obtaining a processed image.

[0129] In this embodiment, the reduction ratio is 1 / 16, that is, the display interface is reduced to 1 / 16 of the original size. In this way, special effect display processing and subsequent drawing of controls or windows in the reduced display interface can reduce the amount of calculation, thereby avoiding the freezing phenomenon of the operating system.

[0130] In this step, the color saturation of the image on the display interface may be adjusted while the display interface is reduced, so as to enhance the display effect of the display interface.

[0131] Step S205 , performing corresponding special effect display processing on the special effect display object in the processed image according to the display information determined in step S201 .

[0132] In this step, when the display parameters include a blur coefficient, Gaussian blur processing can be performed. Wherein, when performing Gaussian blur processing, calculation can be performed based on the initial image and the intermediate processing image of the control or window determined in step 203.

[0133] When the display parameters include two or more colors to be mixed and a color mixing mode, a color mixing process can be performed.

[0134] When the display parameters include blur coefficient, shadow offset information, shadow color, and shadow scaling factor, shadow processing can be performed.

[0135] When the display parameters include multiple display parameters, corresponding processing can be performed in sequence. For example, when the display parameters include a blur coefficient corresponding to a blur effect, and two or more colors and a color mixing mode corresponding to a color mixing effect, Gaussian blur processing can be performed first according to the blur coefficient, and then, based on the Gaussian blur processing, color mixing processing can be performed according to the two or more colors and the color mixing mode of the color mixing.

[0136] Step S206, converting the size and position of the object determined in step S202 into the size and position of the special effects display object in the processed image according to the reduction ratio, and drawing the feature-processed object into the processed image according to the size and position of the special effects display object in the processed image.

[0137] In this step, since the processed image is reduced according to a preset reduction ratio, the size and position of the object in the processed image can be determined according to the reduction ratio. Among them, the size of the object determined in step S202 is the original size of the object. On the basis of reducing the processed image, the size of the object is directly reduced according to the reduction ratio of the processed image, which is the size of the object in the processed image. The position of the object determined in step S202 is the original position of the object in the display interface. Any point on the original position of the object (for example, the upper left corner of the object) can be used as a reference point, and then according to the reduction ratio of the processed image, the corresponding position of the reference point in the processed image can be determined, and the corresponding position of the reference point and the reduced size of the object can determine the position of the object in the processed image.

[0138] Step S207, enlarging the processed image after drawing to the original size of the display interface for display.

[0139] Figure 3 A block diagram of a special effect display device according to an exemplary embodiment. Figure 3 As shown, the device at least includes a first detection module 31 , a second module 32 , a third module 33 and a fourth module 34 .

[0140] The first module 31 is configured to, upon receiving a special effect display operation initiated by any application, determine special effect display information corresponding to an object of special effect display in the application according to a display effect selected by the special effect display operation;

[0141] The second module 32 is configured to determine the size and position of the object in the display interface;

[0142] The third module 33 is configured to perform corresponding special effect display processing on the object according to the special effect display information;

[0143] The fourth module 34 is configured to draw the object after the special effect display processing into the display interface of the application for display according to the size and position of the object in the display interface;

[0144] The display effect includes at least any one of a blur effect, a color mixing effect and a shadow effect, and the object of the special effect display includes at least a control and / or a window.

[0145] This embodiment further provides a special effect display device, in which the first module 31 includes:

[0146] A fuzzy parameter determination submodule is configured to, when the display effect includes a fuzzy effect, determine that the special effect display information at least includes a fuzzy coefficient;

[0147] A color mixing parameter determination submodule is configured to, when the display effect includes a color mixing effect, determine that the special effect display information at least includes a color of the color mixing and a color mixing mode;

[0148] The shadow parameter determination submodule is configured to, when the display effect includes a shadow effect, determine that the special effect display information at least includes shadow offset information, shadow color and shadow scaling factor.

[0149] This embodiment further provides a special effect display device, in which a third module 33 includes:

[0150] The processing submodule is configured to obtain an image corresponding to the display interface of the application, reduce the image to a preset ratio, and obtain a processed image;

[0151] The special effect display processing submodule is configured to perform corresponding special effect display processing on the special effect display object in the processed image according to the special effect display information;

[0152] The fourth module 34 includes:

[0153] The conversion submodule is configured to determine the size and position of the object in the processed image according to the size and position of the object in the display interface and a preset ratio;

[0154] A drawing submodule is configured to draw the object after the special effect display processing into the processed image according to the size and position of the object in the processed image;

[0155] The restoration submodule is configured to enlarge the processed image to the size of the display interface, and obtain a display interface with special effect display processing for display.

[0156] This embodiment also provides a special effect display device, which further includes:

[0157] A non-special effect display processing module is configured to perform non-special effect image processing on the object, where the non-special effect image processing includes at least one of color saturation adjustment, brightness adjustment and brightness adjustment;

[0158] The fourth module draws the objects that have undergone special effect display processing and non-special effect image processing into the display interface of the application for display.

[0159] This embodiment also provides a special effect display device, which further includes:

[0160] The appearance information module is configured to determine the appearance information of the object, where the appearance information at least includes round angle and / or line information;

[0161] The fourth module draws the object after the special effect display processing into the display interface of the application according to the appearance information for display.

[0162] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0163] Figure 4 4 is a block diagram of a special effect display device 400 according to an exemplary embodiment. For example, the device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0164] Reference Figure 4 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0165] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0166] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0167] The power supply component 406 provides power to the various components of the device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 400.

[0168] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0169] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0170] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0171] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0172] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0173] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0174] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0175] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a special effect display method, including:

[0176] When receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation;

[0177] Determine the size and position of the object on the display interface;

[0178] According to the special effect display information, the object is processed with corresponding special effects display, and according to the size of the object and the position on the display interface, the object after the special effect display processing is drawn into the display interface of the application for display;

[0179] The display effect includes at least one or more effects of blur effect, color mixing effect and shadow effect, and the object of special effect display includes at least controls and / or windows.

[0180] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0181] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A special effect display method, applied to a terminal device, It is characterized in that include: When receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation; Determining the size and position of the object in the display interface; According to the special effect display information, performing corresponding special effect display processing on the object; According to the size and position of the object in the display interface, drawing the object after the special effect display processing into the display interface of the application for display; Wherein, the display effect at least includes any one of a blur effect, a color mixing effect and a shadow effect, and the object displayed by the special effect at least includes a control and / or a window; The performing corresponding special effect display processing on the object according to the special effect display information includes: Acquire an image corresponding to the display interface of the application, and reduce the image to a preset ratio to obtain a processed image; According to the special effect display information, performing corresponding special effect display processing on the special effect display object in the processed image; Drawing the object after the special effect display processing to the display interface of the application for display according to the size and position of the object in the display interface includes: Determining the size and position of the object in the processed image according to the size and position of the object in the display interface and the preset ratio; Drawing the object after special effect display processing into the processed image according to the size and position of the object in the processed image; The processed image is enlarged to the size of the display interface to obtain a display interface with special effect display processing for display.

2. The method according to claim 1, It is characterized in that The determining, according to the display effect selected by the special effect display operation, special effect display information corresponding to the object of special effect display in the application includes: When the display effect includes a blur effect, determining that the special effect display information at least includes a blur coefficient; When the display effect includes a color mixing effect, determining that the special effect display information at least includes a color of the color mixing and a color mixing mode; When the display effect includes a shadow effect, it is determined that the special effect display information at least includes shadow offset information, shadow color, and shadow scaling factor.

3. The method according to claim 1, It is characterized in that The method further comprises: Performing non-special effects image processing on the object, wherein the non-special effects image processing includes at least one of color saturation adjustment, brightness adjustment, and luminance adjustment; Drawing the object after the special effect display processing to the display interface of the application for display includes: The objects that have undergone special effect display processing and non-special effect image processing are drawn into the display interface of the application for display.

4. The method according to claim 1, It is characterized in that The method further comprises: Determining appearance information of the object, the appearance information at least including rounding angle and / or line information; Drawing the object after the special effect display processing to the display interface of the application for display, including: The object after the special effect display processing is drawn according to the appearance information to the display interface of the application for display.

5. A special effects display device, It is characterized in that include: The first module is used to determine, when receiving a special effect display operation initiated by any application, special effect display information corresponding to an object of special effect display in the application according to a display effect selected by the special effect display operation; The second module is used to determine the size and position of the object in the display interface; A third module is used to perform corresponding special effect display processing on the object according to the special effect display information; A fourth module is used to draw the object after the special effect display processing into the display interface of the application for display according to the size and position of the object in the display interface; Wherein, the display effect at least includes any one of a blur effect, a color mixing effect and a shadow effect, and the object displayed by the special effect at least includes a control and / or a window; Wherein, the third module includes: A processing submodule, used to obtain an image corresponding to the display interface of the application, reduce the image to a preset ratio, and obtain a processed image; A special effect display processing submodule, used for performing corresponding special effect display processing on the special effect display object in the processed image according to the special effect display information; The fourth module comprises: A conversion submodule, used to determine the size and position of the object in the processed image according to the size and position of the object in the display interface and the preset ratio; A drawing submodule, used for drawing the object after the special effect display processing into the processed image according to the size and position of the object in the processed image; The restoration submodule is used to enlarge the processed image to the size of the display interface to obtain a display interface with special effect display processing for display.

6. The device according to claim 5, It is characterized in that The first module comprises: A fuzzy parameter determination submodule, for determining that the special effect display information at least includes a fuzzy coefficient when the display effect includes a fuzzy effect; A color mixing parameter determination submodule, for determining, when the display effect includes a color mixing effect, that the special effect display information at least includes a color of the color mixing and a color mixing mode; The shadow parameter determination submodule is used to determine that the special effect display information at least includes shadow offset information, shadow color and shadow scaling factor when the display effect includes a shadow effect.

7. The device according to claim 5, It is characterized in that The device also includes: A non-special effects display processing module, used for performing non-special effects image processing on the object, wherein the non-special effects image processing includes at least one of color saturation adjustment, brightness adjustment and luminance adjustment; The fourth module draws the object after the special effect display processing and the non-special effect image processing into the display interface of the application for display.

8. The device according to claim 5, It is characterized in that The device also includes: An appearance information module, used to determine appearance information of the object, wherein the appearance information at least includes rounded angle and / or line information; The fourth module draws the object after the special effect display processing according to the appearance information into the display interface of the application for display.

9. A special effect display device, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: When receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation; Determine the size and position of the object on the display interface; According to the special effect display information, the object is subjected to corresponding special effect display processing, and according to the size of the object and the position on the display interface, the object after the special effect display processing is drawn into the display interface of the application for display; Wherein, the display effect at least includes any one or more effects of blur effect, color mixing effect and shadow effect, and the object of special effect display at least includes controls and / or windows; The performing corresponding special effect display processing on the object according to the special effect display information includes: Acquire an image corresponding to the display interface of the application, and reduce the image to a preset ratio to obtain a processed image; According to the special effect display information, performing corresponding special effect display processing on the special effect display object in the processed image; Drawing the object after the special effect display processing to the display interface of the application for display according to the size and position of the object in the display interface includes: Determining the size and position of the object in the processed image according to the size and position of the object in the display interface and the preset ratio; Drawing the object after special effect display processing into the processed image according to the size and position of the object in the processed image; The processed image is enlarged to the size of the display interface to obtain a display interface with special effect display processing for display.

10. A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to perform a special effect display method, the method include: When receiving a special effect display operation initiated by any application, determining the special effect display information corresponding to the object of special effect display in the application according to the display effect selected by the special effect display operation; Determine the size and position of the object on the display interface; According to the special effect display information, the object is subjected to corresponding special effect display processing, and according to the size of the object and the position on the display interface, the object after the special effect display processing is drawn into the display interface of the application for display; Wherein, the display effect at least includes any one or more effects of blur effect, color mixing effect and shadow effect, and the object of special effect display at least includes controls and / or windows; The performing corresponding special effect display processing on the object according to the special effect display information includes: Acquire an image corresponding to the display interface of the application, and reduce the image to a preset ratio to obtain a processed image; According to the special effect display information, performing corresponding special effect display processing on the special effect display object in the processed image; Drawing the object after the special effect display processing to the display interface of the application for display according to the size and position of the object in the display interface includes: Determining the size and position of the object in the processed image according to the size and position of the object in the display interface and the preset ratio; Drawing the object after special effect display processing into the processed image according to the size and position of the object in the processed image; The processed image is enlarged to the size of the display interface to obtain a display interface with special effect display processing for display.