Patent Document ID: 9641768
Application ID: 15102185

Base Claim:
1. A filter realization method of a camera application, comprising: obtaining a user-defined filter use instruction; extracting a program script according to the user-defined filter use instruction, wherein the program script is generated according to a user-defined photo parameter; and performing, by using the extracted program script, filter rendering on a photo obtained by triggering photographing in a camera application, to obtain a photo containing a filter effect; wherein before the step of extracting a program script according to the user-defined filter use instruction, the method further comprises: obtaining a photo setting operation triggered in the camera application, and obtaining a user-defined photo parameter by means of the photo setting operation; and inputting the user-defined photo parameter into a vertex shader and a fragment shader to generate a program script for realizing a user-defined filter effect of a photo.

---

Claim 2:
2. The method according to claim 1 , wherein before the performing, by using the extracted program script, filter rendering on a photo obtained by triggering photographing in a camera application, the method comprises: determining whether the extracted program script is loaded to a real-time preview of the camera application, and if not, triggering photographing to obtain a photo.