Paul B Mahol
71f2a9a2e5
avfilter/vf_remap: remove timeline support
...
It is not supported, as it is possible to change frame video width
and height and that can lead to undefined output.
2021-09-28 00:38:35 +02:00
Paul B Mahol
94e805235b
avfilter/vf_blend: add 14bit pixel format support
2021-09-28 00:14:20 +02:00
Paul B Mahol
dd19019500
avfilter/vf_blend: refactor blend modes
2021-09-28 00:14:19 +02:00
Paul B Mahol
524407af0c
avfilter/vf_blend: add gray9 pixel format support
2021-09-27 19:41:51 +02:00
Paul B Mahol
63b850c604
avfilter/vf_blend: refactor blend macros
2021-09-27 19:41:51 +02:00
Paul B Mahol
d7408a786f
avfilter/vf_blend: refactor similar code
2021-09-27 19:12:48 +02:00
Andreas Rheinhardt
90546c6ca7
avfilter/preserve_color: Add necessary headers
...
Fixes checkheaders.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-27 10:17:53 +02:00
Andreas Rheinhardt
f7d59ca364
avfilter/audio, video: Remove references to avfilter_unref_buffer()
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-27 06:10:57 +02:00
Paul B Mahol
e2d40cd1d5
avfilter/vf_blend: add softdifference blend mode
2021-09-26 23:34:47 +02:00
Paul B Mahol
53f8a03123
avfilter/vf_colorchannelmixer: add extended preserve color support
2021-09-26 20:27:24 +02:00
Paul B Mahol
e4327f97b1
avfilter/vf_colorchannelmixer: simplify code a little
2021-09-26 20:27:24 +02:00
Paul B Mahol
34102f8c07
avfilter/vf_colorlevels: add preserve color option
2021-09-26 20:27:23 +02:00
Paul B Mahol
4727e30ec3
avfilter/vf_colorlevels: refactor code so all components are processed in same loop
...
This is also faster.
2021-09-26 20:27:23 +02:00
Soft Works
8983c3d7e4
avfilter/elbg: Extend filter to include alpha values in the quantization procedure
...
Usage example:
ffmpeg -y -loglevel verbose -i "..\fate-suite\apng\o_sample.png" -filter_complex "elbg=pal8=1:use_alpha=1" -frames:v 1 out.png
Signed-off-by: softworkz <softworkz@hotmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-09-26 17:34:08 +02:00
Andreas Rheinhardt
f348a967a3
avfilter/formats: Avoid reallocations for video in ff_all_formats()
...
Up until now, the list of pixfmts is reallocated every time an entry
is added to it; there are currently 196 pixel formats, so this matters:
It causes 5541704 calls to av_realloc_array() in a typical FATE run,
which is the majority for said function (8095768 calls) and even
a large chunk of the calls to av_realloc() itself (12589508 calls).
Fix this by using ff_formats_pixdesc_filter() instead.
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-26 12:42:36 +02:00
Andreas Rheinhardt
99feb59cf7
avfilter/formats: Make ff_formats_pixdesc_filter return AVFilterFormats*
...
Up until now, it has returned the AVFilterFormats list via
an AVFilterFormats** parameter; the actual return value was an int
that was always AVERROR(ENOMEM) on error. The AVFilterFormats**
argument was a pure output parameter which was only documented
by naming the parameter rfmts. Yet nevertheless all callers
initialized the underlying AVFilterFormats* to NULL.
This commit changes this to return a pointer to AVFilterFormats
directly. This is more in line with the API in general, as it
allows to avoid checks for intermediate values.
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-26 12:41:33 +02:00
Andreas Rheinhardt
aff855148a
avfilter/vf_swaprect: Use ff_formats_pixdesc_filter()
...
Reviewed-by: Nicolas George <george@nsup.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-26 12:29:59 +02:00
Paul B Mahol
7b5df3b545
avfilter/vf_colorbalance: fix min/max check that can never be true
...
While here change doubles to floats.
2021-09-26 11:20:45 +02:00
Paul B Mahol
314ee127f3
avfilter/vf_selectivecolor: reduce number of operations with r/g/b/a pointers
2021-09-26 10:17:17 +02:00
Paul B Mahol
69f4fdd10d
avfilter/vf_selectivecolor: refactor some repeating calculations
2021-09-26 10:17:17 +02:00
Paul B Mahol
d098e16f09
avfilter/vf_v360: refactor uf/vf scaling
2021-09-24 22:30:37 +02:00
Andreas Rheinhardt
6b2c1d1018
avcodec/elbg: Add flags to avpriv_elbg_do()
...
This is currently unused and it is only added to enable changes
while maintaining ABI compatibility. The type is uintptr_t in order
to potentially accept a pointer argument.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-24 00:01:27 +02:00
Andreas Rheinhardt
6afad4c7e9
avfilter/vf_elbg: Check call to avpriv_elbg_do()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-24 00:01:08 +02:00
Paul B Mahol
6a1bda3df9
avfilter/af_silenceremove: improve trimming middle silence
2021-09-23 23:34:45 +02:00
Andreas Rheinhardt
d6f4b91ba5
avfilter/framesync: Remove redundant setting of AVClass
...
Every filter exposing the framesync options via its child_next
callback already calls framesync_preinit() in its preinit callback.
So the filter is already preinited whenever its child_next is called.
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-23 21:13:00 +02:00
Andreas Rheinhardt
c1b6165b73
avfilter/vf_convolve: Deduplicate framesync auxiliary functions
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-23 21:12:58 +02:00
Andreas Rheinhardt
5e9c7f1355
avfilter/vf_lut3d: Deduplicate options
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-23 21:12:58 +02:00
Andreas Rheinhardt
b368a774dd
avfilter/framesync: Separate framesync AVClass and auxiliary functions
...
Will be useful for deduplication.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-23 21:12:37 +02:00
Andreas Rheinhardt
467c6a9146
avfilter/vf_geq: Simplify creating string
...
Also fixes a Wformat-truncation warning from GCC.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:35 +02:00
Andreas Rheinhardt
04a5ffa75f
avfilter/vf_xfade: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:32 +02:00
Andreas Rheinhardt
c87d7c8a81
avfilter/vf_vif: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:30 +02:00
Andreas Rheinhardt
2a18ee752d
avfilter/vf_threshold: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:27 +02:00
Andreas Rheinhardt
d1a92cd06f
avfilter/vf_ssim: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:23 +02:00
Andreas Rheinhardt
63cc7077c1
avfilter/vf_psnr: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:20 +02:00
Andreas Rheinhardt
b6de483cb4
avfilter/vf_premultiply: Remove always-false format check
...
These filters use ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:17 +02:00
Andreas Rheinhardt
71285daba9
avfilter/vf_midequalizer: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:14 +02:00
Andreas Rheinhardt
0fc1abe031
avfilter/vf_maskedthreshold: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:09 +02:00
Andreas Rheinhardt
e2cd1b3c06
avfilter/vf_maskedminmax: Remove always-false format check
...
These filters use ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:05 +02:00
Andreas Rheinhardt
406552155a
avfilter/vf_maskedmerge: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:57:02 +02:00
Andreas Rheinhardt
15778ccce6
avfilter/vf_maskedclamp: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:58 +02:00
Andreas Rheinhardt
095d88d7ca
avfilter/vf_libvmaf: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:55 +02:00
Andreas Rheinhardt
14488c26bb
avfilter/vf_identity: Remove always-false format check
...
These filters use ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:52 +02:00
Andreas Rheinhardt
0d3841b59b
avfilter/vf_hysteresis: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:49 +02:00
Andreas Rheinhardt
bd98d125c8
avfilter/vf_guided: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:46 +02:00
Andreas Rheinhardt
caef1172ea
avfilter/vf_displace: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:43 +02:00
Andreas Rheinhardt
97454352cd
avfilter/vf_convolve: Remove always-false format check
...
These filters use ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:40 +02:00
Andreas Rheinhardt
9cffffd795
avfilter/vf_bm3d: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:37 +02:00
Andreas Rheinhardt
ef09bd65e2
avfilter/vf_blend: Remove always-false format check
...
This filter uses ff_set_common_formats_from_list().
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:33 +02:00
Andreas Rheinhardt
910215b4db
avfilter/af_sidechaincompress: Remove always-false samplerate check
...
This filter uses ff_set_common_all_samplerates().
Also don't overwrite outlink->sample_rate in config_output;
it is harmless, because it is overwritten with the value it already
had, but it is an API violation.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:30 +02:00
Andreas Rheinhardt
e1487deb19
avfilter/af_amerge: Remove always-false samplerate check
...
This filter uses ff_set_common_all_samplerates().
Also don't overwrite outlink->sample_rate in config_output;
it is harmless, because it is overwritten with the value it already
had, but it is an API violation.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-21 17:56:25 +02:00