发明名称 Filter realization method and apparatus of camera application
摘要 A filter realization method and apparatus of a camera application may include: obtaining a user-defined filter use instruction; extracting a program script according to the user-defined filter use instruction, where 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. The apparatus includes: a filter use instruction obtaining module, configured to obtain a user-defined filter use instruction; a script extraction module, configured to extract a program script according to the user-defined filter use instruction, where the program script is generated according to a user-defined photo parameter; and a filter rendering module, configured to perform, by using the extracted program script, filter rendering on a photo obtained by triggering photographing in a camera application, to obtain a photo containing filter effect.
申请公布号 US9641768(B2) 申请公布日期 2017.05.02
申请号 US201515102185 申请日期 2015.01.23
申请人 TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED 发明人 Wu Yuhuan
分类号 G06F9/455;H04N5/232;H04N5/262 主分类号 G06F9/455
代理机构 Marshall, Gerstein & Borun LLP 代理人 Marshall, Gerstein & Borun LLP
主权项 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; andinputting 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.
地址 Shenzhen CN