discoverer: Add APIs to simply get installer details for missing plugins
[platform/upstream/gstreamer.git] / gst-libs / gst / pbutils / pbutils-private.h
1 /* GStreamer
2  * Copyright (C) 2010 Edward Hervey <edward.hervey@collabora.co.uk>
3  *               2010 Nokia Corporation
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 St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 struct _GstDiscovererStreamInfo {
22   GObject                parent;
23
24   GstDiscovererStreamInfo *previous;  /* NULL for starting points */
25   GstDiscovererStreamInfo *next; /* NULL for containers */
26
27   GstCaps               *caps;
28   GstTagList            *tags;
29   GstToc                *toc;
30   gchar                 *stream_id;
31   GstStructure          *misc;
32
33   gpointer _gst_reserved[GST_PADDING];
34 };
35
36 struct _GstDiscovererContainerInfo {
37   GstDiscovererStreamInfo parent;
38
39   GList               *streams;
40
41   gpointer _gst_reserved[GST_PADDING];
42 };
43
44 struct _GstDiscovererAudioInfo {
45   GstDiscovererStreamInfo parent;
46
47   guint channels;
48   guint sample_rate;
49   guint depth;
50
51   guint bitrate;
52   guint max_bitrate;
53
54   gchar *language;
55
56   gpointer _gst_reserved[GST_PADDING];
57 };
58
59 struct _GstDiscovererVideoInfo {
60   GstDiscovererStreamInfo parent;
61
62   guint width;
63   guint height;
64   guint depth;
65   guint framerate_num;
66   guint framerate_denom;
67   guint par_num;
68   guint par_denom;
69   gboolean interlaced;
70
71   guint bitrate;
72   guint max_bitrate;
73
74   gboolean is_image;
75
76   gpointer _gst_reserved[GST_PADDING];
77 };
78
79 struct _GstDiscovererSubtitleInfo {
80   GstDiscovererStreamInfo parent;
81
82   gchar *language;
83
84   gpointer _gst_reserved[GST_PADDING];
85 };
86
87 struct _GstDiscovererInfo {
88   GObject parent;
89
90   gchar *uri;
91   GstDiscovererResult result;
92
93   /* Sub-streams */
94   GstDiscovererStreamInfo *stream_info;
95   GList *stream_list;
96
97   /* Stream global information */
98   GstClockTime duration;
99   GstStructure *misc;
100   GstTagList *tags;
101   GstToc *toc;
102   gboolean seekable;
103   GPtrArray *missing_elements_details;
104
105   gpointer _gst_reserved[GST_PADDING];
106 };
107
108 /* missing-plugins.c */
109
110 GstCaps *copy_and_clean_caps (const GstCaps * caps);