private.h
Go to the documentation of this file.
/*
* private.h
*
* Private fosphor definitions
*
* Copyright (C) 2013-2021 Sylvain Munaut
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
/*! \defgroup private
* @{
*/
/*! \file private.h
* \brief Private fosphor definitions
*/
#define FOSPHOR_FFT_LEN_LOG 10
#define FOSPHOR_FFT_LEN (1<<FOSPHOR_FFT_LEN_LOG)
#define FOSPHOR_FFT_MULT_BATCH 16
#define FOSPHOR_FFT_MAX_BATCH 1024
struct fosphor_cl_state;
struct fosphor_gl_state;
struct fosphor
{
struct fosphor_cl_state *cl;
struct fosphor_gl_state *gl;
#define FLG_FOSPHOR_USE_CLGL_SHARING (1<<0)
int flags;
float fft_win[FOSPHOR_FFT_LEN];
float *img_waterfall;
float *img_histogram;
float *buf_spectrum;
struct {
int db_ref;
int db_per_div;
float scale;
float offset;
} power;
struct {
double center;
double span;
} frequency;
};
/*! @} */
FOSPHOR_FFT_LEN
#define FOSPHOR_FFT_LEN
Definition private.h:22
fosphor
Definition private.h:31
fosphor::scale
float scale
Definition private.h:47
fosphor::frequency
struct fosphor::@3 frequency
fosphor::power
struct fosphor::@2 power
fosphor::buf_spectrum
float * buf_spectrum
Definition private.h:42
fosphor::db_per_div
int db_per_div
Definition private.h:46
fosphor::offset
float offset
Definition private.h:48
fosphor::img_waterfall
float * img_waterfall
Definition private.h:40
fosphor::fft_win
float fft_win[FOSPHOR_FFT_LEN]
Definition private.h:38
fosphor::cl
struct fosphor_cl_state * cl
Definition private.h:32
fosphor::center
double center
Definition private.h:52
fosphor::flags
int flags
Definition private.h:36
fosphor::span
double span
Definition private.h:53
fosphor::db_ref
int db_ref
Definition private.h:45
fosphor::gl
struct fosphor_gl_state * gl
Definition private.h:33
fosphor::img_histogram
float * img_histogram
Definition private.h:41