FFmpeg  4.4.8
vf_yadif.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2011 Michael Niedermayer <michaelni@gmx.at>
3  * 2010 James Darnley <james.darnley@gmail.com>
4 
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * FFmpeg is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with FFmpeg; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 #include "libavutil/avassert.h"
23 #include "libavutil/cpu.h"
24 #include "libavutil/common.h"
25 #include "libavutil/pixdesc.h"
26 #include "libavutil/imgutils.h"
27 #include "avfilter.h"
28 #include "filters.h"
29 #include "formats.h"
30 #include "internal.h"
31 #include "video.h"
32 #include "yadif.h"
33 
34 typedef struct ThreadData {
35  AVFrame *frame;
36  int plane;
37  int w, h;
38  int parity;
39  int tff;
40 } ThreadData;
41 
42 #define CHECK(j)\
43  { int score = FFABS(cur[mrefs - 1 + (j)] - cur[prefs - 1 - (j)])\
44  + FFABS(cur[mrefs +(j)] - cur[prefs -(j)])\
45  + FFABS(cur[mrefs + 1 + (j)] - cur[prefs + 1 - (j)]);\
46  if (score < spatial_score) {\
47  spatial_score= score;\
48  spatial_pred= (cur[mrefs +(j)] + cur[prefs -(j)])>>1;\
49 
50 /* The is_not_edge argument here controls when the code will enter a branch
51  * which reads up to and including x-3 and x+3. */
52 
53 #define FILTER(start, end, is_not_edge) \
54  for (x = start; x < end; x++) { \
55  int c = cur[mrefs]; \
56  int d = (prev2[0] + next2[0])>>1; \
57  int e = cur[prefs]; \
58  int temporal_diff0 = FFABS(prev2[0] - next2[0]); \
59  int temporal_diff1 =(FFABS(prev[mrefs] - c) + FFABS(prev[prefs] - e) )>>1; \
60  int temporal_diff2 =(FFABS(next[mrefs] - c) + FFABS(next[prefs] - e) )>>1; \
61  int diff = FFMAX3(temporal_diff0 >> 1, temporal_diff1, temporal_diff2); \
62  int spatial_pred = (c+e) >> 1; \
63  \
64  if (is_not_edge) {\
65  int spatial_score = FFABS(cur[mrefs - 1] - cur[prefs - 1]) + FFABS(c-e) \
66  + FFABS(cur[mrefs + 1] - cur[prefs + 1]) - 1; \
67  CHECK(-1) CHECK(-2) }} }} \
68  CHECK( 1) CHECK( 2) }} }} \
69  }\
70  \
71  if (!(mode&2)) { \
72  int b = (prev2[2 * mrefs] + next2[2 * mrefs])>>1; \
73  int f = (prev2[2 * prefs] + next2[2 * prefs])>>1; \
74  int max = FFMAX3(d - e, d - c, FFMIN(b - c, f - e)); \
75  int min = FFMIN3(d - e, d - c, FFMAX(b - c, f - e)); \
76  \
77  diff = FFMAX3(diff, min, -max); \
78  } \
79  \
80  if (spatial_pred > d + diff) \
81  spatial_pred = d + diff; \
82  else if (spatial_pred < d - diff) \
83  spatial_pred = d - diff; \
84  \
85  dst[0] = spatial_pred; \
86  \
87  dst++; \
88  cur++; \
89  prev++; \
90  next++; \
91  prev2++; \
92  next2++; \
93  }
94 
95 static void filter_line_c(void *dst1,
96  void *prev1, void *cur1, void *next1,
97  int w, int prefs, int mrefs, int parity, int mode)
98 {
99  uint8_t *dst = dst1;
100  uint8_t *prev = prev1;
101  uint8_t *cur = cur1;
102  uint8_t *next = next1;
103  int x;
104  uint8_t *prev2 = parity ? prev : cur ;
105  uint8_t *next2 = parity ? cur : next;
106 
107  /* The function is called with the pointers already pointing to data[3] and
108  * with 6 subtracted from the width. This allows the FILTER macro to be
109  * called so that it processes all the pixels normally. A constant value of
110  * true for is_not_edge lets the compiler ignore the if statement. */
111  FILTER(0, w, 1)
112 }
113 
114 #define MAX_ALIGN 8
115 static void filter_edges(void *dst1, void *prev1, void *cur1, void *next1,
116  int w, int prefs, int mrefs, int parity, int mode)
117 {
118  uint8_t *dst = dst1;
119  uint8_t *prev = prev1;
120  uint8_t *cur = cur1;
121  uint8_t *next = next1;
122  int x;
123  uint8_t *prev2 = parity ? prev : cur ;
124  uint8_t *next2 = parity ? cur : next;
125 
126  const int edge = MAX_ALIGN - 1;
127  int offset = FFMAX(w - edge, 3);
128 
129  /* Only edge pixels need to be processed here. A constant value of false
130  * for is_not_edge should let the compiler ignore the whole branch. */
131  FILTER(0, FFMIN(3, w), 0)
132 
133  dst = (uint8_t*)dst1 + offset;
134  prev = (uint8_t*)prev1 + offset;
135  cur = (uint8_t*)cur1 + offset;
136  next = (uint8_t*)next1 + offset;
137  prev2 = (uint8_t*)(parity ? prev : cur);
138  next2 = (uint8_t*)(parity ? cur : next);
139 
140  FILTER(offset, w - 3, 1)
141  offset = FFMAX(offset, w - 3);
142  FILTER(offset, w, 0)
143 }
144 
145 
146 static void filter_line_c_16bit(void *dst1,
147  void *prev1, void *cur1, void *next1,
148  int w, int prefs, int mrefs, int parity,
149  int mode)
150 {
151  uint16_t *dst = dst1;
152  uint16_t *prev = prev1;
153  uint16_t *cur = cur1;
154  uint16_t *next = next1;
155  int x;
156  uint16_t *prev2 = parity ? prev : cur ;
157  uint16_t *next2 = parity ? cur : next;
158  mrefs /= 2;
159  prefs /= 2;
160 
161  FILTER(0, w, 1)
162 }
163 
164 static void filter_edges_16bit(void *dst1, void *prev1, void *cur1, void *next1,
165  int w, int prefs, int mrefs, int parity, int mode)
166 {
167  uint16_t *dst = dst1;
168  uint16_t *prev = prev1;
169  uint16_t *cur = cur1;
170  uint16_t *next = next1;
171  int x;
172  uint16_t *prev2 = parity ? prev : cur ;
173  uint16_t *next2 = parity ? cur : next;
174 
175  const int edge = MAX_ALIGN / 2 - 1;
176  int offset = FFMAX(w - edge, 3);
177 
178  mrefs /= 2;
179  prefs /= 2;
180 
181  FILTER(0, FFMIN(3, w), 0)
182 
183  dst = (uint16_t*)dst1 + offset;
184  prev = (uint16_t*)prev1 + offset;
185  cur = (uint16_t*)cur1 + offset;
186  next = (uint16_t*)next1 + offset;
187  prev2 = (uint16_t*)(parity ? prev : cur);
188  next2 = (uint16_t*)(parity ? cur : next);
189 
190  FILTER(offset, w - 3, 1)
191  offset = FFMAX(offset, w - 3);
192  FILTER(offset, w, 0)
193 }
194 
195 static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
196 {
197  YADIFContext *s = ctx->priv;
198  ThreadData *td = arg;
199  int refs = s->cur->linesize[td->plane];
200  int df = (s->csp->comp[td->plane].depth + 7) / 8;
201  int pix_3 = 3 * df;
202  int slice_start = ff_slice_pos(td->h, jobnr, nb_jobs);
203  int slice_end = ff_slice_pos(td->h, jobnr + 1, nb_jobs);
204  int y;
205  int edge = 3 + MAX_ALIGN / df - 1;
206 
207  /* filtering reads 3 pixels to the left/right; to avoid invalid reads,
208  * we need to call the c variant which avoids this for border pixels
209  */
210  for (y = slice_start; y < slice_end; y++) {
211  if ((y ^ td->parity) & 1) {
212  uint8_t *prev = &s->prev->data[td->plane][y * refs];
213  uint8_t *cur = &s->cur ->data[td->plane][y * refs];
214  uint8_t *next = &s->next->data[td->plane][y * refs];
215  uint8_t *dst = &td->frame->data[td->plane][y * td->frame->linesize[td->plane]];
216  int mode = y == 1 || y + 2 == td->h ? 2 : s->mode;
217  s->filter_line(dst + pix_3, prev + pix_3, cur + pix_3,
218  next + pix_3, td->w - edge,
219  y + 1 < td->h ? refs : -refs,
220  y ? -refs : refs,
221  td->parity ^ td->tff, mode);
222  s->filter_edges(dst, prev, cur, next, td->w,
223  y + 1 < td->h ? refs : -refs,
224  y ? -refs : refs,
225  td->parity ^ td->tff, mode);
226  } else {
227  memcpy(&td->frame->data[td->plane][y * td->frame->linesize[td->plane]],
228  &s->cur->data[td->plane][y * refs], td->w * df);
229  }
230  }
231  return 0;
232 }
233 
234 static void filter(AVFilterContext *ctx, AVFrame *dstpic,
235  int parity, int tff)
236 {
237  YADIFContext *yadif = ctx->priv;
238  ThreadData td = { .frame = dstpic, .parity = parity, .tff = tff };
239  int i;
240 
241  for (i = 0; i < yadif->csp->nb_components; i++) {
242  int w = dstpic->width;
243  int h = dstpic->height;
244 
245  if (i == 1 || i == 2) {
246  w = AV_CEIL_RSHIFT(w, yadif->csp->log2_chroma_w);
247  h = AV_CEIL_RSHIFT(h, yadif->csp->log2_chroma_h);
248  }
249 
250 
251  td.w = w;
252  td.h = h;
253  td.plane = i;
254 
256  }
257 
258  emms_c();
259 }
260 
262 {
263  YADIFContext *yadif = ctx->priv;
264 
265  av_frame_free(&yadif->prev);
266  av_frame_free(&yadif->cur );
267  av_frame_free(&yadif->next);
268 }
269 
271 {
272  static const enum AVPixelFormat pix_fmts[] = {
288  };
289 
291  if (!fmts_list)
292  return AVERROR(ENOMEM);
293  return ff_set_common_formats(ctx, fmts_list);
294 }
295 
296 static int config_output(AVFilterLink *outlink)
297 {
298  AVFilterContext *ctx = outlink->src;
299  YADIFContext *s = ctx->priv;
300 
301  outlink->time_base.num = ctx->inputs[0]->time_base.num;
302  outlink->time_base.den = ctx->inputs[0]->time_base.den * 2;
303  outlink->w = ctx->inputs[0]->w;
304  outlink->h = ctx->inputs[0]->h;
305 
306  if(s->mode & 1)
307  outlink->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
308  (AVRational){2, 1});
309 
310  if (outlink->w < 3 || outlink->h < 3) {
311  av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
312  return AVERROR(EINVAL);
313  }
314 
315  s->csp = av_pix_fmt_desc_get(outlink->format);
316  s->filter = filter;
317  if (s->csp->comp[0].depth > 8) {
318  s->filter_line = filter_line_c_16bit;
319  s->filter_edges = filter_edges_16bit;
320  } else {
321  s->filter_line = filter_line_c;
322  s->filter_edges = filter_edges;
323  }
324 
325  if (ARCH_X86)
327 
328  return 0;
329 }
330 
331 
332 static const AVClass yadif_class = {
333  .class_name = "yadif",
334  .item_name = av_default_item_name,
335  .option = ff_yadif_options,
336  .version = LIBAVUTIL_VERSION_INT,
337  .category = AV_CLASS_CATEGORY_FILTER,
338 };
339 
341  {
342  .name = "default",
343  .type = AVMEDIA_TYPE_VIDEO,
344  .filter_frame = ff_yadif_filter_frame,
345  },
346  { NULL }
347 };
348 
350  {
351  .name = "default",
352  .type = AVMEDIA_TYPE_VIDEO,
353  .request_frame = ff_yadif_request_frame,
354  .config_props = config_output,
355  },
356  { NULL }
357 };
358 
360  .name = "yadif",
361  .description = NULL_IF_CONFIG_SMALL("Deinterlace the input image."),
362  .priv_size = sizeof(YADIFContext),
363  .priv_class = &yadif_class,
364  .uninit = uninit,
369 };
static const AVFilterPad inputs[]
Definition: af_acontrast.c:193
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
#define av_cold
Definition: attributes.h:88
uint8_t
simple assert() macros that are a bit more flexible than ISO C assert().
int ff_filter_get_nb_threads(AVFilterContext *ctx)
Get number of threads for current filter instance.
Definition: avfilter.c:802
Main libavfilter public API header.
#define flags(name, subs,...)
Definition: cbs_av1.c:572
#define s(width, name)
Definition: cbs_vp9.c:257
common internal and external API header
#define FFMIN(a, b)
Definition: common.h:105
#define AV_CEIL_RSHIFT(a, b)
Definition: common.h:58
#define FFMAX(a, b)
Definition: common.h:103
#define ARCH_X86
Definition: config.h:39
#define NULL
Definition: coverity.c:32
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83
static int ff_slice_pos(int total, int jobnr, int nb_jobs)
Compute the boundary index for a slice when work of size total is split into nb_jobs slices.
Definition: filters.h:271
int ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
A helper for query_formats() which sets all links to the same list of formats.
Definition: formats.c:587
AVFilterFormats * ff_make_format_list(const int *fmts)
Create a list of supported formats.
Definition: formats.c:286
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:117
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:134
#define AVERROR(e)
Definition: error.h:43
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
Definition: frame.c:203
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:194
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
AVRational av_mul_q(AVRational b, AVRational c)
Multiply two rationals.
Definition: rational.c:80
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
misc image utilities
int i
Definition: input.c:407
const char * arg
Definition: jacosubdec.c:66
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
#define emms_c()
Definition: internal.h:54
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:309
uint8_t w
Definition: llviddspenc.c:39
@ AV_CLASS_CATEGORY_FILTER
Definition: log.h:37
static int slice_end(AVCodecContext *avctx, AVFrame *pict)
Handle slice ends.
Definition: mpeg12dec.c:2033
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
Definition: pixdesc.c:2573
#define AV_PIX_FMT_YUV420P16
Definition: pixfmt.h:410
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:406
#define AV_PIX_FMT_YUV444P9
Definition: pixfmt.h:398
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:399
#define AV_PIX_FMT_GBRP9
Definition: pixfmt.h:414
#define AV_PIX_FMT_YUV422P9
Definition: pixfmt.h:397
#define AV_PIX_FMT_YUV420P12
Definition: pixfmt.h:403
#define AV_PIX_FMT_YUV422P12
Definition: pixfmt.h:404
#define AV_PIX_FMT_GBRP10
Definition: pixfmt.h:415
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:400
#define AV_PIX_FMT_GBRP12
Definition: pixfmt.h:416
#define AV_PIX_FMT_YUV420P9
Definition: pixfmt.h:396
#define AV_PIX_FMT_YUV420P14
Definition: pixfmt.h:407
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
Definition: pixfmt.h:99
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:70
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
Definition: pixfmt.h:74
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:101
@ AV_PIX_FMT_YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
Definition: pixfmt.h:100
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition: pixfmt.h:72
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:73
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:71
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition: pixfmt.h:177
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
Definition: pixfmt.h:215
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
Definition: pixfmt.h:79
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
Definition: pixfmt.h:176
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
Definition: pixfmt.h:168
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
Definition: pixfmt.h:80
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
Definition: pixfmt.h:78
#define AV_PIX_FMT_YUV422P14
Definition: pixfmt.h:408
#define AV_PIX_FMT_YUV422P16
Definition: pixfmt.h:411
#define AV_PIX_FMT_GRAY16
Definition: pixfmt.h:383
#define AV_PIX_FMT_GBRP16
Definition: pixfmt.h:418
#define AV_PIX_FMT_YUV444P14
Definition: pixfmt.h:409
#define AV_PIX_FMT_GBRP14
Definition: pixfmt.h:417
#define AV_PIX_FMT_YUV444P16
Definition: pixfmt.h:412
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:402
#define td
Definition: regdef.h:70
Describe the class of an AVClass context structure.
Definition: log.h:67
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
Definition: log.h:72
An instance of a filter.
Definition: avfilter.h:341
A list of supported formats for one end of a filter link.
Definition: formats.h:65
A filter pad used for either input or output.
Definition: internal.h:54
const char * name
Pad name.
Definition: internal.h:60
Filter definition.
Definition: avfilter.h:145
const char * name
Filter name.
Definition: avfilter.h:149
AVFormatInternal * internal
An opaque field for libavformat internal usage.
Definition: avformat.h:1699
This structure describes decoded (raw) audio or video data.
Definition: frame.h:318
int width
Definition: frame.h:376
int height
Definition: frame.h:376
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
Definition: pixdesc.h:92
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
Definition: pixdesc.h:101
uint8_t nb_components
The number of components each pixel has, (1-4)
Definition: pixdesc.h:83
Rational number (pair of numerator and denominator).
Definition: rational.h:58
int num
Numerator.
Definition: rational.h:59
int den
Denominator.
Definition: rational.h:60
Used for passing data between threads.
Definition: dsddec.c:67
int tff
Definition: vf_bwdif.c:58
int parity
Definition: vf_bwdif.c:57
AVFrame * frame
Definition: dsddec.c:68
int plane
Definition: vf_blend.c:59
AVFrame * prev
Definition: yadif.h:61
AVFrame * cur
Definition: yadif.h:59
AVFrame * next
Definition: yadif.h:60
const AVPixFmtDescriptor * csp
Definition: yadif.h:75
#define av_log(a,...)
AVFormatContext * ctx
Definition: movenc.c:48
mcdeint parity
Definition: vf_mcdeint.c:277
static const uint8_t offset[127][2]
Definition: vf_spp.c:107
#define df(A, B)
Definition: vf_xbr.c:91
static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Definition: vf_yadif.c:195
AVFilter ff_vf_yadif
Definition: vf_yadif.c:359
static void filter_edges_16bit(void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode)
Definition: vf_yadif.c:164
static void filter(AVFilterContext *ctx, AVFrame *dstpic, int parity, int tff)
Definition: vf_yadif.c:234
#define MAX_ALIGN
Definition: vf_yadif.c:114
static int query_formats(AVFilterContext *ctx)
Definition: vf_yadif.c:270
static void filter_line_c_16bit(void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode)
Definition: vf_yadif.c:146
static void filter_line_c(void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode)
Definition: vf_yadif.c:95
#define FILTER(start, end, is_not_edge)
Definition: vf_yadif.c:53
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_yadif.c:261
static const AVFilterPad avfilter_vf_yadif_outputs[]
Definition: vf_yadif.c:349
static int config_output(AVFilterLink *outlink)
Definition: vf_yadif.c:296
static const AVFilterPad avfilter_vf_yadif_inputs[]
Definition: vf_yadif.c:340
static void filter_edges(void *dst1, void *prev1, void *cur1, void *next1, int w, int prefs, int mrefs, int parity, int mode)
Definition: vf_yadif.c:115
static const AVClass yadif_class
Definition: vf_yadif.c:332
av_cold void ff_yadif_init_x86(YADIFContext *yadif)
Definition: vf_yadif_init.c:60
int ff_yadif_filter_frame(AVFilterLink *link, AVFrame *frame)
Definition: yadif_common.c:92
int ff_yadif_request_frame(AVFilterLink *link)
Definition: yadif_common.c:159
const AVOption ff_yadif_options[]
Definition: yadif_common.c:198