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
Paul B Mahol
22f3b6286e
avfilter: add av_cold where it is missing
2019-10-03 12:09:07 +02:00
Paul B Mahol
8ca89e52df
avfilter/f_streamselect: fix memleaks of pad names
2019-10-03 11:23:23 +02:00
Paul B Mahol
d492907e78
avfilter/af_amix: fix filtering if specified weights are negative
2019-10-03 10:27:56 +02:00
Paul B Mahol
2a546fb7d5
avfilter/setpts: switch to activate
...
Also properly handle EOF timestamps.
Fixes #6833 .
2019-10-02 21:05:25 +02:00
Paul B Mahol
9847380f5f
avfilter/vf_elbg: stop leaking frame on error
2019-10-02 10:54:45 +02:00
Carl Eugen Hoyos
7ffa458d60
lavfi/movie: Use filter thread count for decoding threads.
...
Fixes ticket #7542 .
2019-10-01 21:54:53 +02:00
Paul B Mahol
1b2ed0c392
avfilter/vf_drawbox: implement process_command
2019-10-01 20:28:11 +02:00
Paul B Mahol
027a53dc49
avfilter/vf_drawbox: reduce code duplication
2019-10-01 20:28:11 +02:00
Paul B Mahol
3bb170e530
avfilter/f_streamselect: add check case when nothing is done
...
Fixes #7955 .
2019-10-01 18:46:20 +02:00
Paul B Mahol
f66458cfc7
avfilter/vsink_nullsink: cosmetics
2019-10-01 14:57:41 +02:00
Paul B Mahol
94b155e49b
avfilter/copy: add forgotten check
2019-10-01 14:55:43 +02:00
Paul B Mahol
9cee8975c3
avfilter/asink_anullsink: cosmetics
2019-10-01 14:38:58 +02:00
Paul B Mahol
a9500441a7
avfilter/vf_copy: check for error cases and handle them
2019-10-01 13:45:29 +02:00
Paul B Mahol
c9473229c9
avfilter/af_acopy: check for error cases and handle them
2019-10-01 13:42:18 +02:00
Paul B Mahol
835fdf48e5
avfilter/vf_showpalette: fix small cosmetics issue
2019-10-01 13:24:35 +02:00
Paul B Mahol
5868e7f562
avfilter/vf_alphamere: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
2019-10-01 13:17:43 +02:00
Paul B Mahol
056bc9393e
avfilter/vf_photosensitivity: fix memleak
2019-09-30 20:37:25 +02:00
Vladimir Panteleev
c888adf590
libavfilter: add photosensitivity filter
2019-09-30 20:21:27 +02:00
Paul B Mahol
a746359ede
avfilter: add scroll video filter
2019-09-30 19:37:37 +02:00
Paul B Mahol
5161b279d6
avfilter/af_join: cosmetics
2019-09-30 16:52:52 +02:00
Paul B Mahol
7851e2f368
avfilter/af_join: use av_asprintf()
2019-09-30 16:45:31 +02:00
Paul B Mahol
6e9e14e62e
avfilter/split: use av_asprintf()
2019-09-30 16:39:39 +02:00
Paul B Mahol
8b36968ef4
avfilter/trim: drop all audio frames instead of asserting
2019-09-30 12:58:06 +02:00
Paul B Mahol
a6e2cf5eb0
avfilter/f_metadata: do not memleak expr
2019-09-30 12:24:06 +02:00
Paul B Mahol
9c9d5bf257
avfilter/f_metadata: add ends_with() function for comparing ends of strings
2019-09-30 12:14:34 +02:00
Paul B Mahol
947e8ab329
avfilter/fifo: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
2019-09-28 22:09:56 +02:00
Paul B Mahol
216830aca4
avfilter/fifo: cosmetics
2019-09-28 22:09:56 +02:00
Limin Wang
86f0411a52
avfilter/vf_framerate: remove duplicate code with macro-based function
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-09-28 21:53:55 +02:00
Limin Wang
fd5fdca953
avfilter/vf_framerate: refine the filter_slice code for better readiablity
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-09-28 20:20:28 +02:00
Limin Wang
b4e7d3a0db
avfilter/vf_framerate: limit the scene level max range
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-09-28 20:06:43 +02:00
Andreas Rheinhardt
4294dc3589
avfilter/vf_xbr: Fix left shift of negative number
...
Affected every usage of vf_xbr, e.g. the FATE-tests filter-2xbr,
filter-3xbr, filter-4xbr.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-28 17:24:32 +02:00
Andreas Rheinhardt
fa21194326
avfilter/vf_hqx: Fix undefined left shifts of negative numbers
...
Affected every usage of this filter; in particular, it affected the
FATE-tests filter-2xbr, filter-3xbr and filter-4xbr.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-28 17:24:32 +02:00
Limin Wang
b9d479bac4
avfilter/vf_scale: cosmetics
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-27 10:58:30 +02:00
James Almer
1dbd3c6116
avfilter/vf_eq: fix compilation with x86 asm disabled
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-09-26 12:19:43 -03:00
Ting Fu
4f589d668e
avfilter/x86/vf_eq: add SSE2 version
...
Signed-off-by: Ting Fu <ting.fu@intel.com>
2019-09-26 08:12:36 +08:00
Ting Fu
6aff2042d6
avfilter/x86/vf_eq: Change inline assembly into nasm code
...
Signed-off-by: Ting Fu <ting.fu@intel.com>
2019-09-26 08:11:13 +08:00
Ting Fu
9691e2a426
checkasm/vf_eq: add test for vf_eq
...
Signed-off-by: Ting Fu <ting.fu@intel.com>
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2019-09-26 08:10:31 +08:00
Paul B Mahol
ced3b8c61e
avfilter/vf_zoompan: fix leaks
2019-09-25 21:48:59 +02:00
Paul B Mahol
20242bc762
avfilter/vf_zoompan: forward status back from output to input
2019-09-25 21:37:26 +02:00
Paul B Mahol
631f7acc6c
avfilter/vf_stack: add slice threading
2019-09-25 19:02:57 +02:00
Paul B Mahol
44095564d4
avfilter/vf_stack: simplify main processing path
2019-09-25 18:40:56 +02:00
Paul B Mahol
402dbd4633
avfilter/Makefile: fix case for sierpinski
2019-09-25 14:15:55 +02:00
Paul B Mahol
9c3e1c1937
avfilter: add sierpinski video source
2019-09-25 14:06:26 +02:00
Paul B Mahol
55b32584b8
avfilter/vf_premultiply: forward status back from output to all input links
2019-09-25 13:07:04 +02:00
Paul B Mahol
da9890f6c7
avfilter/vf_fieldmatch: forward status back from output to all input links
...
Fixes #8199 .
2019-09-25 13:07:04 +02:00
Paul B Mahol
2962101e40
avfilter/vf_fieldmatch: fix more leaks
2019-09-25 13:06:30 +02:00
Paul B Mahol
0d05aa052c
avfilter/vf_v360: add sinusoidal format
2019-09-25 13:06:30 +02:00
Paul B Mahol
a214c17414
avfilter/vf_v360: do not use mod where it is not needed
2019-09-24 11:28:11 +02:00
Paul B Mahol
eaf3c4b8bf
avfilter/vf_v360: fix regression introduced in b342678bc4
2019-09-23 12:27:41 +02:00
Paul B Mahol
4ba45a95df
avfilter/vf_v360: adjust h for mercator input/output
2019-09-22 22:34:13 +02:00
Paul B Mahol
043038ea56
avfilter/vf_v360: fix xyz_to_mercator()
2019-09-22 22:32:37 +02:00
Paul B Mahol
a8925d264a
avfilter/vf_v360: fix mercator_to_xyz()
2019-09-22 22:32:37 +02:00
Paul B Mahol
b4d2bea647
avfilter/v360: reduce size of some struct members
2019-09-22 19:55:31 +02:00
Paul B Mahol
51a2f02117
avfilter/vf_v360: add fixed pixel padding options
2019-09-22 14:12:51 +02:00
Paul B Mahol
79d14a3cc8
avfilter/vf_v360: remove intermediate variables
2019-09-22 14:12:51 +02:00
Paul B Mahol
a1391cb942
avfilter/vf_v360: fix comparison with float value
2019-09-21 21:35:39 +02:00
Paul B Mahol
073d22696e
avfilter/vf_v360: simplify xyz_to_dfisheye() calculations
2019-09-21 21:33:03 +02:00
Paul B Mahol
b342678bc4
avfilter/vf_v360: simplify dfisheye_to_xyz() calculations
2019-09-21 21:17:37 +02:00
Paul B Mahol
a46ee096d1
avfilter/avf_showfreqs: fix check for failed allocation
2019-09-21 19:09:29 +02:00
Paul B Mahol
34046bcd5f
avfilter/vf_v360: simplify ball_to_xyz() calculations
2019-09-21 16:31:32 +02:00
Paul B Mahol
ecaef69fbb
avfilter/vf_v360: simplify xyz_to_ball() calculations
2019-09-21 16:31:32 +02:00
Paul B Mahol
b8dfc108a2
avfilter/vf_v360: add hammer projection
2019-09-21 15:58:03 +02:00
Paul B Mahol
76f861bbb7
avfilter/vf_v360: use lrintf() in kernel
2019-09-21 11:00:28 +02:00
Paul B Mahol
de1d6cb34f
avfilter/vf_v360: fix small artifacts between corners in EAC format
2019-09-21 10:31:59 +02:00
Paul B Mahol
8b58d9cb47
avfilter/vf_v360: remove uneeded array element
2019-09-20 21:41:12 +02:00
Paul B Mahol
5c93a0a1e4
avfilter/vf_v360: add support for mirroring to ball input format
2019-09-20 21:34:46 +02:00
Paul B Mahol
9def7efdbf
avfilter/vf_v360: adjust kernel after latest change
2019-09-20 21:08:57 +02:00
Paul B Mahol
bc89434a0b
avfilter/vf_v360: fix various artifacts with cubemaps
2019-09-20 21:08:57 +02:00
Paul B Mahol
048c712aa1
avfilter/vf_v360: improve description about s in comments
2019-09-20 21:08:57 +02:00
Guo, Yejun
8f13a557ca
libavfilter/dnn: support multiple outputs for native mode
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-09-20 14:51:57 -03:00
Guo, Yejun
75ca94f3cf
libavfilter/dnn/dnn_backend_native: find the input operand according to input name
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-09-20 14:51:50 -03:00
Guo, Yejun
b2683c66b2
libavfilter/dnn: add layer maximum for native mode.
...
The reason to add this layer is that it is used by srcnn in vf_sr.
This layer is currently ignored in native mode. After this patch,
we can add multiple outputs support for native mode.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-09-20 10:57:18 -03:00
Marton Balint
862e020f93
avfilter/dnn: fix inclusion guard in dnn/dnn_backend_native_layer_depth2space.h
...
Fixes fate-source failure.
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-09-19 21:30:54 +02:00
Paul B Mahol
b632ad81c5
avfilter/vf_v360: add ball projection format
2019-09-19 18:38:06 +02:00
Guo, Yejun
48133fad05
libavfilter/dnn: separate depth_to_space layer from dnn_backend_native.c to a new file
...
the logic is that one layer in one separated source file to make
the source files simple for maintaining.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-09-19 11:25:15 -03:00
Guo, Yejun
5f058dd693
libavfilter/dnn: separate conv2d layer from dnn_backend_native.c to a new file
...
the logic is that one layer in one separated source file to make
the source files simple for maintaining.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-09-19 11:09:25 -03:00
Paul B Mahol
251284e44a
avfilter/vf_v360: add mercator projection
2019-09-17 22:18:30 +02:00
Paul B Mahol
6f4ec4d909
avfilter/vf_v360: add slice threading to remap calculation
2019-09-16 18:43:11 +02:00
Paul B Mahol
05ffaa252e
avfilter/vf_v360: refactor creation of remap data
2019-09-16 18:43:11 +02:00
Paul B Mahol
a09213da23
avfilter/vf_v360: reverse order of remap for loops
2019-09-16 18:03:16 +02:00
Paul B Mahol
cf62110a83
avfilter/vf_v360: simplify allocating remap data
2019-09-16 17:58:08 +02:00
Paul B Mahol
c271d88257
avfilter/vf_v360: move some local variables to private filter context
2019-09-16 17:53:58 +02:00
Paul B Mahol
d87db83e1c
avfilter/vf_v360: rename r_tmp variables
2019-09-16 17:50:16 +02:00
Paul B Mahol
94f187d382
avfilter/vf_stereo3d: assert that out variable is valid
2019-09-16 11:45:28 +02:00
Paul B Mahol
34a12b9978
avfilter/vf_stereo3d: merge same code in case branches
2019-09-16 11:41:50 +02:00
Paul B Mahol
ea8391e519
avfilter/vf_shuffleplanes: remove not needed line
2019-09-16 11:28:03 +02:00
Paul B Mahol
f70690e8ec
avfilter/vf_ciescope: remove dead assignments
2019-09-16 11:22:16 +02:00
Paul B Mahol
fa045c3ce2
avfilter/window_func: clarify intention in dolph window calculation
2019-09-16 10:57:09 +02:00
Paul B Mahol
654601dd1d
avfilter/vf_v360: add missing av_assert0()
2019-09-16 10:40:47 +02:00
Paul B Mahol
7a7aa4f79e
avfilter/vf_avgblur: remove dupe assignment
2019-09-16 10:31:05 +02:00
Paul B Mahol
dc33250765
avfilter/af_headphone: return on error immediately
2019-09-16 10:27:42 +02:00
Paul B Mahol
921eb21b1d
avfilter/x86/vf_360: add most of >8 depth asm
2019-09-16 10:21:16 +02:00
Paul B Mahol
5a9560dfc6
avfilter/vf_stereo3d: add tb (top-bottom) aliases
2019-09-15 10:54:00 +02:00
Paul B Mahol
7f8f886344
avfilter/vf_v360: refactor dimensions and offsets calculations
2019-09-15 10:37:42 +02:00
Paul B Mahol
45bb80dccc
avfilter/vf_v360: implement stereo 3D support
2019-09-14 19:35:13 +02:00
Paul B Mahol
451cee662c
avfilter/vf_v360: reduce by one cosf call less
2019-09-14 17:40:46 +02:00
Paul B Mahol
2a672a93d2
avfilter/vf_v360: define variables in for loops consistently
2019-09-14 17:33:31 +02:00
Paul B Mahol
f78abca0c2
avfilter/vf_v360: call tanf() once
2019-09-14 13:33:24 +02:00
Paul B Mahol
cb8d6a4e3e
avfilter/vf_v360: implement diagonal field of view
2019-09-14 10:47:01 +02:00
Paul B Mahol
ed4ad6e1ed
avfilter/vf_v360: use always float version instead of double floating-point function
2019-09-13 12:32:35 +02:00
Paul B Mahol
2b3094d61d
avfilter/vf_v360: fix flat projection field of view calculation
2019-09-13 11:31:11 +02:00
Paul B Mahol
e1dd355b3d
avfilter/vf_v360: add dfisheye output
2019-09-12 20:07:26 +02:00
Paul B Mahol
24d4eea921
avfilter/vf_v360: fix setting default height for stereographic
2019-09-12 18:37:38 +02:00
Paul B Mahol
801fd6e410
avfilter/vf_v360: fix errors is comments
2019-09-12 18:37:38 +02:00
Paul B Mahol
b4562301ee
avfilter/vf_v360: fix M_PI_4 usage consistency
2019-09-12 18:37:38 +02:00
Paul B Mahol
efc73b13ac
avfilter/vf_v360: remove pointless special case when allocating stuff
2019-09-11 16:43:10 +02:00
Paul B Mahol
7ce7002664
avfilter/vf_v360: refactor FoV calculation for stereographic
...
Move in out of loop.
2019-09-11 16:25:21 +02:00
Paul B Mahol
783ea9c1c5
avfilter/vf_v360: extend max limit to vertical fov
2019-09-11 15:12:56 +02:00
Paul B Mahol
cb41c2af92
avfilter/vf_v360: really fix FoV selection
...
Big thanks to Michael Koch for providing actual formula.
2019-09-11 15:12:56 +02:00
Jun Zhao
944d76a3e0
lavfi/sinc: fix memory leak in error handling path
...
free work&pi_wraps in error handling path to avoid memory leak.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-09-11 10:36:34 +08:00
Jun Zhao
44b55a8c9c
lavfi/anequalizer: fix memory leak in error handling path
...
free the pad.name in error handling path to avoid memory leak.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-09-11 10:36:34 +08:00
Paul B Mahol
0f0f5188ac
avfilter/vf_v360: remove w/h changing for flat output
...
Fixes crashes with bigger h/v fov.
2019-09-11 00:37:02 +02:00
Paul B Mahol
f705dc9a74
avfilter/vf_v360: increase h_fov max limit
2019-09-11 00:37:02 +02:00
Paul B Mahol
ccaeabd092
avfilter/vf_v360: fix fov calculation for stereographic output
2019-09-11 00:37:02 +02:00
Paul B Mahol
5fcb3cbaf0
avfilter/vf_v360: increase v_fov max limit
2019-09-10 20:18:10 +02:00
Paul B Mahol
329505d908
avfilter/vf_v360: add support for stereographic as input projection
2019-09-10 18:58:51 +02:00
Nikolas Bowe
b794df43f3
avfilter/vf_fps: Avoid inlink fifo build up.
...
When duplicating frames we need to schedule for activation again, otherwise frames can build up in the inlink fifo.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-10 17:21:54 +02:00
Paul B Mahol
558265d4bc
avfilter/vf_v360: add padding to u/v/ker
...
Fixes use of uninitialized variables.
2019-09-09 18:40:39 +02:00
Paul B Mahol
0c9e01011b
avfilter/vf_v360: add guards against NaNs
...
Also normalize vector after rotation, it might be needed,
otherwise one can get NaNs.
2019-09-09 18:03:17 +02:00
Paul B Mahol
799c07e5c8
avfilter/vf_v360: partialy revert previous commit
...
roll/pitch can do exactly same thing.
2019-09-09 17:47:03 +02:00
Paul B Mahol
976617c7d2
avfilter/vf_v360: extend stereographic projection
...
Add option to change central point projection.
2019-09-09 14:17:22 +02:00
Paul B Mahol
7985430c70
avfilter/vf_v360: factor vector normalization out
2019-09-09 11:07:39 +02:00
Jun Zhao
a0abcb4a31
lavfi/concat: fix logic error in framerate check
...
fix logic error in framerate check, it's introduced by commit
3ad5d4df9c
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-09-09 16:03:17 +08:00
Paul B Mahol
973051e3bd
avfilter/vf_v360: add stereographic output projection
2019-09-08 21:07:59 +02:00
Paul B Mahol
a13b61b7fd
avfilter/vf_v360: disallow too low h_fov/v_fov
2019-09-08 21:07:59 +02:00
Calvin Walton
3ad5d4df9c
lavfi/concat: allow to support inputs with different frame rates
...
Right now, the concat filter does not set the frame_rate value on any of
the out links. As a result, the default ffmpeg behaviour kicks in - to
copy the framerate from the first input to the outputs.
If a later input is higher framerate, this results in dropped frames; if
a later input is lower framerate it might cause judder.
This patch checks if all of the video inputs have the same framerate, and
if not it sets the out link to use '1/0' as the frame rate, the value
meaning "unknown/vfr".
A test is added to verify the VFR behaviour. The existing test for CFR
behaviour passes unchanged.
2019-09-08 16:48:28 +02:00
Paul B Mahol
85386c36e3
avfilter/vf_v360: add aliases for some projections
2019-09-08 10:52:35 +02:00
Limin Wang
cbc63d61b2
avfilter/vf_scale: split the scale_frame function from filter_frame for activate function support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-08 02:15:46 +02:00
Paul B Mahol
5b12a47e08
avfilter/vf_v360: add options to h/w unflip input video
2019-09-07 22:36:28 +02:00
Paul B Mahol
a06d70350b
avfilter/vf_v360: support transposed input/output
2019-09-07 22:09:17 +02:00
Limin Wang
ede15bf2e3
avfilter/vf_showinfo: display GOP timecode side data
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-06 22:06:12 +02:00
James Almer
4857688732
x86/vf_v360: use a faster horizontal add in remap4_8bit_line_avx2
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-09-06 12:11:46 -03:00
James Almer
2200cf1aca
x86/vf_v360: make remap{1,2}_8bit_line_avx2 work on x86_32
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-09-06 11:11:45 -03:00
Paul B Mahol
cb8c353032
avfilter/vf_v360: add option to pick rotation order
2019-09-06 14:10:37 +02:00
Paul B Mahol
d131541445
avfilter/vf_v360: reduce allocations by reusing duplicated remaps
2019-09-06 14:10:37 +02:00
Paul B Mahol
058bbf48c6
avfilter/vf_v360: x86 SIMD for interpolations
2019-09-06 14:10:37 +02:00
Paul B Mahol
f0d8005ec5
avfilter/vf_v360: add asserts to guard against invalid conditions
2019-09-06 14:10:37 +02:00
Paul B Mahol
32dd429bc7
avfilter/vf_v360: stop using floats in interpolation
2019-09-06 14:10:37 +02:00
Paul B Mahol
28dfa1e371
avfilter/vf_v360: rewrite storing of remap positions and interpolations
...
In preparation of SIMD assembly.
2019-09-06 14:10:37 +02:00
Guo, Yejun
022f50d3fe
libavfilter/dnn: add header into native model file
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-09-04 11:13:21 -03:00