summaryrefslogtreecommitdiffstats
path: root/gst/id3demux/gstid3demux.h
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2005-12-18 15:14:44 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2005-12-18 15:14:44 +0000
commita05fc627837838ff157ab4b702674407e627c498 (patch)
tree4c4761c9fdce1b4a1eb17d24b04c53761885769e /gst/id3demux/gstid3demux.h
parent3ba78f01938cff141b93018d7f7523079a256873 (diff)
configure.ac: Check for optional dependency on zlib for id3demux
Original commit message from CVS: * configure.ac: Check for optional dependency on zlib for id3demux * gst/id3demux/Makefile.am: * gst/id3demux/gstid3demux.c: (gst_gst_id3demux_get_type), (gst_id3demux_base_init), (gst_id3demux_class_init), (gst_id3demux_reset), (gst_id3demux_init), (gst_id3demux_dispose), (gst_id3demux_add_srcpad), (gst_id3demux_remove_srcpad), (gst_id3demux_trim_buffer), (gst_id3demux_chain), (gst_id3demux_set_property), (gst_id3demux_get_property), (id3demux_get_upstream_size), (gst_id3demux_srcpad_event), (gst_id3demux_read_id3v1), (gst_id3demux_read_id3v2), (gst_id3demux_sink_activate), (gst_id3demux_src_activate_pull), (gst_id3demux_src_checkgetrange), (gst_id3demux_read_range), (gst_id3demux_src_getrange), (gst_id3demux_change_state), (gst_id3demux_pad_query), (gst_id3demux_get_query_types), (simple_find_peek), (simple_find_suggest), (gst_id3demux_do_typefind), (gst_id3demux_send_tag_event), (plugin_init): * gst/id3demux/gstid3demux.h: * gst/id3demux/id3tags.c: (read_synch_uint), (id3demux_read_id3v1_tag), (id3demux_read_id3v2_tag), (id3demux_id3v2_frame_hdr_size), (convert_fid_to_v240), (id3demux_id3v2_frames_to_tag_list): * gst/id3demux/id3tags.h: * gst/id3demux/id3v2.4.0-frames.txt: * gst/id3demux/id3v2.4.0-structure.txt: * gst/id3demux/id3v2frames.c: (id3demux_id3v2_parse_frame), (parse_comment_frame), (parse_text_identification_frame), (id3v2_tag_to_taglist), (parse_split_strings): All new LGPL id3 demuxer. Can use zlib for compressed frames, otherwise it discards them. Works on my test files. * gst/wavparse/gstwavparse.c: (gst_wavparse_loop): Don't send EOS to a non-existing srcpad The debug category can be static
Diffstat (limited to 'gst/id3demux/gstid3demux.h')
-rw-r--r--gst/id3demux/gstid3demux.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/gst/id3demux/gstid3demux.h b/gst/id3demux/gstid3demux.h
new file mode 100644
index 00000000..46ae6f1e
--- /dev/null
+++ b/gst/id3demux/gstid3demux.h
@@ -0,0 +1,79 @@
+/* Copyright 2005 Jan Schmidt <thaytan@mad.scientist.com>
+ * Copyright (C) 2003-2004 Benjamin Otte <otte@gnome.org>
+ *
+ * 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 __GST_ID3DEMUX_H__
+#define __GST_ID3DEMUX_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_ID3DEMUX \
+ (gst_gst_id3demux_get_type())
+#define GST_ID3DEMUX(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ID3DEMUX,GstID3Demux))
+#define GST_ID3DEMUX_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ID3DEMUX,GstID3Demux))
+#define GST_IS_ID3DEMUX(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ID3DEMUX))
+#define GST_IS_ID3DEMUX_CLASS(obj) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ID3DEMUX))
+
+typedef struct _GstID3Demux GstID3Demux;
+typedef struct _GstID3DemuxClass GstID3DemuxClass;
+
+typedef enum {
+ GST_ID3DEMUX_READID3V2,
+ GST_ID3DEMUX_TYPEFINDING,
+ GST_ID3DEMUX_STREAMING
+} GstID3DemuxState;
+
+struct _GstID3Demux
+{
+ GstElement element;
+
+ GstPad *sinkpad, *srcpad;
+
+ /* Number of bytes to remove from the start of file (ID3v2) */
+ guint strip_start;
+ /* Number of bytes to remove from the end of file (ID3v1) */
+ guint strip_end;
+
+ gint64 upstream_size;
+
+ GstID3DemuxState state;
+ GstBuffer *collect;
+ GstCaps *src_caps;
+
+ gboolean prefer_v1;
+ GstTagList *event_tags;
+ GstTagList *parsed_tags;
+ gboolean send_tag_event;
+};
+
+struct _GstID3DemuxClass
+{
+ GstElementClass parent_class;
+};
+
+GType gst_gst_id3demux_get_type (void);
+
+G_END_DECLS
+
+#endif /* __GST_ID3DEMUX_H__ */