#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "yadif.h"
#include <assert.h>
Go to the source code of this file.
Macros |
#define | PERM_RWP AV_PERM_WRITE | AV_PERM_PRESERVE | AV_PERM_REUSE |
#define | CHECK(j) |
#define | FILTER(start, end) |
#define | OFFSET(x) offsetof(YADIFContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } |
Functions |
static void | filter_line_c (void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode) |
static void | filter_edges (void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode, int l_edge) |
static void | filter_line_c_16bit (void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode) |
static void | filter_edges_16bit (void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode, int l_edge) |
static void | filter (AVFilterContext *ctx, AVFilterBufferRef *dstpic, int parity, int tff) |
static int | return_frame (AVFilterContext *ctx, int is_second) |
static int | filter_frame (AVFilterLink *link, AVFilterBufferRef *picref) |
static int | request_frame (AVFilterLink *link) |
| AVFILTER_DEFINE_CLASS (yadif) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static av_cold int | init (AVFilterContext *ctx, const char *args) |
static int | config_props (AVFilterLink *link) |
Macro Definition Documentation
Value:{
int score =
FFABS(cur[mrefs + off_left + (j)] - cur[prefs + off_left - (j)])\
+
FFABS(cur[mrefs +(j)] - cur[prefs -(j)])\
+
FFABS(cur[mrefs + off_right + (j)] - cur[prefs + off_right - (j)]);\
if (score < spatial_score) {\
spatial_score= score;\
spatial_pred= (cur[mrefs +(j)] + cur[prefs -(j)])>>1;\
Definition at line 36 of file vf_yadif.c.
#define CONST |
( |
|
name, |
|
|
|
help, |
|
|
|
val, |
|
|
|
unit |
|
) |
| { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } |
#define FILTER |
( |
|
start, |
|
|
|
end |
|
) |
| |
Function Documentation
AVFILTER_DEFINE_CLASS |
( |
yadif |
| ) |
|
static void filter_edges |
( |
void * |
dst1, |
|
|
void * |
prev1, |
|
|
void * |
cur1, |
|
|
void * |
next1, |
|
|
int |
w, |
|
|
int |
prefs, |
|
|
int |
mrefs, |
|
|
int |
parity, |
|
|
int |
mode, |
|
|
int |
l_edge |
|
) |
| |
|
static |
static void filter_edges_16bit |
( |
void * |
dst1, |
|
|
void * |
prev1, |
|
|
void * |
cur1, |
|
|
void * |
next1, |
|
|
int |
w, |
|
|
int |
prefs, |
|
|
int |
mrefs, |
|
|
int |
parity, |
|
|
int |
mode, |
|
|
int |
l_edge |
|
) |
| |
|
static |
static void filter_line_c |
( |
void * |
dst1, |
|
|
void * |
prev1, |
|
|
void * |
cur1, |
|
|
void * |
next1, |
|
|
int |
w, |
|
|
int |
prefs, |
|
|
int |
mrefs, |
|
|
int |
parity, |
|
|
int |
mode |
|
) |
| |
|
static |
static void filter_line_c_16bit |
( |
void * |
dst1, |
|
|
void * |
prev1, |
|
|
void * |
cur1, |
|
|
void * |
next1, |
|
|
int |
w, |
|
|
int |
prefs, |
|
|
int |
mrefs, |
|
|
int |
parity, |
|
|
int |
mode |
|
) |
| |
|
static |
Variable Documentation
Initial value: {
.name = "yadif",
.priv_class = &yadif_class,
}
Definition at line 500 of file vf_yadif.c.
Initial value: {
{
.name = "default",
},
}
Definition at line 480 of file vf_yadif.c.
Initial value: {
{
.name = "default",
},
}
Definition at line 490 of file vf_yadif.c.