mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
spectrum: more comments
This commit is contained in:
parent
738e092d4e
commit
34bdec3d58
2 changed files with 4 additions and 4 deletions
|
@ -513,8 +513,8 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * buffer)
|
||||||
gst_spectrum_reset_state (spectrum);
|
gst_spectrum_reset_state (spectrum);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we don't have a FFT context yet get one and
|
/* If we don't have a FFT context yet (or it was reset due to parameter
|
||||||
* allocate memory for everything
|
* changes) get one and allocate memory for everything
|
||||||
*/
|
*/
|
||||||
if (spectrum->fft_ctx == NULL) {
|
if (spectrum->fft_ctx == NULL) {
|
||||||
spectrum->input = g_new0 (gfloat, nfft);
|
spectrum->input = g_new0 (gfloat, nfft);
|
||||||
|
|
|
@ -59,8 +59,8 @@ struct _GstSpectrum
|
||||||
guint input_pos;
|
guint input_pos;
|
||||||
gfloat *input_tmp;
|
gfloat *input_tmp;
|
||||||
GstFFTF32Complex *freqdata;
|
GstFFTF32Complex *freqdata;
|
||||||
gfloat *spect_magnitude;
|
gfloat *spect_magnitude; /* accumulated mangitude and phase */
|
||||||
gfloat *spect_phase;
|
gfloat *spect_phase; /* will be scaled by num_fft before sending */
|
||||||
GstFFTF32 *fft_ctx;
|
GstFFTF32 *fft_ctx;
|
||||||
|
|
||||||
guint64 error_per_interval;
|
guint64 error_per_interval;
|
||||||
|
|
Loading…
Reference in a new issue