FFmpeg
Loading...
Searching...
No Matches
vf_dedot.c
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Paul B Mahol
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#include "libavutil/opt.h"
22#include "libavutil/pixdesc.h"
23
24#include "avfilter.h"
25#include "filters.h"
26#include "video.h"
27
28typedef struct DedotContext {
29 const AVClass *class;
30 int m;
31 float lt;
32 float tl;
33 float tc;
34 float ct;
35
37 int depth;
38 int max;
39 int luma2d;
40 int lumaT;
43
44 int eof;
47 int planewidth[4];
49
51
52 int (*dedotcrawl)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
53 int (*derainbow)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
55
73
74#define DEFINE_DEDOTCRAWL(name, type, div) \
75static int dedotcrawl##name(AVFilterContext *ctx, void *arg, \
76 int jobnr, int nb_jobs) \
77{ \
78 DedotContext *s = ctx->priv; \
79 AVFrame *out = arg; \
80 int src_linesize = s->frames[2]->linesize[0] / div; \
81 int dst_linesize = out->linesize[0] / div; \
82 int p0_linesize = s->frames[0]->linesize[0] / div; \
83 int p1_linesize = s->frames[1]->linesize[0] / div; \
84 int p3_linesize = s->frames[3]->linesize[0] / div; \
85 int p4_linesize = s->frames[4]->linesize[0] / div; \
86 const int h = s->planeheight[0]; \
87 int slice_start = ff_slice_pos(h, jobnr, nb_jobs); \
88 int slice_end = ff_slice_pos(h, jobnr + 1, nb_jobs); \
89 type *p0 = (type *)s->frames[0]->data[0]; \
90 type *p1 = (type *)s->frames[1]->data[0]; \
91 type *p3 = (type *)s->frames[3]->data[0]; \
92 type *p4 = (type *)s->frames[4]->data[0]; \
93 type *src = (type *)s->frames[2]->data[0]; \
94 type *dst = (type *)out->data[0]; \
95 const int luma2d = s->luma2d; \
96 const int lumaT = s->lumaT; \
97 \
98 if (!slice_start) { \
99 slice_start++; \
100 } \
101 p0 += p0_linesize * slice_start; \
102 p1 += p1_linesize * slice_start; \
103 p3 += p3_linesize * slice_start; \
104 p4 += p4_linesize * slice_start; \
105 src += src_linesize * slice_start; \
106 dst += dst_linesize * slice_start; \
107 if (slice_end == h) { \
108 slice_end--; \
109 } \
110 for (int y = slice_start; y < slice_end; y++) { \
111 for (int x = 1; x < s->planewidth[0] - 1; x++) { \
112 int above = src[x - src_linesize]; \
113 int below = src[x + src_linesize]; \
114 int cur = src[x]; \
115 int left = src[x - 1]; \
116 int right = src[x + 1]; \
117 \
118 if (FFABS(above + below - 2 * cur) <= luma2d && \
119 FFABS(left + right - 2 * cur) <= luma2d) \
120 continue; \
121 \
122 if (FFABS(cur - p0[x]) <= lumaT && \
123 FFABS(cur - p4[x]) <= lumaT && \
124 FFABS(p1[x] - p3[x]) <= lumaT) { \
125 int diff1 = FFABS(cur - p1[x]); \
126 int diff2 = FFABS(cur - p3[x]); \
127 \
128 if (diff1 < diff2) \
129 dst[x] = (src[x] + p1[x] + 1) >> 1; \
130 else \
131 dst[x] = (src[x] + p3[x] + 1) >> 1; \
132 } \
133 } \
134 \
135 dst += dst_linesize; \
136 src += src_linesize; \
137 p0 += p0_linesize; \
138 p1 += p1_linesize; \
139 p3 += p3_linesize; \
140 p4 += p4_linesize; \
141 } \
142 return 0; \
143}
144
145DEFINE_DEDOTCRAWL(8, uint8_t, 1)
146DEFINE_DEDOTCRAWL(16, uint16_t, 2)
147
148typedef struct ThreadData {
149 AVFrame *out;
150 int plane;
151} ThreadData;
152
153#define DEFINE_DERAINBOW(name, type, div) \
154static int derainbow##name(AVFilterContext *ctx, void *arg, \
155 int jobnr, int nb_jobs) \
156{ \
157 DedotContext *s = ctx->priv; \
158 ThreadData *td = arg; \
159 AVFrame *out = td->out; \
160 const int plane = td->plane; \
161 const int h = s->planeheight[plane]; \
162 int slice_start = ff_slice_pos(h, jobnr, nb_jobs); \
163 int slice_end = ff_slice_pos(h, jobnr + 1, nb_jobs); \
164 int src_linesize = s->frames[2]->linesize[plane] / div; \
165 int dst_linesize = out->linesize[plane] / div; \
166 int p0_linesize = s->frames[0]->linesize[plane] / div; \
167 int p1_linesize = s->frames[1]->linesize[plane] / div; \
168 int p3_linesize = s->frames[3]->linesize[plane] / div; \
169 int p4_linesize = s->frames[4]->linesize[plane] / div; \
170 type *p0 = (type *)s->frames[0]->data[plane]; \
171 type *p1 = (type *)s->frames[1]->data[plane]; \
172 type *p3 = (type *)s->frames[3]->data[plane]; \
173 type *p4 = (type *)s->frames[4]->data[plane]; \
174 type *src = (type *)s->frames[2]->data[plane]; \
175 type *dst = (type *)out->data[plane]; \
176 const int chromaT1 = s->chromaT1; \
177 const int chromaT2 = s->chromaT2; \
178 \
179 p0 += slice_start * p0_linesize; \
180 p1 += slice_start * p1_linesize; \
181 p3 += slice_start * p3_linesize; \
182 p4 += slice_start * p4_linesize; \
183 src += slice_start * src_linesize; \
184 dst += slice_start * dst_linesize; \
185 for (int y = slice_start; y < slice_end; y++) { \
186 for (int x = 0; x < s->planewidth[plane]; x++) { \
187 int cur = src[x]; \
188 \
189 if (FFABS(cur - p0[x]) <= chromaT1 && \
190 FFABS(cur - p4[x]) <= chromaT1 && \
191 FFABS(p1[x] - p3[x]) <= chromaT1 && \
192 FFABS(cur - p1[x]) > chromaT2 && \
193 FFABS(cur - p3[x]) > chromaT2) { \
194 int diff1 = FFABS(cur - p1[x]); \
195 int diff2 = FFABS(cur - p3[x]); \
196 \
197 if (diff1 < diff2) \
198 dst[x] = (src[x] + p1[x] + 1) >> 1; \
199 else \
200 dst[x] = (src[x] + p3[x] + 1) >> 1; \
201 } \
202 } \
203 \
204 dst += dst_linesize; \
205 src += src_linesize; \
206 p0 += p0_linesize; \
207 p1 += p1_linesize; \
208 p3 += p3_linesize; \
209 p4 += p4_linesize; \
210 } \
211 return 0; \
212}
213
214DEFINE_DERAINBOW(8, uint8_t, 1)
215DEFINE_DERAINBOW(16, uint16_t, 2)
216
217static int config_output(AVFilterLink *outlink)
218{
219 AVFilterContext *ctx = outlink->src;
220 DedotContext *s = ctx->priv;
221 AVFilterLink *inlink = ctx->inputs[0];
222
223 s->desc = av_pix_fmt_desc_get(outlink->format);
224 if (!s->desc)
225 return AVERROR_BUG;
226 s->nb_planes = av_pix_fmt_count_planes(outlink->format);
227 s->depth = s->desc->comp[0].depth;
228 s->max = (1 << s->depth) - 1;
229 s->luma2d = s->lt * s->max;
230 s->lumaT = s->tl * s->max;
231 s->chromaT1 = s->tc * s->max;
232 s->chromaT2 = s->ct * s->max;
233
234 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, s->desc->log2_chroma_w);
235 s->planewidth[0] = s->planewidth[3] = inlink->w;
236
237 s->planeheight[1] = s->planeheight[2] = AV_CEIL_RSHIFT(inlink->h, s->desc->log2_chroma_h);
238 s->planeheight[0] = s->planeheight[3] = inlink->h;
239
240 if (s->depth <= 8) {
241 s->dedotcrawl = dedotcrawl8;
242 s->derainbow = derainbow8;
243 } else {
244 s->dedotcrawl = dedotcrawl16;
245 s->derainbow = derainbow16;
246 }
247
248 return 0;
249}
250
252{
253 AVFilterLink *inlink = ctx->inputs[0];
254 AVFilterLink *outlink = ctx->outputs[0];
255 DedotContext *s = ctx->priv;
256 AVFrame *frame = NULL;
257 int64_t pts;
258 int status;
259 int ret = 0;
260
261 FF_FILTER_FORWARD_STATUS_BACK(outlink, inlink);
262
263 if (s->eof == 0) {
264 ret = ff_inlink_consume_frame(inlink, &frame);
265 if (ret < 0)
266 return ret;
267 }
268 if (frame || s->eof_frames > 0) {
269 AVFrame *out = NULL;
270
271 if (frame) {
272 for (int i = 2; i < 5; i++) {
273 if (!s->frames[i])
274 s->frames[i] = av_frame_clone(frame);
275 }
277 } else if (s->frames[3]) {
278 s->eof_frames--;
279 s->frames[4] = av_frame_clone(s->frames[3]);
280 }
281
282 if (s->frames[0] &&
283 s->frames[1] &&
284 s->frames[2] &&
285 s->frames[3] &&
286 s->frames[4]) {
287 out = av_frame_clone(s->frames[2]);
288 if (out && !ctx->is_disabled) {
289 ret = ff_inlink_make_frame_writable(inlink, &out);
290 if (ret >= 0) {
291 if (s->m & 1)
292 ff_filter_execute(ctx, s->dedotcrawl, out, NULL,
294 s->planeheight[0]));
295 if (s->m & 2) {
296 ThreadData td;
297 td.out = out; td.plane = 1;
298 ff_filter_execute(ctx, s->derainbow, &td, NULL,
300 s->planeheight[1]));
301 td.plane = 2;
302 ff_filter_execute(ctx, s->derainbow, &td, NULL,
304 s->planeheight[2]));
305 }
306 } else
308 } else if (!out) {
309 ret = AVERROR(ENOMEM);
310 }
311 }
312
313 av_frame_free(&s->frames[0]);
314 s->frames[0] = s->frames[1];
315 s->frames[1] = s->frames[2];
316 s->frames[2] = s->frames[3];
317 s->frames[3] = s->frames[4];
318 s->frames[4] = NULL;
319
320 if (ret < 0)
321 return ret;
322 if (out)
323 return ff_filter_frame(outlink, out);
324 }
325
326 if (s->eof) {
327 if (s->eof_frames <= 0) {
328 ff_outlink_set_status(outlink, AVERROR_EOF, s->frames[2]->pts);
329 } else {
331 }
332 return 0;
333 }
334
335 if (!s->eof && ff_inlink_acknowledge_status(inlink, &status, &pts)) {
336 if (status == AVERROR_EOF) {
337 s->eof = 1;
338 s->eof_frames = !!s->frames[0] + !!s->frames[1];
339 if (s->eof_frames <= 0) {
341 return 0;
342 }
344 return 0;
345 }
346 }
347
348 FF_FILTER_FORWARD_WANTED(outlink, inlink);
349
350 return FFERROR_NOT_READY;
351}
352
354{
355 DedotContext *s = ctx->priv;
356
357 for (int i = 0; i < 5; i++)
358 av_frame_free(&s->frames[i]);
359}
360
361#define OFFSET(x) offsetof(DedotContext, x)
362#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
363
364static const AVOption dedot_options[] = {
365 { "m", "set filtering mode", OFFSET( m), AV_OPT_TYPE_FLAGS, {.i64=3}, 0, 3, FLAGS, .unit = "m" },
366 { "dotcrawl", 0, 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, .unit = "m" },
367 { "rainbows", 0, 0, AV_OPT_TYPE_CONST, {.i64=2}, 0, 0, FLAGS, .unit = "m" },
368 { "lt", "set spatial luma threshold", OFFSET(lt), AV_OPT_TYPE_FLOAT, {.dbl=.079}, 0, 1, FLAGS },
369 { "tl", "set tolerance for temporal luma", OFFSET(tl), AV_OPT_TYPE_FLOAT, {.dbl=.079}, 0, 1, FLAGS },
370 { "tc", "set tolerance for chroma temporal variation", OFFSET(tc), AV_OPT_TYPE_FLOAT, {.dbl=.058}, 0, 1, FLAGS },
371 { "ct", "set temporal chroma threshold", OFFSET(ct), AV_OPT_TYPE_FLOAT, {.dbl=.019}, 0, 1, FLAGS },
372 { NULL },
373};
374
375static const AVFilterPad outputs[] = {
376 {
377 .name = "default",
378 .type = AVMEDIA_TYPE_VIDEO,
379 .config_props = config_output,
380 },
381};
382
384
386 .p.name = "dedot",
387 .p.description = NULL_IF_CONFIG_SMALL("Reduce cross-luminance and cross-color."),
388 .p.priv_class = &dedot_class,
390 .priv_size = sizeof(DedotContext),
392 .uninit = uninit,
396};
static const AVFilterPad outputs[]
Definition af_aap.c:310
const FFFilter ff_vf_dedot
Definition vf_dedot.c:385
int ff_inlink_acknowledge_status(AVFilterLink *link, int *rstatus, int64_t *rpts)
Test and acknowledge the change of status on the link.
Definition avfilter.c:1467
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
Definition avfilter.c:1068
int ff_filter_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
Definition avfilter.c:1696
int ff_filter_get_nb_threads(AVFilterContext *ctx)
Get number of threads for current filter instance.
Definition avfilter.c:846
void ff_filter_set_ready(AVFilterContext *filter, unsigned priority)
Mark a filter ready and schedule it for activation.
Definition avfilter.c:229
int ff_inlink_make_frame_writable(AVFilterLink *link, AVFrame **rframe)
Make sure a frame is writable.
Definition avfilter.c:1567
int ff_inlink_consume_frame(AVFilterLink *link, AVFrame **rframe)
Take a frame from the link's FIFO and update the link's stats.
Definition avfilter.c:1520
Main libavfilter public API header.
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define s(width, name)
Definition cbs_vp9.c:198
#define FLAGS
Definition cmdutils.c:598
#define AV_CEIL_RSHIFT(a, b)
Definition common.h:60
#define NULL
Definition coverity.c:32
long long int64_t
Definition coverity.c:34
static AVFrame * frame
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
Definition opt.h:298
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
Definition opt.h:254
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
Definition opt.h:270
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition avfilter.h:166
#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:204
#define AVERROR_BUG
Internal bug, also see AVERROR_BUG2.
Definition error.h:52
#define AVERROR_EOF
End of file.
Definition error.h:57
#define AVERROR(e)
Definition error.h:45
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
Definition frame.c:64
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src.
Definition frame.c:483
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
static int config_output(AVBitStreamFilterLink *outlink)
const char * arg
Definition jacosubdec.c:65
#define FILTER_INPUTS(array)
Definition filters.h:264
#define FILTER_OUTPUTS(array)
Definition filters.h:265
#define FF_FILTER_FORWARD_WANTED(outlink, inlink)
Forward the frame_wanted_out flag from an output link to an input link.
Definition filters.h:694
#define FILTER_PIXFMTS_ARRAY(array)
Definition filters.h:244
static void ff_outlink_set_status(AVFilterLink *link, int status, int64_t pts)
Set the status field of a link from the source filter.
Definition filters.h:629
#define FFERROR_NOT_READY
Filters implementation helper functions and internal structures.
Definition filters.h:34
#define FF_FILTER_FORWARD_STATUS_BACK(outlink, inlink)
Forward the status on an output link to an input link.
Definition filters.h:639
#define AVFILTER_DEFINE_CLASS(fname)
Definition filters.h:478
#define av_cold
Definition attributes.h:117
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
#define FFMIN(a, b)
Definition macros.h:49
AVOptions.
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
Definition pixdesc.c:3500
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
Definition pixdesc.c:3460
#define AV_PIX_FMT_YUV420P16
Definition pixfmt.h:556
#define AV_PIX_FMT_YUV444P12
Definition pixfmt.h:552
#define AV_PIX_FMT_YUV444P9
Definition pixfmt.h:544
#define AV_PIX_FMT_YUV420P10
Definition pixfmt.h:545
#define AV_PIX_FMT_YUV440P12
Definition pixfmt.h:551
#define AV_PIX_FMT_YUV422P9
Definition pixfmt.h:543
#define AV_PIX_FMT_YUVA444P10
Definition pixfmt.h:598
#define AV_PIX_FMT_YUVA420P16
Definition pixfmt.h:601
#define AV_PIX_FMT_YUV420P12
Definition pixfmt.h:549
#define AV_PIX_FMT_YUVA420P10
Definition pixfmt.h:596
#define AV_PIX_FMT_YUVA422P9
Definition pixfmt.h:594
#define AV_PIX_FMT_YUV422P12
Definition pixfmt.h:550
#define AV_PIX_FMT_YUV422P10
Definition pixfmt.h:546
#define AV_PIX_FMT_YUV420P9
Definition pixfmt.h:542
#define AV_PIX_FMT_YUVA420P9
Definition pixfmt.h:593
#define AV_PIX_FMT_YUVA422P10
Definition pixfmt.h:597
#define AV_PIX_FMT_YUV420P14
Definition pixfmt.h:553
AVPixelFormat
Pixel format.
Definition pixfmt.h:71
@ AV_PIX_FMT_NONE
Definition pixfmt.h:72
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition pixfmt.h:73
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
Definition pixfmt.h:106
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition pixfmt.h:77
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition pixfmt.h:108
@ 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:107
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition pixfmt.h:79
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition pixfmt.h:80
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition pixfmt.h:78
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition pixfmt.h:174
@ AV_PIX_FMT_YUVJ411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor ...
Definition pixfmt.h:283
@ 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:86
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
Definition pixfmt.h:173
@ 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:87
@ 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:85
#define AV_PIX_FMT_YUVA422P12
Definition pixfmt.h:599
#define AV_PIX_FMT_YUV422P14
Definition pixfmt.h:554
#define AV_PIX_FMT_YUV422P16
Definition pixfmt.h:557
#define AV_PIX_FMT_YUVA444P16
Definition pixfmt.h:603
#define AV_PIX_FMT_YUVA422P16
Definition pixfmt.h:602
#define AV_PIX_FMT_YUV444P14
Definition pixfmt.h:555
#define AV_PIX_FMT_YUVA444P9
Definition pixfmt.h:595
#define AV_PIX_FMT_YUVA444P12
Definition pixfmt.h:600
#define AV_PIX_FMT_YUV444P16
Definition pixfmt.h:558
#define AV_PIX_FMT_YUV444P10
Definition pixfmt.h:548
Describe the class of an AVClass context structure.
Definition log.h:76
An instance of a filter.
Definition avfilter.h:273
A filter pad used for either input or output.
Definition filters.h:40
This structure describes decoded (raw) audio or video data.
Definition frame.h:472
AVOption.
Definition opt.h:428
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
Definition pixdesc.h:69
AVFrame * frames[5]
Definition vf_dedot.c:50
int nb_planes
Definition vf_dedot.c:46
int(* derainbow)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Definition vf_dedot.c:53
int eof_frames
Definition vf_dedot.c:45
int planewidth[4]
Definition vf_dedot.c:47
const AVPixFmtDescriptor * desc
Definition vf_dedot.c:36
int planeheight[4]
Definition vf_dedot.c:48
int(* dedotcrawl)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Definition vf_dedot.c:52
Used for passing data between threads.
Definition dsddec.c:71
AVFrame * out
int plane
Definition vf_blend.c:61
static FILE * out
Definition movenc.c:55
static AVFormatContext * ctx
Definition movenc.c:49
static int64_t pts
static enum AVPixelFormat pixel_fmts[]
Definition vf_amplify.c:52
#define DEFINE_DEDOTCRAWL(name, type, div)
Definition vf_dedot.c:74
#define DEFINE_DERAINBOW(name, type, div)
Definition vf_dedot.c:153
static int activate(AVFilterContext *ctx)
Definition vf_dedot.c:251
static av_cold void uninit(AVFilterContext *ctx)
Definition vf_dedot.c:353
#define OFFSET(x)
Definition vf_dedot.c:361
static const AVOption dedot_options[]
Definition vf_dedot.c:364
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition video.c:37