Skip to content

Struct dp_spectrogram_state_t

ClassList > dp_spectrogram_state_t

Spectrogram state. Allocate with dp_spectrogram_create() .More...

  • #include <spectrogram_core.h>

Public Attributes

Type Name
float beta
size_t consumed
dp_f32_framer_t fr
size_t hop
dp_psd_kernel_t k
float _Complex * last
int mode
size_t nfft
dp_f32_t * ring
int window

Detailed Description

Every field is configuration (or k's scratch) except fr's stream position and consumed. The state blob carries the configuration a row depends on (mode, nfft, hop, window, beta) and the stream position, not consumed.

Public Attributes Documentation

variable beta

float dp_spectrogram_state_t::beta;

Kaiser beta (the Kaiser window only).


variable consumed

size_t dp_spectrogram_state_t::consumed;

Input samples the last push took.


variable fr

dp_f32_framer_t dp_spectrogram_state_t::fr;

Any chunk in, nfft-sample frames out.


variable hop

size_t dp_spectrogram_state_t::hop;

Samples between row starts.


variable k

dp_psd_kernel_t dp_spectrogram_state_t::k;

PSD's per-frame kernel: n = nfft, no pad.


variable last

float _Complex* dp_spectrogram_state_t::last;

flush()'s zero-padded frame, nfft samples.


variable mode

int dp_spectrogram_state_t::mode;

DP_SPECTROGRAM_POWER or DP_SPECTROGRAM_DB.


variable nfft

size_t dp_spectrogram_state_t::nfft;

Samples per frame, and bins per row.


variable ring

dp_f32_t* dp_spectrogram_state_t::ring;

The carry's storage, owned by fr alone.


variable window

int dp_spectrogram_state_t::window;

A DP_PSD_WINDOW_* (the kernel's window).



The documentation for this class was generated from the following file native/inc/doppler/spectrogram/spectrogram_core.h