GNU Radio's TEST Package
private.h
Go to the documentation of this file.
1/*
2 * private.h
3 *
4 * Private fosphor definitions
5 *
6 * Copyright (C) 2013-2021 Sylvain Munaut
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10#pragma once
11
12/*! \defgroup private
13 * @{
14 */
15
16/*! \file private.h
17 * \brief Private fosphor definitions
18 */
19
20
21#define FOSPHOR_FFT_LEN_LOG 10
22#define FOSPHOR_FFT_LEN (1<<FOSPHOR_FFT_LEN_LOG)
23
24#define FOSPHOR_FFT_MULT_BATCH 16
25#define FOSPHOR_FFT_MAX_BATCH 1024
26
27struct fosphor_cl_state;
28struct fosphor_gl_state;
29
30struct fosphor
31{
32 struct fosphor_cl_state *cl;
33 struct fosphor_gl_state *gl;
34
35#define FLG_FOSPHOR_USE_CLGL_SHARING (1<<0)
36 int flags;
37
39
43
44 struct {
45 int db_ref;
47 float scale;
48 float offset;
50
51 struct {
52 double center;
53 double span;
55};
56
57
58/*! @} */
#define FOSPHOR_FFT_LEN
Definition private.h:22
Definition private.h:31
float scale
Definition private.h:47
struct fosphor::@3 frequency
struct fosphor::@2 power
float * buf_spectrum
Definition private.h:42
int db_per_div
Definition private.h:46
float offset
Definition private.h:48
float * img_waterfall
Definition private.h:40
float fft_win[FOSPHOR_FFT_LEN]
Definition private.h:38
struct fosphor_cl_state * cl
Definition private.h:32
double center
Definition private.h:52
int flags
Definition private.h:36
double span
Definition private.h:53
int db_ref
Definition private.h:45
struct fosphor_gl_state * gl
Definition private.h:33
float * img_histogram
Definition private.h:41