Initialize Tizen 2.3
[framework/multimedia/gst-plugins-base0.10.git] / mobile / gst-libs / gst / riff / riff-read.h
1 /* GStreamer RIFF I/O
2  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  *
4  * riff-read.h: function declarations for parsing a RIFF file
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 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; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GST_RIFF_READ_H__
23 #define __GST_RIFF_READ_H__
24
25 #include <glib.h>
26 #include <gst/gst.h>
27
28 #include "riff-ids.h"
29
30 G_BEGIN_DECLS
31
32 /*
33  * Operate using pull_range().
34  */
35
36 GstFlowReturn gst_riff_read_chunk   (GstElement * element,
37                                      GstPad     * pad,
38                                      guint64    * offset,
39                                      guint32    * tag,
40                                      GstBuffer ** chunk_data);
41
42 /*
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
46  * by the function.
47  */
48
49 gboolean gst_riff_parse_chunk       (GstElement * element,
50                                      GstBuffer  * buf,
51                                      guint      * offset,
52                                      guint32    * fourcc,
53                                      GstBuffer ** chunk_data);
54
55 gboolean gst_riff_parse_file_header (GstElement * element,
56                                      GstBuffer  * buf,
57                                      guint32    * doctype);
58
59 gboolean gst_riff_parse_strh        (GstElement     * element,
60                                      GstBuffer      * buf,
61                                      gst_riff_strh ** strh);
62
63 gboolean gst_riff_parse_strf_vids   (GstElement          * element,
64                                      GstBuffer           * buf,
65                                      gst_riff_strf_vids ** strf,
66                                      GstBuffer          ** data);
67 gboolean gst_riff_parse_strf_auds   (GstElement          * element,
68                                      GstBuffer           * buf,
69                                      gst_riff_strf_auds ** strf,
70                                      GstBuffer          ** data);
71 gboolean gst_riff_parse_strf_iavs   (GstElement          * element,
72                                      GstBuffer           * buf,
73                                      gst_riff_strf_iavs ** strf,
74                                      GstBuffer          ** data);
75
76 void gst_riff_parse_info            (GstElement  * element,
77                                      GstBuffer   * buf,
78                                      GstTagList ** taglist);
79
80 /*
81  * Init.
82  */
83 void gst_riff_init                  (void);
84
85 G_END_DECLS
86
87 #endif /* __GST_RIFF_READ_H__ */