mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter/vf_convolve: Deduplicate framesync auxiliary functions
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5e9c7f1355
commit
c1b6165b73
@ -651,9 +651,11 @@ static const AVFilterPad convolve_outputs[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
FRAMESYNC_AUXILIARY_FUNCS(convolve, ConvolveContext, fs)
|
||||||
|
|
||||||
#if CONFIG_CONVOLVE_FILTER
|
#if CONFIG_CONVOLVE_FILTER
|
||||||
|
|
||||||
FRAMESYNC_DEFINE_CLASS(convolve, ConvolveContext, fs);
|
FRAMESYNC_DEFINE_PURE_CLASS(convolve, "convolve", convolve, convolve_options);
|
||||||
|
|
||||||
const AVFilter ff_vf_convolve = {
|
const AVFilter ff_vf_convolve = {
|
||||||
.name = "convolve",
|
.name = "convolve",
|
||||||
@ -683,12 +685,12 @@ static const AVOption deconvolve_options[] = {
|
|||||||
{ NULL },
|
{ NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
FRAMESYNC_DEFINE_CLASS(deconvolve, ConvolveContext, fs);
|
FRAMESYNC_DEFINE_PURE_CLASS(deconvolve, "deconvolve", convolve, deconvolve_options);
|
||||||
|
|
||||||
const AVFilter ff_vf_deconvolve = {
|
const AVFilter ff_vf_deconvolve = {
|
||||||
.name = "deconvolve",
|
.name = "deconvolve",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Deconvolve first video stream with second video stream."),
|
.description = NULL_IF_CONFIG_SMALL("Deconvolve first video stream with second video stream."),
|
||||||
.preinit = deconvolve_framesync_preinit,
|
.preinit = convolve_framesync_preinit,
|
||||||
.init = init,
|
.init = init,
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.query_formats = query_formats,
|
.query_formats = query_formats,
|
||||||
|
Loading…
Reference in New Issue
Block a user