FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
avf_avectorscope.c File Reference

audio to video multimedia vectorscope filter More...

#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "audio.h"
#include "video.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  AudioVectorScopeContext
 

Macros

#define OFFSET(x)   offsetof(AudioVectorScopeContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 

Enumerations

enum  VectorScopeMode { LISSAJOUS, LISSAJOUS_XY, POLAR, MODE_NB }
 
enum  VectorScopeDraw { DOT, LINE, DRAW_NB }
 
enum  VectorScopeScale {
  LIN, SQRT, CBRT, LOG,
  SCALE_NB
}
 

Functions

 AVFILTER_DEFINE_CLASS (avectorscope)
 
static void draw_dot (AudioVectorScopeContext *s, unsigned x, unsigned y)
 
static void draw_line (AudioVectorScopeContext *s, int x0, int y0, int x1, int y1)
 
static void fade (AudioVectorScopeContext *s)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static int config_output (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *insamples)
 
static int activate (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption avectorscope_options []
 
static const AVFilterPad audiovectorscope_inputs []
 
static const AVFilterPad audiovectorscope_outputs []
 
AVFilter ff_avf_avectorscope
 

Detailed Description

audio to video multimedia vectorscope filter

Definition in file avf_avectorscope.c.

Macro Definition Documentation

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

Definition at line 76 of file avf_avectorscope.c.

Definition at line 77 of file avf_avectorscope.c.

Enumeration Type Documentation

Enumerator
LISSAJOUS 
LISSAJOUS_XY 
POLAR 
MODE_NB 

Definition at line 37 of file avf_avectorscope.c.

Enumerator
DOT 
LINE 
DRAW_NB 

Definition at line 44 of file avf_avectorscope.c.

Enumerator
LIN 
SQRT 
CBRT 
LOG 
SCALE_NB 

Definition at line 50 of file avf_avectorscope.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( avectorscope  )
static void draw_dot ( AudioVectorScopeContext s,
unsigned  x,
unsigned  y 
)
static

Definition at line 117 of file avf_avectorscope.c.

Referenced by draw_line(), and filter_frame().

static void draw_line ( AudioVectorScopeContext s,
int  x0,
int  y0,
int  x1,
int  y1 
)
static

Definition at line 137 of file avf_avectorscope.c.

Referenced by filter_frame().

static void fade ( AudioVectorScopeContext s)
static

Definition at line 163 of file avf_avectorscope.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 182 of file avf_avectorscope.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 209 of file avf_avectorscope.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 219 of file avf_avectorscope.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame insamples 
)
static

Definition at line 234 of file avf_avectorscope.c.

Referenced by activate().

static int activate ( AVFilterContext ctx)
static

Definition at line 366 of file avf_avectorscope.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 388 of file avf_avectorscope.c.

Variable Documentation

const AVOption avectorscope_options[]
static

Definition at line 79 of file avf_avectorscope.c.

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

Definition at line 395 of file avf_avectorscope.c.

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

Definition at line 404 of file avf_avectorscope.c.

AVFilter ff_avf_avectorscope
Initial value:
= {
.name = "avectorscope",
.description = NULL_IF_CONFIG_SMALL("Convert input audio to vectorscope video output."),
.uninit = uninit,
.query_formats = query_formats,
.priv_size = sizeof(AudioVectorScopeContext),
.priv_class = &avectorscope_class,
}
static av_cold void uninit(AVFilterContext *ctx)
static int activate(AVFilterContext *ctx)
static const AVFilterPad audiovectorscope_outputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVFilterPad audiovectorscope_inputs[]
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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
static int query_formats(AVFilterContext *ctx)

Definition at line 413 of file avf_avectorscope.c.