RetroArch
Classes | Macros | Typedefs | Functions | Variables
cc_resampler.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <retro_inline.h>
#include <retro_miscellaneous.h>
#include <memalign.h>
#include <math/float_minmax.h>
#include <audio/audio_resampler.h>
Include dependency graph for cc_resampler.c:

Classes

struct  rarch_CC_resampler
 

Macros

#define CC_RESAMPLER_PRECISION   1
 
#define CC_RESAMPLER_IDENT   "C"
 
#define cc_kernel(x, b)   ((cc_int((x) + 0.5, (b)) - cc_int((x) - 0.5, (b))))
 

Typedefs

typedef struct rarch_CC_resampler rarch_CC_resampler_t
 

Functions

static INLINE float cc_int (float x, float b)
 
static INLINE void add_to (const audio_frame_float_t *source, audio_frame_float_t *target, float ratio)
 
static void resampler_CC_downsample (void *re_, struct resampler_data *data)
 
static void resampler_CC_upsample (void *re_, struct resampler_data *data)
 
static void resampler_CC_process (void *re_, struct resampler_data *data)
 
static voidresampler_CC_init (const struct resampler_config *config, double bandwidth_mod, enum resampler_quality quality, resampler_simd_mask_t mask)
 
static void resampler_CC_free (void *re_)
 

Variables

retro_resampler_t CC_resampler
 

Macro Definition Documentation

◆ cc_kernel

#define cc_kernel (   x,
  b 
)    ((cc_int((x) + 0.5, (b)) - cc_int((x) - 0.5, (b))))

◆ CC_RESAMPLER_IDENT

#define CC_RESAMPLER_IDENT   "C"

◆ CC_RESAMPLER_PRECISION

#define CC_RESAMPLER_PRECISION   1

Typedef Documentation

◆ rarch_CC_resampler_t

Function Documentation

◆ add_to()

static INLINE void add_to ( const audio_frame_float_t source,
audio_frame_float_t target,
float  ratio 
)
static
Here is the caller graph for this function:

◆ cc_int()

static INLINE float cc_int ( float  x,
float  b 
)
static

◆ resampler_CC_downsample()

static void resampler_CC_downsample ( void re_,
struct resampler_data data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resampler_CC_free()

static void resampler_CC_free ( void re_)
static
Here is the call graph for this function:

◆ resampler_CC_init()

static void* resampler_CC_init ( const struct resampler_config config,
double  bandwidth_mod,
enum resampler_quality  quality,
resampler_simd_mask_t  mask 
)
static
Here is the call graph for this function:

◆ resampler_CC_process()

static void resampler_CC_process ( void re_,
struct resampler_data data 
)
static

◆ resampler_CC_upsample()

static void resampler_CC_upsample ( void re_,
struct resampler_data data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ CC_resampler

retro_resampler_t CC_resampler
Initial value:
= {
"CC",
"cc"
}
static void * resampler_CC_init(const struct resampler_config *config, double bandwidth_mod, enum resampler_quality quality, resampler_simd_mask_t mask)
Definition: cc_resampler.c:496
static void resampler_CC_free(void *re_)
Definition: cc_resampler.c:537
static void resampler_CC_process(void *re_, struct resampler_data *data)
Definition: cc_resampler.c:488
#define RESAMPLER_API_VERSION
Definition: audio_resampler.h:66