1 /* 2 * GStreamer 3 * Copyright (C) 2016 Vivia Nikolaidou <vivia@toolsonair.com> 4 * 5 * gsttimecodestamper.h 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 #ifndef __GST_TIME_CODE_STAMPER_H__ 24 #define __GST_TIME_CODE_STAMPER_H__ 25 26 #include <gst/gst.h> 27 #include <gst/video/video.h> 28 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)) 35 36 typedef struct _GstTimeCodeStamper GstTimeCodeStamper; 37 typedef struct _GstTimeCodeStamperClass GstTimeCodeStamperClass; 38 39 /** 40 * GstTimeCodeStamper: 41 * 42 * Opaque data structure. 43 */ 44 struct _GstTimeCodeStamper 45 { 46 GstBaseTransform videofilter; 47 48 /* < private > */ 49 gboolean override_existing; 50 gboolean drop_frame; 51 GstVideoTimeCode *current_tc; 52 GstVideoTimeCode *first_tc; 53 GstVideoInfo vinfo; 54 gboolean post_messages; 55 gboolean first_tc_now; 56 }; 57 58 struct _GstTimeCodeStamperClass 59 { 60 GstBaseTransformClass parent_class; 61 }; 62 63 GType gst_timecodestamper_get_type (void); 64 65 G_END_DECLS 66 #endif /* __GST_TIME_CODE_STAMPER_H__ */ 67