diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2010-01-05 14:48:49 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2010-01-05 17:46:31 +0100 |
commit | d517e1c0349d1a5f3be6805f5785b4afb6465c42 (patch) | |
tree | ad1c4e17b20e5ef91b3aa5ae80a4827c0c161c49 | |
parent | 59855f35a79ad90b97ff005ec54a888e6872cb91 (diff) |
flacparse: add documentation
-rw-r--r-- | docs/plugins/Makefile.am | 1 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins-docs.sgml | 1 | ||||
-rw-r--r-- | docs/plugins/gst-plugins-bad-plugins-sections.txt | 14 | ||||
-rw-r--r-- | gst/audioparsers/gstflacparse.c | 31 | ||||
-rw-r--r-- | gst/audioparsers/gstflacparse.h | 3 |
5 files changed, 50 insertions, 0 deletions
diff --git a/docs/plugins/Makefile.am b/docs/plugins/Makefile.am index 31a0bd9fa..be022853b 100644 --- a/docs/plugins/Makefile.am +++ b/docs/plugins/Makefile.am @@ -126,6 +126,7 @@ EXTRA_HFILES = \ $(top_srcdir)/gst/aiff/aiffmux.h \ $(top_srcdir)/gst/audioparsers/gstaacparse.h \ $(top_srcdir)/gst/audioparsers/gstamrparse.h \ + $(top_srcdir)/gst/audioparsers/gstflacparse.h \ $(top_srcdir)/gst/autoconvert/gstautoconvert.h \ $(top_srcdir)/gst/camerabin/gstcamerabin.h \ $(top_srcdir)/gst/dccp/gstdccpclientsink.h \ diff --git a/docs/plugins/gst-plugins-bad-plugins-docs.sgml b/docs/plugins/gst-plugins-bad-plugins-docs.sgml index 98bdd8295..8ce143c0f 100644 --- a/docs/plugins/gst-plugins-bad-plugins-docs.sgml +++ b/docs/plugins/gst-plugins-bad-plugins-docs.sgml @@ -42,6 +42,7 @@ <xi:include href="xml/element-dvdspu.xml" /> <xi:include href="xml/element-faac.xml" /> <xi:include href="xml/element-festival.xml" /> + <xi:include href="xml/element-flacparse.xml" /> <xi:include href="xml/element-fpsdisplaysink.xml" /> <xi:include href="xml/element-input-selector.xml" /> <xi:include href="xml/element-ivorbisdec.xml" /> diff --git a/docs/plugins/gst-plugins-bad-plugins-sections.txt b/docs/plugins/gst-plugins-bad-plugins-sections.txt index be12d1d4a..53cc818a0 100644 --- a/docs/plugins/gst-plugins-bad-plugins-sections.txt +++ b/docs/plugins/gst-plugins-bad-plugins-sections.txt @@ -408,6 +408,20 @@ FESTIVAL_DEFAULT_TEXT_MODE </SECTION> <SECTION> +<FILE>element-flacparse</FILE> +<TITLE>flacparse</TITLE> +GstFlacParse +<SUBSECTION Standard> +GstFlacParseClass +GST_FLAC_PARSE +GST_FLAC_PARSE_CLASS +GST_IS_FLAC_PARSE +GST_IS_FLAC_PARSE_CLASS +GST_TYPE_FLAC_PARSE +gst_flac_parse_get_type +</SECTION> + +<SECTION> <FILE>element-fpsdisplaysink</FILE> <TITLE>fpsdisplaysink</TITLE> GstFPSDisplaySink diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 2a8b67478..672a9b4c5 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -1,6 +1,9 @@ /* GStreamer * * Copyright (C) 2008 Sebastian Dröge <sebastian.droege@collabora.co.uk>. + * Copyright (C) 2009 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> + * Copyright (C) 2009 Nokia Corporation. All rights reserved. + * Contact: Stefan Kost <stefan.kost@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,6 +21,34 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-flacparse + * @see_also: flacdec, oggdemux, vorbisparse + * + * The flacparse element will parse the header packets of the FLAC + * stream and put them as the streamheader in the caps. This is used in the + * multifdsink case where you want to stream live FLAC streams to multiple + * clients, each client has to receive the streamheaders first before they can + * consume the FLAC packets. + * + * This element also makes sure that the buffers that it pushes out are properly + * timestamped and that their offset and offset_end are set. The buffers that + * flacparse outputs have all of the metadata that oggmux expects to receive, + * which allows you to (for example) remux an ogg/flac or convert a native FLAC + * format file to an ogg bitstream. + * + * <refsect2> + * <title>Example pipelines</title> + * |[ + * gst-launch -v filesrc location=sine.flac ! flacparse ! identity \ + * ! oggmux ! filesink location=sine-remuxed.ogg + * ]| This pipeline converts a native FLAC format file to an ogg bitstream. + * It also illustrates that the streamheader is set in the caps, and that each + * buffer has the timestamp, duration, offset, and offset_end set. + * </refsect2> + * + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/gst/audioparsers/gstflacparse.h b/gst/audioparsers/gstflacparse.h index 522cc783c..af57ba786 100644 --- a/gst/audioparsers/gstflacparse.h +++ b/gst/audioparsers/gstflacparse.h @@ -1,6 +1,9 @@ /* GStreamer * * Copyright (C) 2008 Sebastian Dröge <sebastian.droege@collabora.co.uk>. + * Copyright (C) 2009 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> + * Copyright (C) 2009 Nokia Corporation. All rights reserved. + * Contact: Stefan Kost <stefan.kost@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public |