CN113672312A - Special effect display method and device and computer storage medium - Google Patents
Special effect display method and device and computer storage medium Download PDFInfo
- Publication number
- CN113672312A CN113672312A CN202010403075.XA CN202010403075A CN113672312A CN 113672312 A CN113672312 A CN 113672312A CN 202010403075 A CN202010403075 A CN 202010403075A CN 113672312 A CN113672312 A CN 113672312A
- Authority
- CN
- China
- Prior art keywords
- special effect
- display
- effect display
- processing
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure relates to a special effect display method, a special effect display device and a computer storage medium, and relates to a terminal device display technology of a terminal device. The utility model provides a special effect display method, which is applied to terminal equipment and comprises the following steps: when receiving 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 the display effect selected by the special effect display operation; determining the size and the position of an object in a display interface; carrying out corresponding special effect display processing on the object according to the special effect display information, and drawing the object subjected to the special effect display processing into a display interface for displaying according to the size and the position of the object; the display effect includes at least any one of a blur effect, a color mixing effect, and a shadow effect. According to the technical scheme, the user-defined special effect display function can be provided for various applications according to the calling of the various applications, so that the special effect display requirements of the various applications are met.
Description
Technical Field
The present disclosure relates to terminal device display technologies, and in particular, to a special effect display method and apparatus, and a computer storage medium.
Background
In the related art, the display effect of a control/window in a display interface of a terminal device is generally realized by application setting. For example, various applications lend themselves to various special effects displays, including blurring effects, color mixing effects, shading effects, and the like. The operating system of the terminal device does not have a function of providing special effect display for various applications, that is, the special effect display requirements of various applications cannot be met, and the use experience of the user on the applications is influenced.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a special effect display method, apparatus, and computer storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a special effect display method applied to a terminal device, including:
when receiving 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 the display effect selected by the special effect display operation;
determining the size and the position of the object in a display interface;
according to the special effect display information, carrying out corresponding special effect display processing on the object;
drawing the object after the special effect display processing into the display interface of the application for displaying according to the size and the position of the object in the display interface;
wherein the display effect at least comprises any one of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
In the above special effect display method, the determining, according to the display effect selected by the special effect display operation, special effect display information corresponding to an object of special effect display in the application includes:
when the display effect comprises a blurring effect, determining that the special effect display information at least comprises a blurring coefficient;
when the display effect comprises a color mixing effect, determining that the special effect display information at least comprises a color of color mixing and a color mixing mode;
when the display effect includes a shadow effect, determining that the special effect display information includes at least shadow offset information, a shadow color, and a shadow scaling factor.
In the above special effect display method, the performing, according to the special effect display information, a corresponding special effect display process on the object includes:
acquiring an image corresponding to the display interface of the application, and reducing the image to a preset proportion to obtain a processed image;
according to the special effect display information, carrying out corresponding special effect display processing on a special effect display object in the processed image;
the drawing the object after the special effect display processing into the display interface of the application for displaying according to the size and the position of the object in the display interface comprises the following steps:
determining the size and the position of the object in the processed image according to the size and the position of the object in a display interface and the preset proportion;
drawing the object after the special effect display processing into the processing image according to the size and the position of the object in the processing image;
and amplifying the processed image to the size of the display interface to obtain the display interface of the special effect display processing for displaying.
The special effect display method further comprises the following steps:
performing non-specific image processing on the object, wherein the non-specific image processing at least comprises any one of color saturation adjustment, brightness adjustment and brightness adjustment;
the drawing the object after the special effect display processing to the display interface of the application for displaying comprises the following steps:
and drawing the object subjected to special effect display processing and non-special image processing to a display interface of the application for display.
The special effect display method further comprises the following steps:
determining appearance information of the object, wherein the appearance information at least comprises round angle and/or line information;
drawing the object after the special effect display processing into a display interface of the application for displaying, wherein the method comprises the following steps:
and drawing the object after the special effect display processing into the display interface of the application for displaying according to the appearance information.
According to a second aspect of embodiments of the present disclosure, there is provided a special effects display apparatus, the apparatus comprising:
the system comprises a first module, a second module and a third module, wherein the first module is used for determining special effect display information corresponding to an object of special effect display in an application according to a display effect selected by special effect display operation when the special effect display operation initiated by any application is received;
the second module is used for determining the size and the position of the object in the display interface;
a third module, configured to perform corresponding special effect display processing on the object according to the special effect display information;
a fourth module, configured to draw the object after the special effect display processing to the display interface of the application for display according to the size and the position of the object in the display interface;
wherein the display effect at least comprises any one of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
In the above special effect display device, the first module includes:
a blur parameter determination submodule, configured to determine that the special effect display information at least includes a blur coefficient when the display effect includes a blur effect;
a color mixing parameter determining submodule, configured to determine that the special effect display information at least includes a color of a color mixture and a color mixing mode when the display effect includes a color mixing effect;
and the shadow parameter determining sub-module is used for determining that the special effect display information at least comprises shadow offset information, shadow color and a shadow scaling coefficient when the display effect comprises a shadow effect.
In the above special effect display device, the third module includes:
the processing submodule is used for acquiring an image corresponding to the display interface of the application, and reducing the image to a preset proportion to obtain a processed image;
the special effect display processing submodule is used for carrying out 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, comprising:
the conversion sub-module is used for determining the size and the position of the object in the processed image according to the size and the position of the object in a display interface and the preset proportion;
the rendering submodule is used for rendering the object after the special effect display processing into the processing image according to the size and the position of the object in the processing image;
and the recovery submodule is used for amplifying the processed image to the size of the display interface to obtain the display interface for special effect display processing to display.
Wherein, above-mentioned special effect display device still includes:
the non-effective display processing module is used for carrying out non-effective image processing on the object, wherein the non-effective image processing at least comprises any one of color saturation adjustment, brightness adjustment and brightness adjustment;
and the fourth module is used for drawing the object subjected to special effect display processing and non-special image processing to the display interface of the application for display.
Wherein, above-mentioned special effect display device still includes:
the appearance information module is used for determining appearance information of the object, and the appearance information at least comprises round angle and/or line information;
and the fourth module is used for drawing the object after the special effect display processing into the display interface of the application according to the appearance information for displaying.
According to a third aspect of the embodiments of the present disclosure, there is provided a special effect display method apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when receiving 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 the display effect selected by the special effect display operation;
determining the size and the position of the object on a display interface;
performing corresponding special effect display processing on the object according to the special effect display information, and drawing the object subjected to the special effect display processing into the display interface of the application for display according to the size of the object and the position of the object on the display interface;
the display effect at least comprises any one or more effects of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a terminal device, enable the terminal device to perform a special effects display method, the method comprising:
. When receiving 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 the display effect selected by the special effect display operation;
determining the size and the position of the object on a display interface;
performing corresponding special effect display processing on the object according to the special effect display information, and drawing the object subjected to the special effect display processing into the display interface of the application for display according to the size of the object and the position of the object on the display interface;
the display effect at least comprises any one or more effects of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme, the user-defined special effect display function can be provided for various applications according to the calling of the various applications, so that the special effect display requirements of the various applications are met, and the use experience of the user on the applications is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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.
FIG. 1 is a flow diagram illustrating a special effects display method according to an example embodiment.
FIG. 2 is a flow diagram illustrating a special effects display method according to an example embodiment.
Fig. 3 is a block diagram illustrating an effect display apparatus according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating an effect display apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1 is a flow diagram illustrating a special effects display method according to an example embodiment. The method can be applied to terminal equipment and comprises the following operations:
step S101, when receiving 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;
step S102, determining the size and the position of an object in a display interface;
step S103, carrying out corresponding special effect display processing on the object according to the special effect display information;
step S104, drawing the object after the special effect display processing to an application display interface for displaying according to the size and the position of the object in the display interface;
the display effect at least comprises any one of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
In the step S101, the applications include various functional applications carried by the operating system of the terminal device, third-party applications installed on the terminal device, and the like. For example, a control center application carried by an operating system, a third-party email application installed on a terminal device, or the like, all belong to the applications referred to in this embodiment.
Any application-initiated special effects display operation may include various forms of operations. For example, when any application receives user operation and determines that special effect display is needed, special effect display operation in the form of instructions can be initiated to an operating system. For another example, when any application enters a specified display mode (i.e., a display mode including a special-effect display effect), a special-effect display function interface of the operating system may be called, and at this time, it may be considered that a special-effect display operation initiated by the application is received.
In step S102, the size and the position of the object in the display interface may be determined in various ways. And after the determined size and the position of the object on the display interface are mainly used for special effect display processing, drawing the object at the corresponding position of the whole display interface according to the initial size.
According to the special effect display information, the corresponding special effect display processing of the object comprises a plurality of operations. For example, when the display effect selected by the special effect display operation in step S101 includes a blur effect, the special effect display object may be subjected to the blur processing based on the display information of the blur effect. When the display effect selected by the special effect display operation includes a color mixing effect, color mixing processing may be performed on the special effect display object according to display information of the color mixing effect. And when the display effect selected by the special effect display operation comprises a shadow effect, carrying out shadow processing on the special effect display object according to the display information of the shadow effect.
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 may be proposed for a plurality of controls and/or windows in the display interface of the application. When there are a plurality of objects for special effect display, in 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 a plurality of objects (that is, the display effects of all objects are the same). Correspondingly, in step S103, it is necessary to perform special effect display processing on each of the plurality of objects. In step S104, each object after the special effect display processing needs to be drawn to a corresponding position of the display interface of the application for display according to the size and position of the different object in the display interface.
It can be seen from the above embodiments that, in the technical solution herein, a special effect display function is added in an operating system of a terminal device. Therefore, various applications can initiate special effect display operation to the operating system according to self requirements, the operating system is triggered to carry out customized special effect display processing on the applications, and the applications do not need to set various display modes. Therefore, the special effect display requirement of the application is met, and the user experience is improved.
The embodiment further provides a special effect display method, wherein determining special effect display information corresponding to an object of special effect display in an application according to a display effect selected by the special effect display operation includes:
when the display effect comprises a fuzzy effect, determining that the special effect display information at least comprises a fuzzy coefficient;
when the display effect comprises a color mixing effect, determining that the special effect display information at least comprises a color of the color mixing and a color mixing mode;
when the display effect includes a shadow effect, determining that the special effect display information includes at least shadow offset information, a shadow color, and a shadow scaling factor.
The blurring coefficient is used for representing the blurring degree displayed by the blurring effect. The blur coefficient is a basic parameter required to implement the blur display process.
The mixed color is used for representing two or more colors participating in the mixed color treatment. The color mixing mode is used to represent a way of color mixing processing, i.e., how to perform mixed display on the mixed color. The color of the color mixing and the color mixing mode are basic parameters required for realizing the color mixing treatment.
The shadow offset information is used for representing the offset between the spatial positions occupied by the shadow part and the object to be processed on the display interface. The shadow color is used to characterize, the color of the shadow. The shadow scaling factor is used to characterize the ratio between the size of the shadow and the size of the object to be processed. The shadow offset information, the shadow color and the shadow scaling factor are the basic parameters required to implement the shadow processing.
According to the technical scheme of the embodiment, the corresponding display information, namely the basic parameters required by the special effect display, is determined according to different special effect display effects, so that the terminal equipment realizes various special effect display functions for various applications.
The embodiment further provides a special effect display method, where performing corresponding special effect display processing on an object according to special effect display information, and drawing the object after the special effect display processing into an application display interface for display according to a size of the object and a position of the object on the display interface, includes:
acquiring an image corresponding to an application display interface, and reducing the image to a preset proportion to obtain a processed image;
according to the special effect display information, carrying out corresponding special effect display processing on a special effect display object in the processed image;
determining the size and the position of the object in the processed image according to the size and the position of the object in the display interface and a preset proportion;
drawing the object after the special effect display processing into the processing image according to the size and the position of the object in the processing image;
and amplifying the processed image to the size of a display interface to obtain the display interface of the special effect display processing for displaying.
The image corresponding to the display interface of the application can be acquired through sampling, and the sampled image is reduced according to a preset proportion, so that a processed image can be obtained.
Because the processed image is reduced according to the preset proportion, the size and the position of the object in the processed image can be determined according to the size and the position of the object in the display interface and the preset proportion. The size of the object in the display interface is the original size of the object, and the size of the object is reduced directly according to the preset reduced proportion of the processed image on the basis of the reduction of the processed image, namely the size of the object in the processed image. The position of the object in the display interface is an original position of the object in the display interface, any point on the original position of the object (for example, a vertex of the upper left corner or the upper right corner of the object, or a center point of the object) can be used as a reference point, and then the corresponding position of the reference point in the processed image can be determined according to the reduction scale of the processed image, so that the whole position area of the object in the processed image can be determined according to the corresponding position of the reference point and the reduced size of the object.
As can be seen, the present embodiment mainly performs special effect display processing on a processed image, that is, an image of a reduced display interface. In this way, the size of the special effect display object is reduced as the processing image is reduced, and correspondingly, the resource size occupied by the special effect display object is also reduced as the size is reduced. Because the resource size occupied by the special effect display object is reduced, the calculation amount of the special effect display processing for the special effect display object is reduced, and therefore the phenomenon of blocking can be greatly reduced.
The embodiment also provides a special effect display method, which further comprises:
performing non-effective image processing on the object, wherein the non-effective image processing at least comprises any one of color saturation adjustment, brightness adjustment and brightness adjustment;
drawing the object after the special effect display processing to an application display interface for displaying, wherein the method comprises the following steps:
and drawing the object subjected to special effect display processing and non-special image processing to an application display interface for displaying.
Among them, the non-specific image processing is image processing other than special effect display, and includes various common image processing operations. For example, color saturation adjustment, brightness adjustment, and the like. The adjustment range of the color saturation, the brightness and the brightness can be set by an application initiating special effect display operation, and intelligent display processing can also be carried out by an operating system of the terminal equipment, so that a display effect which can better meet the visual perception of a user is provided.
Therefore, according to the embodiment, a special effect display function is provided for the control or the window, meanwhile, a richer display effect is provided, and user experience is improved.
The embodiment also provides a special effect display method, which further comprises:
determining appearance information of the object, wherein the appearance information at least comprises round angle and/or line information;
drawing the object after the special effect display processing into a display interface of the application for displaying, wherein the method comprises the following steps:
and drawing the object after the special effect display processing into the display interface of the application for displaying according to the appearance information.
The appearance information of the object is used for representing, and the information such as appearance shape, lines and the like of the object is specially displayed in an original display interface.
During the special effect display processing, the appearance of the special effect display object may be affected. For example, when the special effect is displayed as a blur display, the rounded corners or lines of the object subjected to the blur display processing are affected by the blur processing, and are changed from the rounded corners or lines of the original display interface. In this case, information such as the appearance shape and lines of the object can be adjusted based on the appearance information of the object. The display interface after the special effect display processing is similar to the original display interface to the maximum extent, and only the change on the display is made.
FIG. 2 is a flow diagram illustrating a special effects display method according to an example embodiment. The method takes an Android operating system as an example, and illustrates an implementation process of a special effect display method of a display interface of terminal equipment. The process, as shown in fig. 2, includes the following operations:
step S201, when receiving a special effect display operation initiated by any application, determining special effect display information corresponding to an object of special effect display according to a display effect selected in the special effect display operation.
Any application includes various functional applications carried by an operating system of the terminal device, a third party application installed on the terminal device, and the like.
The display effect selected in the special effect display operation includes at least any one or more of a blur effect, a color mixing effect, and a shadow effect.
The objects of the special effects display may include at least controls and/or windows.
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.
And when the selected display effect comprises a color mixing effect, determining that the corresponding special effect display information at least comprises two or more colors of color mixing and a color mixing mode.
When the selected display effect comprises a shadow effect, determining that the corresponding special effect display parameters at least comprise a fuzzy coefficient, shadow offset information, shadow colors, a shadow scaling coefficient and the like.
In some application scenes, when the appearance of the object displayed in the special effect has the characteristics of a round angle and the like, and when the corresponding display information is determined in the above steps, appearance parameters of a control or a window displayed in the special effect, such as a round angle and the like, can also be determined.
Step S202, determining the size of a control or a window to be specially displayed, the position of a display interface and other information.
In this step, FBO (frame buffer object), and Texture can be created. The size of the control or window of the special effect display can be obtained through the parameter of the callback, and the corresponding initialized MVP matrix (namely representing the size of the control or window) and the required Texture can be created.
Step S203, determining the content corresponding to the control or window of special effect display, and storing the initial texture and the intermediate processing texture of the control or window.
In this step, the initial texture of the control or window (i.e., the initial display effect of the control or window) may be stored by creating an mFboTexture. The mTempTexture stores intermediate processing textures (i.e., display effects during the special effect display process for the control or window) for the control or window by creating the mTempTexture. An Fbo (mFbo) is created for rendering of the texture during the effect display process.
And step S204, sampling the display interface, and reducing the image of the display interface according to a preset reduction scale to obtain a processed image.
In this embodiment, the scaling down is performed by 1/16, that is, by 1/16, the display interface is scaled down to the original size. Therefore, special effect display processing and subsequent drawing of the control or the window are carried out in the reduced display interface, the calculation amount can be reduced, and the phenomenon that an operating system is blocked is avoided.
In the step, the color saturation of the image of the display interface can be adjusted while the display interface is reduced, so that the display effect of the display interface is improved.
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.
In this step, when the display parameter includes a blur coefficient, gaussian blur processing may be performed. When the gaussian blur processing is performed, the calculation may be performed based on the initial graph and the intermediate processing graph of the control or the window determined in step 203.
When the display parameters include two or more colors of color mixture and a color mixture mode, color mixture processing may be performed.
When the display parameters include a blurring coefficient, shading offset information, shading color, and shading scaling coefficient, shading processing may be performed.
When the display parameters include a plurality of display parameters, corresponding processing may 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, the display parameters may be subjected to gaussian blur processing based on the blur coefficient, and then subjected to color mixing processing based on the two or more colors and the color mixing mode of the color mixing.
Step S206, converting the size and position of the object determined in step S202 into the size and position of the special effect display object in the processed image according to the reduction scale, and drawing the feature-processed object into the processed image according to the size and position of the special effect display object in the processed image.
In this step, since the processed image is reduced at a preset reduction ratio, the size and position of the object in the processed image can be determined at the reduction ratio. The size of the object determined in step S202 is the original size of the object, and the size of the object is reduced directly according to the reduction ratio of the processed image on the basis of the reduction of the processed image, that 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 top left corner vertex of the object) may be used as a reference point, and then the corresponding position of the reference point in the processed image may be determined according to the reduction scale of the processed image, so that the corresponding position of the reference point and the reduced size of the object may determine the position of the object in the processed image.
And step S207, enlarging the drawn processed image to the original size of the display interface for display.
Fig. 3 is a block diagram illustrating an effect display apparatus according to an example embodiment. As shown in fig. 3, the apparatus comprises at least a first detection module 31, a second module 32, a third module 33 and a fourth module 34.
A first module 31, configured to, when 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;
a second module 32 configured to determine a size and a position of the object in the display interface;
a third module 33, configured to perform corresponding special effect display processing on the object according to the special effect display information;
a fourth module 34, configured to, according to the size and the position of the object in the display interface, draw the object after the special effect display processing into the display interface of the application for display;
the display effect at least comprises any one of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
The embodiment further provides a special effect display device, in which the first module 31 includes:
a blur parameter determination submodule configured to determine that the special effect display information includes at least a blur coefficient when the display effect includes a blur effect;
the color mixing parameter determining submodule is configured to determine that the special effect display information at least comprises a color of color mixing and a color mixing mode when the display effect comprises a color mixing effect;
a shadow parameter determination submodule configured to determine that the special effect display information includes at least shadow offset information, a shadow color, and a shadow scaling coefficient when the display effect includes a shadow effect.
The embodiment further provides a special effect display device, in which the third module 33 includes:
the processing submodule is configured to acquire an image corresponding to the display interface of the application, and reduce the image to a preset proportion to obtain a processed image;
the special effect display processing submodule is configured to perform corresponding special effect display processing on a special effect display object in the processed image according to the special effect display information;
a fourth module 34 comprising:
the conversion sub-module is configured to determine the size and the position of the object in the processed image according to the size and the position of the object in the display interface and a preset proportion;
the rendering submodule is configured to render the object subjected to the special effect display processing into the processing image according to the size and the position of the object in the processing image;
and the recovery submodule is configured to enlarge the processed image to the size of the display interface, and display the display interface subjected to the special effect display processing.
The embodiment further provides a special effect display device, which further comprises:
a non-effective display processing module configured to perform non-effective image processing on the object, the non-effective image processing including at least any one of color saturation adjustment, brightness adjustment and brightness adjustment;
and the fourth module is used for drawing the objects subjected to special effect display processing and non-special image processing to an application display interface for displaying.
The embodiment further provides a special effect display device, which further comprises:
an appearance information module configured to determine appearance information of the object, the appearance information including at least round angle and/or line information;
and the fourth module is used for drawing the object after the special effect display processing into an application display interface for displaying according to the appearance information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram illustrating an effect display apparatus 400 according to an example embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 400 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be 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.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as a display and keypad of the apparatus 400, the sensor component 414 can also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light 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 acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may 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 broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, instructions in which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a special effects display method, comprising:
when receiving 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 the display effect selected by the special effect display operation;
determining the size and the position of the object on the display interface;
carrying out corresponding special effect display processing on the object according to the special effect display information, and drawing the object subjected to the special effect display processing into an application display interface for display according to the size of the object and the position of the object on the display interface;
the display effect at least comprises any one or more effects of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.
Claims (12)
1. A special effect display method is applied to terminal equipment and is characterized by comprising the following steps:
when receiving 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 the display effect selected by the special effect display operation;
determining the size and the position of the object in a display interface;
according to the special effect display information, carrying out corresponding special effect display processing on the object;
drawing the object after the special effect display processing into the display interface of the application for displaying according to the size and the position of the object in the display interface;
wherein the display effect at least comprises any one of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
2. The method according to claim 1, wherein the determining, according to the display effect selected by the special effect display operation, special effect display information corresponding to an object of special effect display in the application includes:
when the display effect comprises a blurring effect, determining that the special effect display information at least comprises a blurring coefficient;
when the display effect comprises a color mixing effect, determining that the special effect display information at least comprises a color of color mixing and a color mixing mode;
when the display effect includes a shadow effect, determining that the special effect display information includes at least shadow offset information, a shadow color, and a shadow scaling factor.
3. The method according to claim 1 or 2, wherein performing corresponding special effect display processing on the object according to the special effect display information includes:
acquiring an image corresponding to the display interface of the application, and reducing the image to a preset proportion to obtain a processed image;
according to the special effect display information, carrying out corresponding special effect display processing on a special effect display object in the processed image;
the drawing the object after the special effect display processing into the display interface of the application for displaying according to the size and the position of the object in the display interface comprises the following steps:
determining the size and the position of the object in the processed image according to the size and the position of the object in a display interface and the preset proportion;
drawing the object after the special effect display processing into the processing image according to the size and the position of the object in the processing image;
and amplifying the processed image to the size of the display interface to obtain the display interface of the special effect display processing for displaying.
4. The method of claim 1, further comprising:
performing non-specific image processing on the object, wherein the non-specific image processing at least comprises any one of color saturation adjustment, brightness adjustment and brightness adjustment;
the drawing the object after the special effect display processing to the display interface of the application for displaying comprises the following steps:
and drawing the object subjected to special effect display processing and non-special image processing to a display interface of the application for display.
5. The method of claim 1, further comprising:
determining appearance information of the object, wherein the appearance information at least comprises round angle and/or line information;
drawing the object after the special effect display processing into a display interface of the application for displaying, wherein the method comprises the following steps:
and drawing the object after the special effect display processing into the display interface of the application for displaying according to the appearance information.
6. A special effect display device, comprising:
the system comprises a first module, a second module and a third module, wherein the first module is used for determining special effect display information corresponding to an object of special effect display in an application according to a display effect selected by special effect display operation when the special effect display operation initiated by any application is received;
the second module is used for determining the size and the position of the object in the display interface;
a third module, configured to perform corresponding special effect display processing on the object according to the special effect display information;
a fourth module, configured to draw the object after the special effect display processing to the display interface of the application for display according to the size and the position of the object in the display interface;
wherein the display effect at least comprises any one of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
7. The apparatus of claim 6, wherein the first module comprises:
a blur parameter determination submodule, configured to determine that the special effect display information at least includes a blur coefficient when the display effect includes a blur effect;
a color mixing parameter determining submodule, configured to determine that the special effect display information at least includes a color of a color mixture and a color mixing mode when the display effect includes a color mixing effect;
and the shadow parameter determining sub-module is used for determining that the special effect display information at least comprises shadow offset information, shadow color and a shadow scaling coefficient when the display effect comprises a shadow effect.
8. The apparatus of claim 6 or 7, wherein the third module comprises:
the processing submodule is used for acquiring an image corresponding to the display interface of the application, and reducing the image to a preset proportion to obtain a processed image;
the special effect display processing submodule is used for carrying out 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, comprising:
the conversion sub-module is used for determining the size and the position of the object in the processed image according to the size and the position of the object in a display interface and the preset proportion;
the rendering submodule is used for rendering the object after the special effect display processing into the processing image according to the size and the position of the object in the processing image;
and the recovery submodule is used for amplifying the processed image to the size of the display interface to obtain the display interface for special effect display processing to display.
9. The apparatus of claim 6, further comprising:
the non-effective display processing module is used for carrying out non-effective image processing on the object, wherein the non-effective image processing at least comprises any one of color saturation adjustment, brightness adjustment and brightness adjustment;
and the fourth module is used for drawing the object subjected to special effect display processing and non-special image processing to the display interface of the application for display.
10. The apparatus of claim 6, further comprising:
the appearance information module is used for determining appearance information of the object, and the appearance information at least comprises round angle and/or line information;
and the fourth module is used for drawing the object after the special effect display processing into the display interface of the application according to the appearance information for displaying.
11. A special effect display device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when receiving 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 the display effect selected by the special effect display operation;
determining the size and the position of the object on a display interface;
performing corresponding special effect display processing on the object according to the special effect display information, and drawing the object subjected to the special effect display processing into the display interface of the application for display according to the size of the object and the position of the object on the display interface;
the display effect at least comprises any one or more effects of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
12. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a terminal device, enable the terminal device to perform a special effects display method, the method comprising:
when receiving 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 the display effect selected by the special effect display operation;
determining the size and the position of the object on a display interface;
performing corresponding special effect display processing on the object according to the special effect display information, and drawing the object subjected to the special effect display processing into the display interface of the application for display according to the size of the object and the position of the object on the display interface;
the display effect at least comprises any one or more effects of a fuzzy effect, a color blending effect and a shadow effect, and the object displayed by the special effect at least comprises a control and/or a window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010403075.XA CN113672312A (en) | 2020-05-13 | 2020-05-13 | Special effect display method and device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010403075.XA CN113672312A (en) | 2020-05-13 | 2020-05-13 | Special effect display method and device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113672312A true CN113672312A (en) | 2021-11-19 |
Family
ID=78536997
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010403075.XA Pending CN113672312A (en) | 2020-05-13 | 2020-05-13 | Special effect display method and device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113672312A (en) |
-
2020
- 2020-05-13 CN CN202010403075.XA patent/CN113672312A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159640B (en) | Display interface rotating method and device and mobile terminal | |
EP3208745B1 (en) | Method and apparatus for identifying picture type | |
CN111381746B (en) | Parameter adjusting method, device and storage medium | |
EP3121699A1 (en) | Method and device for displaying badge of icon | |
CN107967459B (en) | Convolution processing method, convolution processing device and storage medium | |
CN111078170B (en) | Display control method, display control device, and computer-readable storage medium | |
WO2022077970A1 (en) | Method and apparatus for adding special effects | |
CN108122195B (en) | Picture processing method and device | |
CN112463084A (en) | Split screen display method and device, terminal equipment and computer readable storage medium | |
CN107219989B (en) | Icon processing method and device and terminal | |
CN107566878B (en) | Method and device for displaying pictures in live broadcast | |
CN109783171B (en) | Desktop plug-in switching method and device and storage medium | |
CN112331158B (en) | Terminal display adjusting method, device, equipment and storage medium | |
CN107730443B (en) | Image processing method and device and user equipment | |
CN111614910B (en) | File generation method and device, electronic equipment and storage medium | |
CN108874482B (en) | Image processing method and device | |
CN109102779B (en) | Backlight adjusting method and device | |
CN108650412B (en) | Display method, display device and computer readable storage medium | |
CN110069310B (en) | Method and device for switching desktop wallpaper and storage medium | |
CN113672312A (en) | Special effect display method and device and computer storage medium | |
CN111538447A (en) | Information display method, device, equipment and storage medium | |
CN109389547B (en) | Image display method and device | |
CN111246012A (en) | Application interface display method and device and storage medium | |
CN106375744B (en) | Information projecting method and device | |
CN113470583B (en) | Display screen adjusting method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |