Debian Codegraph @

ext/adaptivedemux2/dash/gstmpdadaptationsetnode.h

raw
1 /* GStreamer
2 *
3 * Copyright (C) 2019 Collabora Ltd.
4 * Author: Stéphane Cerveau <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library (COPYING); if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 */
21 #ifndef __GSTMPDADAPTATIONSETNODE_H__
22 #define __GSTMPDADAPTATIONSETNODE_H__
23
24 #include <gst/gst.h>
25 #include "gstmpdhelper.h"
26 #include "gstmpdrepresentationbasenode.h"
27 #include "gstmpdsegmentlistnode.h"
28 #include "gstmpdsegmenttemplatenode.h"
29
30 G_BEGIN_DECLS
31
32 #define GST_TYPE_MPD_ADAPTATION_SET_NODE gst_mpd_adaptation_set_node_get_type ()
33 G_DECLARE_FINAL_TYPE (GstMPDAdaptationSetNode2, gst_mpd_adaptation_set_node, GST, MPD_ADAPTATION_SET_NODE, GstMPDRepresentationBaseNode)
34
35 typedef GstMPDAdaptationSetNode2 GstMPDAdaptationSetNode;
36 typedef GstMPDAdaptationSetNode2Class GstMPDAdaptationSetNodeClass;
37
38 struct _GstMPDAdaptationSetNode2
39 {
40 GstMPDRepresentationBaseNode parent_instance;
41 guint id;
42 guint group;
43 gchar *lang; /* LangVectorType RFC 5646 */
44 gchar *contentType;
45 GstXMLRatio *par;
46 guint minBandwidth;
47 guint maxBandwidth;
48 guint minWidth;
49 guint maxWidth;
50 guint minHeight;
51 guint maxHeight;
52 GstXMLConditionalUintType *segmentAlignment;
53 GstXMLConditionalUintType *subsegmentAlignment;
54 GstMPDSAPType subsegmentStartsWithSAP;
55 gboolean bitstreamSwitching;
56 /* list of Accessibility DescriptorType nodes */
57 GList *Accessibility;
58 /* list of Role DescriptorType nodes */
59 GList *Role;
60 /* list of Rating DescriptorType nodes */
61 GList *Rating;
62 /* list of Viewpoint DescriptorType nodes */
63 GList *Viewpoint;
64 /* SegmentBase node */
65 GstMPDSegmentBaseNode *SegmentBase;
66 /* SegmentList node */
67 GstMPDSegmentListNode *SegmentList;
68 /* SegmentTemplate node */
69 GstMPDSegmentTemplateNode *SegmentTemplate;
70 /* list of BaseURL nodes */
71 GList *BaseURLs;
72 /* list of Representation nodes */
73 GList *Representations;
74 /* list of ContentComponent nodes */
75 GList *ContentComponents;
76
77 gchar *xlink_href;
78 GstMPDXLinkActuate actuate;
79 };
80
81 GstMPDAdaptationSetNode * gst_mpd_adaptation_set_node_new (void);
82 void gst_mpd_adaptation_set_node_free (GstMPDAdaptationSetNode* self);
83
84 G_END_DECLS
85
86 #endif /* __GSTMPDADAPTATIONSETNODE_H__ */