FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_fieldhint.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FieldHintContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (fieldhint)
 
static av_cold int init (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static int request_frame (AVFilterLink *outlink)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption fieldhint_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_vf_fieldhint
 

Macro Definition Documentation

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

Definition at line 46 of file vf_fieldhint.c.

Definition at line 47 of file vf_fieldhint.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( fieldhint  )
static av_cold int init ( AVFilterContext ctx)
static

Definition at line 59 of file vf_fieldhint.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 78 of file vf_fieldhint.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 95 of file vf_fieldhint.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 112 of file vf_fieldhint.c.

Referenced by request_frame().

static int request_frame ( AVFilterLink outlink)
static

Definition at line 221 of file vf_fieldhint.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 242 of file vf_fieldhint.c.

Variable Documentation

const AVOption fieldhint_options[]
static
Initial value:
= {
{ "hint", "set hint file", OFFSET(hint_file_str), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS },
{ "mode", "set hint mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS, "mode" },
{ "absolute", 0, 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "mode" },
{ "relative", 0, 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "mode" },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_fieldhint.c:47
#define OFFSET(x)
Definition: vf_fieldhint.c:46
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83

Definition at line 49 of file vf_fieldhint.c.

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_input(AVFilterLink *inlink)
Definition: vf_fieldhint.c:95
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_fieldhint.c:112

Definition at line 255 of file vf_fieldhint.c.

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

Definition at line 265 of file vf_fieldhint.c.

AVFilter ff_vf_fieldhint
Initial value:
= {
.name = "fieldhint",
.description = NULL_IF_CONFIG_SMALL("Field matching using hints."),
.priv_size = sizeof(FieldHintContext),
.priv_class = &fieldhint_class,
.init = init,
}
static const AVFilterPad inputs[]
Definition: vf_fieldhint.c:255
static av_cold int init(AVFilterContext *ctx)
Definition: vf_fieldhint.c:59
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int query_formats(AVFilterContext *ctx)
Definition: vf_fieldhint.c:78
static const AVFilterPad outputs[]
Definition: vf_fieldhint.c:265
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_fieldhint.c:242

Definition at line 274 of file vf_fieldhint.c.