FFmpeg
Data Structures | Macros | Functions | Variables
vf_quirc.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "video.h"
#include <quirc.h>

Go to the source code of this file.

Data Structures

struct  QuircContext
 

Macros

#define SET_CORNER_METADATA(key_, value_)
 

Functions

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

Variables

static const AVClass quirc_class
 
static const AVFilterPad inputs []
 
const AVFilter ff_vf_quirc
 

Macro Definition Documentation

◆ SET_CORNER_METADATA

#define SET_CORNER_METADATA (   key_,
  value_ 
)
Value:
snprintf(metadata_key, sizeof(metadata_key)-1, \
"lavfi.quirc.%d.corner.%d." #key_, i, j); \
av_dict_set_int(metadata, metadata_key, value_, 0)

Function Documentation

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 40 of file vf_quirc.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 52 of file vf_quirc.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 59 of file vf_quirc.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 73 of file vf_quirc.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 90 of file vf_quirc.c.

Variable Documentation

◆ quirc_class

const AVClass quirc_class
static
Initial value:
= {
.class_name = "quirc",
}

Definition at line 155 of file vf_quirc.c.

◆ inputs

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input
},
}

Definition at line 161 of file vf_quirc.c.

◆ ff_vf_quirc

const AVFilter ff_vf_quirc
Initial value:
= {
.name = "quirc",
.description = NULL_IF_CONFIG_SMALL("Decode and show QR codes content."),
.priv_size = sizeof(QuircContext),
.priv_class = &quirc_class,
.init = init,
}

Definition at line 170 of file vf_quirc.c.

inputs
static const AVFilterPad inputs[]
Definition: vf_quirc.c:161
FILTER_QUERY_FUNC
#define FILTER_QUERY_FUNC(func)
Definition: internal.h:159
quirc_class
static const AVClass quirc_class
Definition: vf_quirc.c:155
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_quirc.c:40
ff_video_default_filterpad
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition: video.c:37
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_quirc.c:90
AV_CLASS_CATEGORY_FILTER
@ AV_CLASS_CATEGORY_FILTER
Definition: log.h:36
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_quirc.c:52
config_input
static int config_input(AVFilterLink *inlink)
Definition: vf_quirc.c:59
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:106
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:147
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:255
AVFILTER_FLAG_METADATA_ONLY
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition: avfilter.h:133
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_quirc.c:73
QuircContext
Definition: vf_quirc.c:34
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183
snprintf
#define snprintf
Definition: snprintf.h:34