3 * Copyright (C) 2016 Vivia Nikolaidou <vivia@toolsonair.com>
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.
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.
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.
23 #ifndef __GST_TIME_CODE_STAMPER_H__
24 #define __GST_TIME_CODE_STAMPER_H__
27 #include <gst/video/video.h>
29 #define GST_TYPE_TIME_CODE_STAMPER (gst_timecodestamper_get_type())
30 #define GST_TIME_CODE_STAMPER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TIME_CODE_STAMPER,GstTimeCodeStamper))
31 #define GST_TIME_CODE_STAMPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_TIME_CODE_STAMPER,GstTimeCodeStamperClass))
32 #define GST_TIME_CODE_STAMPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_TIME_CODE_STAMPER,GstTimeCodeStamperClass))
33 #define GST_IS_TIME_CODE_STAMPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TIME_CODE_STAMPER))
34 #define GST_IS_TIME_CODE_STAMPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_TIME_CODE_STAMPER))
36 typedef struct _GstTimeCodeStamper GstTimeCodeStamper;
37 typedef struct _GstTimeCodeStamperClass GstTimeCodeStamperClass;
42 * Opaque data structure.
44 struct _GstTimeCodeStamper
46 GstBaseTransform videofilter;
49 gboolean override_existing;
51 GstVideoTimeCode *current_tc;
52 GstVideoTimeCode *first_tc;
54 gboolean post_messages;
55 gboolean first_tc_now;
58 struct _GstTimeCodeStamperClass
60 GstBaseTransformClass parent_class;
63 GType gst_timecodestamper_get_type (void);
66 #endif /* __GST_TIME_CODE_STAMPER_H__ */