Go to the source code of this file.
|
#define | OFFSET(x) offsetof(W3FDIFContext, x) |
|
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
|
#define | CONST(name, help, val, u) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, .unit = u } |
|
|
| AVFILTER_DEFINE_CLASS (w3fdif) |
|
static void | filter_simple_low (int32_t *work_line, uint8_t *in_lines_cur[2], const int16_t *coef, int linesize) |
|
static void | filter_complex_low (int32_t *work_line, uint8_t *in_lines_cur[4], const int16_t *coef, int linesize) |
|
static void | filter_simple_high (int32_t *work_line, uint8_t *in_lines_cur[3], uint8_t *in_lines_adj[3], const int16_t *coef, int linesize) |
|
static void | filter_complex_high (int32_t *work_line, uint8_t *in_lines_cur[5], uint8_t *in_lines_adj[5], const int16_t *coef, int linesize) |
|
static void | filter_scale (uint8_t *out_pixel, const int32_t *work_pixel, int linesize, int max) |
|
static void | filter16_simple_low (int32_t *work_line, uint8_t *in_lines_cur8[2], const int16_t *coef, int linesize) |
|
static void | filter16_complex_low (int32_t *work_line, uint8_t *in_lines_cur8[4], const int16_t *coef, int linesize) |
|
static void | filter16_simple_high (int32_t *work_line, uint8_t *in_lines_cur8[3], uint8_t *in_lines_adj8[3], const int16_t *coef, int linesize) |
|
static void | filter16_complex_high (int32_t *work_line, uint8_t *in_lines_cur8[5], uint8_t *in_lines_adj8[5], const int16_t *coef, int linesize) |
|
static void | filter16_scale (uint8_t *out_pixel8, const int32_t *work_pixel, int linesize, int max) |
|
static int | config_input (AVFilterLink *inlink) |
|
static int | config_output (AVFilterLink *outlink) |
|
static int | deinterlace_plane_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs, int plane) |
|
static int | deinterlace_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter (AVFilterContext *ctx, int is_second) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
|
static int | request_frame (AVFilterLink *outlink) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
◆ OFFSET
◆ FLAGS
◆ CONST
#define CONST |
( |
|
name, |
|
|
|
help, |
|
|
|
val, |
|
|
|
u |
|
) |
| { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, .unit = u } |
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
w3fdif |
| ) |
|
◆ filter_simple_low()
static void filter_simple_low |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur[2], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter_complex_low()
static void filter_complex_low |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur[4], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter_simple_high()
static void filter_simple_high |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur[3], |
|
|
uint8_t * |
in_lines_adj[3], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter_complex_high()
static void filter_complex_high |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur[5], |
|
|
uint8_t * |
in_lines_adj[5], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter_scale()
static void filter_scale |
( |
uint8_t * |
out_pixel, |
|
|
const int32_t * |
work_pixel, |
|
|
int |
linesize, |
|
|
int |
max |
|
) |
| |
|
static |
◆ filter16_simple_low()
static void filter16_simple_low |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur8[2], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter16_complex_low()
static void filter16_complex_low |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur8[4], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter16_simple_high()
static void filter16_simple_high |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur8[3], |
|
|
uint8_t * |
in_lines_adj8[3], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter16_complex_high()
static void filter16_complex_high |
( |
int32_t * |
work_line, |
|
|
uint8_t * |
in_lines_cur8[5], |
|
|
uint8_t * |
in_lines_adj8[5], |
|
|
const int16_t * |
coef, |
|
|
int |
linesize |
|
) |
| |
|
static |
◆ filter16_scale()
static void filter16_scale |
( |
uint8_t * |
out_pixel8, |
|
|
const int32_t * |
work_pixel, |
|
|
int |
linesize, |
|
|
int |
max |
|
) |
| |
|
static |
◆ config_input()
◆ config_output()
◆ deinterlace_plane_slice()
static int deinterlace_plane_slice |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs, |
|
|
int |
plane |
|
) |
| |
|
static |
◆ deinterlace_slice()
static int deinterlace_slice |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter()
◆ filter_frame()
◆ request_frame()
◆ uninit()
◆ w3fdif_options
Initial value:= {
CONST(
"frame",
"send one frame for each frame", 0,
"mode"),
CONST(
"field",
"send one frame for each field", 1,
"mode"),
CONST(
"tff",
"assume top field first", 0,
"parity"),
CONST(
"bff",
"assume bottom field first", 1,
"parity"),
CONST(
"auto",
"auto detect parity", -1,
"parity"),
CONST(
"all",
"deinterlace all frames", 0,
"deint"),
CONST(
"interlaced",
"only deinterlace frames marked as interlaced", 1,
"deint"),
}
Definition at line 57 of file vf_w3fdif.c.
◆ pix_fmts
◆ n_coef_lf
const int8_t n_coef_lf[2] = { 2, 4 } |
|
static |
◆ coef_lf
const int16_t coef_lf[2][4] |
|
static |
◆ n_coef_hf
const int8_t n_coef_hf[2] = { 3, 5 } |
|
static |
◆ coef_hf
const int16_t coef_hf[2][5] |
|
static |
◆ w3fdif_inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 601 of file vf_w3fdif.c.
◆ w3fdif_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 610 of file vf_w3fdif.c.
◆ ff_vf_w3fdif
Initial value:= {
.name = "w3fdif",
.priv_class = &w3fdif_class,
}
Definition at line 619 of file vf_w3fdif.c.
#define AV_PIX_FMT_YUVA422P16
#define AV_PIX_FMT_GBRAP16
#define FILTER_PIXFMTS_ARRAY(array)
#define AV_PIX_FMT_YUVA422P9
#define FILTER_INPUTS(array)
#define AV_PIX_FMT_YUVA420P16
#define AV_PIX_FMT_YUVA420P10
#define AV_PIX_FMT_YUV420P10
static int request_frame(AVFilterLink *outlink)
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
#define AV_PIX_FMT_YUVA422P10
#define AV_PIX_FMT_YUVA420P9
#define AV_PIX_FMT_GBRP14
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
#define AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_YUVA444P16
#define AV_PIX_FMT_YUV422P9
#define AV_PIX_FMT_GRAY16
static const AVFilterPad w3fdif_outputs[]
#define AV_PIX_FMT_YUV444P10
static int config_input(AVFilterLink *inlink)
@ AV_PIX_FMT_YUVJ411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor ...
static av_cold void uninit(AVFilterContext *ctx)
static enum AVPixelFormat pix_fmts[]
#define AV_PIX_FMT_YUV422P16
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
#define AV_PIX_FMT_GBRAP10
#define AV_PIX_FMT_GBRAP12
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_YUVA444P12
#define AV_PIX_FMT_YUV420P9
#define AV_PIX_FMT_YUV420P16
#define AV_PIX_FMT_GRAY14
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_OUTPUTS(array)
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
#define AV_PIX_FMT_GRAY10
#define AV_PIX_FMT_GBRP16
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
#define AV_PIX_FMT_YUV440P10
#define AV_PIX_FMT_YUV422P10
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
static int config_output(AVFilterLink *outlink)
static const AVFilterPad w3fdif_inputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV444P12
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
#define AV_PIX_FMT_GBRP12
@ AV_PIX_FMT_YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
#define AV_PIX_FMT_YUV444P9
#define AV_PIX_FMT_YUVA444P9
#define AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV422P14
#define AV_PIX_FMT_YUVA422P12
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
static int filter(AVFilterContext *ctx, int is_second)
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
#define AV_PIX_FMT_YUV440P12
#define AV_PIX_FMT_YUV444P14
#define CONST(name, help, val, u)
#define AV_PIX_FMT_GRAY12
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
#define AV_PIX_FMT_YUV420P14