Sergey Lavrushkin
4eb63efbda
libavfilter: Adds on the fly generation of default DNN models for tensorflow backend instead of storing binary model.
...
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2018-08-07 11:58:03 -03:00
Vittorio Giovara
aa8e5eecac
vf_tonemap: Update hdr metadata with the new peak value
...
Less effective than the approach in vf_tonemap_opencl because there
is no peak detection, but it's still a good idea to implement this.
2018-08-06 18:35:52 +02:00
Vittorio Giovara
572ef567a5
vf_tonemap_opencl: Move update_metadata() to a shared file
2018-08-06 18:35:52 +02:00
Vittorio Giovara
e467179cfb
vf_tonemap[_opencl]: Move determine_signal_peak() to a shared file
...
The two functions are identical. Use the shared LumaCoeffients type too.
2018-08-06 18:35:52 +02:00
Vittorio Giovara
ce7ca726b2
vf_tonemap: Fix logic for detecting the maximum peak of untagged sources
...
When there is no metadata attached to a frame, take into account both
the PQ and HLG transfers, and change the HLG default value to 10:
the value of 12 is the maximum range in scene referred light, but
the reference OOTF maps this from 0 to 1000 cd/m² on the ideal HLG
monitor.
This matches what vf_tonemap_opencl does.
2018-08-06 18:34:49 +02:00
Jan Ekström
eb94ec3257
lavfi/nlmeans: fix aarch64 assembly with clang
...
Clang is more strict about some things.
2018-07-28 17:41:19 +03:00
Mina
0bb5cd8c4d
avfilter: Add colorconstancy filter
...
Signed-off-by: Mina <minasamy_@hotmail.com>
2018-07-23 22:34:52 +02:00
Carl Eugen Hoyos
9cb3d8fcb7
lavfi/af_afir,af_aiir: Remove a variable that is always -1.
...
Fixes two warnings:
libavfilter/af_afir.c:194:45: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
int dx = FFABS(x1-x0), sx = x0 < x1 ? 1 : -1;
~~~~~~~~~~~~^~~~
libavfilter/af_aiir.c:689:45: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
int dx = FFABS(x1-x0), sx = x0 < x1 ? 1 : -1;
~~~~~~~~~~~~^~~~
2018-07-19 23:13:24 +02:00
Paul B Mahol
5d8df3cc4a
Update Changelog for lensfun addition and bump minor
2018-07-15 10:23:20 +02:00
Stephen Seo
0ea20124b7
Add lensfun filter
...
Lensfun is a library that applies lens correction to an image using a
database of cameras/lenses (you provide the camera and lens models, and
it uses the corresponding database entry's parameters to apply lens
correction). It is licensed under LGPL3.
The lensfun filter utilizes the lensfun library to apply lens
correction to videos as well as images.
This filter was created out of necessity since I wanted to apply lens
correction to a video and the lenscorrection filter did not work for me.
While this filter requires little info from the user to apply lens
correction, the flaw is that lensfun is intended to be used on indvidual
images. When used on a video, the parameters such as focal length is
constant, so lens correction may fail on videos where the camera's focal
length changes (zooming in or out via zoom lens). To use this filter
correctly on videos where such parameters change, timeline editing may
be used since this filter supports it.
Note that valgrind shows a small memory leak which is not from this
filter but from the lensfun library (memory is allocated when loading
the lensfun database but it somehow isn't deallocated even during
cleanup; it is briefly created in the init function of the filter, and
destroyed before the init function returns). This may have been fixed by
the latest commit in the lensfun repository; the current latest release
of lensfun is almost 3 years ago.
Bi-Linear interpolation is used by default as lanczos interpolation
shows more artifacts in the corrected image in my tests.
The lanczos interpolation is derived from lenstool's implementation of
lanczos interpolation. Lenstool is an app within the lensfun repository
which is licensed under GPL3.
v2 of this patch fixes license notice in libavfilter/vf_lensfun.c
v3 of this patch fixes code style and dependency to gplv3 (thanks to
Paul B Mahol for pointing out the mentioned issues).
v4 of this patch fixes more code style issues that were missed in
v3.
v5 of this patch adds line breaks to some of the documentation in
doc/filters.texi (thanks to Gyan Doshi for pointing out the issue).
v6 of this patch fixes more problems (thanks to Moritz Barsnick for
pointing them out).
v7 of this patch fixes use of sqrt() (changed to sqrtf(); thanks to
Moritz Barsnick for pointing this out). Also should be rebased off of
latest master branch commits at this point.
Signed-off-by: Stephen Seo <seo.disparate@gmail.com>
2018-07-15 10:07:54 +02:00
Gyan Doshi
1a31c2b5df
avfilter/drawtext: fix box sizing
...
At present, box size is clipped to frame size before being drawn,
which can lead to the box not fully covering animated text which is
longer than one or both frame dimensions.
Since ff_blend_rectangle correctly takes care of clipping, it is skipped
here which results in correct box sizing
2018-07-13 10:11:15 +05:30
Danil Iashchenko
7cd58a8a8c
lavfi/convolution_opencl: use CL_FAIL_ON_ERROR for error handling
...
Switch to use CL_FAIL_ON_ERROR for error handling
2018-07-12 23:28:46 +01:00
Danil Iashchenko
2bdb6b6496
lavfi/avgblur_opencl: fix using uninitialized value
...
Fixed using uninitialized value "global_work[0]" when calling "av_log".
Fixes CID #1437471 .
2018-07-11 23:17:04 +01:00
Ruiling Song
923ee63d6c
lavfi/vf_avgblur_opencl: remove useless clFinish().
...
The very last clFinish() should be ok.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Danil Iashchenko <danyaschenko@gmail.com>
2018-07-11 23:05:02 +01:00
Ruiling Song
48a1abed13
lavfi/opencl: add macro for opencl error handling.
...
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2018-07-11 23:03:46 +01:00
Jun Zhao
eb776a16ea
lavfi/minterpolate: fix blending calc issue.
...
the right blending calc is:
(alpha * Frame_2 + (MAX - alpha) * Frame_1 + 512) >> 10
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-07-08 23:05:34 +08:00
Gyan Doshi
c71e1e6030
avfilter/setpts: add FR shorthand for FRAME_RATE
2018-07-07 21:08:08 +05:30
Shlomi Fish
1ecdcb61b0
lavfi/weave: Refactor two near-identical clauses.
...
The changes contained in this patch are hereby placed under the Expat licence.
Reviewed-by: Paul B Mahol
2018-07-04 18:48:10 +02:00
Danil Iashchenko
581bafa83b
lavfi: add sobel, prewitt, roberts filters
...
Add opencl version of sobel, prewitt, roberts filters.
2018-07-03 00:11:28 +01:00
Pedro Arthur
54b425a7fa
libavfilter: vf_sr.c remove warnings
2018-07-02 13:45:38 -03:00
Sergey Lavrushkin
575b718990
Adds ESPCN super resolution filter merged with SRCNN filter.
...
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2018-07-02 10:47:14 -03:00
Mark Thompson
46fb150a81
lavfi/colorspace: Add namespace prefix to global functions
2018-06-28 16:14:35 +01:00
Mark Thompson
bd02b2c05d
lavfi/vf_tonemap_opencl: Mark local tables static
2018-06-25 21:00:54 +01:00
Mark Thompson
d4d29052c3
lavfi/framesync: Add namespace prefix to framesync_get_class
2018-06-24 19:39:01 +01:00
Ruiling Song
649d7ca477
lavfi: make vf_colorspace use functions from colorspace.c
...
These functions are shared among colorspace related filters.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2018-06-21 01:19:25 +01:00
Ruiling Song
8b8b0e2cd2
lavfi: add opencl tonemap filter
...
This filter does HDR(HDR10/HLG) to SDR conversion with tone-mapping.
An example command to use this filter with vaapi codecs:
FFMPEG -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device \
opencl=ocl@va -hwaccel vaapi -hwaccel_device va -hwaccel_output_format \
vaapi -i INPUT -filter_hw_device ocl -filter_complex \
'[0:v]hwmap,tonemap_opencl=t=bt2020:tonemap=linear:format=p010[x1]; \
[x1]hwmap=derive_device=vaapi:reverse=1' -c:v hevc_vaapi -profile 2 OUTPUT
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2018-06-21 01:19:18 +01:00
Danil Iashchenko
714da1fd89
lavfi: Add boxblur_opencl filter
...
Behaves like existing boxblur filter.
2018-06-21 00:31:42 +01:00
Danil Iashchenko
b41b6b3234
libavfilter/opencl: Add macro for setting opencl kernel arguments
2018-06-17 17:58:17 +01:00
Jun Zhao
483532bc72
lavfi/graphdump: Replace the number by macro for bprint init
...
Replace the number by macro for bprint init.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-06-17 09:59:33 +08:00
Jun Zhao
9809ac98bd
lavfi/af_amerge: Replace the number by macro for bprint init
...
Replace the number by macro for bprint init.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-06-17 09:59:33 +08:00
Pavel Koshevoy
29cddc99cd
lavfi/atempo: raise max tempo limit (v2)
2018-06-14 19:19:17 -06:00
Sergey Lavrushkin
648361c2fa
libavfilter/dnn_interface.c: fix av_freep dnn_module.
...
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2018-06-08 10:26:08 -03:00
Sergey Lavrushkin
d29c35b4d8
libavfilter/vf_srcnn.c: adds DNN module backend AVOption, changes AV_LOG_INFO message to AV_LOG_VERBOSE.
...
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2018-06-08 10:26:08 -03:00
Jun Zhao
3161df5b0c
lavfi/opencl: remove redundant header.
...
remove redundant header
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-06-07 19:38:58 +08:00
Sergey Lavrushkin
d8c0bbb0aa
Adds TensorFlow backend for dnn inference module.
...
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2018-06-05 10:16:50 -03:00
Vishwanath Dixit
37abfe8c2d
avfilter/drawtext: present 'hms' formatted 'pts' in 24h format
...
HMS is formatted as HH:MM:SS.mmm, but, HH part is not limited to
24 hours. For example, the the drawn text may look like this:
243029:20:30.342. To present the timestamp in more readable and
user friendly format, this patch provides an additional option
to limit the hour part in the range 0-23.
Note: Actually the above required format can be obtained with
format options 'localtime' and 'gmtime', but, milliseconds part
is not supported in those formats.
2018-06-04 10:57:45 +05:30
Paul B Mahol
29e0879b29
avfilter/f_drawgraph: fix drawing of first point for non-first metadata key
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-06-03 18:50:04 +02:00
Paul B Mahol
9832885386
avfilter/vf_zoompan: do not increase VAR_IN twice, also count from 0
...
Fixes #7242 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-06-03 14:57:25 +02:00
Paul B Mahol
49eda27c6e
avfilter/avf_showspectrum: also show sample rate and channel layout
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-06-03 12:43:43 +02:00
Paul B Mahol
9add1786ad
avfilter/avf_showspectrum: avoid overwritting text
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-06-03 12:26:43 +02:00
Paul B Mahol
d0bf1aa3c5
avfilter/avf_showspectrum: improve axes drawing
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-06-03 12:06:35 +02:00
Paul B Mahol
af31084399
avfilter/vf_lut3d: unbreak haldclut with planar rgb formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-06-02 19:16:22 +02:00
Jan Ekström
76daf4529b
lavfi/Makefile: move dnn_*.o under vf_srcnn
...
These files depend on libavformat, and the vf_srcnn filter
currently is the only thing utilizing these dnn_* files and
already happens to have a dependency on libavformat.
This fixes compilation in cases where libavformat is not a
dependency for libavfilter.
Reported by Kam_ on IRC.
2018-06-02 19:00:57 +03:00
Paul B Mahol
e28b1fa6e9
avfilter: add adeclick and adeclip audio filters
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-06-02 13:09:06 +02:00
John Cox
8d4fc2ea06
avfilter: use av_clip_uintp2_c where clip is variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-31 16:22:59 +02:00
Paul B Mahol
1aa5192451
avfilter/af_aiir: draw IR frequency response
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-30 17:26:08 +02:00
Paul B Mahol
d0e740b8fb
avfilter/af_afir: fix picking of IR channel
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-30 12:30:24 +02:00
Paul B Mahol
73438dbbbc
avfilter/af_afir: draw IR frequency response
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-29 21:57:42 +02:00
Sergey Lavrushkin
bdf1bbdbb4
Adds dnn inference module for simple convolutional networks. Reimplements srcnn filter based on it.
...
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2018-05-29 10:02:30 -03:00
James Almer
79126ce80e
avfilter/vsrc_testsrc: fix a preprocessor check
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-05-18 17:42:57 -03:00
Tobias Rapp
eb28b5ec8a
avfilter/vsrc_testsrc: add pal75bars and pal100bars video filter sources
...
Generates color bar test patterns based on EBU PAL recommendations.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
2018-05-18 15:39:54 +02:00
Paul B Mahol
e9dd5b4f5e
avfilter/vf_waveform: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-18 13:15:09 +02:00
Paul B Mahol
4e816b5491
avfilter: add aderivative and aintegral filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-16 12:20:38 +02:00
Paul B Mahol
2bde38c0ab
avfilter/vf_lut2: add timeline support to tlut2 filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-14 18:26:16 +02:00
Paul B Mahol
a27cab9eca
avfilter/vf_blend: add timeline support to tblend filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-14 18:08:35 +02:00
Paul B Mahol
80b474875e
avfilter/vf_srcnn: use function to get number of threads
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-14 16:04:33 +02:00
Paul B Mahol
e3a697eda3
avfilter/vf_amplify: check if array is availabe before using it
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-14 16:04:33 +02:00
Paul B Mahol
1c2e5fc454
avfilter/vf_maskedmerge: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-12 15:46:28 +02:00
Paul B Mahol
9b6f8fb25d
avfilter/vf_deblock: add timeline support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-12 12:34:02 +02:00
Paul B Mahol
974eb4aaaa
avfilter: add fftdnoiz filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-10 14:44:17 +02:00
Jun Zhao
74a7ddd985
lavfi/tests/filtfmts: fix the build warning.
...
fix the build warning: ignoring return value.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-05-10 19:28:51 +08:00
Timo Rothenpieler
1c15d26615
avfilter/vf_hwupload_cuda: update supported pix_fmts
2018-05-10 00:34:22 +02:00
Hendrik Leppkes
8007a86363
lavfi/vf_srcnn: use avio_check instead of access
...
The filter uses avio for file access already, and avio_check is
portable.
Fixes trac #7192 .
2018-05-08 17:52:33 +02:00
Clément Bœsch
1eb4e731fc
lavfi/swaprect: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
2018-05-08 12:47:38 +02:00
Clément Bœsch
8d6354aa82
lavfi/nlmeans: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
2018-05-08 12:47:38 +02:00
Clément Bœsch
e6114d21ac
lavfi/nlmeans: inline integral patch value function
...
This prevents redundant position computation and make the code faster
(1.1x faster overall).
2018-05-08 10:28:06 +02:00
Clément Bœsch
4278f79ef6
lavfi/nlmeans: use unsigned for the integral patch value
...
This value can not be negative.
2018-05-08 10:28:06 +02:00
Clément Bœsch
de956198a9
lavfi/nlmeans: reorder memory accesses in get_integral_patch_value
...
This doesn't seem to make much of a difference but it can't hurt.
2018-05-08 10:28:06 +02:00
Clément Bœsch
34e1e53e28
lavfi/nlmeans: move final weighted averaging out of nlmeans_plane
...
This helps figuring out where the filter is slow:
70.53% ffmpeg_g ffmpeg_g [.] nlmeans_slice
25.73% ffmpeg_g ffmpeg_g [.] compute_safe_ssd_integral_image_c
1.74% ffmpeg_g ffmpeg_g [.] compute_unsafe_ssd_integral_image
0.82% ffmpeg_g ffmpeg_g [.] ff_mjpeg_decode_sos
0.51% ffmpeg_g [unknown] [k] 0xffffffff91800a80
0.24% ffmpeg_g ffmpeg_g [.] weight_averages
(Tested with a large image that takes several seconds to process)
Since this function is irrelevant speed wise, the file's TODO is
updated.
2018-05-08 10:28:06 +02:00
Clément Bœsch
667503ef68
lavfi/nlmeans: switch from double to float
...
Overall speed appears to be 1.1x faster with no noticeable quality
impact.
2018-05-08 10:28:06 +02:00
Clément Bœsch
43d16aef63
lavfi/nlmeans: make compute_safe_ssd_integral_image_c faster
...
before: ssd_integral_image_c: 49204.6
after: ssd_integral_image_c: 44272.8
Unrolling by 4 made the biggest difference on odroid-c2 (aarch64);
unrolling by 2 or 8 both raised 46k cycles vs 44k for 4.
Additionally, this is a much better reference when writing SIMD (SIMD
vectorization will just target 16 instead of 4).
2018-05-08 10:28:06 +02:00
Clément Bœsch
5a71bce371
lavfi/nlmeans: add AArch64 SIMD for compute_safe_ssd_integral_image
...
ssd_integral_image_c: 49204.6
ssd_integral_image_neon: 28346.8
2018-05-08 10:28:06 +02:00
Clément Bœsch
5ba14f4f1a
lavfi/nlmeans: use ptrdiff_t for linesizes
...
Similarly to previous commit, this will help writing SIMD code by not
having manual zero-extension in SIMD code
2018-05-08 10:28:06 +02:00
Clément Bœsch
26f02c51ce
lavfi/nlmeans: add SIMD-friendly assumptions for compute_safe_ssd_integral_image
...
SIMD code will not have to deal with padding itself. Overwriting in that
function may have been possible but involve large overreading of the
sources. Instead, we simply make sure the width to process is always a
multiple of 16. Additionally, there must be some actual area to process
so the SIMD code can have its boundary checks after processing the first
pixels.
2018-05-08 10:28:06 +02:00
Clément Bœsch
f1248b7795
lavfi/nlmeans: random code shuffling to help compiler
...
This makes nlmeans_slice() slightly faster at least on GCC 7.3.
2018-05-08 10:28:06 +02:00
James Almer
08032331ac
fate: update fate-sws-pixdesc-query reference file
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-05-05 19:20:38 -03:00
Paul B Mahol
72b29c02f4
avfilter/drawutils: support gray14
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 21:50:22 +02:00
Paul B Mahol
41ebbae9dd
avfilter/vf_extractplanes: add support for extracting planes with 14 depth
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 21:35:31 +02:00
Paul B Mahol
20a3c4f606
avfilter: forward status back in some filters that missed it
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 21:32:33 +02:00
Paul B Mahol
ac86011b1f
avfilter/af_amerge: port to activate API
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 21:32:33 +02:00
Paul B Mahol
0f4ca420bc
avfilter/vf_colorchannelmixer: add planar rgb support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 17:37:50 +02:00
Paul B Mahol
931e2c4541
avfilter/vf_colorchannelmixer: refactor code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 17:37:50 +02:00
Paul B Mahol
2017b4b1c2
avfilter/vf_colorbalance: fix off by one overflow
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 17:37:50 +02:00
Paul B Mahol
d1e1872418
avfilter/vf_colorchannelmixer: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 17:37:50 +02:00
Paul B Mahol
0ef7a45197
avfilter/vf_colorbalance: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 12:50:16 +02:00
Paul B Mahol
db8777cef0
avfilter/vf_colorbalance: add planar rgb support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 12:23:07 +02:00
Paul B Mahol
4cd4aa08a6
avfilter/vf_convolution: use already available dstride
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 11:01:02 +02:00
Paul B Mahol
c2fd69ba62
avfilter/vf_colorbalance: add 16bit depth support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 00:36:32 +02:00
Kevin Wheatley
51775bc1cd
avfilter/vf_libvmaf: the libvmaf filter tried to join on an invalid thread id
...
The thread id was invalid because it was not initialised
during the calls to init_complex_filtergraph.
This adds a flag to check for initialisation before trying to
peform the join.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com>
2018-05-04 18:29:53 -03:00
Paul B Mahol
244d4ba0da
avfilter/vf_lut3d: fix typo
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 23:17:53 +02:00
Paul B Mahol
20c83be27a
avfilter/vf_edgedetect: add more formats support to canny mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 21:37:33 +02:00
Paul B Mahol
0bcc66571a
avfilter/vf_edgedetect: add planes option
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 21:37:33 +02:00
Paul B Mahol
d122c8b102
avfilter/vf_edgedetect: add canny mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 21:34:49 +02:00
Paul B Mahol
aba39cc1f1
avfilter/vf_convolution: add column/vertical mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 21:32:26 +02:00
Paul B Mahol
901dc11bb6
avfilter/vf_lut3d: add planar rgb support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 21:27:48 +02:00
Sergey Lavrushkin
9479955c62
Adds SRCNN filter.
...
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2018-05-04 14:24:56 +00:00
Paul B Mahol
4bad76b6e9
avfilter/vf_amplify: add more options for finer filtering
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 14:41:38 +02:00
Paul B Mahol
f43fd68f28
avfilter/drawutils: add support for full range
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 21:43:57 +02:00
Paul B Mahol
943f7902e6
avfilter/vf_neighbor: add >8 depth suppport
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 12:48:47 +02:00
Paul B Mahol
c8c2fb0977
avfilter/vf_convolution: unbreak roberts filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 11:29:51 +02:00
Paul B Mahol
3a96534ed9
avfilter/vf_convolution: add horizontal/row mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 10:55:10 +02:00
Paul B Mahol
0f0d468fbc
avfilter/vf_overlay: exclude nv12/nv21 formats from x86 asm check
...
They are yet to be supported,
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 09:22:28 +02:00
Paul B Mahol
ab1114a0f5
avfilter/vf_convolution: rewrite so it doesn't use temp buffers
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 00:09:01 +02:00
Paul B Mahol
6d7c63588c
avfilter/vf_overlay: add x86 SIMD
...
Specifically for yuv444, yuv422, yuv420 format when main stream has no alpha, and alpha
is straight.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-02 23:58:21 +02:00
Paul B Mahol
d176497cec
avfilter/af_biquads: add slice threading
...
Helps with multi-channels audio. Otherwise use threads=1.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-01 16:00:19 +02:00
Paul B Mahol
2308a3c7e3
avfilter/af_biquads: change clipping detection from global to channel
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-01 15:26:20 +02:00
Paul B Mahol
5bfc433a6e
avfilter/vf_neighbor: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-01 15:05:43 +02:00
Paul B Mahol
ddf844d17c
avfilter/vf_neighbor: simplify code little
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-01 14:50:48 +02:00
Paul B Mahol
273edb2fe4
avfilter/vf_neighbor: rewrite without using temp memory
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-01 13:12:50 +02:00
Marton Balint
7033654f7f
Use AV_PIX_FMT_FLAG_ALPHA for detecting transparency where nb_components was used
...
Temporarily keep the old method for ffmpeg_filters.c choose_pix_fmt and
avfiltergraph.c pick_format() until a paletted pixel format without alpha is
introduced.
Signed-off-by: Marton Balint <cus@passwd.hu>
2018-04-30 21:51:31 +02:00
Paul B Mahol
da55304caf
avfilter/vf_mix: initialize last to silence possible warning
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-30 20:45:05 +02:00
Paul B Mahol
c0f2abcc8d
avfilter/vf_mix: make setting weights more user friendly
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-29 19:27:15 +02:00
Paul B Mahol
ad16423704
avfilter/vf_fieldmatch: add support for >8 bit depth in ppsrc
...
Also fix leaks while here.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-29 15:01:32 +02:00
Paul B Mahol
a5b2d85f18
avfilter/vf_fieldmatch: switch to activate
...
Unbreaks ppsrc filtering.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-29 15:01:32 +02:00
Paul B Mahol
889d858491
avfilter: add amplify filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-29 13:24:50 +02:00
Paul B Mahol
70d25b89db
avfilter/vf_overlay: use slice_end in alpha_composite()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-29 10:02:57 +02:00
Paul B Mahol
29fd44adf1
avfilter/vf_fieldmatch: use correct subsamplings for y0a, y1a and startx
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-28 22:49:09 +02:00
Paul B Mahol
d54014d157
avfilter/vf_overlay: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-28 18:54:12 +02:00
Paul B Mahol
4f484edaa7
avfilter/vf_convolution: make rdiv set to 0 more useful
...
Use 0 for signaling that rdiv will be calculated from sum
of all matrix elements.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-28 11:25:43 +02:00
Paul B Mahol
b473e76876
avfilter/vf_mix: use correct linesizes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-27 19:15:55 +02:00
Paul B Mahol
309fce63d8
avfilter/vf_shuffleplanes: add support for timeline
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-27 17:18:22 +02:00
Paul B Mahol
2d7ba3a96f
avfilter/vf_premultiply: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-27 12:25:32 +02:00
Paul B Mahol
e0e75f93b9
avfilter/vf_maskedclamp: silence warning
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-27 11:36:34 +02:00
Paul B Mahol
9faec78b14
avfilter/vf_mix: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-27 11:32:50 +02:00
Paul B Mahol
6a955750d6
avfilter/vf_maskedclamp: add slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-27 00:08:04 +02:00
Paul B Mahol
356a33b20a
avfilter/vf_atadenoise: do not abort if user specified invalid size
...
Update documentation with new size default.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-26 22:25:10 +02:00
Paul B Mahol
330215830e
avfilter/vf_mix: clip output pixel values
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-26 16:44:15 +02:00
Paul B Mahol
a5172dcab6
avfilter/vf_mix: add scale option
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-26 16:44:15 +02:00
Paul B Mahol
161e006cc0
avfilter: add tmix filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-26 16:44:15 +02:00
Paul B Mahol
a12899ad9b
avfiler/vf_mix: fix crash with >8 bit depth
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-25 14:08:21 +02:00
Vasile Toncu
9c01cdb94e
avfilter/vf_interlace: remove duplicate code with same funcionality
2018-04-23 23:48:30 +02:00
Ruiling Song
d865783b6c
lavf/qsv: clone the frame which may be managed by framework
...
For filters based on framesync, the input frame was managed
by framesync, so we should not directly keep and destroy it,
instead we make a clone of it here, or else double-free will occur.
But for other filters not based on framesync, we still need to
free the input frame inside filter_frame.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2018-04-21 19:00:43 +01:00
Ruiling Song
f3341a0452
lavf: make overlay_qsv work based on framesync
...
The existing version which was cherry-picked from Libav does not work
with FFmpeg framework, because ff_request_frame() was totally
different between Libav (recursive) and FFmpeg (non-recursive).
The existing overlay_qsv implementation depends on the recursive version
of ff_request_frame to trigger immediate call to request_frame() on input pad.
But this has been removed in FFmpeg since "lavfi: make request_frame() non-recursive."
Now that we have handy framesync support in FFmpeg, so I make it work
based on framesync. Some other fixing which is also needed to make
overlay_qsv work are put in a separate patch.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2018-04-21 19:00:43 +01:00
Paul B Mahol
21da248b5f
avfilter: add deblock filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-21 11:34:49 +02:00
Paul B Mahol
396c019795
avfilter/avf_avectorscope: disable mirroring
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-18 18:14:35 +02:00
Paul B Mahol
2fc12f4971
avfilter: add lowshelf and highshelf filters
...
These are old bass and treble filters.
Make bass and treble filters better at boosting.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-17 12:40:27 +02:00
Paul B Mahol
6e05a11e89
avfilter/af_afir: make max IR length configurable
...
Also increase max allowed dry/wet value.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-16 19:11:35 +02:00
Paul B Mahol
9cf0079638
avfilter/af_headphone: switch to activate
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-16 18:29:34 +02:00
Michael Niedermayer
3c1ecb057d
Bump minor versions after release/4.0 branching
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-16 12:35:12 +02:00
Michael Niedermayer
7e3a070d9a
Bump minor versions for branching release/4.0
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-16 12:35:12 +02:00
Martin Vignali
56315df32c
avfilter/showvolume : cosmetic move bracket after func declaration to a new line
2018-04-16 11:35:07 +02:00
Martin Vignali
fd10a6e2f2
avfilter/showvolume : add persistent max display
...
draw a color line for the max level in the given duration
2018-04-16 11:35:03 +02:00
Martin Vignali
cb2f52b6a7
avfilter/showvolume : add display scale option
...
linear (current behaviour) or log display (more close to classic audio meter)
2018-04-16 11:34:59 +02:00
Paul B Mahol
e1c8bd2389
avfilter/af_headphone: fix type=time with hrir=multich
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-16 09:31:11 +02:00
Paul B Mahol
3e003a985f
avfilter/af_headphone: add single hrir multichannel stream mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-15 16:08:28 +02:00
Paul B Mahol
a56580b117
avfilter/af_headphone: fix memory leak and overread
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14 19:42:16 +02:00
Paul B Mahol
8daca7697b
avfilter/af_headphone: do not output invalid samples when flushing
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14 18:38:54 +02:00
Paul B Mahol
01170e9db0
avfilter/af_headphone: fix flushing
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14 17:51:26 +02:00
Paul B Mahol
2b0f821f51
avfilter/af_headphone: improve performance and reduce latency
...
Remove not needed code.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-04-14 17:28:26 +02:00
James Almer
f790410b6b
Merge commit 'cca5e4f040971db6de0bfe6968f00c021d8a9c42'
...
* commit 'cca5e4f040971db6de0bfe6968f00c021d8a9c42':
qsv: adding Multi Frame Encode support
Merged-by: James Almer <jamrial@gmail.com>
2018-04-13 20:34:23 -03:00