2016-04-10 02:25:32 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2019 Cesar Fabian Orccon Chipana
|
2020-02-11 19:19:15 +00:00
|
|
|
* Copyright (C) 2020 Thibault Saunier <tsaunier@igalia.com>
|
2016-04-10 02:25:32 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
|
|
|
|
* Boston, MA 02110-1335, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_IMAGESEQUENCESRC_H__
|
|
|
|
#define __GST_IMAGESEQUENCESRC_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/base/gstpushsrc.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2020-02-11 19:19:15 +00:00
|
|
|
#define GST_TYPE_IMAGE_SEQUENCE_SRC (gst_image_sequence_src_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE(GstImageSequenceSrc, gst_image_sequence_src, GST, IMAGE_SEQUENCE_SRC, GstPushSrc)
|
2016-04-10 02:25:32 +00:00
|
|
|
|
|
|
|
struct _GstImageSequenceSrc
|
|
|
|
{
|
|
|
|
GstPushSrc parent;
|
|
|
|
|
2020-02-11 19:19:15 +00:00
|
|
|
GRecMutex fields_lock;
|
|
|
|
gchar* path;
|
|
|
|
GstUri *uri;
|
|
|
|
gint start_index;
|
|
|
|
gint stop_index;
|
|
|
|
gint index;
|
|
|
|
gint n_frames;
|
2016-04-10 02:25:32 +00:00
|
|
|
|
|
|
|
guint64 duration;
|
2020-02-11 19:19:15 +00:00
|
|
|
gboolean reverse;
|
2016-04-10 02:25:32 +00:00
|
|
|
|
|
|
|
GstCaps *caps;
|
|
|
|
|
|
|
|
gint fps_n, fps_d;
|
|
|
|
};
|
|
|
|
|
2021-02-16 11:04:26 +00:00
|
|
|
GST_ELEMENT_REGISTER_DECLARE (imagesequencesrc);
|
2016-04-10 02:25:32 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_IMAGESEQUENCESRC_H__ */
|