2 * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
4 * riff-read.h: function declarations for parsing a RIFF file
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 of the License, or (at your option) any later version.
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.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GST_RIFF_READ_H__
23 #define __GST_RIFF_READ_H__
33 * Operate using pull_range().
36 GstFlowReturn gst_riff_read_chunk (GstElement * element,
40 GstBuffer ** chunk_data);
43 * These functions operate on provided data (the caller is
44 * supposed to strip the chunk headers). The buffer is
45 * provided by the caller, the strf/strh/data are filled in
49 gboolean gst_riff_parse_chunk (GstElement * element,
53 GstBuffer ** chunk_data);
55 gboolean gst_riff_parse_file_header (GstElement * element,
59 gboolean gst_riff_parse_strh (GstElement * element,
61 gst_riff_strh ** strh);
63 gboolean gst_riff_parse_strf_vids (GstElement * element,
65 gst_riff_strf_vids ** strf,
67 gboolean gst_riff_parse_strf_auds (GstElement * element,
69 gst_riff_strf_auds ** strf,
71 gboolean gst_riff_parse_strf_iavs (GstElement * element,
73 gst_riff_strf_iavs ** strf,
76 void gst_riff_parse_info (GstElement * element,
78 GstTagList ** taglist);
83 void gst_riff_init (void);
87 #endif /* __GST_RIFF_READ_H__ */