James Almer
5d9af1670e
avfilter: use the buffer_size_t typedef where required
...
Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-10 20:26:36 -03:00
Paul B Mahol
3e3c408e3f
avfilter/af_dynaudnorm: make better check for available samples
...
Also report more correct EOF timestamp.
2021-03-10 23:52:07 +01:00
Andreas Rheinhardt
2ae73b74bb
avfilter/vf_nnedi: Fix use of uninitialized value
...
Fixes Coverity issue #1473546 .
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-03-10 21:00:21 +01:00
Andreas Rheinhardt
59c0301be9
avfilter/buffersink: Postpone removal of av_[a]buffersink_params_alloc
...
They have been deprecated in 61097535cd
,
yet this was less than two years ago. Removing them will therefore have
to wait.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-03-07 15:19:10 +01:00
Andreas Rheinhardt
fec3c730e6
avfilter/avfilter: Remove avfilter_link_set_closed() on bump
...
Deprecated in 39a09e995d
.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-03-07 15:18:35 +01:00
Paul B Mahol
17127f81c5
avfilter: add msad video filter
2021-03-06 12:42:16 +01:00
Paul B Mahol
4a69cd4e4e
avfilter: add identity video filter
2021-03-06 12:41:30 +01:00
Andreas Rheinhardt
0e645b98c6
Remove double ';'
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-03-01 06:10:44 +01:00
Marton Balint
84094f017e
avfilter/avf_showcqt: use av_gettime_relative() instead of av_gettime()
...
av_gettime_relative() is using the monotonic clock therefore more suitable for
relative time calculations.
Signed-off-by: Marton Balint <cus@passwd.hu>
2021-02-27 21:30:41 +01:00
Andreas Rheinhardt
2869d71493
avfilter/lavfutils.h: Don't include avformat.h
...
Only lavfutils.c needs avformat.h, not lavfutils.h.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-02-25 22:03:32 +01:00
Paul B Mahol
95af3b6625
avfilter/vf_vif: add support for more formats
2021-02-25 16:38:27 +01:00
Paul B Mahol
550b7a9929
avfilter/vf_vif: simplify case comparing same inputs
2021-02-25 16:38:27 +01:00
Guo, Yejun
ae4f6379d6
avfilter/vf_vif.c: fix build warning for [-Wmain]
...
src/libavfilter/vf_vif.c: In function ‘process_frame’:
src/libavfilter/vf_vif.c:542:20: warning: ‘main’ is usually a function [-Wmain]
AVFrame *out, *main = NULL, *ref = NULL;
^~~~
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-25 11:43:56 +01:00
Guo, Yejun
ac6dd87cd1
avfilter/vf_ssim.c: fix build warning for [-Wmain]
...
The build warning message:
src/libavfilter/vf_ssim.c: In function ‘ssim_plane_16bit’:
src/libavfilter/vf_ssim.c:246:24: warning: ‘main’ is usually a function [-Wmain]
const uint8_t *main = td->main_data[c];
^~~~
src/libavfilter/vf_ssim.c: In function ‘ssim_plane’:
src/libavfilter/vf_ssim.c:289:24: warning: ‘main’ is usually a function [-Wmain]
const uint8_t *main = td->main_data[c];
^~~~
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-25 11:43:56 +01:00
Paul B Mahol
a2f9270f1c
avfilter/af_afade: remove uneeded '.' from durations in options
2021-02-21 13:42:40 +01:00
Paul B Mahol
c2ca1eb2a7
avfilter/vf_ssim: add slice threading
2021-02-19 21:15:08 +01:00
Paul B Mahol
680ba23bc2
avfilter/vf_psnr: add support for slice threading
2021-02-19 21:15:08 +01:00
Andreas Rheinhardt
14dc28e969
avfilter/vf_vif: Remove superfluous ';'
...
Inside a function a superfluous ';' is just a null-statement; yet
outside it is invalid, even though compilers happen to accept them.
They (at least GCC and Clang) only warn about this when on -pedantic.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-02-19 08:34:57 +01:00
Ting Fu
b0d75a8de9
dnn_backend_openvino.c: allow out_frame as NULL for analytic case
2021-02-18 09:59:37 +08:00
Guo, Yejun
2da3a5c10f
dnn: add color conversion for analytic case
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-18 09:59:37 +08:00
Guo, Yejun
0884063f88
dnn_interface.h: add enum DNNColorOrder
...
the data type and order together decide the color format, we could
not use AVPixelFormat directly because not all the possible formats
are covered by it.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-18 09:59:37 +08:00
Guo, Yejun
76fc6879e2
dnn: add function type for model
...
So the backend knows the usage of model is for frame processing,
detect, classify, etc. Each function type has different behavior
in backend when handling the input/output data of the model.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-18 09:59:37 +08:00
Guo, Yejun
bdce636100
dnn: extract common functions used by different filters
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-18 09:59:37 +08:00
Guo, Yejun
995c33a046
dnn_backend_openvino.c: fix multi-thread issue for async execution
...
once we mark done for the task in function infer_completion_callback,
the task is possible to be release in function ff_dnn_get_async_result_ov
in another thread just after it, so we need to record request queue
first, instead of using task->ov_model->request_queue later.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-18 09:59:37 +08:00
Guo, Yejun
51c105a62d
dnn_backend_openvino.c: fix mismatch between ffmpeg(NHWC) and openvino(NCHW)
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2021-02-18 09:59:37 +08:00
Mark Thompson
5a9aebac91
avfilter/vf_pseudocolor: Add missing braces
...
The array inside a structure needs two levels of braces.
2021-02-17 23:09:40 +00:00
James Almer
1628409b18
x86/vf_gblur: fix reg name in UNIX64 prologue
...
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-17 15:51:28 -03:00
James Almer
3c77584be8
avfilter/vf_gblur: add missing arch check
...
Removed by mistake in 2b4da1cb8c
where it
should have been replaced instead.
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-17 15:45:40 -03:00
James Almer
2b4da1cb8c
x86/vf_gblur: fix postscale_slice prologue
...
x86_32 ABI does not pass float arguments directly on xmm regs, and the Win64
ABI uses only the first four regs for this purpose.
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-17 13:33:20 -03:00
Nicolas George
670051b524
lavfi/drawtext: ignore final LF of textfile.
...
A standard text file ends with a final LF.
Without this change, it is interpreted as an empty final line,
and visible with the box option.
The current behavior can be achieved by actually having
an empty line at the end of the file.
Fix trac ticket #7948 .
2021-02-17 11:53:51 +01:00
Andreas Rheinhardt
a34333f43b
avfilter/vif: Include avfilter.h
...
Fixes checkheaders.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-02-16 22:26:56 +01:00
Paul B Mahol
44cf3a2b16
avfilter/x86/vf_gblur: add postscale SIMD
2021-02-16 21:12:11 +01:00
Paul B Mahol
058db59e16
avfilter/vf_gblur: factor out postscale function
2021-02-16 21:12:11 +01:00
James Almer
04dfdde09b
avfilter/buffersrc: simplify av_buffersrc_add_frame_flags()
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-16 12:36:37 -03:00
Ashish Singh
38aea9b041
avfilter: add vif filter
...
This is Visual Information Fidelity (VIF) filter and one of the component
filters of VMAF. It outputs the average VIF score over all frames.
Signed-off-by: Ashish Singh <ashk43712@gmail.com>
2021-02-16 15:00:50 +01:00
Carl Eugen Hoyos
3490108f95
lavfi/vflip: Support Bayer vertical flip.
...
Fixes ticket #8819 .
2021-02-15 00:12:38 +01:00
Paul B Mahol
c6ce18be08
avfilter/vf_convolution: add 16-column operation for filter_column()
...
Based on patch by Xu Jun <xujunzz@sjtu.edu.cn>
2021-02-13 14:45:48 +01:00
Paul B Mahol
bbf6183e11
avfilter/vf_datascope: pixscope: add commands support
2021-02-13 12:38:15 +01:00
Paul B Mahol
6c52c27d3d
avfilter/vf_psnr: remove precision limits for metadata values
2021-02-12 23:22:32 +01:00
Paul B Mahol
3300d718f7
avfilter/vf_ssim: remove precision limits for metadata values
2021-02-12 23:22:32 +01:00
Paul B Mahol
95b854dd06
avfilter/af_amix: rename sum option to normalize
...
It makes more sense to still use provided weights.
2021-02-12 23:01:52 +01:00
Paul B Mahol
05a6d82d5c
avfilter/vf_ssim: add timeline support
2021-02-12 21:21:25 +01:00
Paul B Mahol
735ec7666b
avfilter/vf_psnr: add timeline support
2021-02-12 21:21:25 +01:00
Paul B Mahol
34922dffca
avfilter/vf_gblur: add float format support
2021-02-12 21:09:51 +01:00
Paul B Mahol
edc45d1bd5
avfilter: add monochrome video filter
2021-02-12 00:08:39 +01:00
Jan Ekström
58e59396f5
avfilter/vf_zscale: add support for setting scaling filter parameters
...
param_a/b are utilized for this.
2021-02-11 20:45:56 +02:00
Paul B Mahol
44facfb845
avfilter/vf_pseudocolor: do not leave alpha uninitialized
2021-02-11 14:37:14 +01:00
Paul B Mahol
0ef53cc72f
avfilter/vf_pseudocolor: add two more presets
2021-02-11 14:37:14 +01:00
Paul B Mahol
2859c30cd9
avfilter/vf_pseudocolor: add opacity option
2021-02-11 14:37:14 +01:00
Paul B Mahol
ba2cebb49c
avfilter/af_adeclick: add more descriptive options names
2021-02-11 11:39:55 +01:00
Paul B Mahol
16c09b4659
avfilter/vf_lagfun: use macro
2021-02-11 00:45:08 +01:00
Paul B Mahol
05b394d537
avfilter/vf_lagfun: add timeline support
2021-02-11 00:45:08 +01:00
Paul B Mahol
27b5d0e1e4
avfilter/vf_lagfun: increase filter precision
2021-02-11 00:45:08 +01:00
Paul B Mahol
4390573c44
avfilter: add exposure video filter
2021-02-10 19:23:48 +01:00
Paul B Mahol
579e4e57a2
avfilter: add aexciter audio filter
2021-02-10 19:21:01 +01:00
Paul B Mahol
129978af6b
avfilter/af_arnndn: skip array extra entries by looking for new line
2021-02-10 14:15:42 +01:00
Paul B Mahol
aa8adc9206
avfilter/vf_datascope: add commands support
2021-02-10 11:28:47 +01:00
Paul B Mahol
199301a03a
avfilter/af_arnndn: make model opening errors more verbose
...
Also return proper error code.
2021-02-09 23:56:11 +01:00
Paul B Mahol
d7cb8c51f0
avfilter/vf_curves: add commands support
2021-02-09 18:20:15 +01:00
Paul B Mahol
cfcc36240f
avfilter/vf_framepack: add >8 format support
2021-02-09 12:29:04 +01:00
Paul B Mahol
73ff84c3d4
avfilter/vf_swaprect: add support for commands
2021-02-09 11:39:26 +01:00
Paul B Mahol
ca042675ee
avfilter/vf_maskfun: add support for commands
2021-02-09 11:24:31 +01:00
Paul B Mahol
8e027ca817
avfilter/vf_zscale: switch verbose log to trace
...
Not needed in verbose mode.
2021-02-09 10:37:42 +01:00
Paul B Mahol
a00ff56321
avfilter/vf_lut: add support for commands
...
While here remove excessive log and uninit() call in negate_init().
2021-02-08 16:37:23 +01:00
Paul B Mahol
dd01165f19
avfilter/vf_deband: add support for commands
2021-02-08 16:10:51 +01:00
Paul B Mahol
178a0d6f7d
avfilter/vf_deband: avoid doubles
2021-02-08 16:10:51 +01:00
Paul B Mahol
a773455c4f
avfilter/vf_thumbnail: add support for rest of packed rgb formats
2021-02-08 13:01:28 +01:00
Paul B Mahol
3b65c848a6
avfilter/vf_thumbnail: add support for YUV and GBRP formats
2021-02-08 12:45:49 +01:00
Anton Khirnov
cc4feff861
vf_pp: remove unnecessary free
...
ff_qp_table_extract() frees the table on failure.
Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-02-08 11:06:29 +01:00
Paul B Mahol
89f78dd0fe
avfilter/vf_lut3d: lut3d, haldclut: add support for commands
2021-02-08 00:55:07 +01:00
Paul B Mahol
5f592136eb
avfilter/vf_lut2: add support for commands
2021-02-07 22:41:49 +01:00
Paul B Mahol
629dd8efb5
avfilter/vf_extractplanes: add float formats support
2021-02-07 21:45:26 +01:00
Paul B Mahol
bd5226704a
avfilter: add colorize filter
2021-02-07 11:48:28 +01:00
Paul B Mahol
4b2968d305
avfilter/vf_deblock: add support for commands
2021-02-06 15:26:39 +01:00
Paul B Mahol
d8181cbbc4
avfilter/vf_lut3d: lut1d: add support for commands
2021-02-06 12:47:21 +01:00
Paul B Mahol
feea20e994
avfilter/vf_tile: remove extra whitespace in option description
2021-02-06 11:40:59 +01:00
Paul B Mahol
6317d40d08
avfilter/avfilter: move enable_str expression parsing into avfilter_init_dict()
...
This ensures that needed arrays are always allocated and properly initialized.
Previously if code would use only avfilter_init_dict() to set options for filters
it would not allocate arrays for timeline processing thus it would crash if
user supplied enable option for filter(s).
2021-02-06 11:40:59 +01:00
Paul B Mahol
d0a24bfad1
avfilter/vf_mix: add support for commands
2021-02-06 11:34:28 +01:00
Paul B Mahol
3583d2a837
avfilter/vf_mix: add timeline support
2021-02-06 11:34:28 +01:00
Paul B Mahol
d16293e76c
avfilter/vf_lensfun: display list of possible values if user supplied none
2021-02-05 15:27:50 +01:00
Paul B Mahol
8b78eb312d
avfilter/vf_lensfun: replace deprecated calls
2021-02-05 15:27:50 +01:00
Paul B Mahol
593817f51d
avfilter/vf_frei0r: add timeline support
2021-02-05 13:18:21 +01:00
Gyan Doshi
5c8d4c4fac
avfilter/drawbox: fix formatting after d64cbd4fda
2021-02-05 17:29:59 +05:30
Paul B Mahol
fb9c56bbd5
avfilter/af_arnndn: add support for commands
2021-02-05 00:43:11 +01:00
Paul B Mahol
3d7ee5c91a
avfilter/vf_blend: add support for commands
2021-02-04 21:44:31 +01:00
Paul B Mahol
5765149392
avfilter/af_amix: add sum option
2021-02-04 17:52:45 +01:00
Paul B Mahol
b4ad669a42
avfilter/avfilter: mark enable as runtime option too
2021-02-03 15:51:40 +01:00
Paul B Mahol
f6621a8e72
avfilter: add colorcorrect filter
2021-02-03 15:49:13 +01:00
Andreas Rheinhardt
ba874ad904
avfilter/ebur128: Remove unused functions
...
Also make a function only used here static.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-02-02 23:53:30 +01:00
Paul B Mahol
68b5236eae
avfilter/vf_colorlevels: call execute once per frame
2021-02-02 17:53:29 +01:00
Paul B Mahol
7ee3a5594b
avfilter/vf_colorlevels: no need to use double for coeff
2021-02-02 17:53:29 +01:00
Paul B Mahol
62e24a5d80
avfilter/vf_colorlevels: beautify define
2021-02-02 17:53:29 +01:00
Paul B Mahol
a7e826b9e1
avfilter/vf_colorlevels: typedef ThreadData struct
2021-02-02 17:53:29 +01:00
Paul B Mahol
090f31f813
avfilter: add colorcontrast filter
2021-02-02 14:27:06 +01:00
Paul B Mahol
459c6e8ab3
avfilter/vf_vibrance: add packed formats support
2021-01-31 20:55:23 +01:00
Paul B Mahol
98b0c0e44f
avfilter/vf_colortemperature: add packed formats support
2021-01-31 20:55:23 +01:00
Paul B Mahol
aa8cf8fdee
avfilter/vf_colortemperature: use macro for identical code
2021-01-31 20:55:23 +01:00
Paul B Mahol
54de7dc372
avfilter/af_acrusher: add commands support
2021-01-30 23:53:38 +01:00
Paul B Mahol
633e344d96
avfilter/vf_lagfun: add support for commands
2021-01-30 17:28:26 +01:00
Paul B Mahol
f0dd5c00cb
avfilter/vf_weave: add slice threading support
2021-01-30 17:00:35 +01:00