1 /* GStreamer 2 * Copyright (C) 2019 Cesar Fabian Orccon Chipana 3 * Copyright (C) 2020 Thibault Saunier <tsaunier@igalia.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin Street, Suite 500, 18 * Boston, MA 02110-1335, USA. 19 */ 20 21 #ifndef __GST_IMAGESEQUENCESRC_H__ 22 #define __GST_IMAGESEQUENCESRC_H__ 23 24 #include <gst/gst.h> 25 #include <gst/base/gstpushsrc.h> 26 27 G_BEGIN_DECLS 28 29 #define GST_TYPE_IMAGE_SEQUENCE_SRC (gst_image_sequence_src_get_type()) 30 G_DECLARE_FINAL_TYPE(GstImageSequenceSrc, gst_image_sequence_src, GST, IMAGE_SEQUENCE_SRC, GstPushSrc) 31 32 struct _GstImageSequenceSrc 33 { 34 GstPushSrc parent; 35 36 GRecMutex fields_lock; 37 gchar* path; 38 GstUri *uri; 39 gint start_index; 40 gint stop_index; 41 gint index; 42 gint n_frames; 43 44 guint64 duration; 45 gboolean reverse; 46 47 GstCaps *caps; 48 49 gint fps_n, fps_d; 50 }; 51 52 GST_ELEMENT_REGISTER_DECLARE (imagesequencesrc); 53 54 G_END_DECLS 55 56 #endif /* __GST_IMAGESEQUENCESRC_H__ */ 57