Limin Wang
a058d81570
avfilter/vf_signalstats: reindent after last commit
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Limin Wang
25bb72af62
avfilter/vf_signalstats: make the alloc array used for any bit depth
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Limin Wang
764efda192
avfilter/vf_signalstats: add SignalstatsContext.maxsize variable
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Limin Wang
a8c762a17d
avfilter/vf_signalstats: rename config_props -> config_output
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Guo, Yejun
71e28c5422
dnn/native: add native support for minimum
...
it can be tested with model file generated with below python script:
import tensorflow as tf
import numpy as np
import imageio
in_img = imageio.imread('input.jpg')
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.minimum(0.7, x)
x2 = tf.maximum(x1, 0.4)
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: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Sebastian Dröge
ed3da72583
s->target_i and global are in dB but s->target_tp and true_peak are
...
linear. Instead of mixing these in the calculations, convert the former
first to have all following calculations in the same unit.
Signed-off-by: Kyle Swanson <k@ylo.ph>
5 years ago
Limin Wang
f441fadbcf
avfilter/af_adelay: Check sscanf() return value
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Limin Wang
ee5d6d2ef8
avfilter/vf_mix: Check sscanf() return value
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Paul B Mahol
0a181c2cb1
avfilter/af_crossfeed: make options runtime configurable
5 years ago
Paul B Mahol
35d6001815
avfilter/af_crossfeed: make slope configurable
5 years ago
Paul B Mahol
0ec61fcff7
avfilter/af_crossfeed: fix calculation of alpha parameter
...
Use A in calculation.
5 years ago
Paul B Mahol
c7d8082357
avfilter: add asubboost filter
5 years ago
Paul B Mahol
2970846fc1
avfilter/vf_v360: make FOV adjusted for dual fisheye too
...
Remove any usage of padding for this format.
5 years ago
Paul B Mahol
d8147c4e2d
avfilter/af_amix: make weights option runtime configured
5 years ago
Steven Liu
d813e43b3d
avfilter/vf_v360: adjustment out_pad and in_pad maximum value to 1/10
...
Because not every user know about in_pad and out_pad reasonable value range
so maybe try to set 1.0, but setting 1.0 is so hugh to get an fatal error.
Suggested-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years ago
Paul B Mahol
f53fc935b8
avfilter/vf_pixscope: also show standard deviation of zoomed area
5 years ago
Paul B Mahol
35bcbfd6da
avfilter/f_interleave: no need to check for inlink eof if non-empty queue
...
Also set state to ready if there is any inlink with queued frame.
5 years ago
Paul B Mahol
ec3b5deab4
avfilter/f_interleave: make sure that all frames in inlink queue are used
5 years ago
Paul B Mahol
b29b934e4f
avfilter/f_interleave: add duration option
5 years ago
Lynne
b136a98303
scale_vulkan: take frame cropping parameters in account when scaling
...
Then sample_aspect_ratio line at the bottom was cargo-culted from the vaapi
scaling filter, but its unnecesary.
5 years ago
Lynne
f66ac83c22
overlay_vulkan: add support for overlaying images with an alpha channel
5 years ago
Guo, Yejun
8ce9d88f93
dnn/native: add native support for divide
...
it can be tested with model file generated with below python script:
import tensorflow as tf
import numpy as np
import imageio
in_img = imageio.imread('input.jpg')
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')
z1 = 2 / x
z2 = 1 / z1
z3 = z2 / 0.25 + 0.3
z4 = z3 - x * 1.5 - 0.3
y = tf.identity(z4, 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: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Guo, Yejun
ef79408e97
dnn/native: add native support for 'mul'
...
it can be tested with model file generated from above python script:
import tensorflow as tf
import numpy as np
import imageio
in_img = imageio.imread('input.jpg')
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')
z1 = 0.5 + 0.3 * x
z2 = z1 * 4
z3 = z2 - x - 2.0
y = tf.identity(z3, 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: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Guo, Yejun
6aa7e07e7c
dnn/native: add native support for 'add'
...
It can be tested with the model file generated with below python script:
import tensorflow as tf
import numpy as np
import imageio
in_img = imageio.imread('input.jpg')
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')
z1 = 0.039 + x
z2 = x + 0.042
z3 = z1 + z2
z4 = z3 - 0.381
z5 = z4 - x
y = tf.math.maximum(z5, 0.0, 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: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Paul B Mahol
4457f75c65
avfilter: add maskedthreshold filter
5 years ago
Paul B Mahol
9987f6d01e
avfilter: add tmedian filter
5 years ago
Limin Wang
403bee30a5
avfilter/af_acrossover: Check sscanf() return value
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Paul B Mahol
24db9372eb
avfilter/af_astats: add noise floor count stat
5 years ago
Paul B Mahol
715da29501
avfilter/af_astats: add slice threading support
5 years ago
Paul B Mahol
87b4fb65a8
avfilter/af_astats: measure noise floor
5 years ago
Paul B Mahol
0607f1bcb0
avfilter/af_amix: unbreak FATE, increase iterator when breaking from loop
5 years ago
Paul B Mahol
10a68ccd58
avfilter/af_amix: use av_strtod() for weights
5 years ago
Paul B Mahol
ce24b1def0
avfilter/vf_telecine: avoid possible null-pointer dereference
5 years ago
Paul B Mahol
70f866ad1b
avfilter/vf_mix: check if array is available
5 years ago
Gyan Doshi
2e2fa2d6e6
doc/filters: clarify metadata and logging for blackdetect
5 years ago
Carl Eugen Hoyos
dbc5c0c1c8
lavfi/telecine: Mark telecined frames as interlaced.
5 years ago
Gyan Doshi
49a32fa45c
avfilter/delogo: correct indentation for option show.
5 years ago
Gyan Doshi
74fe697f96
avfilter/delogo: remove deprecated options
...
Deprecated in 2015 in 8bc708fcee
5 years ago
Limin Wang
46d2b2071b
avfilter/ebur128: prefer to use variable instead of type for sizeof
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Rosen Penev
8beb9e571c
avfilter/vf_drawtext: only test available exceptions
...
soft float systems do not define these macros under musl.
Fixes: Ticket7102
Signed-off-by: Rosen Penev <rosenp@gmail.com>
5 years ago
Lynne
97b526c192
hwcontext_vulkan: only use one semaphore per image
...
The idea was to allow separate planes to be filtered independently, however,
in hindsight, literaly nothing uses separate per-plane semaphores and it
would only work when each plane is backed by separate device memory.
5 years ago
Paul B Mahol
3f9fd9dcfd
avfilter/vf_xfade: add slice transitions
5 years ago
Guo, Yejun
7e4527e8fa
avfilter/vf_derain.c: put all the calculation in model file.
...
currently, the model outputs the rain, and so need a subtraction
in filter c code to get the final derain result.
I've sent a PR to update the model file and accepted, see at
https://github.com/XueweiMeng/derain_filter/pull/3
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years ago
Guo, Yejun
ffa1561608
dnn_backend_native_layer_mathbinary: add sub support
...
more math binary operations will be added here
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Guo, Yejun
2114c42418
avfilter/vf_dnn_processing.c: fix typo for the linesize of dnn data
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
5 years ago
Lynne
ca76a5ba1a
scale_vulkan: correctly copy the colormatrix
5 years ago
Carl Eugen Hoyos
61dcaf5fb7
lavf, lavfi: Remove uses of sizeof(char).
...
The C standard requires sizeof(char) == 1.
5 years ago
Carl Eugen Hoyos
e61767c40a
lavfi/scale_qsv: Fix a format specifier for a variable of type int.
5 years ago
Paul B Mahol
ec7fb45240
avfilter/vf_v360: add pannini input support
5 years ago
Paul B Mahol
dc67c0f180
avfilter/vf_v360: improve description of output fov options
5 years ago