soxr_resample.c File Reference

audio resampling with soxr More...

#include "libavutil/log.h"
#include "swresample_internal.h"
#include <soxr.h>
Include dependency graph for soxr_resample.c:

Go to the source code of this file.

Functions

static struct ResampleContextcreate (struct ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta, double precision, int cheby)
 
static void destroy (struct ResampleContext **c)
 
static int flush (struct SwrContext *s)
 
static int process (struct ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed)
 
static int64_t get_delay (struct SwrContext *s, int64_t base)
 

Variables

struct Resampler const soxr_resampler
 

Detailed Description

audio resampling with soxr

Definition in file soxr_resample.c.

Function Documentation

static struct ResampleContext* create ( struct ResampleContext c,
int  out_rate,
int  in_rate,
int  filter_size,
int  phase_shift,
int  linear,
double  cutoff,
enum AVSampleFormat  format,
enum SwrFilterType  filter_type,
int  kaiser_beta,
double  precision,
int  cheby 
)
static

Definition at line 32 of file soxr_resample.c.

static void destroy ( struct ResampleContext **  c)
static

Definition at line 64 of file soxr_resample.c.

static int flush ( struct SwrContext s)
static

Definition at line 69 of file soxr_resample.c.

static int64_t get_delay ( struct SwrContext s,
int64_t  base 
)
static

Definition at line 85 of file soxr_resample.c.

static int process ( struct ResampleContext c,
AudioData dst,
int  dst_size,
AudioData src,
int  src_size,
int *  consumed 
)
static

Definition at line 74 of file soxr_resample.c.

Variable Documentation

struct Resampler const soxr_resampler
Initial value:
={
}
static struct ResampleContext * create(struct ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta, double precision, int cheby)
Definition: soxr_resample.c:32
static int64_t get_delay(struct SwrContext *s, int64_t base)
Definition: soxr_resample.c:85
static int process(struct ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed)
Definition: soxr_resample.c:74
static int flush(struct SwrContext *s)
Definition: soxr_resample.c:69
static void destroy(struct ResampleContext **c)
Definition: soxr_resample.c:64
NULL
Definition: eval.c:55

Definition at line 90 of file soxr_resample.c.

Referenced by swr_init().