blob: a6ec7ee76ec7107f79dc7acd63b4d5165bec34d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/* GStreamer
*
* Copyright (C) 2015 Brijesh Singh <brijesh.ksingh@gmail.com>
*
* 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 St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "gstplay-media-info.h"
#ifndef __GST_PLAY_MEDIA_INFO_PRIVATE_H__
#define __GST_PLAY_MEDIA_INFO_PRIVATE_H__
struct _GstPlayStreamInfo
{
GObject parent;
gchar *codec;
GstCaps *caps;
gint stream_index;
GstTagList *tags;
gchar *stream_id;
};
struct _GstPlayStreamInfoClass
{
GObjectClass parent_class;
};
struct _GstPlaySubtitleInfo
{
GstPlayStreamInfo parent;
gchar *language;
};
struct _GstPlaySubtitleInfoClass
{
GstPlayStreamInfoClass parent_class;
};
struct _GstPlayAudioInfo
{
GstPlayStreamInfo parent;
gint channels;
gint sample_rate;
guint bitrate;
guint max_bitrate;
gchar *language;
};
struct _GstPlayAudioInfoClass
{
GstPlayStreamInfoClass parent_class;
};
struct _GstPlayVideoInfo
{
GstPlayStreamInfo parent;
gint width;
gint height;
gint framerate_num;
gint framerate_denom;
gint par_num;
gint par_denom;
guint bitrate;
guint max_bitrate;
};
struct _GstPlayVideoInfoClass
{
GstPlayStreamInfoClass parent_class;
};
struct _GstPlayMediaInfo
{
GObject parent;
gchar *uri;
gchar *title;
gchar *container;
gboolean seekable, is_live;
GstTagList *tags;
GstSample *image_sample;
GList *stream_list;
GList *audio_stream_list;
GList *video_stream_list;
GList *subtitle_stream_list;
GstClockTime duration;
};
struct _GstPlayMediaInfoClass
{
GObjectClass parent_class;
};
G_GNUC_INTERNAL GstPlayMediaInfo* gst_play_media_info_new
(const gchar *uri);
G_GNUC_INTERNAL GstPlayMediaInfo* gst_play_media_info_copy
(GstPlayMediaInfo *ref);
G_GNUC_INTERNAL GstPlayStreamInfo* gst_play_stream_info_new
(gint stream_index, GType type);
G_GNUC_INTERNAL GstPlayStreamInfo* gst_play_stream_info_copy
(GstPlayStreamInfo *ref);
#endif /* __GST_PLAY_MEDIA_INFO_PRIVATE_H__ */
|