2010-09-20 09:22:32 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2010 Edward Hervey <edward.hervey@collabora.co.uk>
|
|
|
|
* 2010 Nokia Corporation
|
|
|
|
*
|
|
|
|
* 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
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2010-09-20 09:22:32 +00:00
|
|
|
*/
|
|
|
|
|
2017-06-12 23:40:44 +00:00
|
|
|
#include "gstdiscoverer.h"
|
|
|
|
|
2010-09-20 09:22:32 +00:00
|
|
|
struct _GstDiscovererStreamInfo {
|
2011-02-23 13:12:22 +00:00
|
|
|
GObject parent;
|
2010-09-20 09:22:32 +00:00
|
|
|
|
|
|
|
GstDiscovererStreamInfo *previous; /* NULL for starting points */
|
|
|
|
GstDiscovererStreamInfo *next; /* NULL for containers */
|
|
|
|
|
|
|
|
GstCaps *caps;
|
|
|
|
GstTagList *tags;
|
2012-05-20 23:01:17 +00:00
|
|
|
GstToc *toc;
|
2012-11-20 13:56:45 +00:00
|
|
|
gchar *stream_id;
|
2010-09-20 09:22:32 +00:00
|
|
|
GstStructure *misc;
|
2011-11-11 18:01:56 +00:00
|
|
|
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2010-09-20 09:22:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstDiscovererContainerInfo {
|
|
|
|
GstDiscovererStreamInfo parent;
|
|
|
|
|
|
|
|
GList *streams;
|
2011-11-11 18:01:56 +00:00
|
|
|
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2010-09-20 09:22:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstDiscovererAudioInfo {
|
|
|
|
GstDiscovererStreamInfo parent;
|
|
|
|
|
2017-06-12 23:40:44 +00:00
|
|
|
guint64 channel_mask;
|
2010-09-20 09:22:32 +00:00
|
|
|
guint channels;
|
|
|
|
guint sample_rate;
|
|
|
|
guint depth;
|
|
|
|
|
|
|
|
guint bitrate;
|
|
|
|
guint max_bitrate;
|
2011-08-24 15:29:08 +00:00
|
|
|
|
|
|
|
gchar *language;
|
2011-11-11 18:01:56 +00:00
|
|
|
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2010-09-20 09:22:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstDiscovererVideoInfo {
|
|
|
|
GstDiscovererStreamInfo parent;
|
|
|
|
|
|
|
|
guint width;
|
|
|
|
guint height;
|
|
|
|
guint depth;
|
|
|
|
guint framerate_num;
|
|
|
|
guint framerate_denom;
|
|
|
|
guint par_num;
|
|
|
|
guint par_denom;
|
|
|
|
gboolean interlaced;
|
|
|
|
|
|
|
|
guint bitrate;
|
|
|
|
guint max_bitrate;
|
|
|
|
|
|
|
|
gboolean is_image;
|
2011-11-11 18:01:56 +00:00
|
|
|
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2010-09-20 09:22:32 +00:00
|
|
|
};
|
|
|
|
|
2011-08-24 14:04:50 +00:00
|
|
|
struct _GstDiscovererSubtitleInfo {
|
|
|
|
GstDiscovererStreamInfo parent;
|
|
|
|
|
|
|
|
gchar *language;
|
2011-11-11 18:01:56 +00:00
|
|
|
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2011-08-24 14:04:50 +00:00
|
|
|
};
|
|
|
|
|
2010-09-20 09:22:32 +00:00
|
|
|
struct _GstDiscovererInfo {
|
2011-02-23 13:12:22 +00:00
|
|
|
GObject parent;
|
2010-09-20 09:22:32 +00:00
|
|
|
|
|
|
|
gchar *uri;
|
|
|
|
GstDiscovererResult result;
|
|
|
|
|
|
|
|
/* Sub-streams */
|
|
|
|
GstDiscovererStreamInfo *stream_info;
|
|
|
|
GList *stream_list;
|
|
|
|
|
|
|
|
/* Stream global information */
|
|
|
|
GstClockTime duration;
|
|
|
|
GstStructure *misc;
|
|
|
|
GstTagList *tags;
|
2012-05-20 23:01:17 +00:00
|
|
|
GstToc *toc;
|
2010-12-13 14:20:23 +00:00
|
|
|
gboolean seekable;
|
2014-01-14 14:39:55 +00:00
|
|
|
GPtrArray *missing_elements_details;
|
2011-11-11 18:01:56 +00:00
|
|
|
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2010-09-20 09:22:32 +00:00
|
|
|
};
|
2010-09-28 10:15:22 +00:00
|
|
|
|
|
|
|
/* missing-plugins.c */
|
2016-07-08 12:44:26 +00:00
|
|
|
G_GNUC_INTERNAL
|
2010-09-28 10:15:22 +00:00
|
|
|
GstCaps *copy_and_clean_caps (const GstCaps * caps);
|