mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
comments
Original commit message from CVS: comments
This commit is contained in:
parent
ffc787b6ab
commit
c2f831741b
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
/*
|
||||||
|
static void inline
|
||||||
|
gst_level_fast_16bit_chain (gint16 * in, guint num, gint channels,
|
||||||
|
gint resolution, double *CS, double *peak)
|
||||||
|
*/
|
||||||
/* process one (interleaved) channel of incoming samples
|
/* process one (interleaved) channel of incoming samples
|
||||||
* calculate square sum of samples
|
* calculate square sum of samples
|
||||||
* normalize and return normalized Cumulative Square
|
* normalize and return normalized Cumulative Square
|
||||||
|
|
|
@ -201,6 +201,7 @@ gst_level_fast_16bit_chain (gint16 * in, guint num, gint channels,
|
||||||
|
|
||||||
in_data = (gint16 *) GST_BUFFER_DATA (buf);
|
in_data = (gint16 *) GST_BUFFER_DATA (buf);
|
||||||
|
|
||||||
|
/* total number of interleaved samples */
|
||||||
num_samples = GST_BUFFER_SIZE (buf) / (filter->width / 8);
|
num_samples = GST_BUFFER_SIZE (buf) / (filter->width / 8);
|
||||||
if (num_samples % filter->channels != 0)
|
if (num_samples % filter->channels != 0)
|
||||||
g_warning
|
g_warning
|
||||||
|
|
Loading…
Reference in a new issue