RetroArch
Classes | Functions | Variables
eq.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <retro_inline.h>
#include <retro_miscellaneous.h>
#include <filters.h>
#include <libretro_dspfilter.h>
#include "fft/fft.c"
Include dependency graph for eq.c:

Classes

struct  eq_data
 
struct  eq_gain
 

Functions

static void eq_free (void *data)
 
static void eq_process (void *data, struct dspfilter_output *output, const struct dspfilter_input *input)
 
static int gains_cmp (const void *a_, const void *b_)
 
static void generate_response (fft_complex_t *response, const struct eq_gain *gains, unsigned num_gains, unsigned samples)
 
static void create_filter (struct eq_data *eq, unsigned size_log2, struct eq_gain *gains, unsigned num_gains, double beta, const char *filter_path)
 
static voideq_init (const struct dspfilter_info *info, const struct dspfilter_config *config, void *userdata)
 
const struct dspfilter_implementationdspfilter_get_implementation (dspfilter_simd_mask_t mask)
 

Variables

static const struct dspfilter_implementation eq_plug
 

Function Documentation

◆ create_filter()

static void create_filter ( struct eq_data eq,
unsigned  size_log2,
struct eq_gain gains,
unsigned  num_gains,
double  beta,
const char *  filter_path 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dspfilter_get_implementation()

const struct dspfilter_implementation* dspfilter_get_implementation ( dspfilter_simd_mask_t  mask)
Here is the call graph for this function:

◆ eq_free()

static void eq_free ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eq_init()

static void* eq_init ( const struct dspfilter_info info,
const struct dspfilter_config config,
void userdata 
)
static
Here is the call graph for this function:

◆ eq_process()

static void eq_process ( void data,
struct dspfilter_output output,
const struct dspfilter_input input 
)
static
Here is the call graph for this function:

◆ gains_cmp()

static int gains_cmp ( const void a_,
const void b_ 
)
static
Here is the caller graph for this function:

◆ generate_response()

static void generate_response ( fft_complex_t response,
const struct eq_gain gains,
unsigned  num_gains,
unsigned  samples 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ eq_plug

const struct dspfilter_implementation eq_plug
static
Initial value:
= {
"Linear-Phase FFT Equalizer",
"eq",
}
static void eq_free(void *data)
Definition: eq.c:53
static void * eq_init(const struct dspfilter_info *info, const struct dspfilter_config *config, void *userdata)
Definition: eq.c:259
static void eq_process(void *data, struct dspfilter_output *output, const struct dspfilter_input *input)
Definition: eq.c:67
#define DSPFILTER_API_VERSION
Definition: libretro_dspfilter.h:61