mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
audiovisualizers: doc-blob and comment updates
This commit is contained in:
parent
8b1b28dbc0
commit
0fd078f156
3 changed files with 9 additions and 5 deletions
|
@ -20,7 +20,10 @@
|
|||
/**
|
||||
* SECTION:gstbaseaudiovisualizer
|
||||
*
|
||||
* A basclass for scopes. Takes care of re-fitting the audio-rate to video-rate.
|
||||
* A basclass for scopes. It takes care of re-fitting the audio-rate to
|
||||
* video-rate. It also provides several background shading effects. These
|
||||
* effects are applied to a previous picture before the render() implementation
|
||||
* can draw a new frame.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
* SECTION:element-spectrascope
|
||||
* @see_also: goom
|
||||
*
|
||||
* Wavescope is a simple audio visualisation element. It renders the waveforms
|
||||
* like on an oscilloscope.
|
||||
* Spectrascope is a simple spectrum visualisation element. It renders the
|
||||
* frequency spectrum as a series of bars.
|
||||
*
|
||||
* <refsect2>
|
||||
* <title>Example launch line</title>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
* SECTION:element-synaescope
|
||||
* @see_also: goom
|
||||
*
|
||||
* Wavescope is a simple audio visualisation element. It renders the waveforms
|
||||
* like on an oscilloscope.
|
||||
* Synaescope is an audio visualisation element. It analyzes frequencies and
|
||||
* out-of phase properties of audio and draws this as clouds of stars.
|
||||
*
|
||||
* <refsect2>
|
||||
* <title>Example launch line</title>
|
||||
|
@ -248,6 +248,7 @@ gst_synae_scope_render (GstBaseAudioVisualizer * bscope, GstBuffer * audio,
|
|||
r = sqrt (frr * frr + fir * fir);
|
||||
fc = r + l;
|
||||
|
||||
/* out-of-phase'ness for this frequency component */
|
||||
clarity = (gint) (((frl + frr) * (frl - frr) + (fil + fir) * (fil - fir)) /
|
||||
(((frl + frr) * (frl + frr) + (fil - fir) * (fil - fir) + (frl -
|
||||
frr) * (frl - frr) + (fil + fir) * (fil + fir)) * 256.0));
|
||||
|
|
Loading…
Reference in a new issue