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

Go to the source code of this file.

Data Structures

struct  TelecineContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (telecine)
 
static av_cold int init (AVFilterContext *ctx)
 
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 *inpicref)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption telecine_options []
 
static const AVFilterPad telecine_inputs []
 
static const AVFilterPad telecine_outputs []
 
AVFilter ff_vf_telecine
 

Macro Definition Documentation

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

Definition at line 56 of file vf_telecine.c.

Definition at line 57 of file vf_telecine.c.

Function Documentation

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

Definition at line 71 of file vf_telecine.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 102 of file vf_telecine.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 119 of file vf_telecine.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 145 of file vf_telecine.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame inpicref 
)
static

Definition at line 171 of file vf_telecine.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 254 of file vf_telecine.c.

Variable Documentation

const AVOption telecine_options[]
static
Initial value:
= {
{"first_field", "select first field", OFFSET(first_field), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS, "field"},
{"top", "select top field first", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "field"},
{"t", "select top field first", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "field"},
{"bottom", "select bottom field first", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "field"},
{"b", "select bottom field first", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "field"},
{"pattern", "pattern that describe for how many fields a frame is to be displayed", OFFSET(pattern), AV_OPT_TYPE_STRING, {.str="23"}, 0, 0, FLAGS},
{NULL}
}
#define NULL
Definition: coverity.c:32
static int first_field(const struct video_data *s)
Definition: v4l2.c:228
#define OFFSET(x)
Definition: vf_telecine.c:56
#define FLAGS
Definition: vf_telecine.c:57

Definition at line 59 of file vf_telecine.c.

const AVFilterPad telecine_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_input(AVFilterLink *inlink)
Definition: vf_telecine.c:119
static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
Definition: vf_telecine.c:171

Definition at line 264 of file vf_telecine.c.

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

Definition at line 274 of file vf_telecine.c.

AVFilter ff_vf_telecine
Initial value:
= {
.name = "telecine",
.description = NULL_IF_CONFIG_SMALL("Apply a telecine pattern."),
.priv_size = sizeof(TelecineContext),
.priv_class = &telecine_class,
.init = init,
}
static const AVFilterPad telecine_outputs[]
Definition: vf_telecine.c:274
static av_cold int init(AVFilterContext *ctx)
Definition: vf_telecine.c:71
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static const AVFilterPad telecine_inputs[]
Definition: vf_telecine.c:264
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_telecine.c:254
static int query_formats(AVFilterContext *ctx)
Definition: vf_telecine.c:102

Definition at line 283 of file vf_telecine.c.