FFmpeg
Data Structures | Macros | Functions | Variables
asrc_hilbert.c File Reference
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
#include "window_func.h"

Go to the source code of this file.

Data Structures

struct  HilbertContext
 

Macros

#define OFFSET(x)   offsetof(HilbertContext, x)
 
#define FLAGS   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (hilbert)
 
static av_cold int init (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static av_cold int query_formats (AVFilterContext *ctx)
 
static av_cold int config_props (AVFilterLink *outlink)
 
static int request_frame (AVFilterLink *outlink)
 

Variables

static const AVOption hilbert_options []
 
static const AVFilterPad hilbert_outputs []
 
AVFilter ff_asrc_hilbert
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 39 of file asrc_hilbert.c.

◆ FLAGS

Definition at line 40 of file asrc_hilbert.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( hilbert  )

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 76 of file asrc_hilbert.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 88 of file asrc_hilbert.c.

◆ query_formats()

static av_cold int query_formats ( AVFilterContext ctx)
static

Definition at line 95 of file asrc_hilbert.c.

◆ config_props()

static av_cold int config_props ( AVFilterLink outlink)
static

Definition at line 129 of file asrc_hilbert.c.

◆ request_frame()

static int request_frame ( AVFilterLink outlink)
static

Definition at line 159 of file asrc_hilbert.c.

Variable Documentation

◆ hilbert_options

const AVOption hilbert_options[]
static

Definition at line 42 of file asrc_hilbert.c.

◆ hilbert_outputs

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

Definition at line 180 of file asrc_hilbert.c.

◆ ff_asrc_hilbert

AVFilter ff_asrc_hilbert
Initial value:
= {
.name = "hilbert",
.description = NULL_IF_CONFIG_SMALL("Generate a Hilbert transform FIR coefficients."),
.query_formats = query_formats,
.init = init,
.uninit = uninit,
.priv_size = sizeof(HilbertContext),
.priv_class = &hilbert_class,
}

Definition at line 190 of file asrc_hilbert.c.

hilbert_outputs
static const AVFilterPad hilbert_outputs[]
Definition: asrc_hilbert.c:180
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: asrc_hilbert.c:88
init
static av_cold int init(AVFilterContext *ctx)
Definition: asrc_hilbert.c:76
query_formats
static av_cold int query_formats(AVFilterContext *ctx)
Definition: asrc_hilbert.c:95
request_frame
static int request_frame(AVFilterLink *outlink)
Definition: asrc_hilbert.c:159
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
NULL
#define NULL
Definition: coverity.c:32
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
HilbertContext
Definition: asrc_hilbert.c:27
config_props
static av_cold int config_props(AVFilterLink *outlink)
Definition: asrc_hilbert.c:129