#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.
|
#define | CHECK(j) |
|
#define | FILTER(start, end, is_not_edge) |
|
#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 } |
|
|
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) |
|
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) |
|
static void | filter (AVFilterContext *ctx, AVFrame *dstpic, int parity, int tff) |
|
static int | return_frame (AVFilterContext *ctx, int is_second) |
|
static int | filter_frame (AVFilterLink *link, AVFrame *frame) |
|
static int | request_frame (AVFilterLink *link) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static int | config_props (AVFilterLink *link) |
|
| AVFILTER_DEFINE_CLASS (yadif) |
|
Value:{
int score =
FFABS(cur[mrefs - 1 + (j)] - cur[prefs - 1 - (j)])\
+
FFABS(cur[mrefs +(j)] - cur[prefs -(j)])\
+
FFABS(cur[mrefs + 1 + (j)] - cur[prefs + 1 - (j)]);
\ if (score < spatial_score) {\
spatial_score= score;\
spatial_pred= (cur[mrefs +(j)] + cur[prefs -(j)])>>1;\
Definition at line 34 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, |
|
|
|
is_not_edge |
|
) |
| |
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 |
|
) |
| |
|
static |
static void filter_edges_16bit |
( |
void * |
dst1, |
|
|
void * |
prev1, |
|
|
void * |
cur1, |
|
|
void * |
next1, |
|
|
int |
w, |
|
|
int |
prefs, |
|
|
int |
mrefs, |
|
|
int |
parity, |
|
|
int |
mode |
|
) |
| |
|
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 |
Initial value:= {
.name = "yadif",
.priv_class = &yadif_class,
}
static const AVFilterPad avfilter_vf_yadif_inputs[]
static const AVFilterPad outputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad avfilter_vf_yadif_outputs[]
static av_cold void uninit(AVFilterContext *ctx)
struct YADIFContext YADIFContext
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition at line 476 of file vf_yadif.c.
Initial value:= {
{
.name = "default",
},
}
static int filter_frame(AVFilterLink *link, AVFrame *frame)
Definition at line 457 of file vf_yadif.c.
Initial value:= {
{
.name = "default",
},
}
static int request_frame(AVFilterLink *link)
static int config_props(AVFilterLink *link)
Definition at line 466 of file vf_yadif.c.
Initial value:= {
}
send 1 frame for each frame but skips spatial interlacing check
send 1 frame for each field
send 1 frame for each field but skips spatial interlacing check
send 1 frame for each frame
#define CONST(name, help, val, unit)
only deinterlace frames marked as interlaced
Definition at line 436 of file vf_yadif.c.