FFmpeg
Loading...
Searching...
No Matches
af_rubberband.c File Reference
#include <rubberband/rubberband-c.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "filters.h"

Go to the source code of this file.

Data Structures

struct  RubberBandContext
 

Macros

#define OFFSET(x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define AT   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (rubberband)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static int config_input (AVFilterLink *inlink)
 
static int activate (AVFilterContext *ctx)
 
static int process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
 

Variables

static const AVOption rubberband_options []
 
static const AVFilterPad rubberband_inputs []
 
const FFFilter ff_af_rubberband
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 44 of file af_rubberband.c.

◆ A

Definition at line 45 of file af_rubberband.c.

◆ AT

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( rubberband )

◆ uninit()

static av_cold void uninit ( AVFilterContext * ctx)
static

Definition at line 84 of file af_rubberband.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink * inlink,
AVFrame * in )
static

Definition at line 92 of file af_rubberband.c.

Referenced by activate().

◆ config_input()

static int config_input ( AVFilterLink * inlink)
static

Definition at line 129 of file af_rubberband.c.

◆ activate()

static int activate ( AVFilterContext * ctx)
static

Definition at line 149 of file af_rubberband.c.

◆ process_command()

static int process_command ( AVFilterContext * ctx,
const char * cmd,
const char * args,
char * res,
int res_len,
int flags )
static

Definition at line 183 of file af_rubberband.c.

Variable Documentation

◆ rubberband_options

const AVOption rubberband_options[]
static

Definition at line 48 of file af_rubberband.c.

◆ rubberband_inputs

const AVFilterPad rubberband_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_input,
},
}
static int config_input(AVFilterLink *inlink)
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201

Definition at line 200 of file af_rubberband.c.

◆ ff_af_rubberband

const FFFilter ff_af_rubberband
Initial value:
= {
.p.name = "rubberband",
.p.description = NULL_IF_CONFIG_SMALL("Apply time-stretching and pitch-shifting."),
.p.priv_class = &rubberband_class,
.priv_size = sizeof(RubberBandContext),
.process_command = process_command,
}
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
static const AVFilterPad rubberband_inputs[]
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
Definition audio.c:34
@ AV_SAMPLE_FMT_FLTP
float, planar
Definition samplefmt.h:66
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
Definition filters.h:264
#define FILTER_OUTPUTS(array)
Definition filters.h:265
#define FILTER_SINGLE_SAMPLEFMT(sample_fmt_)
Definition filters.h:257
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88

Definition at line 208 of file af_rubberband.c.