1 /* GStreamer 2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> 3 * Copyright (C) <2009> Sebastian Dröge <sebastian.droege@collabora.co.uk> 4 * 5 * EffecTV: 6 * Copyright (C) 2001-2002 FUKUCHI Kentarou 7 * 8 * EdgeTV - detects edge and display it in good old computer way 9 * 10 * EffecTV is free software. This library is free software; 11 * you can redistribute it and/or 12 * modify it under the terms of the GNU Library General Public 13 * License as published by the Free Software Foundation; either 14 * version 2 of the License, or (at your option) any later version. 15 * 16 * This library is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 * Library General Public License for more details. 20 * 21 * You should have received a copy of the GNU Library General Public 22 * License along with this library; if not, write to the 23 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 24 * Boston, MA 02110-1301, USA. 25 */ 26 27 #ifndef __GST_EDGE_H__ 28 #define __GST_EDGE_H__ 29 30 #include <gst/gst.h> 31 32 #include <gst/video/video.h> 33 #include <gst/video/gstvideofilter.h> 34 35 G_BEGIN_DECLS 36 37 #define GST_TYPE_EDGETV \ 38 (gst_edgetv_get_type()) 39 #define GST_EDGETV(obj) \ 40 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_EDGETV,GstEdgeTV)) 41 #define GST_EDGETV_CLASS(klass) \ 42 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_EDGETV,GstEdgeTVClass)) 43 #define GST_IS_EDGETV(obj) \ 44 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_EDGETV)) 45 #define GST_IS_EDGETV_CLASS(klass) \ 46 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EDGETV)) 47 48 typedef struct _GstEdgeTV GstEdgeTV; 49 typedef struct _GstEdgeTVClass GstEdgeTVClass; 50 51 struct _GstEdgeTV 52 { 53 GstVideoFilter videofilter; 54 55 /* < private > */ 56 gint map_width, map_height; 57 guint32 *map; 58 gint video_width_margin; 59 }; 60 61 struct _GstEdgeTVClass 62 { 63 GstVideoFilterClass parent_class; 64 }; 65 66 GType gst_edgetv_get_type (void); 67 68 G_END_DECLS 69 70 #endif /* __GST_EDGE_H__ */ 71