2013-10-13 20:05:38 +00:00
|
|
|
/*
|
2013-11-07 22:46:29 +00:00
|
|
|
* private.h
|
2013-10-13 20:05:38 +00:00
|
|
|
*
|
2013-11-07 22:46:29 +00:00
|
|
|
* Private fosphor definitions
|
2013-10-13 20:05:38 +00:00
|
|
|
*
|
2014-07-22 19:45:31 +00:00
|
|
|
* Copyright (C) 2013-2014 Sylvain Munaut
|
2013-10-13 20:05:38 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
#ifndef __FOSPHOR_PRIVATE_H__
|
|
|
|
#define __FOSPHOR_PRIVATE_H__
|
2013-10-13 20:05:38 +00:00
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
/*! \defgroup private
|
2013-10-13 20:05:38 +00:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
/*! \file private.h
|
|
|
|
* \brief Private fosphor definitions
|
2013-10-13 20:05:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2013-10-26 15:49:19 +00:00
|
|
|
#define FOSPHOR_FFT_LEN_LOG 10
|
|
|
|
#define FOSPHOR_FFT_LEN (1<<FOSPHOR_FFT_LEN_LOG)
|
2013-10-26 15:49:48 +00:00
|
|
|
|
|
|
|
#define FOSPHOR_FFT_MULT_BATCH 16
|
|
|
|
#define FOSPHOR_FFT_MAX_BATCH 1024
|
2013-10-13 20:05:38 +00:00
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
struct fosphor_cl_state;
|
|
|
|
struct fosphor_gl_state;
|
|
|
|
|
|
|
|
struct fosphor
|
|
|
|
{
|
|
|
|
struct fosphor_cl_state *cl;
|
|
|
|
struct fosphor_gl_state *gl;
|
2013-11-08 10:28:34 +00:00
|
|
|
|
2014-07-24 18:48:13 +00:00
|
|
|
#define FLG_FOSPHOR_USE_CLGL_SHARING (1<<0)
|
|
|
|
int flags;
|
|
|
|
|
2013-11-10 12:44:34 +00:00
|
|
|
float fft_win[FOSPHOR_FFT_LEN];
|
|
|
|
|
2014-07-24 18:48:13 +00:00
|
|
|
float *img_waterfall;
|
|
|
|
float *img_histogram;
|
|
|
|
float *buf_spectrum;
|
|
|
|
|
2013-11-08 10:28:34 +00:00
|
|
|
struct {
|
|
|
|
int db_ref;
|
|
|
|
int db_per_div;
|
|
|
|
float scale;
|
|
|
|
float offset;
|
|
|
|
} power;
|
2013-11-09 10:11:38 +00:00
|
|
|
|
|
|
|
struct {
|
|
|
|
double center;
|
|
|
|
double span;
|
|
|
|
} frequency;
|
2013-11-07 22:46:29 +00:00
|
|
|
};
|
|
|
|
|
2013-10-13 20:05:38 +00:00
|
|
|
|
|
|
|
/*! @} */
|
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
#endif /* __FOSPHOR_PRIVATE_H__ */
|