Ting Fu
88fb494f42
dnn_backend_native_layer_mathunary: add cos support
...
It can be tested with the model 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.multiply(x, 1.5)
x2 = tf.cos(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
Ting Fu
0b6d3f0d83
dnn_backend_native_layer_mathunary: add sin support
...
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.multiply(x, 3.14)
x2 = tf.sin(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
Anton Khirnov
c7d8d8d8d9
vf_spp: switch to child_class_iterate()
5 years ago
Anton Khirnov
6bfac4ee6f
vf_scale: switch to child_class_iterate()
5 years ago
Anton Khirnov
344149cf01
framesync: switch to child_class_iterate()
5 years ago
Anton Khirnov
aba98de6b8
avfilter: switch to child_class_iterate()
5 years ago
Anton Khirnov
342230a537
af_resample: switch to child_class_iterate()
5 years ago
Anton Khirnov
3dd324427a
af_aresample: switch to child_class_iterate()
5 years ago
Anton Khirnov
0d6b4351c6
Remove unnecessary use of avcodec_close().
...
Replace it with avcodec_free_context() or drop it completely as
appropriate.
5 years ago
Michael Niedermayer
c5079bf3bc
Bump minor versions after branching 4.3
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
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.
5 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