private.h
Go to the documentation of this file.
/*
* private.h
*
* Private fosphor definitions
*
* Copyright (C) 2013-2014 Sylvain Munaut
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FOSPHOR_PRIVATE_H__
#define __FOSPHOR_PRIVATE_H__
/*! \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;
};
/*! @} */
#endif /* __FOSPHOR_PRIVATE_H__ */
FOSPHOR_FFT_LEN
#define FOSPHOR_FFT_LEN
Definition: private.h:35
fosphor
Definition: private.h:44
fosphor::scale
float scale
Definition: private.h:60
fosphor::frequency
struct fosphor::@3 frequency
fosphor::power
struct fosphor::@2 power
fosphor::buf_spectrum
float * buf_spectrum
Definition: private.h:55
fosphor::db_per_div
int db_per_div
Definition: private.h:59
fosphor::offset
float offset
Definition: private.h:61
fosphor::img_waterfall
float * img_waterfall
Definition: private.h:53
fosphor::fft_win
float fft_win[FOSPHOR_FFT_LEN]
Definition: private.h:51
fosphor::cl
struct fosphor_cl_state * cl
Definition: private.h:45
fosphor::center
double center
Definition: private.h:65
fosphor::flags
int flags
Definition: private.h:49
fosphor::span
double span
Definition: private.h:66
fosphor::db_ref
int db_ref
Definition: private.h:58
fosphor::gl
struct fosphor_gl_state * gl
Definition: private.h:46
fosphor::img_histogram
float * img_histogram
Definition: private.h:54