2003-12-07 22:50:30 +00:00
|
|
|
/* GStreamer RIFF I/O
|
|
|
|
* Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
|
|
|
*
|
|
|
|
* riff-read.h: function declarations for parsing a RIFF file
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2003-12-07 22:50:30 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_RIFF_READ_H__
|
|
|
|
#define __GST_RIFF_READ_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2005-03-31 09:43:49 +00:00
|
|
|
#include "riff-ids.h"
|
2004-03-15 16:32:55 +00:00
|
|
|
|
2005-03-31 09:43:49 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-03-15 16:32:55 +00:00
|
|
|
|
2005-03-31 09:43:49 +00:00
|
|
|
/*
|
|
|
|
* Operate using pull_range().
|
|
|
|
*/
|
2003-12-07 22:50:30 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-03-31 09:43:49 +00:00
|
|
|
GstFlowReturn gst_riff_read_chunk (GstElement * element,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstPad * pad,
|
|
|
|
guint64 * offset,
|
2006-06-16 10:02:25 +00:00
|
|
|
guint32 * tag,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstBuffer ** chunk_data);
|
2003-12-07 22:50:30 +00:00
|
|
|
|
2005-03-31 09:43:49 +00:00
|
|
|
/*
|
|
|
|
* These functions operate on provided data (the caller is
|
|
|
|
* supposed to strip the chunk headers). The buffer is
|
|
|
|
* provided by the caller, the strf/strh/data are filled in
|
|
|
|
* by the function.
|
|
|
|
*/
|
2003-12-07 22:50:30 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-12-06 19:42:02 +00:00
|
|
|
gboolean gst_riff_parse_chunk (GstElement * element,
|
|
|
|
GstBuffer * buf,
|
|
|
|
guint * offset,
|
|
|
|
guint32 * fourcc,
|
|
|
|
GstBuffer ** chunk_data);
|
2003-12-07 22:50:30 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-03-31 09:43:49 +00:00
|
|
|
gboolean gst_riff_parse_file_header (GstElement * element,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstBuffer * buf,
|
|
|
|
guint32 * doctype);
|
2003-12-07 22:50:30 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-12-06 19:42:02 +00:00
|
|
|
gboolean gst_riff_parse_strh (GstElement * element,
|
|
|
|
GstBuffer * buf,
|
|
|
|
gst_riff_strh ** strh);
|
2003-12-07 22:50:30 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-03-31 09:43:49 +00:00
|
|
|
gboolean gst_riff_parse_strf_vids (GstElement * element,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstBuffer * buf,
|
|
|
|
gst_riff_strf_vids ** strf,
|
|
|
|
GstBuffer ** data);
|
2017-05-15 23:57:36 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-03-31 09:43:49 +00:00
|
|
|
gboolean gst_riff_parse_strf_auds (GstElement * element,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstBuffer * buf,
|
|
|
|
gst_riff_strf_auds ** strf,
|
|
|
|
GstBuffer ** data);
|
2017-05-15 23:57:36 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-03-31 09:43:49 +00:00
|
|
|
gboolean gst_riff_parse_strf_iavs (GstElement * element,
|
2005-12-06 19:42:02 +00:00
|
|
|
GstBuffer * buf,
|
|
|
|
gst_riff_strf_iavs ** strf,
|
|
|
|
GstBuffer ** data);
|
2003-12-07 22:50:30 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-12-06 19:42:02 +00:00
|
|
|
void gst_riff_parse_info (GstElement * element,
|
|
|
|
GstBuffer * buf,
|
|
|
|
GstTagList ** taglist);
|
2005-06-30 08:59:30 +00:00
|
|
|
/*
|
|
|
|
* Init.
|
|
|
|
*/
|
2017-05-15 23:57:36 +00:00
|
|
|
|
2018-03-13 11:13:08 +00:00
|
|
|
GST_RIFF_API
|
2005-12-06 19:42:02 +00:00
|
|
|
void gst_riff_init (void);
|
2005-06-30 08:59:30 +00:00
|
|
|
|
2003-12-07 22:50:30 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 16:32:55 +00:00
|
|
|
|
2003-12-07 22:50:30 +00:00
|
|
|
#endif /* __GST_RIFF_READ_H__ */
|