1 /* 2 * GStreamer 3 * Copyright (C) <2010> Jan Schmidt <thaytan@noraisin.net> 4 * Copyright (C) <2012> Luis de Bethencourt <luis@debethencourt.com> 5 * 6 * Chromium - burning chrome video effect. 7 * Based on Pete Warden's FreeFrame plugin with the same name. 8 * 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: 15 * 16 * The above copyright notice and this permission notice shall be included in 17 * all copies or substantial portions of the Software. 18 * 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. 26 * 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 30 * mentioned above: 31 * 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. 36 * 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. 41 * 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. 46 */ 47 48 #ifndef __GST_GAUSS_BLUR_H__ 49 #define __GST_GAUSS_BLUR_H__ 50 51 #include <gst/gst.h> 52 #include <gst/video/video.h> 53 #include <gst/video/gstvideofilter.h> 54 55 G_BEGIN_DECLS 56 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)) 60 61 typedef struct _GstGaussianBlur GstGaussianBlur; 62 typedef struct _GstGaussianBlurClass GstGaussianBlurClass; 63 64 struct _GstGaussianBlur 65 { 66 GstVideoFilter videofilter; 67 gint width, height, stride; 68 69 float cur_sigma, sigma; 70 int windowsize; 71 72 float *kernel; 73 float *kernel_sum; 74 float *tempim; 75 gint16 *smoothedim; 76 }; 77 78 struct _GstGaussianBlurClass 79 { 80 GstVideoFilterClass parent_class; 81 }; 82 83 GType gst_gaussianblur_get_type(void); 84 85 G_END_DECLS 86 87 #endif 88