1 /* GStreamer Element 2 * 3 * Copyright 2011 Collabora Ltd. 4 * @author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> 5 * Copyright 2011 Nokia Corp. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library 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 GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public 18 * License along with this library; if not, write to the 19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 24 #ifndef __GST_COMPARE_H__ 25 #define __GST_COMPARE_H__ 26 27 28 #include <gst/gst.h> 29 30 G_BEGIN_DECLS 31 32 #define GST_TYPE_COMPARE \ 33 (gst_compare_get_type()) 34 #define GST_COMPARE(obj) \ 35 (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_COMPARE, GstCompare)) 36 #define GST_COMPARE_CLASS(klass) \ 37 (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_COMPARE, GstCompareClass)) 38 #define GST_COMPARE_GET_CLASS(obj) \ 39 (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_COMPARE, GstCompareClass)) 40 #define GST_IS_COMPARE(obj) \ 41 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_COMPARE)) 42 #define GST_IS_COMPARE_CLASS(klass) \ 43 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_COMPARE)) 44 45 typedef struct _GstCompare GstCompare; 46 typedef struct _GstCompareClass GstCompareClass; 47 48 struct _GstCompare { 49 GstElement element; 50 51 GstPad *srcpad; 52 GstPad *sinkpad; 53 GstPad *checkpad; 54 55 GstCollectPads *cpads; 56 57 gint count; 58 59 /* properties */ 60 GstBufferCopyFlags meta; 61 gboolean offset_ts; 62 gint method; 63 gdouble threshold; 64 gboolean upper; 65 }; 66 67 struct _GstCompareClass { 68 GstElementClass parent_class; 69 }; 70 71 GType gst_compare_get_type(void); 72 73 G_END_DECLS 74 75 #endif /* __GST_COMPARE_H__ */ 76