add/fix docs

Original commit message from CVS:

* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-base-plugins-docs.sgml:
* docs/plugins/gst-plugins-base-plugins-sections.txt:
* gst/volume/gstvolume.c:
add/fix docs
* gst-libs/gst/audio/audio.c: (gst_audio_frame_byte_size):
* gst-libs/gst/audio/audio.h:
add conversion macros for frames <-> clocktime
This commit is contained in:
Thomas Vander Stichele 2005-09-23 18:14:54 +00:00
parent d66befc87a
commit 272aad79bb
8 changed files with 36 additions and 4 deletions

View file

@ -1,3 +1,14 @@
2005-09-23 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-base-plugins-docs.sgml:
* docs/plugins/gst-plugins-base-plugins-sections.txt:
* gst/volume/gstvolume.c:
add/fix docs
* gst-libs/gst/audio/audio.c: (gst_audio_frame_byte_size):
* gst-libs/gst/audio/audio.h:
add conversion macros for frames <-> clocktime
2005-09-23 David Schleef <ds@schleef.org> 2005-09-23 David Schleef <ds@schleef.org>
* gst/audioresample/Makefile.am: * gst/audioresample/Makefile.am:

2
common

@ -1 +1 @@
Subproject commit 793f85c1c14de9c1053b8db7df44bfbba1f0a156 Subproject commit c7160d5b7c76f00609cf7b6e9b782e99f626686c

View file

@ -79,6 +79,7 @@ IGNORE_CFILES = utils.c mem.c imgconvert.c
EXTRA_HFILES = \ EXTRA_HFILES = \
$(top_srcdir)/ext/theora/gsttheoraenc.h \ $(top_srcdir)/ext/theora/gsttheoraenc.h \
$(top_srcdir)/ext/vorbis/vorbisenc.h \ $(top_srcdir)/ext/vorbis/vorbisenc.h \
$(top_srcdir)/gst/audioconvert/gstaudioconvert.h \
$(top_srcdir)/gst/ffmpegcolorspace/gstffmpegcolorspace.h \ $(top_srcdir)/gst/ffmpegcolorspace/gstffmpegcolorspace.h \
$(top_srcdir)/gst/tcp/gstmultifdsink.h \ $(top_srcdir)/gst/tcp/gstmultifdsink.h \
$(top_srcdir)/gst/tcp/gsttcpserversink.h \ $(top_srcdir)/gst/tcp/gsttcpserversink.h \

View file

@ -12,6 +12,7 @@
<chapter> <chapter>
<title>gst-plugins-base Elements</title> <title>gst-plugins-base Elements</title>
<xi:include href="xml/element-audioconvert.xml" />
<xi:include href="xml/element-ffmpegcolorspace.xml" /> <xi:include href="xml/element-ffmpegcolorspace.xml" />
<!-- <!--
<xi:include href="xml/element-gnomevfssink.xml" /> <xi:include href="xml/element-gnomevfssink.xml" />

View file

@ -1,3 +1,12 @@
<SECTION>
<FILE>element-audioconvert</FILE>
<TITLE>audioconvert</TITLE>
GstAudioConvert
<SUBSECTION Standard>
GstAudioConvertClass
</SECTION>
<SECTION> <SECTION>
<FILE>element-ffmpegcolorspace</FILE> <FILE>element-ffmpegcolorspace</FILE>
<TITLE>ffmpegcolorspace</TITLE> <TITLE>ffmpegcolorspace</TITLE>
@ -6,6 +15,7 @@ GstFFMpegCsp
GstFFMpegCspClass GstFFMpegCspClass
</SECTION> </SECTION>
<SECTION>
<FILE>element-multifdsink</FILE> <FILE>element-multifdsink</FILE>
<TITLE>multifdsink</TITLE> <TITLE>multifdsink</TITLE>
GstMultiFdSink GstMultiFdSink
@ -39,15 +49,16 @@ GstTCPServerSinkClass
<FILE>element-theoraenc</FILE> <FILE>element-theoraenc</FILE>
<TITLE>theoraenc</TITLE> <TITLE>theoraenc</TITLE>
GstTheoraEnc GstTheoraEnc
GstTheoraEncBorderMode
<SUBSECTION Standard> <SUBSECTION Standard>
GstTheoraEncClass GstTheoraEncClass
</SECTION> </SECTION>
<SECTION> <SECTION>
<FILE>element-videotestsrc</FILE> <FILE>element-videotestsrc</FILE>
<TITLE>videotestsrc</TITLE> <TITLE>videotestsrc</TITLE>
GstVideoTestSrc GstVideoTestSrc
GstVideoTestSrcPattern
<SUBSECTION Standard> <SUBSECTION Standard>
GstVideoTestSrcClass GstVideoTestSrcClass
</SECTION> </SECTION>

View file

@ -49,6 +49,13 @@ G_BEGIN_DECLS
* Andy Wingo, 18 August 2001 * Andy Wingo, 18 August 2001
* Thomas, 6 September 2002 */ * Thomas, 6 September 2002 */
/* conversion macros */
#define GST_FRAMES_TO_CLOCK_TIME(frames, rate) \
((GstClockTime) (((gdouble) frames / rate) * GST_SECOND))
#define GST_CLOCK_TIME_TO_FRAMES(clocktime, rate) \
((gint64) (((gdouble) clocktime / GST_SECOND) * rate))
#define GST_AUDIO_DEF_RATE 44100 #define GST_AUDIO_DEF_RATE 44100
#define GST_AUDIO_INT_PAD_TEMPLATE_CAPS \ #define GST_AUDIO_INT_PAD_TEMPLATE_CAPS \

View file

@ -30,7 +30,8 @@
* <programlisting> * <programlisting>
* gst-launch -v -m sinesrc ! volume volume=0.5 ! level ! fakesink silent=TRUE * gst-launch -v -m sinesrc ! volume volume=0.5 ! level ! fakesink silent=TRUE
* </programlisting> * </programlisting>
* This pipeline shows that the level of sinesrc has been halved compared to * This pipeline shows that the level of sinesrc has been halved
* (peak values are around -6 dB and RMS around -9 dB) compared to
* the same pipeline without the volume element. * the same pipeline without the volume element.
* </para> * </para>
* </refsect2> * </refsect2>