FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
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 "formats.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  RubberBandContext
 

Macros

#define OFFSET(x)   offsetof(RubberBandContext, x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (rubberband)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static int config_input (AVFilterLink *inlink)
 
static int request_frame (AVFilterLink *outlink)
 
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 []
 
static const AVFilterPad rubberband_outputs []
 
AVFilter ff_af_rubberband
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(RubberBandContext, x)

Definition at line 42 of file af_rubberband.c.

Definition at line 43 of file af_rubberband.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( rubberband  )
static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 81 of file af_rubberband.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 89 of file af_rubberband.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 119 of file af_rubberband.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 149 of file af_rubberband.c.

static int request_frame ( AVFilterLink outlink)
static

Definition at line 168 of file af_rubberband.c.

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

Definition at line 210 of file af_rubberband.c.

Variable Documentation

const AVOption rubberband_options[]
static

Definition at line 45 of file af_rubberband.c.

const AVFilterPad rubberband_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_input(AVFilterLink *inlink)
static int filter_frame(AVFilterLink *inlink, AVFrame *in)

Definition at line 242 of file af_rubberband.c.

const AVFilterPad rubberband_outputs[]
static
Initial value:
= {
{
.name = "default",
.request_frame = request_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int request_frame(AVFilterLink *outlink)

Definition at line 252 of file af_rubberband.c.

AVFilter ff_af_rubberband
Initial value:
= {
.name = "rubberband",
.description = NULL_IF_CONFIG_SMALL("Apply time-stretching and pitch-shifting."),
.query_formats = query_formats,
.priv_size = sizeof(RubberBandContext),
.priv_class = &rubberband_class,
}
static const AVFilterPad rubberband_outputs[]
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static const AVFilterPad rubberband_inputs[]
static int query_formats(AVFilterContext *ctx)
Definition: af_rubberband.c:89
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:389
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:379
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_rubberband.c:81

Definition at line 261 of file af_rubberband.c.