Debian Codegraph @

src/filter/squareblur/squareblur.c

raw symbols SCIP
1 /* squareblur.c
2 * Copyright (C) 2004--2005 Mathieu Guindon
3 * Julien Keable
4 * Jean-Sebastien Senecal ([email protected])
5 * This file is a Frei0r plugin.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22 #include <stdlib.h>
23 #include <assert.h>
24 #include <string.h>
25
26 #include "frei0r.h"cxx . . $ `<file>/include/frei0r.h`/
27 #include "frei0r/blur.h"cxx . . $ `<file>/include/frei0r/blur.h`/
28
29 int f0r_initcxx . . $ f0r_init(b126dc7c1de90089).()
30 {
31 return 1;
32 }
33
34 void f0r_deinitcxx . . $ f0r_deinit(49f6e7a06ebc5aa8).()
35 { /* no initialization required */ }
36
37 void f0r_get_plugin_infocxx . . $ f0r_get_plugin_info(35d753456c0ea59c).(f0r_plugin_info_tcxx . . $ f0r_plugin_info_t#* squareblur_info)
38 {
39 squareblur_info->namecxx . . $ f0r_plugin_info#name. = "Squareblur";
40 squareblur_info->authorcxx . . $ f0r_plugin_info#author. = "Drone";
41 squareblur_info->plugin_typecxx . . $ f0r_plugin_info#plugin_type. = F0R_PLUGIN_TYPE_FILTERcxx . . $ `include/frei0r.h:247:9`!;
42 squareblur_info->color_modelcxx . . $ f0r_plugin_info#color_model. = F0R_COLOR_MODEL_RGBA8888cxx . . $ `include/frei0r.h:308:9`!;
43 squareblur_info->frei0r_versioncxx . . $ f0r_plugin_info#frei0r_version. = FREI0R_MAJOR_VERSIONcxx . . $ `include/frei0r.h:217:9`!;
44 squareblur_info->major_versioncxx . . $ f0r_plugin_info#major_version. = 0;
45 squareblur_info->minor_versioncxx . . $ f0r_plugin_info#minor_version. = 1;
46 squareblur_info->num_paramscxx . . $ f0r_plugin_info#num_params. = 1;
47 squareblur_info->explanationcxx . . $ f0r_plugin_info#explanation. = "Variable-size square blur";
48 }
49
50 void f0r_get_param_infocxx . . $ f0r_get_param_info(a9f9aa7954cc4a37).(f0r_param_info_tcxx . . $ f0r_param_info_t#* info, int param_index)
51 {
52 blur_get_param_infocxx . . $ blur_get_param_info(a9f9aa7954cc4a37).(info, param_index);
53 }
54
55 f0r_instance_tcxx . . $ f0r_instance_t# f0r_constructcxx . . $ f0r_construct(da3f471cd007a696).(unsigned int width, unsigned int height)
56 {
57 return blur_constructcxx . . $ blur_construct(da3f471cd007a696).(width, height);
58 }
59
60 void f0r_destructcxx . . $ f0r_destruct(5d22bdacc48458e8).(f0r_instance_tcxx . . $ f0r_instance_t# instance)
61 {
62 blur_destructcxx . . $ blur_destruct(5d22bdacc48458e8).(instance);
63 }
64
65 void f0r_set_param_valuecxx . . $ f0r_set_param_value(5be095a8278d2bf5).(f0r_instance_tcxx . . $ f0r_instance_t# instance,
66 f0r_param_tcxx . . $ f0r_param_t# param, int param_index)
67 {
68 blur_set_param_valuecxx . . $ blur_set_param_value(5be095a8278d2bf5).(instance, param, param_index);
69 }
70
71 void f0r_get_param_valuecxx . . $ f0r_get_param_value(5be095a8278d2bf5).(f0r_instance_tcxx . . $ f0r_instance_t# instance,
72 f0r_param_tcxx . . $ f0r_param_t# param, int param_index)
73 {
74 blur_get_param_valuecxx . . $ blur_get_param_value(5be095a8278d2bf5).(instance, param, param_index);
75 }
76
77 void f0r_updatecxx . . $ f0r_update(96cd7b27f2fca8a7).(f0r_instance_tcxx . . $ f0r_instance_t# instance, double time,
78 const uint32_tcxx . . $ uint32_t#* inframe, uint32_tcxx . . $ uint32_t#* outframe)
79 {
80 blur_updatecxx . . $ blur_update(96cd7b27f2fca8a7).(instance, time, inframe, outframe);
81 }