Patent Description:
Filters, as global special effects, can implement a variety of artistic effects of images. Adding a filter to an original picture of images can realize the artistic processing of the picture and make it present an artistic effect.

An image or video capture software generally provides a variety of filters for a user to choose from. In the related art, when a filter is to be used or switched, the user should first click a filter control to call up a filter region, and then click a corresponding filter in the filter region. Thus, the filter is switched. During the switching, a current display effect is directly switched to a filter effect corresponding to the filter selected by the user. Therefore, it is not convenient for the user to compare different filter effects, the switching efficiency is relatively low, and the user experience is affected.

Further relevant technologies are also known from <CIT> which relates to a drag handle for applying image filters in picture editor, <CIT> which relates to a video editor, and <CIT> which relates to an electronic camera, image display device, and storage medium storing image display program.

In view of the above, embodiments of the present disclosure provide a method and apparatus for switching global special effects, a terminal device and a storage medium, so as to improve the switching efficiency of the global special effects and improve the user experience.

The present disclosure will be further described in detail with reference to drawings embodiments. It is to be understood that the embodiments described herein are intended to illustrate and not to limit the present disclosure. It is to be noted that for description, only part, not all of content related to the present disclosure are illustrated in the drawings.

<FIG> is a flowchart of a method for switching global special effects according to embodiment one of the present disclosure. The present embodiment may be applicable to a case of switching global special effects of a video or a photo. The method may be performed by an apparatus for switching global special effects. The apparatus may be implemented by at least one of software or hardware and may be generally integrated into a terminal device such as a mobile phone or a tablet computer. The method includes steps <NUM>, <NUM> and <NUM>.

In step <NUM>, in response to detecting a sliding gesture on a target interface, two global special effects to be switched are determined according to a sliding direction of the sliding gesture.

In one embodiment, the target interface may include a video capture interface, a video editing interface, a photo capture interface or a photo editing interface. The sliding direction includes an up direction, a down direction, a left direction or a right direction. The global special effects are special effects those applied to all pixels of a photo or a video. Optionally, the global special effects include at least one of a filter, transparency, or other special effects. For example, the filter includes Japanese style, Sense of aging, Pure, Impressive or Innocent, etc. The transparency is used for adjusting transparency of a photo or a video, such as <NUM>%, <NUM>%, <NUM>% or <NUM>%, etc..

In a case where a video or a photo is captured or edited, the global special effects are switched according to the sliding gesture. In response to detecting a sliding gesture, the sliding direction of the sliding gesture is determined, and if the sliding direction of the sliding gesture is the same as a preset sliding direction, the two global special effects to be switched are determined according to the sliding direction of the sliding gesture. A sliding gesture may be preset to call up a switching of the global special effects. In a case where no global special effect is applied to a current target interface and the detected sliding gesture is the preset sliding gesture, the switching of the global special effects can be called up, that is when a sliding direction of the detected sliding gesture is the same as a sliding direction of the preset sliding gesture, the switching of the global special effects can be called up, and then the two global special effects to be switched can be determined. For example, a case where no global special effect is used refers to Normal which is also one of the global special effects, and when the detected sliding gesture is the preset sliding gesture, it can be determined that the two global special effects to be switched are Normal and a first global special effect of the global special effects. In a case where a global special effect is used on the current target interface, two adjacent global special effects can be switched by a sliding gesture in a same direction or in an opposite direction to the preset sliding gesture, and the two adjacent global special effects include a global special effect used before the sliding gesture is detected and a global special effect determined according to the sliding gesture, in which the determined global special effect is adjacent to the used global special effect. The preset sliding gesture may include a left sliding gesture, a right sliding gesture, an up sliding gesture, or a down sliding gesture, and for example, the preset sliding gesture may be set as the left sliding gesture.

In step <NUM>, during a sliding process of the sliding gesture, the two global special effects are displayed on two sides of the target interface simultaneously, and display regions of the two global special effects are changed according to a sliding displacement of the sliding gesture.

When a terminal device is in a vertical screen status or a horizontal screen status, if the sliding gesture is the left sliding gesture or the right sliding gesture, two global special effects to be switched may be displayed on the left side and the right side of the target interface simultaneously. And when the terminal device is in a vertical screen status or a horizontal screen status , if the sliding gesture is the up sliding gesture or the down sliding gesture, the two global special effects to be switched may be displayed on the upper side and the lower side of the target interface simultaneously. A first global special effect of the two global special effects is the global special effect displayed before the sliding gesture is detected, and a second global special effect of the two global special effects is the global special effect stored adjacent to the first global special effect and is determined according to the sliding direction of the sliding gesture. During a sliding process of the sliding gesture in the sliding direction, a display region of the first global special effect becomes smaller, and a display region of the second global special effect becomes larger. If the sliding direction of the sliding gesture is changed, the display region of the first global special effect becomes larger and the display region of the second global special effect becomes smaller, i.e. a size of the display region of the first global special effect is inversely proportional to the sliding displacement of the sliding gesture, and a size of the display region of the second global special effect is directly proportional to the sliding displacement of the sliding gesture. In a case where the sliding gesture is the left sliding gesture or the right sliding gesture, the sliding displacement is a transversal displacement component; and in a case where the sliding gesture is the up sliding gesture or the down sliding gesture, the sliding displacement is a longitudinal displacement component, that is, a moving displacement of the second global special effect is linearly related to the sliding displacement of the sliding gesture. For example, in response to the sliding gesture moving one pixel, the second global special effect moves two pixels in a corresponding direction of the sliding gesture, and correspondingly, the first global special effect moves two pixels in the corresponding direction of the sliding gesture, so that the display region of the first global special effect is reduced by two pixels in the corresponding direction. By displaying two global special effects on two sides of the target interface simultaneously, it is convenient for the user to compare the two global special effects and select a preferable global special effect.

Taking the global special effect is the filter for example. <FIG> are schematic diagrams of displaying two global special effects on a left side and a right side of a target interface simultaneously in a case where a sliding direction is a left direction or a right direction when the terminal device is in a vertical screen status in embodiments of the present disclosure. As shown in <FIG>, in the vertical screen status, when the sliding direction of the sliding gesture is detected as the left direction, firstly, a used global special effect before the sliding gesture is detected is determined to be the first global special effect of the two global special effects to be switched, and a global special effect adjacent to the first global special effect is taken as the second global special effect of the two global special effect to be switched. An example that the first global special effect before the sliding gesture is detected is Normal, and the second global special effect after the sliding gesture is detected is Japanese style, along with the sliding gesture sliding from right to left, the display regions of the two global special effects are changed accordingly are illustrated in <FIG>, <FIG>, and <FIG>. As shown in <FIG>, on the basis of <FIG>, the display region of the first global special effect is becoming smaller and smaller, and the display region of the second global special effect is becoming larger and larger. If the sliding direction of the sliding gesture is changed during the sliding process of the sliding gesture, the display regions of the two global special effects can be changed accordingly. As shown in <FIG>, that is, on the basis of <FIG>, the display region of the first global special effect gets larger and the display region of the second global special effect gets smaller.

Taking the global special effect is the filter for example. <FIG> are schematic diagrams of displaying two global special effects on an upper side and a lower side of a target interface simultaneously in a case where a sliding direction in a vertical screen status is an up direction or a down direction in embodiments not according to the claims.

As shown in <FIG>, in a case where the sliding direction of the sliding gesture is detected as the up direction, firstly, a used global special effect before the sliding gesture is detected is determined to be the first global special effect of the two global special effects to be switched, and a global special effect adjacent to the first global special effect is taken as the second global special effect of the two global special effects to be switched. An example that the first global special effect before the sliding gesture is detected is Normal, and the second global special effect after the sliding gesture is detected is Japanese style, along with the sliding gesture sliding from down to up, the display regions of the two global special effects are changed accordingly are illustrated in <FIG>, <FIG>, and <FIG>. As shown in <FIG>, on the basis of <FIG>, the display region of the first global special effect is becoming smaller and smaller, and the display region of the second global special effect is becoming larger and larger. If the sliding direction of the sliding gesture is changed during the sliding process of the sliding gesture, the display regions of the two global special effects can be changed accordingly. As shown in <FIG>, that is, on the basis of <FIG>, the display region of the first global special effect gets larger and the display region of the second global special effect gets smaller.

Taking the global special effect is the filter as an example. <FIG> are schematic diagrams of displaying two global special effects on a left side and a right side of a target interface simultaneously in a case where a sliding direction in a horizontal screen status is a left direction or a right direction in embodiments of the present disclosure. As shown in <FIG>, in the horizontal screen status, when the sliding direction of the sliding gesture is detected as the left direction, firstly, a used global special effect before the sliding gesture is detected is determined to be the first global special effect of the two global special effects to be switched, and a global special effect adjacent to the first global special effect is taken as the second global special effect of the two global special effects to be switched. An example that the first global special effect before the sliding gesture is detected is Normal, and the second global special effect after the sliding gesture is detected is Japanese style, along with the sliding gesture sliding from right to left, the display regions of the two global special effects are changed accordingly are illustrated in <FIG>, <FIG>, and <FIG>. As shown in <FIG>, on the basis of <FIG>, the display region of the first global special effect is becoming smaller and smaller, and the display region of the second global special effect is becoming larger and larger. If the sliding direction of the sliding gesture is changed during the sliding process of the sliding gesture, the display regions of the two global special effects can be correspondingly changed. As shown in <FIG>, that is, on the basis of <FIG>, the display region of the first global special effect gets larger and the display region of the second global special effect gets smaller.

Taking the global special effect is the filter as an example. <FIG> are schematic diagrams of displaying two global special effects on an upper side and a lower side of a target interface simultaneously in a case where a sliding direction in a horizontal screen status is an up direction or a down direction in embodiments not according to the claims.

As shown in <FIG>, when the sliding direction of the sliding gesture is detected as the up direction, firstly, a used global special effect before the sliding gesture is detected is determined to be the first global special effect of the two global special effects to be switched, and a global special effect adjacent to the first global special effect is taken as the second global special effect of the two global special effects to be switched. An example that the first global special effect before the sliding gesture is detected is Normal, and the second global special effect after the sliding gesture is detected is Japanese style, along with the sliding gesture sliding from down to up, the display regions of the two global special effects are changed accordingly are illustrated in <FIG>, <FIG>, and <FIG>. As shown in <FIG>, on the basis of <FIG>, the display region of the first global special effect is becoming smaller and smaller, and the display region of the second global special effect is becoming larger and larger. If the sliding direction of the sliding gesture is changed during the sliding process of the sliding gesture, the display regions of the two global special effects can be changed accordingly. As shown in <FIG>, that is, on the basis of <FIG>, the display region of the first global special effect gets larger and the display region of the second global special effect gets smaller.

In step <NUM>, in response to detecting a release operation of the sliding gesture, a global special effect having a larger display region is determined from the two global special effects as a user-selected global special effect, and the user-selected global special effect is displayed on an entire region of the target interface.

The release operation of the sliding gesture includes a finger lifting operation.

After a global special effect to be selected is determined from the two global special effects, the display region of the global special effect to be selected can get larger than the display region of the other global special effect through the sliding gesture, and then the sliding gesture may be released. In response to detecting the release operation of the sliding gesture, the global special effect having the larger display region in the two global special effects is determined as the user-selected global special effect by the terminal device, and the user-selected global special effect is displayed on an entire region of the target interface.

The method for switching global special effects is provided by the embodiments. In response to detecting a sliding gesture on a target interface, two global special effects to be switched are determined according to the sliding direction of the sliding gesture. During the sliding process of the sliding gesture, the two global special effects are displayed on two sides of the target interface, and the display regions of the two global special effects are changed according to the sliding displacement of the sliding gesture. In response to detecting a release operation of the sliding gesture, a global special effect having a larger display region from the two global special effects is determined as a user-selected global special effect and the user-selected global special effect is displayed on an entire region of the target interface. That is, the two global special effects are switched by the sliding gesture and the two global special effects are simultaneously displayed during the sliding process of the sliding gesture, therefore, it is convenient for the user to compare the two global special effects, and the switching efficiency and the user experience are improved.

In an embodiment, the sliding displacement includes a transversal displacement component.

The step of changing display regions of the two global special effects according to the sliding displacement of the sliding gesture includes a step described below:
Changing the display regions of the two global special effects on a left side and a right side of the target interface according to the transversal displacement component of the sliding gesture.

A display status of the target interface is a vertical screen status or a horizontal screen status. In a case where the display status of the target interface is the vertical screen status, the display regions of the two global special effects displayed on the left side and the right side of the target interface are changed by the transversal displacement component of the sliding gesture, i.e., a displacement component parallel to a shorter side of the display screen. In a case where the display status of the target interface is the horizontal screen status, the display regions of the two global special effects displayed on the left side and the right side of the target interface are changed by the transversal displacement component of the sliding gesture, i.e., a displacement component parallel to a longer side of the display screen. Along with the increasing of the transversal displacement component of the sliding gesture, the display region of the first global special effect gets smaller, and the display region of the second global special effect gets larger. By displaying the two global special effects on the left side and the right side simultaneously, it is convenient for the user to compare the two global special effects, and the switching efficiency of the global special effects is further improved.

<FIG> is a flowchart of a method for switching global special effects according to embodiment two of the present disclosure. Displaying the user-selected global special effect on the entire region of the target interface further includes a step described below. According to a position of the display region of the user-selected global special effect on the target interface, the user-selected global special effect is moved to an opposite side in a form of translate animation until the user-selected global special effect covers the entire region of the target interface. The method includes steps <NUM>, <NUM> and <NUM>.

In step <NUM>, in response to detecting a release operation of the sliding gesture, a global special effect having a larger display region is determined, from the two global special effects, as a user-selected global special effect, and the user-selected global special effect is moved, according to the position of the display region of the user-selected global special effect on the target interface, to the opposite side in the form of translate animation until the user-selected global special effect covers the entire region of the target interface.

After the user-selected global special effect is determined, the user-selected global special effect is moved to the opposite side in the form of translate animation until the user-selected global special effect covers the entire region of the target interface. For example, when the two global special effects are displayed on the left side and the right side of the target interface simultaneously, a release operation of the sliding gesture is detected and a display region of the global special effect located on the left side of the target interface is relatively large, therefore, the global special effect on the left side is switched on, and the translate animation is moved from left to right during the switching process. That is, the global special effect on the left side and the global special effect on the right side are moved from left to right simultaneously until the global special effect on the left side covers the entire region of the target interface, and at the same time, the global special effect on the right side is moved out of the target interface. In a case where the release operation of the sliding gesture is detected and a display region of the global special effect located on the right side of the target interface is relatively large, the global special effect on the right side is switched on, and the translate animation is moved from right to left during the switching process. That is, the global special effect on the left side and the global special effect on the right side are moved from right to left simultaneously until the global special effect on the right side covers the entire region of the target interface, and at the same time, the global special effect on the left side is moved out of the target interface.

In the method for switching global special effects provided by the embodiment, after the user-selected global special effect is determined, the user-selected global special effect is moved to the opposite side in the form of translate animation until the user-selected global special effect covers the entire region of the target interface according to the position of the user-selected global special effect on the target interface, thus enriching the interface effect and further improving the user experience.

<FIG> is a structural diagram of an apparatus for switching global special effects according to embodiment three of the present disclosure. The present embodiment may be applicable to a case of switching the global special effects of a video or a photo. A method for switching global special effects may be performed by the apparatus. The apparatus may be implemented by at least one of software or hardware and may be generally integrated into a terminal device such as a mobile phone or a tablet computer. As shown in <FIG>, the apparatus for switching global special effects of the present embodiment includes a to-be-switched special effect determination module <NUM>, a simultaneous display module <NUM> and a global special effect switching module <NUM>.

The to-be-switched special effect determination module <NUM> is configured to determine, in response to detecting a sliding gesture on a target interface, two global special effects to be switched according to a sliding direction of the sliding gesture.

The simultaneous display module <NUM> is configured to display, during a sliding process of the sliding gesture, the two global special effects on two sides of the target interface simultaneously, and change display regions of the two global special effects according to a sliding displacement of the sliding gesture.

The global special effect switching module <NUM> is configured to determine, in response to detecting a release operation of the sliding gesture, a global special effect having a larger display region from the two global special effects as a user-selected global special effect, and display the user-selected global special effect on an entire region of the target interface.

In an embodiment, the sliding displacement includes a transversal displacement component, and the simultaneous display module includes a display region change unit. The display region change unit is configured to change display regions of the two global effects on a left side and a right side of the target interface according to the transversal displacement component of the sliding gesture.

In an embodiment, the global special effect switching module includes a translate animation switching unit. The translate animation switching unit is configured to move, according to a position of the display region of the user-selected global special effect on the target interface, the user-selected global special effect to an opposite side in a form of translate animation until the user-selected global special effect covers the entire region of the target interface.

In an embodiment, the target interface includes a video capture interface, a video editing interface, a photo capture interface or a photo editing interface.

In an embodiment, the global special effect includes at least one of a filter or transparency.

The above-mentioned apparatus for switching global special effects may perform the method for switching global special effects according to any embodiment of the present disclosure, and has functional modules and beneficial advantages corresponding to the method performed. The technical details not described in detail in the embodiment may refer to the method for switching global special effects according to any embodiment of the present disclosure.

<FIG> is a structural hardware diagram of a terminal device according to embodiment four of the present disclosure. A terminal device may be implemented in various forms. The terminal device in the present disclosure may include, but is not limited to, a mobile terminal device such as a mobile phone, a smart phone, a laptop, a digital broadcast receiver, a personal digital assistant (PDA), a portable Android device (PAD), a portable media player (PMP), a navigation apparatus, an in-vehicle terminal device, an in-vehicle display terminal and an in-vehicle electronic rearview mirror, and a stationary terminal device such as a digital television (TV) and a desktop computer.

As shown in <FIG>, the terminal device <NUM> may include a radio communication unit <NUM>, an audio/video (A/V) input unit <NUM>, a user input unit <NUM>, a sensor unit <NUM>, an output unit <NUM>, a memory <NUM>, an interface unit <NUM>, a processor <NUM>, a power supply unit <NUM>, and the like. Although <FIG> shows the terminal device having various elements, it is to be understood that it is not required to implement all the shown elements, and more or fewer elements may be implemented instead.

The radio communication unit <NUM> allows the terminal device <NUM> to perform radio communication with a radio communication system or network. The A/V input unit <NUM> is configured to receive an audio signal or a video signal. The user input unit <NUM> may generate key input data to control various operations of the terminal device according to a command input by the user. The sensor unit <NUM> detects a current state of the terminal device <NUM>, a position of the terminal device <NUM>, a presence or absence of touch input by the user for the terminal device <NUM>, an orientation of the terminal device <NUM>, acceleration or deceleration movement and direction of the terminal device <NUM>, and the like, and generate commands or signals for controlling operations of the terminal device <NUM>. The interface unit <NUM> serves as an interface through which at least one external apparatus can communicate with the terminal device <NUM>. The output unit <NUM> is configured to provide an output signal in at least one of a visual manner, an audio manner, or a tactile manner. The memory <NUM> may store software programs or the like for processing and control operations performed by the processor <NUM>, or may temporarily store data that has been output or will be output. The memory <NUM> may include at least one type of storage media. The terminal device <NUM> may cooperate with a network storage apparatus that performs a storage function of the memory <NUM> through a network connection. The processor <NUM> usually controls an overall operation of the terminal device. In addition, the processor <NUM> may include a multimedia module for reproducing or playing back multimedia data. The processor <NUM> may perform a pattern recognition processing to recognize hand input or picture drawing input performed on a touch panel as characters or images. The power supply unit <NUM> controlled by the processor <NUM> receives external power or internal power and provides appropriate power required to operate the plurality of elements and components.

The processor <NUM> may perform various functional applications and data processing of the terminal device <NUM> by running programs stored in the memory <NUM>, for example, perform the method for switching global special effects provided by the embodiment of the disclosure. The method includes steps described below: in response to detecting a sliding gesture on a target interface, two global special effects to be switched are determined according to a sliding direction of the sliding gesture; during a sliding process of the sliding gesture, the two global special effects are displayed on two sides of the target interface, and display regions of the two global special effects are changed according to a sliding displacement of the sliding gesture; in response to detecting a release operation of the sliding gesture, a global special effect having a larger display region is determined from the two global special effects as a user-selected global special effect and the user-selected global special effect is displayed on an entire region of the target interface.

The embodiment five of the present disclosure further provides a storage medium storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions perform the method for switching global special effects. The method includes steps described below: in response to detecting a sliding gesture on a target interface, two global special effects to be switched are determined according to a sliding direction of the sliding gesture; during a sliding process of the sliding gesture, the two global special effects are displayed on two sides of the target interface, and display regions of the two global special effects are changed according to a sliding displacement of the sliding gesture; in response to detecting a release operation of the sliding gesture, a global special effect having a larger display region is determined form the two global special effects as a user-selected global special effect and the user-selected global special effect is displayed on an entire region of the target interface.

In the storage medium storing computer-executable instructions provided in the embodiment of the present disclosure, the computer-executable instructions implement not only the above-mentioned method operations but also related operations in the method for switching global special effects provided in any embodiment of the present disclosure.

From the above description of embodiments, it is apparent to those skilled in the art that the present disclosure may be implemented by means of software and necessary general-purpose hardware, or may of course be implemented by hardware, but in many cases the former is a preferred embodiment. Based on this understanding, the solutions provided by the present disclosure substantially, or the part contributing to the related art, may be embodied in a form of a software product. The software product is stored in a computer readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash, a hard disk or an optical disk, and includes several instructions for enabling a computer device (which may be a personal computer, a server or a network device) to execute the method according to each embodiment of the present disclosure.

Claim 1:
A method for switching global special effects, comprising:
determining (<NUM>), in response to detecting a sliding gesture on a target interface and according to a sliding direction of the sliding gesture, two global special effects to be switched; wherein the global special effects are special effects applied to all pixels of a photo or a video;
displaying (<NUM>), during a sliding process of the sliding gesture, the two global special effects on two sides of the target interface simultaneously, and changing display regions of the two global special effects on a left side and a right side of the target interface according to a transversal displacement component of the sliding gesture, wherein a display status of the target interface is a vertical screen status or a horizontal screen status, in response to determining that the display status of the target interface is the vertical screen status, the transversal displacement component is a displacement component parallel to a shorter side of the display screen, and in response to determining that the display status of the target interface is the horizontal screen status, the transversal displacement component is a displacement component parallel to a longer side of the display screen; and
determining (<NUM>), in response to detecting a release operation of the sliding gesture, a global special effect having a larger display region from the two global special effects as a user-selected global special effect, and displaying the user-selected global special effect on an entire region of the target interface.