FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
vf_idet.c File Reference
#include <float.h>
#include "libavutil/cpu.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "vf_idet.h"

Go to the source code of this file.

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (idet)
 
static const char * type2str (Type type)
 
int ff_idet_filter_line_c (const uint8_t *a, const uint8_t *b, const uint8_t *c, int w)
 
int ff_idet_filter_line_c_16bit (const uint16_t *a, const uint16_t *b, const uint16_t *c, int w)
 
static void filter (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *link, AVFrame *picref)
 
static int request_frame (AVFilterLink *link)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static av_cold int init (AVFilterContext *ctx)
 

Variables

static const AVOption idet_options []
 
static const AVFilterPad idet_inputs []
 
static const AVFilterPad idet_outputs []
 
AVFilter ff_vf_idet
 

Macro Definition Documentation

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

Definition at line 29 of file vf_idet.c.

Definition at line 30 of file vf_idet.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( idet  )
static const char* type2str ( Type  type)
static

Definition at line 40 of file vf_idet.c.

Referenced by filter().

int ff_idet_filter_line_c ( const uint8_t a,
const uint8_t b,
const uint8_t c,
int  w 
)

Definition at line 51 of file vf_idet.c.

Referenced by init().

int ff_idet_filter_line_c_16bit ( const uint16_t *  a,
const uint16_t *  b,
const uint16_t *  c,
int  w 
)

Definition at line 64 of file vf_idet.c.

Referenced by filter_frame().

static void filter ( AVFilterContext ctx)
static

Definition at line 77 of file vf_idet.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink link,
AVFrame picref 
)
static

Definition at line 153 of file vf_idet.c.

Referenced by request_frame().

static int request_frame ( AVFilterLink link)
static

Definition at line 194 of file vf_idet.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 223 of file vf_idet.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 245 of file vf_idet.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 275 of file vf_idet.c.

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 281 of file vf_idet.c.

Variable Documentation

const AVOption idet_options[]
static
Initial value:
= {
{ "intl_thres", "set interlacing threshold", OFFSET(interlace_threshold), AV_OPT_TYPE_FLOAT, {.dbl = 1.04}, -1, FLT_MAX, FLAGS },
{ "prog_thres", "set progressive threshold", OFFSET(progressive_threshold), AV_OPT_TYPE_FLOAT, {.dbl = 1.5}, -1, FLT_MAX, FLAGS },
{ NULL }
}

Definition at line 32 of file vf_idet.c.

const AVFilterPad idet_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}

Definition at line 298 of file vf_idet.c.

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

Definition at line 307 of file vf_idet.c.

AVFilter ff_vf_idet
Initial value:
= {
.name = "idet",
.description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."),
.priv_size = sizeof(IDETContext),
.init = init,
.priv_class = &idet_class,
}

Definition at line 317 of file vf_idet.c.