Debian Codegraph @

ext/adaptivedemux2/mss/gstmssfragmentparser.h

raw
1 /*
2 * Microsoft Smooth-Streaming fragment parsing library
3 *
4 * gstmssfragmentparser.h
5 *
6 * Copyright (C) 2016 Igalia S.L
7 * Copyright (C) 2016 Metrological
8 * Author: Philippe Normand <[email protected]>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
19 *
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library (COPYING); if not, write to the
22 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 * Boston, MA 02111-1307, USA.
24 */
25
26 #ifndef __GST_MSS_FRAGMENT_PARSER_H__
27 #define __GST_MSS_FRAGMENT_PARSER_H__
28
29 #include <gst/gst.h>
30 #include "../gstisoff.h"
31 #include "gstmss-prelude.h"
32
33 G_BEGIN_DECLS
34
35 typedef enum _GstFragmentHeaderParserStatus
36 {
37 GST_MSS_FRAGMENT_HEADER_PARSER_INIT,
38 GST_MSS_FRAGMENT_HEADER_PARSER_FINISHED
39 } GstFragmentHeaderParserStatus;
40
41 typedef struct _GstMssFragmentParser
42 {
43 GstFragmentHeaderParserStatus status;
44 GstMoofBox *moof;
45 guint32 current_fourcc;
46 } GstMssFragmentParser;
47
48 void gst_mss_fragment_parser_init (GstMssFragmentParser * parser);
49 void gst_mss_fragment_parser_clear (GstMssFragmentParser * parser);
50 gboolean gst_mss_fragment_parser_add_buffer (GstMssFragmentParser * parser, GstBuffer * buf);
51
52 G_END_DECLS
53
54 #endif /* __GST_MSS_FRAGMENT_PARSER_H__ */