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 <philn@igalia.com> 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 <gst/isoff/gstisoff.h> 31 32 G_BEGIN_DECLS 33 34 typedef enum _GstFragmentHeaderParserStatus 35 { 36 GST_MSS_FRAGMENT_HEADER_PARSER_INIT, 37 GST_MSS_FRAGMENT_HEADER_PARSER_FINISHED 38 } GstFragmentHeaderParserStatus; 39 40 typedef struct _GstMssFragmentParser 41 { 42 GstFragmentHeaderParserStatus status; 43 GstMoofBox *moof; 44 guint32 current_fourcc; 45 } GstMssFragmentParser; 46 47 void gst_mss_fragment_parser_init (GstMssFragmentParser * parser); 48 void gst_mss_fragment_parser_clear (GstMssFragmentParser * parser); 49 gboolean gst_mss_fragment_parser_add_buffer (GstMssFragmentParser * parser, GstBuffer * buf); 50 51 G_END_DECLS 52 53 #endif /* __GST_MSS_FRAGMENT_PARSER_H__ */ 54