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"
27 #include "frei0r/blur.h"
28
29 int f0r_init()
30 {
31 return 1;
32 }
33
34 void f0r_deinit()
35 { /* no initialization required */ }
36
37 void f0r_get_plugin_info(f0r_plugin_info_t* squareblur_info)
38 {
39 squareblur_info->name = "Squareblur";
40 squareblur_info->author = "Drone";
41 squareblur_info->plugin_type = F0R_PLUGIN_TYPE_FILTER;
42 squareblur_info->color_model = F0R_COLOR_MODEL_RGBA8888;
43 squareblur_info->frei0r_version = FREI0R_MAJOR_VERSION;
44 squareblur_info->major_version = 0;
45 squareblur_info->minor_version = 1;
46 squareblur_info->num_params = 1;
47 squareblur_info->explanation = "Variable-size square blur";
48 }
49
50 void f0r_get_param_info(f0r_param_info_t* info, int param_index)
51 {
52 blur_get_param_info(info, param_index);
53 }
54
55 f0r_instance_t f0r_construct(unsigned int width, unsigned int height)
56 {
57 return blur_construct(width, height);
58 }
59
60 void f0r_destruct(f0r_instance_t instance)
61 {
62 blur_destruct(instance);
63 }
64
65 void f0r_set_param_value(f0r_instance_t instance,
66 f0r_param_t param, int param_index)
67 {
68 blur_set_param_value(instance, param, param_index);
69 }
70
71 void f0r_get_param_value(f0r_instance_t instance,
72 f0r_param_t param, int param_index)
73 {
74 blur_get_param_value(instance, param, param_index);
75 }
76
77 void f0r_update(f0r_instance_t instance, double time,
78 const uint32_t* inframe, uint32_t* outframe)
79 {
80 blur_update(instance, time, inframe, outframe);
81 }