FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
af_resample.c File Reference

sample format and channel layout conversion audio filter More...

#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/dict.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavresample/avresample.h"
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  resample_init_func
 

Functions

static av_cold int init (AVFilterContext *ctx, AVDictionary **opts)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int request_frame (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static const AVClassresample_child_class_next (const AVClass *prev)
 
static voidresample_child_next (void *obj, void *prev)
 

Variables

static const AVClass resample_class
 
static const AVFilterPad avfilter_af_resample_inputs []
 
static const AVFilterPad avfilter_af_resample_outputs []
 
AVFilter ff_af_resample
 

Detailed Description

sample format and channel layout conversion audio filter

Definition in file af_resample.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx,
AVDictionary **  opts 
)
static

Definition at line 49 of file af_resample.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 76 of file af_resample.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 87 of file af_resample.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 111 of file af_resample.c.

static int request_frame ( AVFilterLink outlink)
static

Definition at line 169 of file af_resample.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 208 of file af_resample.c.

static const AVClass* resample_child_class_next ( const AVClass prev)
static

Definition at line 287 of file af_resample.c.

static void* resample_child_next ( void obj,
void prev 
)
static

Definition at line 292 of file af_resample.c.

Variable Documentation

const AVClass resample_class
static
Initial value:
= {
.class_name = "resample",
.item_name = av_default_item_name,
.child_class_next = resample_child_class_next,
}

Definition at line 298 of file af_resample.c.

const AVFilterPad avfilter_af_resample_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}

Definition at line 306 of file af_resample.c.

const AVFilterPad avfilter_af_resample_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
.request_frame = request_frame
},
{ NULL }
}

Definition at line 315 of file af_resample.c.

AVFilter ff_af_resample
Initial value:
= {
.name = "resample",
.description = NULL_IF_CONFIG_SMALL("Audio resampling and conversion."),
.priv_size = sizeof(ResampleContext),
.priv_class = &resample_class,
}

Definition at line 325 of file af_resample.c.