Marton Balint
ed735e6577
avfilter/vf_framerate: fix infinite loop with 1-frame input
Fixes infinite loop in:
ffmpeg -f lavfi -i testsrc=d=0.04 -vf framerate=50 -f null none
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 6d3b70c27e )
5 years ago
James Almer
8fd7d3864d
x86/vf_blend: fix warnings about trailing empty parameters
Finishes fixing ticket #8771
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 320694ff84 )
5 years ago
Reimar Döffinger
1f32d8ea23
dnn_backend_native: Add overflow check for length calculation.
We should not silently allocate an incorrect sized buffer.
Fixes trac issue #8718 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Guo Yejun
dd273d359e
dnn_backend_native: check operand index
it fixed the issue in https://trac.ffmpeg.org/ticket/8716
(cherry-pick from 0b3bd001ac )
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Guo Yejun
5530748bfd
dnn_backend_native.c: refine code for fail case
(cherry-pick from fc932195ab )
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Michael Niedermayer
0a8a96c251
Bump minor versions to separate 4.3 from master
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Paul B Mahol
bd6336b970
avfilter/vf_vaguedenoiser: add new type of threshold
5 years ago
Paul B Mahol
6c57b0d63a
avfilter/vf_vaguedenoiser: remove excessive code from soft thresholding
5 years ago
Paul B Mahol
7826fbfeaa
avfilter/avf_showspectrum: properly handle EOF case
5 years ago
Paul B Mahol
1c32d7dfcf
avfilter/asrc_anoisesrc: switch to activate
Allows to set EOF timestamp.
5 years ago
Wu Zhiwen
b6d7c4c1d4
dnn/native: fix typo for definition of DOT_INTERMEDIATE
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Reviewed-by: Guo Yejun <yejun.guo@intel.com>
5 years ago
Andreas Rheinhardt
317b722c51
avfilter/vf_lut3d: Fix mixed declaration and code
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Mark Reid
a1221b96d8
avfilter/vf_lut3d: prelut support for 3d cinespace luts
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Paul B Mahol
1329db8cfb
avfilter/af_aiir: simplify polynomial evaluation
5 years ago
Paul B Mahol
aac16abd92
avfilter/af_aiir: use correct size when allocating in zp2tf
5 years ago
Paul B Mahol
726dbc57f8
avfilter: add dblur video filter
5 years ago
Jun Zhao
018cd437f8
lavfi/aiir: Refine the pad/vpad related operation
move the pad/vpad related operation with more natural
coding style.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
5 years ago
Jun Zhao
ff8329a730
lavfi/afir: fix vpad.name leak
Fix vpad.name leak in error path, move the vpad related operation
only if enabled show IR frequency response.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
5 years ago
Paul B Mahol
6485b54477
Revert "avfilter/af_aiir: move response drawing as last step"
This reverts commit ca7095a907 .
5 years ago
Paul B Mahol
3fc7b01c52
avfilter/af_aiir: improve response calculation with zp coefficients
5 years ago
Paul B Mahol
e2e8121eaa
avfilter/af_aiir: add S-plane support
5 years ago
Paul B Mahol
327b52412d
avfilter/af_aiir: make it clear that transfer function is digital one
5 years ago
Paul B Mahol
1206a10d9c
avfilter/af_biquads: implement 1st order allpass
5 years ago
Lynne
83fa39eb06
lavfi/vulkan: use av_get_random_seed instead of rand
We need at least a few bits of entropy to determine the start index of each
queue, in order to let filters run in parallel as much as possible, and
rand() is not thread safe and disrupts any external API's usage of rand,
so instead replace it with av_get_random_seed.
While it has more overhead than rand, we only run it once per filter upon init.
5 years ago
Ting Fu
f73cc61bf5
dnn_backend_native_layer_mathunary: add abs support
more math unary operations will be added here
It can be tested with the model file generated with below python scripy:
import tensorflow as tf
import numpy as np
import imageio
in_img = imageio.imread('input.jpeg')
in_img = in_img.astype(np.float32)/255.0
in_data = in_img[np.newaxis, :]
x = tf.placeholder(tf.float32, shape=[1, None, None, 3], name='dnn_in')
x1 = tf.subtract(x, 0.5)
x2 = tf.abs(x1)
y = tf.identity(x2, name='dnn_out')
sess=tf.Session()
sess.run(tf.global_variables_initializer())
graph_def = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def, ['dnn_out'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("out.jpg", np.squeeze(output))
Signed-off-by: Ting Fu <ting.fu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Paul B Mahol
d5f87f8567
avfilter/vf_blend: add support for float formats
5 years ago
Lynne
c0344cbfb0
lavfi/vulkan: fix queue counts and set indices
5 years ago
Lynne
fb49d5c0b1
lavfi/vulkan: use dedicated allocation for buffers when necessary
5 years ago
Lynne
727cac88b8
lavfi/vulkan: use all enabled queues in the queue family
This should significantly improve the performance with certain
filterchains.
5 years ago
Lynne
fac17fd46f
lavfi/vulkan: fix 2 minor memory leaks
5 years ago
Nicolas George
88567a2e52
lavfi: add untile filter.
5 years ago
Nicolas George
2a52f19a91
lavfi/framesync: use av_gcd_q().
5 years ago
Nicolas George
beb98c0181
lavfi/tests/formats: reindent.
5 years ago
Nicolas George
d5e5c6862b
lavfi/formats: remove dead code.
Move the contents of all_channel_layouts.inc directly into
libavfilter/tests/formats.c.
5 years ago
Nicolas George
df123590f0
lavfi/vf_crop: use ff_formats_pixdesc_filter().
5 years ago
Nicolas George
563e1df5d6
lavfi/formats: add ff_formats_pixdesc_filter().
5 years ago
Mark Reid
04f67dcccf
avfilter/vf_lut3d: initial float pixel format support
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Anton Khirnov
f30a41a608
Stop hardcoding align=32 in av_frame_get_buffer() calls.
Use 0, which selects the alignment automatically.
9 years ago
Paul B Mahol
ca7095a907
avfilter/af_aiir: move response drawing as last step
5 years ago
Paul B Mahol
8c825e43f8
avfilter/af_aiir: fix first denominator calculation
5 years ago
Paul B Mahol
07a9e5ec5e
avfilter/af_aiir: add more descriptive options aliases
5 years ago
Paul B Mahol
ffda57b800
avfilter/af_aiir: export normalize option
And enable it in all modes by default.
5 years ago
Paul B Mahol
1fc5ddf774
avfilter/af_aiir: fix first delay value
5 years ago
Paul B Mahol
86822cfcd9
avfilter/af_aiir: fix phase and group delay calculation
Properly unwrap phase.
5 years ago
Paul B Mahol
b559a5882f
avfilter/af_aiir: fix invalid memory access with tf filtering
5 years ago
Paul B Mahol
5646d02cb3
avfilter/vf_chromakey: fix formula for calculation of difference
5 years ago
Paul B Mahol
8b0575d763
avfilter/vf_colorkey: fix formula for calculation of difference
Also fixes colorhold filtering.
5 years ago
Paul B Mahol
f63939dedb
avfilter: add gradients source video filter
5 years ago
Paul B Mahol
1ead7ed5bf
avfilter/vsrc_sierpinski: unbreak configuring rate value
5 years ago
Paul B Mahol
d99ed7367b
avfilter/vsrc_mandelbrot: unbreak configuring rate value
5 years ago