diff options
author | Julien Moutte <julien@moutte.net> | 2007-07-19 15:05:30 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2007-07-19 15:05:30 +0000 |
commit | faea34bf985e95c4356e96a88737273baa6ad94b (patch) | |
tree | 694f0e6f98c0868550bf0c9aa08c48ef59d46326 /gst/flv/gstflvparse.h | |
parent | 6cbacb8a1497c21208edd0507986c2e263d17bfc (diff) | |
download | gst-plugins-bad-faea34bf985e95c4356e96a88737273baa6ad94b.tar.gz gst-plugins-bad-faea34bf985e95c4356e96a88737273baa6ad94b.tar.bz2 gst-plugins-bad-faea34bf985e95c4356e96a88737273baa6ad94b.zip |
Adds a first draft of an FLV demuxer.
Original commit message from CVS:
2007-07-19 Julien MOUTTE <julien@moutte.net>
* configure.ac:
* gst/flv/Makefile.am:
* gst/flv/gstflvdemux.c: (gst_flv_demux_flush),
(gst_flv_demux_cleanup), (gst_flv_demux_chain),
(gst_flv_demux_pull_tag), (gst_flv_demux_pull_header),
(gst_flv_demux_seek_to_prev_keyframe), (gst_flv_demux_loop),
(gst_flv_demux_sink_activate),
(gst_flv_demux_sink_activate_push),
(gst_flv_demux_sink_activate_pull), (gst_flv_demux_sink_event),
(gst_flv_demux_change_state), (gst_flv_demux_dispose),
(gst_flv_demux_base_init), (gst_flv_demux_class_init),
(gst_flv_demux_init), (plugin_init):
* gst/flv/gstflvdemux.h:
* gst/flv/gstflvparse.c: (FLV_GET_BEUI24), (FLV_GET_STRING),
(gst_flv_demux_query_types), (gst_flv_demux_query),
(gst_flv_parse_metadata_item), (gst_flv_parse_tag_script),
(gst_flv_parse_tag_audio), (gst_flv_parse_tag_video),
(gst_flv_parse_tag_type), (gst_flv_parse_header):
* gst/flv/gstflvparse.h: Adds a first draft of an FLV demuxer.
It does not do seeking yet, it supports pull and push mode so
YES
you can use it to play youtube videos directly from an HTTP uri.
Not so much testing done yet but it parses metadata, reply to
duration queries, etc...
Diffstat (limited to 'gst/flv/gstflvparse.h')
-rw-r--r-- | gst/flv/gstflvparse.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gst/flv/gstflvparse.h b/gst/flv/gstflvparse.h new file mode 100644 index 00000000..027aaeda --- /dev/null +++ b/gst/flv/gstflvparse.h @@ -0,0 +1,44 @@ +/* GStreamer + * Copyright (C) <2007> Julien Moutte <julien@moutte.net> + * + * 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 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __FLV_PARSE_H__ +#define __FLV_PARSE_H__ + +#include "gstflvdemux.h" + +G_BEGIN_DECLS + +GstFlowReturn gst_flv_parse_tag_script (GstFLVDemux * demux, + const guint8 * data, size_t data_size); + +GstFlowReturn gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +GstFlowReturn gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +GstFlowReturn gst_flv_parse_tag_type (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +GstFlowReturn gst_flv_parse_header (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +G_END_DECLS + +#endif /* __FLV_PARSE_H__ */ |