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

Bauer stereo-to-binaural filter. More...

#include <bs2b.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  Bs2bContext


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


static av_cold int init (AVFilterContext *ctx)
static av_cold void uninit (AVFilterContext *ctx)
static int query_formats (AVFilterContext *ctx)
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
static int config_output (AVFilterLink *outlink)


static const AVOption options []
static const AVClass bs2b_class
static const AVFilterPad bs2b_inputs []
static const AVFilterPad bs2b_outputs []
AVFilter ff_af_bs2b

Detailed Description

Bauer stereo-to-binaural filter.

Definition in file af_bs2b.c.

Macro Definition Documentation

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

Definition at line 47 of file af_bs2b.c.


Definition at line 48 of file af_bs2b.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx)

Definition at line 70 of file af_bs2b.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 88 of file af_bs2b.c.

static int query_formats ( AVFilterContext ctx)

Definition at line 96 of file af_bs2b.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 

Definition at line 130 of file af_bs2b.c.

static int config_output ( AVFilterLink outlink)

Definition at line 161 of file af_bs2b.c.

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "profile", "Apply a pre-defined crossfeed level",
OFFSET(profile), AV_OPT_TYPE_INT, { .i64 = BS2B_DEFAULT_CLEVEL }, 0, INT_MAX, A, "profile" },
{ "default", "default profile", 0, AV_OPT_TYPE_CONST, { .i64 = BS2B_DEFAULT_CLEVEL }, 0, 0, A, "profile" },
{ "cmoy", "Chu Moy circuit", 0, AV_OPT_TYPE_CONST, { .i64 = BS2B_CMOY_CLEVEL }, 0, 0, A, "profile" },
{ "jmeier", "Jan Meier circuit", 0, AV_OPT_TYPE_CONST, { .i64 = BS2B_JMEIER_CLEVEL }, 0, 0, A, "profile" },
{ "fcut", "Set cut frequency (in Hz)",
OFFSET(fcut), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, BS2B_MAXFCUT, A },
{ "feed", "Set feed level (in Hz)",
OFFSET(feed), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, BS2B_MAXFEED, A },
{ NULL },
#define NULL
Definition: coverity.c:32
int profile
Definition: mxfenc.c:1804
#define OFFSET(x)
Definition: af_bs2b.c:47
#define A
Definition: af_bs2b.c:48

Definition at line 50 of file af_bs2b.c.

const AVClass bs2b_class
Initial value:
= {
.class_name = "bs2b filter",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:62
static const AVOption options[]
Definition: af_bs2b.c:50

Definition at line 63 of file af_bs2b.c.

const AVFilterPad bs2b_inputs[]
Initial value:
= {
.name = "default",
.filter_frame = filter_frame,
{ NULL }
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: af_bs2b.c:130

Definition at line 197 of file af_bs2b.c.

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

Definition at line 206 of file af_bs2b.c.

AVFilter ff_af_bs2b
Initial value:
= {
.name = "bs2b",
.description = NULL_IF_CONFIG_SMALL("Bauer stereo-to-binaural filter."),
.query_formats = query_formats,
.priv_size = sizeof(Bs2bContext),
.priv_class = &bs2b_class,
.init = init,
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:248
static const AVFilterPad bs2b_inputs[]
Definition: af_bs2b.c:197
static int query_formats(AVFilterContext *ctx)
Definition: af_bs2b.c:96
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static const AVClass bs2b_class
Definition: af_bs2b.c:63
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:239
static const AVFilterPad bs2b_outputs[]
Definition: af_bs2b.c:206
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_bs2b.c:88
static av_cold int init(AVFilterContext *ctx)
Definition: af_bs2b.c:70

Definition at line 215 of file af_bs2b.c.