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-2014 Sylvain Munaut
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef __FOSPHOR_PRIVATE_H__
23#define __FOSPHOR_PRIVATE_H__
24
25/*! \defgroup private
26 * @{
27 */
28
29/*! \file private.h
30 * \brief Private fosphor definitions
31 */
32
33
34#define FOSPHOR_FFT_LEN_LOG 10
35#define FOSPHOR_FFT_LEN (1<<FOSPHOR_FFT_LEN_LOG)
36
37#define FOSPHOR_FFT_MULT_BATCH 16
38#define FOSPHOR_FFT_MAX_BATCH 1024
39
40struct fosphor_cl_state;
41struct fosphor_gl_state;
42
43struct fosphor
44{
45 struct fosphor_cl_state *cl;
46 struct fosphor_gl_state *gl;
47
48#define FLG_FOSPHOR_USE_CLGL_SHARING (1<<0)
49 int flags;
50
52
56
57 struct {
58 int db_ref;
60 float scale;
61 float offset;
63
64 struct {
65 double center;
66 double span;
68};
69
70
71/*! @} */
72
73#endif /* __FOSPHOR_PRIVATE_H__ */
#define FOSPHOR_FFT_LEN
Definition private.h:35
Definition private.h:44
float scale
Definition private.h:60
struct fosphor::@3 frequency
struct fosphor::@2 power
float * buf_spectrum
Definition private.h:55
int db_per_div
Definition private.h:59
float offset
Definition private.h:61
float * img_waterfall
Definition private.h:53
float fft_win[FOSPHOR_FFT_LEN]
Definition private.h:51
struct fosphor_cl_state * cl
Definition private.h:45
double center
Definition private.h:65
int flags
Definition private.h:49
double span
Definition private.h:66
int db_ref
Definition private.h:58
struct fosphor_gl_state * gl
Definition private.h:46
float * img_histogram
Definition private.h:54