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.
2020-04-23 18:23:45 +01:00
Lynne
f66ac83c22
overlay_vulkan: add support for overlaying images with an alpha channel
2020-04-23 18:23:45 +01:00
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>
2020-04-22 13:15:00 +08:00
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>
2020-04-22 13:14:47 +08:00
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>
2020-04-22 13:14:30 +08:00
Paul B Mahol
4457f75c65
avfilter: add maskedthreshold filter
2020-04-18 12:34:49 +02:00
Paul B Mahol
9987f6d01e
avfilter: add tmedian filter
2020-04-18 12:34:49 +02:00
Limin Wang
403bee30a5
avfilter/af_acrossover: Check sscanf() return value
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-04-17 16:56:13 +02:00
Paul B Mahol
24db9372eb
avfilter/af_astats: add noise floor count stat
2020-04-17 13:28:01 +02:00
Paul B Mahol
715da29501
avfilter/af_astats: add slice threading support
2020-04-17 13:26:44 +02:00
Paul B Mahol
87b4fb65a8
avfilter/af_astats: measure noise floor
2020-04-17 13:26:30 +02:00
Paul B Mahol
0607f1bcb0
avfilter/af_amix: unbreak FATE, increase iterator when breaking from loop
2020-04-14 19:21:23 +02:00
Paul B Mahol
10a68ccd58
avfilter/af_amix: use av_strtod() for weights
2020-04-14 12:38:47 +02:00
Paul B Mahol
ce24b1def0
avfilter/vf_telecine: avoid possible null-pointer dereference
2020-04-14 12:12:42 +02:00
Paul B Mahol
70f866ad1b
avfilter/vf_mix: check if array is available
2020-04-13 16:44:01 +02:00
Gyan Doshi
2e2fa2d6e6
doc/filters: clarify metadata and logging for blackdetect
2020-04-13 11:23:24 +05:30
Carl Eugen Hoyos
dbc5c0c1c8
lavfi/telecine: Mark telecined frames as interlaced.
2020-04-11 13:48:52 +02:00
Gyan Doshi
49a32fa45c
avfilter/delogo: correct indentation for option show.
2020-04-11 11:46:48 +05:30
Gyan Doshi
74fe697f96
avfilter/delogo: remove deprecated options
...
Deprecated in 2015 in 8bc708fcee
2020-04-11 11:46:43 +05:30
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>
2020-04-09 15:03:36 +02:00
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>
2020-04-09 00:59:21 +02:00
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.
2020-04-07 12:52:56 +01:00
Paul B Mahol
3f9fd9dcfd
avfilter/vf_xfade: add slice transitions
2020-04-07 13:51:25 +02:00
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>
2020-04-07 11:04:47 +08:00
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>
2020-04-07 11:04:34 +08:00
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>
2020-04-07 11:03:25 +08:00
Lynne
ca76a5ba1a
scale_vulkan: correctly copy the colormatrix
2020-04-06 19:16:35 +01:00
Carl Eugen Hoyos
61dcaf5fb7
lavf, lavfi: Remove uses of sizeof(char).
...
The C standard requires sizeof(char) == 1.
2020-04-04 23:21:14 +02:00
Carl Eugen Hoyos
e61767c40a
lavfi/scale_qsv: Fix a format specifier for a variable of type int.
2020-04-04 23:18:18 +02:00
Paul B Mahol
ec7fb45240
avfilter/vf_v360: add pannini input support
2020-04-04 14:16:28 +02:00
Paul B Mahol
dc67c0f180
avfilter/vf_v360: improve description of output fov options
2020-04-03 17:14:58 +02:00
Paul B Mahol
8e1354c95d
avfilter/x86/vf_v360_init: add missing cases
2020-04-02 12:25:37 +02:00
Paul B Mahol
e4809e12ea
avfilter/vf_v360: add SIMD for lagrange9 interpolation
2020-04-02 12:25:37 +02:00
Paul B Mahol
b00b935d99
avfilter/vf_v360: add lagrange9 interpolation
2020-04-02 12:25:37 +02:00
Carl Eugen Hoyos
00ce1ec6a5
lavfi/deshake_opencl: Do not use bool, powerpc does not like it.
...
Fixes ticket #8591 .
2020-04-01 15:48:19 +02:00
Paul B Mahol
72be5d4661
avfilter/vf_v360: fix swapped variables
2020-03-29 13:27:49 +02:00
Paul B Mahol
85025162da
avfilter/vf_v360: speedup fisheye output
2020-03-29 13:27:49 +02:00
Paul B Mahol
460001981f
avfilter/vf_v360: reduce unnecessary negations
2020-03-29 13:27:49 +02:00
Limin Wang
585ac1ff5b
avfilter/vf_showinfo: limit the max number of timecode
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-03-28 19:21:11 +01:00
Yaroslav Pogrebnyak
4976b102d8
avfilter: add vf_overlay_cuda
...
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2020-03-28 18:39:40 +01:00
Paul B Mahol
ddbd77da90
avfilter/af_acrossover: revert 270068b5a
...
Actually it did not work well.
2020-03-27 10:13:20 +01:00
Limin Wang
aa822007a4
avfilter/vf_showinfo: check if the s12m data size is valid
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-03-27 01:42:16 +01:00
Paul B Mahol
840e92da17
avfilter/vf_v360: improve sg input format
...
Specifically unbreak yaw functionality.
2020-03-26 13:53:22 +01:00
Paul B Mahol
7931e766ad
avfilter/vf_v360: improve sg output format
2020-03-26 13:37:13 +01:00
Paul B Mahol
0b43897530
avfilter/vf_v360: fix hfov/vfov calculation from dfov for sg projection
2020-03-25 13:38:41 +01:00
Andreas Rheinhardt
65e8f6dd9b
avfilter/vf_paletteuse: Forward error codes
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-03-24 20:14:08 +01:00
Gyan Doshi
7239254b1d
avfilter/hue: fix range in comment
...
Found-by: Michael Koch
Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
2020-03-24 15:04:52 +05:30
Linjie Fu
acc6f632b4
lavfi/vf_dnn_processing: Fix compile warning of mixed declarations and code
...
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
2020-03-19 14:27:23 +08:00
Lynne
1a5e9ae4d8
scale_vulkan: add support for RGB->YUV conversions
...
Only top-left chroma position supported for now.
2020-03-17 22:52:00 +00:00
Paul B Mahol
d64cbd4fda
remove CHAR_MIN/CHAR_MAX usage
...
It is not needed at all.
2020-03-17 22:46:36 +01:00