3 * Copyright (C) <2010> Jan Schmidt <thaytan@noraisin.net>
4 * Copyright (C) <2012> Luis de Bethencourt <luis@debethencourt.com>
6 * Chromium - burning chrome video effect.
7 * Based on Pete Warden's FreeFrame plugin with the same name.
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 * DEALINGS IN THE SOFTWARE.
27 * Alternatively, the contents of this file may be used under the
28 * GNU Lesser General Public License Version 2.1 (the "LGPL"), in
29 * which case the following provisions apply instead of the ones
32 * This library is free software; you can redistribute it and/or
33 * modify it under the terms of the GNU Library General Public
34 * License as published by the Free Software Foundation; either
35 * version 2 of the License, or (at your option) any later version.
37 * This library is distributed in the hope that it will be useful,
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40 * Library General Public License for more details.
42 * You should have received a copy of the GNU Library General Public
43 * License along with this library; if not, write to the
44 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
45 * Boston, MA 02110-1301, USA.
48 #ifndef __GST_GAUSS_BLUR_H__
49 #define __GST_GAUSS_BLUR_H__
52 #include <gst/video/video.h>
53 #include <gst/video/gstvideofilter.h>
57 #define GST_TYPE_GAUSSIANBLUR (gst_gaussianblur_get_type())
58 #define GST_GAUSSIANBLUR(obj) \
59 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GAUSSIANBLUR, GstGaussianBlur))
61 typedef struct _GstGaussianBlur GstGaussianBlur;
62 typedef struct _GstGaussianBlurClass GstGaussianBlurClass;
64 struct _GstGaussianBlur
66 GstVideoFilter videofilter;
67 gint width, height, stride;
69 float cur_sigma, sigma;
78 struct _GstGaussianBlurClass
80 GstVideoFilterClass parent_class;
83 GType gst_gaussianblur_get_type(void);
84 GST_ELEMENT_REGISTER_DECLARE (gaussianblur);