#include "libavutil/cpu.h"#include "libavutil/common.h"#include "avfilter.h"#include "yadif.h"#include <assert.h>Go to the source code of this file.
Data Structures | |
| struct | YADIFContext |
Defines | |
| #define | CHECK(j) |
Functions | |
| static void | filter_line_c (uint8_t *dst, uint8_t *prev, uint8_t *cur, uint8_t *next, int w, int prefs, int mrefs, int parity, int mode) |
| CHECK (1) | |
| if (spatial_pred > d+diff) spatial_pred | |
| else | if () |
| static AVFilterBufferRef * | get_video_buffer (AVFilterLink *link, int perms, int w, int h) |
| static void | return_frame (AVFilterContext *ctx, int is_second) |
| static void | start_frame (AVFilterLink *link, AVFilterBufferRef *picref) |
| static void | end_frame (AVFilterLink *link) |
| static int | request_frame (AVFilterLink *link) |
| static int | poll_frame (AVFilterLink *link) |
| static av_cold void | uninit (AVFilterContext *ctx) |
| static int | query_formats (AVFilterContext *ctx) |
| static av_cold int | init (AVFilterContext *ctx, const char *args, void *opaque) |
| static void | null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir) |
Variables | |
| AVFilter | avfilter_vf_yadif |
| #define CHECK | ( | j | ) |
| CHECK | ( | 1 | ) |
Definition at line 84 of file vf_yadif.c.
| static void end_frame | ( | AVFilterLink * | link | ) | [static] |
Definition at line 231 of file vf_yadif.c.
| static void filter_line_c | ( | uint8_t * | dst, | |
| uint8_t * | prev, | |||
| uint8_t * | cur, | |||
| uint8_t * | next, | |||
| int | w, | |||
| int | prefs, | |||
| int | mrefs, | |||
| int | parity, | |||
| int | mode | |||
| ) | [static] |
Definition at line 56 of file vf_yadif.c.
| static AVFilterBufferRef* get_video_buffer | ( | AVFilterLink * | link, | |
| int | perms, | |||
| int | w, | |||
| int | h | |||
| ) | [static] |
Definition at line 149 of file vf_yadif.c.
| else if | ( | ) |
Definition at line 104 of file vf_yadif.c.
| if | ( | spatial_pred | , | |
| d+ | diff | |||
| ) |
| static av_cold int init | ( | AVFilterContext * | ctx, | |
| const char * | args, | |||
| void * | opaque | |||
| ) | [static] |
Definition at line 304 of file vf_yadif.c.
| static void null_draw_slice | ( | AVFilterLink * | link, | |
| int | y, | |||
| int | h, | |||
| int | slice_dir | |||
| ) | [static] |
Definition at line 327 of file vf_yadif.c.
| static int poll_frame | ( | AVFilterLink * | link | ) | [static] |
Definition at line 262 of file vf_yadif.c.
| static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 291 of file vf_yadif.c.
| static int request_frame | ( | AVFilterLink * | link | ) | [static] |
Definition at line 242 of file vf_yadif.c.
| static void return_frame | ( | AVFilterContext * | ctx, | |
| int | is_second | |||
| ) | [static] |
Definition at line 167 of file vf_yadif.c.
Referenced by end_frame(), request_frame(), and start_frame().
| static void start_frame | ( | AVFilterLink * | link, | |
| AVFilterBufferRef * | picref | |||
| ) | [static] |
Definition at line 203 of file vf_yadif.c.
| static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 282 of file vf_yadif.c.
Initial value:
{
.name = "yadif",
.description = NULL_IF_CONFIG_SMALL("Deinterlace the input image"),
.priv_size = sizeof(YADIFContext),
.init = init,
.uninit = uninit,
.query_formats = query_formats,
.inputs = (AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.start_frame = start_frame,
.get_video_buffer = get_video_buffer,
.draw_slice = null_draw_slice,
.end_frame = end_frame, },
{ .name = NULL}},
.outputs = (AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.poll_frame = poll_frame,
.request_frame = request_frame, },
{ .name = NULL}},
}
Definition at line 329 of file vf_yadif.c.
1.5.6