Paul B Mahol
a960d33112
avfilter/vf_chromashift: add 12bit yuva formats
2019-11-18 18:35:32 +01:00
Paul B Mahol
39a4d69d05
avfilter/vf_midequalizer: add 12bit yuva formats
2019-11-18 18:08:13 +01:00
Paul B Mahol
ee8fe9c94d
avfilter/vf_convolution: add 12bit yuva formats
2019-11-18 18:01:12 +01:00
Paul B Mahol
4b554382a0
avfilter/vf_neighbor: add 12bit yuva formats
2019-11-18 18:00:25 +01:00
Paul B Mahol
37bf725296
avfilter/vf_maskedminmax: add 12bit yuva formats
2019-11-18 17:56:34 +01:00
Paul B Mahol
be8487798a
avfilter/vf_maskedmerge: add 12bit yuva formats
2019-11-18 17:55:21 +01:00
Paul B Mahol
b565d63894
avfilter/vf_maskedclamp: add 12bit yuva formats
2019-11-18 17:53:45 +01:00
Paul B Mahol
69f5a77dec
avfilter/vf_scroll: add support for 12bit yuva formats
2019-11-18 17:50:05 +01:00
Paul B Mahol
c7abb07331
avfilter/vf_blend: add 12bit yuva formats
2019-11-18 17:47:35 +01:00
Paul B Mahol
619f530812
avfilter/vf_vaguedenoiser: add support for alpha formats
2019-11-18 17:44:10 +01:00
Paul B Mahol
76ef2ec471
avfilter/vf_bm3d: use boolean for ref option
2019-11-18 17:39:45 +01:00
Paul B Mahol
cb844376c3
avfilter/vf_fftdnoiz: add support for alpha formats
2019-11-18 17:36:56 +01:00
Paul B Mahol
3e524a11d9
avfilter/vf_bm3d: add support for alpha formats
2019-11-18 17:33:19 +01:00
Paul B Mahol
86f636348c
avfilter/vf_w3fdif: add support for more >8 bit alpha formats
2019-11-18 17:30:44 +01:00
Paul B Mahol
6a38538a09
avfilter/vf_avgblur: add support for 12bit yuva formats
2019-11-18 17:27:42 +01:00
Paul B Mahol
1b26f27026
avfilter/vf_gblur: add support for 12bit yuva formats
2019-11-18 17:26:59 +01:00
Paul B Mahol
97cf49b7fe
avfilter/vf_median: add support for 12bit yuva formats
2019-11-18 17:24:52 +01:00
Paul B Mahol
f490c71553
avfilter/vf_remap: add support for 12bit yuva format
2019-11-18 17:21:09 +01:00
Paul B Mahol
410f81f822
avfilter/vf_lut2: add 12bit depth alpha formats
2019-11-18 17:15:29 +01:00
Paul B Mahol
a50bd3a50e
avfilter/vf_atadenoise: support alpha formats
2019-11-18 17:06:59 +01:00
Paul B Mahol
73b730e3e6
avfilter/vf_xmedian: add support for alpha formats
2019-11-18 17:06:05 +01:00
Paul B Mahol
315a4496ea
avfilter/f_loop: switch aloop to activate
2019-11-17 16:20:58 +01:00
Paul B Mahol
2e7ccd493a
avfilter/f_loop: fix pts handling when timebase and 1/samplerate differ
2019-11-17 16:19:07 +01:00
Paul B Mahol
f7ad9a6c16
avfilter/af_sidechaincompress: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:30:10 +01:00
Paul B Mahol
b66acf4a34
avfilter/af_anlmdn: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:25:54 +01:00
Paul B Mahol
0a17a30150
avfilter/af_agate: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:23:48 +01:00
Paul B Mahol
115537f487
avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:21:10 +01:00
Paul B Mahol
c588a0f528
avfilter/af_afftfilt: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:19:39 +01:00
Paul B Mahol
7db61bf0e3
avfilter/af_adeclick: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:17:51 +01:00
Paul B Mahol
90622f9e8f
avfilter/af_aecho: switch to activate
2019-11-17 11:57:52 +01:00
Paul B Mahol
9498ce0c23
avfilter/vf_framepack: really fix ef466a8b29
2019-11-17 00:23:03 +01:00
Paul B Mahol
9db24ee26d
avfilter/vf_framepack: switch to activate
2019-11-17 00:23:03 +01:00
Paul B Mahol
ef466a8b29
avfilter/vf_framepack: fix timestamps for frameseq format
2019-11-16 23:33:02 +01:00
Paul B Mahol
d52342a563
avfilter/vf_framepack: add missing filtering flag
2019-11-16 23:33:02 +01:00
Paul B Mahol
45f03cdd20
avfilter/vf_colorbalance: add support for commands
2019-11-13 13:07:42 +01:00
Paul B Mahol
bffd0f7b69
avfilter/vf_colorbalance: switch to floats
2019-11-13 13:07:42 +01:00
Paul B Mahol
d19fdc83b3
avfilter/vf_colorbalance: add option to preserve lightness
2019-11-13 13:07:42 +01:00
Paul B Mahol
08c46e40fb
avfilter/vF_colorbalance: rewrite, fixes filtering
2019-11-13 00:22:13 +01:00
Lou Logan
007e03348d
avfilter/Makefile: add missing framesync dependency to bm3d & mix filters
...
Signed-off-by: Lou Logan <lou@lrcd.com>
2019-11-08 09:37:31 -09:00
leozhang
c79307b7de
avfilter/vf_dnn_processing: correct duplicate statement
...
Signed-off-by: leozhang <leozhang@qiyi.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-08 14:57:01 +01:00
Guo, Yejun
f6e942251c
avfilter/vf_dnn_processing: fix fate-source
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-08 14:56:38 +01:00
Limin Wang
81271b3cce
avfilter/f_metadata: remove unneeded code
...
Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2019-11-08 22:25:10 +09:00
Guo, Yejun
4d980a8ceb
avfilter/vf_dnn_processing: add a generic filter for image proccessing with dnn networks
...
This filter accepts all the dnn networks which do image processing.
Currently, frame with formats rgb24 and bgr24 are supported. Other
formats such as gray and YUV will be supported next. The dnn network
can accept data in float32 or uint8 format. And the dnn network can
change frame size.
The following is a python script to halve the value of the first
channel of the pixel. It demos how to setup and execute dnn model
with python+tensorflow. It also generates .pb file which will be
used by ffmpeg.
import tensorflow as tf
import numpy as np
import imageio
in_img = imageio.imread('in.bmp')
in_img = in_img.astype(np.float32)/255.0
in_data = in_img[np.newaxis, :]
filter_data = np.array([0.5, 0, 0, 0, 1., 0, 0, 0, 1.]).reshape(1,1,3,3).astype(np.float32)
filter = tf.Variable(filter_data)
x = tf.placeholder(tf.float32, shape=[1, None, None, 3], name='dnn_in')
y = tf.nn.conv2d(x, filter, strides=[1, 1, 1, 1], padding='VALID', name='dnn_out')
sess=tf.Session()
sess.run(tf.global_variables_initializer())
output = sess.run(y, feed_dict={x: in_data})
graph_def = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def, ['dnn_out'])
tf.train.write_graph(graph_def, '.', 'halve_first_channel.pb', as_text=False)
output = output * 255.0
output = output.astype(np.uint8)
imageio.imsave("out.bmp", np.squeeze(output))
To do the same thing with ffmpeg:
- generate halve_first_channel.pb with the above script
- generate halve_first_channel.model with tools/python/convert.py
- try with following commands
./ffmpeg -i input.jpg -vf dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:fmt=rgb24:dnn_backend=native -y out.native.png
./ffmpeg -i input.jpg -vf dnn_processing=model=halve_first_channel.pb:input=dnn_in:output=dnn_out:fmt=rgb24:dnn_backend=tensorflow -y out.tf.png
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-11-07 15:46:00 -03:00
Limin Wang
99fc5059fb
avfilter/vf_lut3d: simplify code
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-01 14:43:16 +01:00
Paul B Mahol
b414cff630
avfilter/vf_median: add radiusV option
2019-10-31 10:32:43 +01:00
Paul B Mahol
86a42e954e
avfilter/af_afade: start crossfading only when first stream reached end
2019-10-31 10:23:59 +01:00
Paul B Mahol
89389b7ed4
avfilter/af_afade: check for eof after crossfade later
...
Fixes memleaks and #8346
2019-10-30 19:07:19 +01:00
Zhao Zhili
af70c94c63
avfilter/f_sidedata: fix Wtautological-constant-out-of-range-compare
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-30 18:09:00 +01:00
Guo, Yejun
912ab246f1
avfilter/vf_sr: correct flags since the filter changes frame w/h
...
If filter changes frame w/h, AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
cannot be supported.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-30 12:01:52 -03:00
Guo, Yejun
f4b3c0e55c
avfilter/dnn: add a new interface to query dnn model's input info
...
to support dnn networks more general, we need to know the input info
of the dnn model.
background:
The data type of dnn model's input could be float32, uint8 or fp16, etc.
And the w/h of input image could be fixed or variable.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-30 11:07:06 -03:00
Guo, Yejun
e1b45b8596
avfilter/dnn: get the data type of network output from dnn execution result
...
so, we can make a filter more general to accept different network
models, by adding a data type convertion after getting data from network.
After we add dt field into struct DNNData, it becomes the same as
DNNInputData, so merge them with one struct: DNNData.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-30 11:00:41 -03:00
Guo, Yejun
dff39ea9f0
dnn: add tf.nn.conv2d support for native model
...
Unlike other tf.*.conv2d layers, tf.nn.conv2d does not create many
nodes (within a scope) in the graph, it just acts like other layers.
tf.nn.conv2d only creates one node in the graph, and no internal
nodes such as 'kernel' are created.
The format of native model file is also changed, a flag named
has_bias is added, so change the version number.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-30 10:31:55 -03:00
Limin Wang
e1c4ce4761
avfilter/asrc_anoisesrc: change color variable to int
...
Or it'll cause invalid color and s->filter is NULL.
Please reproduce it with below command on big endian system:
$ ./ffmpeg -f lavfi -i "anoisesrc=d=60:c=1:r=48000" -f s16le -c:a pcm_s16le -f
null -
Segmentation fault (core dumped)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-29 16:20:33 +01:00
Paul B Mahol
3420e56d9a
avfilter/vf_vfrdet: also report average delta
2019-10-29 13:07:08 +01:00
Paul B Mahol
4ce263a7fd
avfilter/vf_vfrdet: fix reporting max delta
...
If only first delta was big it was previously discarded.
2019-10-29 12:57:58 +01:00
Paul B Mahol
1c3b70e2e0
avfilter: add median filter
2019-10-29 10:56:04 +01:00
James Almer
1aa4fc1ec2
avfilter/avf_showfreqs: free input frame after using it
...
Fixes ticket #8336 .
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-26 10:16:02 -03:00
Paul B Mahol
4447aeaac2
avfilter/vsrc_testsrc: increase max level of haldclutsrc
...
So it matches lut3d and haldclut filter.
2019-10-26 10:32:20 +02:00
Paul B Mahol
a2210f10d3
avfilter/vf_lut3d: increase max level to upper limit defined by cube format specification
2019-10-26 10:32:20 +02:00
Paul B Mahol
9130028d87
avfilter/vf_lut3d: allocate 3d lut dynamically
2019-10-26 10:32:20 +02:00
Paul B Mahol
9e283aa24e
avfilter/vf_psnr,vf_ssim: add warning if different timebases are encountered
2019-10-25 22:02:41 +02:00
Paul B Mahol
f166951d6e
avfilter: add maskedmin/maskedmax filters
2019-10-24 20:54:33 +02:00
Paul B Mahol
ac0f5f4c17
avfilter/vf_maskedclamp: add x86 SIMD
2019-10-23 16:20:21 +02:00
Paul B Mahol
7df808ea84
avfilter/settb: switch to activate
...
Now correctly updates EOF timestamp.
2019-10-23 12:37:46 +02:00
Paul B Mahol
8732eb124e
avfilter/vf_floodfill: better fix for crash
2019-10-23 10:20:57 +02:00
Paul B Mahol
1cdc805228
avfilter/vf_floodfill: add more gray formats
2019-10-23 10:04:15 +02:00
Paul B Mahol
ba7d55d3fc
avfilter/vf_deband: add more gray formats
2019-10-23 09:54:36 +02:00
Jun Zhao
0e3d5bdc08
lavfi/bilateral: Clean the option description and unused code
...
Clean the option description and unused code.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-23 15:47:27 +08:00
Paul B Mahol
7832e05c35
avfilter/vf_lut2: fix typo, correctly support gray14
2019-10-23 09:44:08 +02:00
Paul B Mahol
1f327f5d27
avfilter/vf_bm3d: add gray14 format
2019-10-23 09:37:18 +02:00
Paul B Mahol
dd239bdb65
avfilter/vf_vaguedenoiser: add more gray formats
2019-10-23 09:31:09 +02:00
Paul B Mahol
ec5d385722
avfilter/transpose: add missing headers
2019-10-22 19:53:50 +02:00
James Almer
738bc3e742
x86/vf_transpose: make ff_transpose_8x8_16_sse2 work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-22 13:51:13 -03:00
Paul B Mahol
2a75006ddc
avfilter/vf_maskedclamp: rewrite using macro
2019-10-22 18:10:03 +02:00
Paul B Mahol
5561a1de90
avfilter/vf_premultiply: fix signed integer overflow
...
Fixes #8324
2019-10-22 10:38:16 +02:00
Limin Wang
887db36821
avfilter/vsrc_mptestsrc: simplify the code and change the type of frame
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-21 22:57:10 +02:00
Limin Wang
6079bd5c63
avfilter/vsrc_mptestsrc: add options to set the maximum number of frames
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-21 22:57:10 +02:00
Limin Wang
7a477c4b63
avfilter/vf_unsharp: rename config_props -> config_input, link -> inlink
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-21 22:57:10 +02:00
James Almer
27bae5aaca
x86/vf_transpose: fix cpuflags check
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-21 17:01:39 -03:00
Paul B Mahol
ccd9bca15a
avfilter/vf_transpose: add x86 SIMD
2019-10-21 20:37:51 +02:00
Paul B Mahol
f7f4691f9f
avfilter/x86/vf_atadenoise: fix comment
2019-10-21 17:56:45 +02:00
Paul B Mahol
aa26f83bdd
avfilter/af_join: fix possible memory leaks
...
Allocation of input frames is independent from
allocation of new input pads.
2019-10-21 16:04:48 +02:00
Limin Wang
9c3178808d
avfilter/af_silencedetect: change mono default to integer literal
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro>
2019-10-21 15:42:04 +05:30
Limin Wang
190f52ba3b
avfilter/af_silencedetect: use AV_OPT_TYPE_DURATION
...
Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2019-10-21 15:42:04 +05:30
Paul B Mahol
c6e01ebe41
avfilter: add bilateral filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2019-10-21 11:48:24 +02:00
Paul B Mahol
a174e5f8da
avfilter/vf_nlmeans: round values toward nearest integer
...
Instead of rounding toward zero and thus producing
darker output.
2019-10-21 09:26:41 +02:00
Limin Wang
0afc1fe147
avfilter/af_silencedetect: document metadata
...
Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2019-10-21 10:22:38 +05:30
Paul B Mahol
673fce6d40
avfilter/vf_tile: fix memory leak
...
Fixes #8313
2019-10-20 18:06:26 +02:00
Paul B Mahol
357f11eca2
avfilter/vf_atadenoise: add support for commands
2019-10-20 12:10:16 +02:00
Paul B Mahol
824b026d91
avfilter/vf_shuffleframes: improve error message
2019-10-20 11:39:24 +02:00
Paul B Mahol
58bb9d3a3a
avfilter/af_tremolo: fix heap-buffer overflow
...
Fixes #8317
2019-10-19 19:34:47 +02:00
Paul B Mahol
26876fdb5e
avfilter/vf_fftdnoiz: round toward nearest integer
...
Instead of rounding toward zero and thus producing
darker output.
2019-10-19 19:07:28 +02:00
Paul B Mahol
a60232ab2d
avfilter/vf_bm3d: round values toward nearest integer
...
Instead of rounding toward zero and thus producing
darker output.
2019-10-19 18:53:48 +02:00
Paul B Mahol
7080bbfef4
avfilter/vf_bm3d: forward status back
2019-10-19 18:46:14 +02:00
Paul B Mahol
7056ddc0e0
avfilter/vf_fieldhint: add support for duplicating fields
...
Fixes #7066
2019-10-19 13:08:37 +02:00
Paul B Mahol
ce5274c138
avfilter/vf_fieldmatch: fix heap-buffer overflow
...
Also fix use of uninitialized values.
Fixes #8239
2019-10-19 11:58:34 +02:00
Paul B Mahol
c8f3915f8d
avfilter/vf_decimate: fix memory leaks
...
Fixes #8311
2019-10-19 10:18:35 +02:00
Paul B Mahol
723d69f99c
avfilter/vf_lagfun: fix heap-buffer overflow
...
Fixes #8310
2019-10-19 09:56:53 +02:00
Paul B Mahol
d4d6b7b035
avfilter/vf_datascope: fix heap buffer overflow
...
Fixes #8309
2019-10-19 09:50:53 +02:00
Paul B Mahol
0528adbd85
avfilter/vf_shuffleplanes: add mising query_formats()
...
Fixes #8298
2019-10-18 23:24:06 +02:00
Paul B Mahol
3b580f9dfe
avfilter/vf_maskfun: fix memleak
...
Fixes #8305
2019-10-18 21:57:20 +02:00
Paul B Mahol
8e30514c4c
avfilter/buffersink: cosmetics
2019-10-18 10:54:05 +02:00
Paul B Mahol
fddef964e8
avfilter/vf_colorspace: fix memmory leaks
...
Fixes #8303
2019-10-18 10:48:22 +02:00
Paul B Mahol
daf2bef98d
avfilter/af_acrossover: fix memory leak
...
Fixes #8304
2019-10-18 10:33:54 +02:00
Jun Zhao
85e2b222e9
lavfi/avf_showspectrum: add error handle if av_asprintf return null
...
add error handle if av_asprintf return null.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-18 09:56:27 +08:00
Paul B Mahol
0ae6fb276b
avfilter/x86/vf_atadenoise: add SIMD for serial too
2019-10-17 21:05:50 +02:00
Paul B Mahol
71e33c6e01
avfilter/vf_atadenoise: add option to use additional algorithm
2019-10-17 20:28:31 +02:00
Paul B Mahol
295d99b439
avfilter/vf_adadenoise: add x86 SIMD
2019-10-17 19:44:11 +02:00
Andreas Rheinhardt
6aae322120
avfilter/af_arnndn: Remove superfluous qualifier
...
remove_doubling() returned a const float, but returning qualified types
is pointless anyway. This is all the more important given that GCC 4.2.1
(and maybe other compilers, too) seems to treat this as an error as several
FATE units that don't compile any more show.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-10-17 12:30:24 +02:00
Paul B Mahol
8f63c4e72a
avfilter/vf_dedot: fix crash
...
Fixes #8299
2019-10-17 11:51:22 +02:00
Paul B Mahol
ce40188bc0
avfilter/vf_amplify: cosmetics
2019-10-17 11:32:27 +02:00
Paul B Mahol
3488e0977c
avfilter/vf_random: fix memory leaks
...
Fixes #8296
2019-10-17 11:31:53 +02:00
Paul B Mahol
fb7b222b91
avfilter/af_arnndn: make sure that vad_output nb_neurons is always 1
2019-10-17 11:02:02 +02:00
Paul B Mahol
1e35519fe0
avfilter/vf_gblur: fix undefined behaviour
...
Fixes #8292
2019-10-16 19:29:56 +02:00
Paul B Mahol
98ae6b0a4d
vafilter/af_replaygain: fix undefined behaviour
...
Fixes #8291
2019-10-16 18:28:32 +02:00
Paul B Mahol
71bceb06e6
avfilter/avf_abitscope: fix undefined behaviour
...
Fixes #8289
2019-10-16 18:28:32 +02:00
Paul B Mahol
4fe4772a58
avfilter/vf_colorchannelmixer: do not use pointer if there is no alpha
...
Fixes #8288
2019-10-16 18:28:32 +02:00
Paul B Mahol
932913f0b4
avfilter/vf_edgedetect: fix undefined behaviour
...
Fixes #8287
2019-10-16 18:28:32 +02:00
Paul B Mahol
1a0c584abc
avfilter/f_reverse: fix memory leaks
...
Fixes #8283
2019-10-16 16:27:06 +02:00
Paul B Mahol
b0bfa3699c
avfilter: add arnndn filter
2019-10-16 15:13:59 +02:00
Paul B Mahol
c3985c0ea8
avfilter/vf_atadenoise: compensate for small overall brightness loss
...
This is very hard to spot.
2019-10-16 13:18:47 +02:00
Paul B Mahol
b20dee813a
avfilter/vsrc_testsrc: rgbtestsrc: fix undefined behaviour
...
Fixes #8238
2019-10-16 12:37:05 +02:00
Paul B Mahol
64a805883d
avfilter/vf_gblur: fix heap-buffer overflow
...
Fixes #8282
2019-10-16 12:13:04 +02:00
Paul B Mahol
29dac2927f
avfilter/af_afade: make sure that in is available
2019-10-16 00:59:30 +02:00
Guo, Yejun
2558e62713
avfilter/dnn: unify the layer load function in native mode
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-15 18:56:54 -03:00
Guo, Yejun
3fd5ac7e92
avfilter/dnn: unify the layer execution function in native mode
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-15 18:56:25 -03:00
Guo, Yejun
b78dc27bba
avfilter/dnn: add DLT prefix for enum DNNLayerType to avoid potential conflicts
...
and also change CONV to DLT_CONV2D for better description
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-15 16:35:39 -03:00
Paul B Mahol
f2598484b8
avfilter/vf_bm3d: make sure nb_jobs is at least 1
2019-10-15 17:59:43 +02:00
Paul B Mahol
e1b89c76f6
avfilter/af_afade: fix heap-buffer overflow
...
Fixes #8276
2019-10-15 16:55:13 +02:00
Paul B Mahol
de598f82f8
avfilter/vf_edgedetect: fix heap-buffer overflow
...
Fixes #8275
2019-10-15 16:39:46 +02:00
Paul B Mahol
f069a9c2a6
avfilter/vf_avgblur: fix heap-buffer overflow
...
Fixes #8274
2019-10-15 16:31:15 +02:00
Zhao Zhili
2bfa7df9fe
avfilter: fix typo in comments
...
Signed-off-by: mypopy@gmail.com
2019-10-14 15:02:20 -08:00
Paul B Mahol
79522411fa
avfilter/vf_lenscorrection: make width/height int
...
Somehow previous correct fix broke usage.
2019-10-14 20:14:03 +02:00
Paul B Mahol
c4d1603baf
avfilter/vf_atadenoise: rewrite using macro
2019-10-14 16:39:56 +02:00
Paul B Mahol
8c3166e1c3
avfilter/vf_bwdif: fix heap-buffer overflow
...
Fixes #8261
2019-10-14 11:46:50 +02:00
Paul B Mahol
ce764a6c74
avfilter/af_atempo: use ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
015cbca444
avfilter/af_biquads: use ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
dcfe32920c
avfilter/af_rubberband: use ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
9e883a1448
avfilter/vf_drawbox: use ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
4568e54cc5
avfilter/vf_colorchannelmixer: add support for commands
2019-10-14 11:40:17 +02:00
Paul B Mahol
953b1c7b12
avfilter/vf_amplify: add support for commands
2019-10-14 11:40:17 +02:00
Paul B Mahol
7fcb84165e
avfilter/vf_scroll: add support for commands
2019-10-14 11:40:17 +02:00
Paul B Mahol
877e2e92a3
avfilter/af_anlmdn: switch to ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
4954a17ec7
avfilter/vf_avgblur: switch to ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
33e69806aa
avfilter/vf_gblur: switch to ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
9f7ab36ada
avfilter/af_anlms: switch to ff_filter_process_command()
2019-10-14 11:40:17 +02:00
Paul B Mahol
a918b833a5
avfilter/avfilter: add ff_filter_process_command()
2019-10-14 11:28:54 +02:00
Paul B Mahol
f3746d31f9
avutil/opt: add AV_OPT_FLAG_RUNTIME_PARAM flag
2019-10-14 11:28:54 +02:00
Paul B Mahol
036fff7e43
avfilter/vf_geq: reindent
2019-10-14 10:56:20 +02:00
Paul B Mahol
8a0d45a92e
avfilter/vf_geq: allow user to set interpolation method
2019-10-14 10:55:51 +02:00
Paul B Mahol
996ff3fe86
avfilter/vf_edgedetect: fix coverity issue
2019-10-14 10:52:27 +02:00
Michael Niedermayer
c8813b1a98
avfilter/vf_geq: Use av_clipd() instead of av_clipf()
...
With floats we cannot represent all 32bit integer dimensions
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-14 00:48:44 +02:00
Paul B Mahol
e835a9d302
avfilter/vf_libvmaf: fix filtering of >8 bit data
...
This is what reference does.
2019-10-13 23:43:42 +02:00
Paul B Mahol
19587c9332
avfilter/vf_lenscorrection: fix division by zero
...
Fixes #8265
2019-10-13 23:29:39 +02:00
Paul B Mahol
07050d7bdc
avfilter/vf_fieldorder: fix heap-buffer overflow
...
Fixes #8264
2019-10-13 23:10:16 +02:00
Paul B Mahol
99f8d32129
avfilter/vf_convolution: fix undefined behaviour
...
Fixes #8263
2019-10-13 18:37:16 +02:00
Paul B Mahol
365083556e
avfilter/vf_bm3d: fix possible infinite loop
2019-10-13 18:16:19 +02:00
Paul B Mahol
0749082eb9
avfilter/vf_bm3d: fix heap-buffer overflows
...
Fixes #8262
2019-10-13 18:10:38 +02:00
Paul B Mahol
ccf4ab8c9a
avfilter/vf_edgedetect: check if height is big enough
...
Fixes #8260
2019-10-13 17:24:09 +02:00
Paul B Mahol
4f4334bcbc
avfilter/vf_waveform: fix typos which caused crash
2019-10-13 11:51:11 +02:00
Paul B Mahol
a7fd127970
avfilter/vf_colorconstancy: fix overreads in gauss array
...
Fixes #8250
2019-10-12 19:07:51 +02:00
Paul B Mahol
e923e6205e
avfilter/vf_waveform: add yflat filter
2019-10-12 18:46:13 +02:00
Paul B Mahol
33fd82ae9e
avfilter/vf_waveform: allow different cb for new modes
2019-10-12 17:57:23 +02:00
Paul B Mahol
42974eb13a
avfilter/vf_waveform: add invert graticule
2019-10-12 17:44:52 +02:00
Paul B Mahol
ecc1675368
avfilter/vf_waveform: add graticule enum
2019-10-12 16:02:34 +02:00
Paul B Mahol
71d9ae11a5
avfilter/vf_signalstats: fix stack buffer overflow
...
Fixes #8249
2019-10-11 13:32:24 +02:00
Paul B Mahol
0e68e8c93f
avfilter/vf_w3fdif: deny processing small videos
...
Fixes #8243
2019-10-11 12:55:13 +02:00
Paul B Mahol
0b56723874
avfilter/vf_bitplanenoise: fix overreads
...
Fixes #8244
2019-10-11 12:42:13 +02:00
Paul B Mahol
b62f7e243c
avfilter/vf_deflicker: fix invalid access
...
Fixes #8253
2019-10-11 12:23:26 +02:00
Paul B Mahol
7ad69a73f3
avfilter/vf_waveform: better guard against picking wrong pixel format
...
Fixes #8252
2019-10-11 12:07:54 +02:00
Paul B Mahol
e787f8fd7e
avfilter/vf_neighbor: check if width is 1
...
Fixes #8242
2019-10-11 11:19:00 +02:00
Paul B Mahol
1331e00179
avfilter/vf_floodfill: finish early if source and destination fill matches
...
Fixes #8236
2019-10-10 21:52:51 +02:00
Paul B Mahol
b67af536be
avfilter/vf_random: fix crash
...
Fixes #8235 .
2019-10-10 21:04:56 +02:00
Steven Liu
a76a516e76
avfilter/vf_delogo: make the interp value compute method simple
...
because the interp >= 0UL comparison of an unsigned value is always true
fix CID: 1454642
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-10-10 10:27:00 +08:00
Steven Liu
aea82dfe22
avfilter/vf_delogo: add auto set the area inside of the frame
...
when the area outside of the frame, then use expr should
give user warning message and auto set to the area inside of the frame.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-10-10 10:26:57 +08:00
Jun Zhao
da0c0c7247
lavfi/hqdn3d: add slice thread optimization
...
Enabled one thread per plane, used the test command for 1080P video
(YUV420P format) as follow:
ffmpeg -i 1080p.mp4 -an -vf hqdn3d -f null /dev/nul
This optimization improved the performance about 30% in 1080P YUV420P
case (from 110fps to 143fps), also pass the framemd5 check and FATE.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-10 09:33:09 +08:00
Jun Zhao
7ab4fbdebc
lavfi/v360: remove unnecessary cast for void *
...
Remove unnecessary cast for void * pointer.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-10 09:10:02 +08:00
Jun Zhao
cc52815b82
lavfi/remap: remove unnecessary cast for void *
...
Remove unnecessary cast for void * pointer.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-10 09:09:20 +08:00
Jun Zhao
a0e03589d4
lavfi/lenscorrection: remove unnecessary cast for void *
...
Remove unnecessary cast for void * pointer.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-10 09:01:24 +08:00
Jun Zhao
88a9998fe8
lavfi/colorspace: typedef ThreadData as all other filters
...
typedef ThreadData as all other filters.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-10 09:00:15 +08:00
Paul B Mahol
3d262f9f32
avfilter/af_anlms: increase max limit for mu
2019-10-09 18:13:55 +02:00
Paul B Mahol
1ebac3cda9
avfilter/af_adelay: fix buggy behaviour
2019-10-09 09:56:33 +02:00
Zhao Zhili
971c890c05
avfilter/formats: remove unnecessary unreference
2019-10-08 17:51:10 +02:00
Paul B Mahol
6023b9fbfe
avfilter/af_anlms: add support for commands
2019-10-08 11:54:21 +02:00
Steven Liu
985ed65117
avfilter/vf_pad: add logging context to log
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-10-08 13:47:47 +08:00
Steven Liu
9b2155ad3f
avfilter/boxblur: add logging context to log
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-10-08 13:47:43 +08:00
Steven Liu
3dead10fa3
avfilter/vf_scale_qsv: add logging context to log
...
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-10-08 13:47:38 +08:00
Steven Liu
acc1256654
avfilter/vf_crop: add logging context to log
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-10-08 13:47:34 +08:00
Zhong Li
8df91de9aa
lavfi/normalize: remove the unused pointer
...
Signed-off-by: Zhong Li <zhong.li@intel.com>
2019-10-08 10:25:28 +08:00
Andreas Rheinhardt
361fb42e1e
avcodec/filter: Remove extra '; ' outside of functions
...
They are not allowed outside of functions. Fixes the warning
"ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]"
when compiling with GCC and -pedantic.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-10-07 21:15:55 +02:00
Paul B Mahol
0633d87ae6
avfilter/af_adelay: add option which changes how unset channels are delayed
...
Fixes #8032 .
2019-10-07 18:10:28 +02:00
Paul B Mahol
9a53e01252
avfilter/formats: guard against double free
2019-10-07 17:26:59 +02:00
Paul B Mahol
c303d0979f
avfilter/vf_normalize: typedef all structs
2019-10-07 12:17:14 +02:00
Paul B Mahol
651a0f6308
avfilter/vf_showpalette: remove timeline flag
...
This filter changes output size and thus can not have support
for timeline.
2019-10-07 12:07:00 +02:00
Paul B Mahol
0c4137bcb7
avfilter/af_afftfilt: fix possible invalid memory access
2019-10-07 11:37:05 +02:00
Paul B Mahol
5b4010e886
avfilter/vf_nnedi: fix possible double free
2019-10-07 11:15:44 +02:00
Paul B Mahol
66d45af13c
avfilter/vf_avgblur: add support for commands
2019-10-06 15:46:06 +02:00
Paul B Mahol
da9337c911
avfilter/vf_gblur: add support for commands
2019-10-06 15:34:28 +02:00
Paul B Mahol
e37edc70bd
avfilter: add anlms filter
2019-10-06 15:09:38 +02:00
Paul B Mahol
d0189f8d97
avfilter/vsrc_sierpinski: add triangle type
2019-10-03 14:21:39 +02:00