2010-09-20 09:22:32 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2009 Edward Hervey <edward.hervey@collabora.co.uk>
|
|
|
|
* 2009 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
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _GST_DISCOVERER_H_
|
|
|
|
#define _GST_DISCOVERER_H_
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2018-03-13 11:08:34 +00:00
|
|
|
#include <gst/pbutils/pbutils-prelude.h>
|
2010-09-20 09:22:32 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GST_TYPE_DISCOVERER_STREAM_INFO \
|
|
|
|
(gst_discoverer_stream_info_get_type ())
|
|
|
|
#define GST_DISCOVERER_STREAM_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DISCOVERER_STREAM_INFO, GstDiscovererStreamInfo))
|
|
|
|
#define GST_IS_DISCOVERER_STREAM_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_STREAM_INFO))
|
|
|
|
typedef struct _GstDiscovererStreamInfo GstDiscovererStreamInfo;
|
2011-02-23 13:12:22 +00:00
|
|
|
typedef GObjectClass GstDiscovererStreamInfoClass;
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GType gst_discoverer_stream_info_get_type (void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstDiscovererStreamInfo:
|
|
|
|
*
|
2011-01-05 10:23:09 +00:00
|
|
|
* Base structure for information concerning a media stream. Depending on the
|
|
|
|
* stream type, one can find more media-specific information in
|
|
|
|
* #GstDiscovererAudioInfo, #GstDiscovererVideoInfo, and
|
|
|
|
* #GstDiscovererContainerInfo.
|
|
|
|
*
|
|
|
|
* The #GstDiscovererStreamInfo represents the topology of the stream. Siblings
|
|
|
|
* can be iterated over with gst_discoverer_stream_info_get_next() and
|
|
|
|
* gst_discoverer_stream_info_get_previous(). Children (sub-streams) of a
|
|
|
|
* stream can be accessed using the #GstDiscovererContainerInfo API.
|
|
|
|
*
|
|
|
|
* As a simple example, if you run #GstDiscoverer on an AVI file with one audio
|
|
|
|
* and one video stream, you will get a #GstDiscovererContainerInfo
|
2012-05-21 08:08:33 +00:00
|
|
|
* corresponding to the AVI container, which in turn will have a
|
2011-01-05 10:23:09 +00:00
|
|
|
* #GstDiscovererAudioInfo sub-stream and a #GstDiscovererVideoInfo sub-stream
|
|
|
|
* for the audio and video streams respectively.
|
2010-09-20 09:22:32 +00:00
|
|
|
*/
|
2011-02-23 13:12:22 +00:00
|
|
|
#define gst_discoverer_stream_info_ref(info) ((GstDiscovererStreamInfo*) g_object_ref((GObject*) info))
|
|
|
|
#define gst_discoverer_stream_info_unref(info) (g_object_unref((GObject*) info))
|
2010-09-20 09:22:32 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GstDiscovererStreamInfo* gst_discoverer_stream_info_get_previous(GstDiscovererStreamInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GstDiscovererStreamInfo* gst_discoverer_stream_info_get_next(GstDiscovererStreamInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GstCaps* gst_discoverer_stream_info_get_caps(GstDiscovererStreamInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
const GstTagList* gst_discoverer_stream_info_get_tags(GstDiscovererStreamInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2012-05-20 23:01:17 +00:00
|
|
|
const GstToc* gst_discoverer_stream_info_get_toc(GstDiscovererStreamInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2012-11-20 13:56:45 +00:00
|
|
|
const gchar* gst_discoverer_stream_info_get_stream_id(GstDiscovererStreamInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-04-28 23:18:58 +00:00
|
|
|
GST_PBUTILS_DEPRECATED_FOR(gst_discoverer_info_get_missing_elements_installer_details)
|
2010-09-20 09:22:32 +00:00
|
|
|
const GstStructure* gst_discoverer_stream_info_get_misc(GstDiscovererStreamInfo* info);
|
2018-04-28 23:18:58 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
const gchar * gst_discoverer_stream_info_get_stream_type_nick(GstDiscovererStreamInfo* info);
|
|
|
|
|
2021-02-09 22:56:49 +00:00
|
|
|
GST_PBUTILS_API
|
|
|
|
gint gst_discoverer_stream_info_get_stream_number(GstDiscovererStreamInfo *info);
|
|
|
|
|
2010-09-20 09:22:32 +00:00
|
|
|
/**
|
|
|
|
* GstDiscovererContainerInfo:
|
|
|
|
*
|
|
|
|
* #GstDiscovererStreamInfo specific to container streams.
|
|
|
|
*/
|
|
|
|
#define GST_TYPE_DISCOVERER_CONTAINER_INFO \
|
|
|
|
(gst_discoverer_container_info_get_type ())
|
|
|
|
#define GST_DISCOVERER_CONTAINER_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DISCOVERER_CONTAINER_INFO, GstDiscovererContainerInfo))
|
|
|
|
#define GST_IS_DISCOVERER_CONTAINER_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_CONTAINER_INFO))
|
|
|
|
typedef struct _GstDiscovererContainerInfo GstDiscovererContainerInfo;
|
2011-02-23 13:12:22 +00:00
|
|
|
typedef GObjectClass GstDiscovererContainerInfoClass;
|
2010-09-20 09:22:32 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GType gst_discoverer_container_info_get_type (void);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-11-08 03:56:27 +00:00
|
|
|
GList *gst_discoverer_container_info_get_streams(GstDiscovererContainerInfo *info);
|
2010-09-20 09:22:32 +00:00
|
|
|
|
2021-10-10 16:07:33 +00:00
|
|
|
GST_PBUTILS_API
|
|
|
|
const GstTagList* gst_discoverer_container_info_get_tags(const GstDiscovererContainerInfo *info);
|
|
|
|
|
2010-09-20 09:22:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GstDiscovererAudioInfo:
|
|
|
|
*
|
|
|
|
* #GstDiscovererStreamInfo specific to audio streams.
|
|
|
|
*/
|
|
|
|
#define GST_TYPE_DISCOVERER_AUDIO_INFO \
|
|
|
|
(gst_discoverer_audio_info_get_type ())
|
|
|
|
#define GST_DISCOVERER_AUDIO_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DISCOVERER_AUDIO_INFO, GstDiscovererAudioInfo))
|
|
|
|
#define GST_IS_DISCOVERER_AUDIO_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_AUDIO_INFO))
|
|
|
|
typedef struct _GstDiscovererAudioInfo GstDiscovererAudioInfo;
|
2011-02-23 13:12:22 +00:00
|
|
|
typedef GObjectClass GstDiscovererAudioInfoClass;
|
2010-09-20 09:22:32 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GType gst_discoverer_audio_info_get_type (void);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_audio_info_get_channels(const GstDiscovererAudioInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2017-06-12 23:40:44 +00:00
|
|
|
guint64 gst_discoverer_audio_info_get_channel_mask(const GstDiscovererAudioInfo* info);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_audio_info_get_sample_rate(const GstDiscovererAudioInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_audio_info_get_depth(const GstDiscovererAudioInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_audio_info_get_bitrate(const GstDiscovererAudioInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_audio_info_get_max_bitrate(const GstDiscovererAudioInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2011-08-24 15:29:08 +00:00
|
|
|
const gchar * gst_discoverer_audio_info_get_language(const GstDiscovererAudioInfo* info);
|
2010-09-20 09:22:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GstDiscovererVideoInfo:
|
|
|
|
*
|
2011-01-05 10:23:09 +00:00
|
|
|
* #GstDiscovererStreamInfo specific to video streams (this includes images).
|
2010-09-20 09:22:32 +00:00
|
|
|
*/
|
|
|
|
#define GST_TYPE_DISCOVERER_VIDEO_INFO \
|
|
|
|
(gst_discoverer_video_info_get_type ())
|
|
|
|
#define GST_DISCOVERER_VIDEO_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DISCOVERER_VIDEO_INFO, GstDiscovererVideoInfo))
|
|
|
|
#define GST_IS_DISCOVERER_VIDEO_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_VIDEO_INFO))
|
|
|
|
typedef struct _GstDiscovererVideoInfo GstDiscovererVideoInfo;
|
2011-02-23 13:12:22 +00:00
|
|
|
typedef GObjectClass GstDiscovererVideoInfoClass;
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GType gst_discoverer_video_info_get_type (void);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_width(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_height(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_depth(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_framerate_num(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_framerate_denom(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_par_num(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_par_denom(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 15:51:08 +00:00
|
|
|
gboolean gst_discoverer_video_info_is_interlaced(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_bitrate(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
guint gst_discoverer_video_info_get_max_bitrate(const GstDiscovererVideoInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 15:51:08 +00:00
|
|
|
gboolean gst_discoverer_video_info_is_image(const GstDiscovererVideoInfo* info);
|
2010-09-20 09:22:32 +00:00
|
|
|
|
2011-08-24 14:04:50 +00:00
|
|
|
/**
|
|
|
|
* GstDiscovererSubtitleInfo:
|
|
|
|
*
|
|
|
|
* #GstDiscovererStreamInfo specific to subtitle streams (this includes text and
|
|
|
|
* image based ones).
|
|
|
|
*/
|
|
|
|
#define GST_TYPE_DISCOVERER_SUBTITLE_INFO \
|
|
|
|
(gst_discoverer_subtitle_info_get_type ())
|
|
|
|
#define GST_DISCOVERER_SUBTITLE_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DISCOVERER_SUBTITLE_INFO, GstDiscovererSubtitleInfo))
|
|
|
|
#define GST_IS_DISCOVERER_SUBTITLE_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_SUBTITLE_INFO))
|
|
|
|
typedef struct _GstDiscovererSubtitleInfo GstDiscovererSubtitleInfo;
|
2011-08-29 09:38:01 +00:00
|
|
|
typedef GObjectClass GstDiscovererSubtitleInfoClass;
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2011-08-24 14:04:50 +00:00
|
|
|
GType gst_discoverer_subtitle_info_get_type (void);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2011-08-24 14:04:50 +00:00
|
|
|
const gchar * gst_discoverer_subtitle_info_get_language(const GstDiscovererSubtitleInfo* info);
|
|
|
|
|
2010-09-20 09:22:32 +00:00
|
|
|
/**
|
|
|
|
* GstDiscovererResult:
|
|
|
|
* @GST_DISCOVERER_OK: The discovery was successful
|
|
|
|
* @GST_DISCOVERER_URI_INVALID: the URI is invalid
|
|
|
|
* @GST_DISCOVERER_ERROR: an error happened and the GError is set
|
|
|
|
* @GST_DISCOVERER_TIMEOUT: the discovery timed-out
|
|
|
|
* @GST_DISCOVERER_BUSY: the discoverer was already discovering a file
|
|
|
|
* @GST_DISCOVERER_MISSING_PLUGINS: Some plugins are missing for full discovery
|
|
|
|
*
|
|
|
|
* Result values for the discovery process.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_DISCOVERER_OK = 0,
|
|
|
|
GST_DISCOVERER_URI_INVALID = 1,
|
|
|
|
GST_DISCOVERER_ERROR = 2,
|
|
|
|
GST_DISCOVERER_TIMEOUT = 3,
|
|
|
|
GST_DISCOVERER_BUSY = 4,
|
|
|
|
GST_DISCOVERER_MISSING_PLUGINS = 5
|
|
|
|
} GstDiscovererResult;
|
|
|
|
|
2015-05-03 01:18:28 +00:00
|
|
|
/**
|
|
|
|
* GstDiscovererSerializeFlags:
|
|
|
|
* @GST_DISCOVERER_SERIALIZE_BASIC: Serialize only basic information, excluding
|
|
|
|
* caps, tags and miscellaneous information
|
|
|
|
* @GST_DISCOVERER_SERIALIZE_CAPS: Serialize the caps for each stream
|
|
|
|
* @GST_DISCOVERER_SERIALIZE_TAGS: Serialize the tags for each stream
|
|
|
|
* @GST_DISCOVERER_SERIALIZE_MISC: Serialize miscellaneous information for each stream
|
|
|
|
* @GST_DISCOVERER_SERIALIZE_ALL: Serialize all the available info, including
|
|
|
|
* caps, tags and miscellaneous information
|
|
|
|
*
|
|
|
|
* You can use these flags to control what is serialized by
|
|
|
|
* gst_discoverer_info_to_variant()
|
|
|
|
*
|
2015-05-19 16:53:09 +00:00
|
|
|
* Since: 1.6
|
2015-05-03 01:18:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GST_DISCOVERER_SERIALIZE_BASIC = 0,
|
|
|
|
GST_DISCOVERER_SERIALIZE_CAPS = 1 << 0,
|
|
|
|
GST_DISCOVERER_SERIALIZE_TAGS = 1 << 1,
|
|
|
|
GST_DISCOVERER_SERIALIZE_MISC = 1 << 2,
|
|
|
|
GST_DISCOVERER_SERIALIZE_ALL = GST_DISCOVERER_SERIALIZE_CAPS | GST_DISCOVERER_SERIALIZE_TAGS | GST_DISCOVERER_SERIALIZE_MISC
|
|
|
|
} GstDiscovererSerializeFlags;
|
2010-09-20 09:22:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GstDiscovererInfo:
|
|
|
|
*
|
|
|
|
* Structure containing the information of a URI analyzed by #GstDiscoverer.
|
|
|
|
*/
|
|
|
|
typedef struct _GstDiscovererInfo GstDiscovererInfo;
|
|
|
|
|
|
|
|
#define GST_TYPE_DISCOVERER_INFO \
|
|
|
|
(gst_discoverer_info_get_type ())
|
|
|
|
#define GST_DISCOVERER_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DISCOVERER_INFO, GstDiscovererInfo))
|
|
|
|
#define GST_IS_DISCOVERER_INFO(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_INFO))
|
2011-02-23 13:12:22 +00:00
|
|
|
typedef GObjectClass GstDiscovererInfoClass;
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GType gst_discoverer_info_get_type (void);
|
|
|
|
|
2011-02-23 13:12:22 +00:00
|
|
|
#define gst_discoverer_info_unref(info) (g_object_unref((GObject*)info))
|
2014-11-25 08:38:34 +00:00
|
|
|
#define gst_discoverer_info_ref(info) (g_object_ref((GObject*)info))
|
2010-09-20 09:22:32 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GstDiscovererInfo* gst_discoverer_info_copy (GstDiscovererInfo * ptr);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
const gchar* gst_discoverer_info_get_uri(const GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
GstDiscovererResult gst_discoverer_info_get_result(const GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GstDiscovererStreamInfo* gst_discoverer_info_get_stream_info(GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GList* gst_discoverer_info_get_stream_list(GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-10-28 14:38:29 +00:00
|
|
|
GstClockTime gst_discoverer_info_get_duration(const GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-12-13 14:20:23 +00:00
|
|
|
gboolean gst_discoverer_info_get_seekable(const GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2017-06-13 00:25:31 +00:00
|
|
|
gboolean gst_discoverer_info_get_live(const GstDiscovererInfo* info);
|
|
|
|
|
2018-04-28 23:18:58 +00:00
|
|
|
GST_PBUTILS_DEPRECATED_FOR(gst_discoverer_info_get_missing_elements_installer_details)
|
2010-10-28 14:38:29 +00:00
|
|
|
const GstStructure* gst_discoverer_info_get_misc(const GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2021-10-10 16:07:33 +00:00
|
|
|
GST_PBUTILS_DEPRECATED
|
|
|
|
const GstTagList* gst_discoverer_info_get_tags(const GstDiscovererInfo* info);
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2012-05-20 23:01:17 +00:00
|
|
|
const GstToc* gst_discoverer_info_get_toc(const GstDiscovererInfo* info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2014-01-14 14:39:55 +00:00
|
|
|
const gchar** gst_discoverer_info_get_missing_elements_installer_details(const GstDiscovererInfo* info);
|
2010-09-20 09:22:32 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GList * gst_discoverer_info_get_streams (GstDiscovererInfo *info,
|
|
|
|
GType streamtype);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GList * gst_discoverer_info_get_audio_streams (GstDiscovererInfo *info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GList * gst_discoverer_info_get_video_streams (GstDiscovererInfo *info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2011-08-24 14:04:50 +00:00
|
|
|
GList * gst_discoverer_info_get_subtitle_streams (GstDiscovererInfo *info);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GList * gst_discoverer_info_get_container_streams (GstDiscovererInfo *info);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2015-05-03 01:18:28 +00:00
|
|
|
GVariant * gst_discoverer_info_to_variant (GstDiscovererInfo *info,
|
|
|
|
GstDiscovererSerializeFlags flags);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2015-05-03 01:18:28 +00:00
|
|
|
GstDiscovererInfo * gst_discoverer_info_from_variant (GVariant *variant);
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
void gst_discoverer_stream_info_list_free (GList *infos);
|
|
|
|
|
|
|
|
#define GST_TYPE_DISCOVERER \
|
|
|
|
(gst_discoverer_get_type())
|
|
|
|
#define GST_DISCOVERER(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DISCOVERER,GstDiscoverer))
|
|
|
|
#define GST_DISCOVERER_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DISCOVERER,GstDiscovererClass))
|
|
|
|
#define GST_IS_DISCOVERER(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER))
|
|
|
|
#define GST_IS_DISCOVERER_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DISCOVERER))
|
|
|
|
|
|
|
|
typedef struct _GstDiscoverer GstDiscoverer;
|
|
|
|
typedef struct _GstDiscovererClass GstDiscovererClass;
|
|
|
|
typedef struct _GstDiscovererPrivate GstDiscovererPrivate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstDiscoverer:
|
|
|
|
*
|
|
|
|
* The #GstDiscoverer structure.
|
|
|
|
**/
|
|
|
|
struct _GstDiscoverer {
|
|
|
|
GObject parent;
|
|
|
|
|
2012-07-04 22:38:38 +00:00
|
|
|
/*< private >*/
|
2010-09-20 09:22:32 +00:00
|
|
|
GstDiscovererPrivate *priv;
|
|
|
|
|
|
|
|
gpointer _reserved[GST_PADDING];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstDiscovererClass {
|
|
|
|
GObjectClass parentclass;
|
|
|
|
|
2011-09-19 12:16:19 +00:00
|
|
|
/* signals */
|
2010-09-20 09:22:32 +00:00
|
|
|
void (*finished) (GstDiscoverer *discoverer);
|
|
|
|
void (*starting) (GstDiscoverer *discoverer);
|
|
|
|
void (*discovered) (GstDiscoverer *discoverer,
|
|
|
|
GstDiscovererInfo *info,
|
|
|
|
const GError *err);
|
2012-08-06 11:23:51 +00:00
|
|
|
void (*source_setup) (GstDiscoverer *discoverer,
|
|
|
|
GstElement *source);
|
2010-09-20 09:22:32 +00:00
|
|
|
|
|
|
|
gpointer _reserved[GST_PADDING];
|
|
|
|
};
|
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GType gst_discoverer_get_type (void);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GstDiscoverer *gst_discoverer_new (GstClockTime timeout, GError **err);
|
|
|
|
|
|
|
|
/* Asynchronous API */
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
void gst_discoverer_start (GstDiscoverer *discoverer);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
void gst_discoverer_stop (GstDiscoverer *discoverer);
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
gboolean gst_discoverer_discover_uri_async (GstDiscoverer *discoverer,
|
|
|
|
const gchar *uri);
|
|
|
|
|
|
|
|
/* Synchronous API */
|
2017-05-15 23:55:25 +00:00
|
|
|
|
2018-03-13 11:08:34 +00:00
|
|
|
GST_PBUTILS_API
|
2010-09-20 09:22:32 +00:00
|
|
|
GstDiscovererInfo *
|
|
|
|
gst_discoverer_discover_uri (GstDiscoverer * discoverer,
|
|
|
|
const gchar * uri,
|
|
|
|
GError ** err);
|
|
|
|
|
2015-11-10 17:54:23 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscoverer, gst_object_unref)
|
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererAudioInfo, gst_object_unref)
|
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererContainerInfo, gst_object_unref)
|
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererInfo, gst_object_unref)
|
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererStreamInfo, gst_object_unref)
|
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererSubtitleInfo, gst_object_unref)
|
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererVideoInfo, gst_object_unref)
|
|
|
|
|
2010-09-20 09:22:32 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* _GST_DISCOVERER_H */
|