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
Paul B Mahol
6fbc7f092e
avfilter/af_anequalizer: fix off by one in reallocation
2020-03-14 19:39:04 +01:00
Paul B Mahol
8f222573e9
avfilter/f_sendcmd: add more useful variables
2020-03-13 17:19:33 +01:00
Guo, Yejun
e35f966853
avfilter/vf_dnn_processing.c: add frame size change support for planar yuv format
...
The Y channel is handled by dnn, and also resized by dnn. The UV channels
are resized with swscale.
The command to use espcn.pb (see vf_sr) looks like:
./ffmpeg -i 480p.jpg -vf format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:input=x:output=y -y tmp.espcn.jpg
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Reviewed-by: Pedro Arthur <bygrandao@gmail.com>
2020-03-12 18:22:51 +08:00
Guo, Yejun
bd50453894
avfilter/vf_dnn_processing.c: add planar yuv format support
...
Only the Y channel is handled by dnn, the UV channels are copied
without changes.
The command to use srcnn.pb (see vf_sr) looks like:
./ffmpeg -i 480p.jpg -vf format=yuv420p,scale=w=iw*2:h=ih*2,dnn_processing=dnn_backend=tensorflow:model=srcnn.pb:input=x:output=y -y srcnn.jpg
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Reviewed-by: Pedro Arthur <bygrandao@gmail.com>
2020-03-12 18:22:39 +08:00
Guo, Yejun
d86a8c056b
avfilter/vf_dnn_processing.c: use swscale for uint8<->float32 convert
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Reviewed-by: Pedro Arthur <bygrandao@gmail.com>
2020-03-12 18:22:18 +08:00
James Almer
36aaee2a65
avfilter/Makefile: remove dnn files when calling make clean
...
Also remove the ancient reference to libmpcodecs while at it.
Signed-off-by: James Almer <jamrial@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
2020-03-11 14:11:37 +08:00
Paul B Mahol
70209000fd
avfilter/f_sendcmd: implement expr flag
...
Make possible to parse expressions and store results as arguments
for target filters.
2020-03-03 20:38:56 +01:00
Paul B Mahol
5c7b6aadb5
avfilter/vf_v360: simplify some unnecessary indirections
2020-03-03 12:41:30 +01:00
Paul B Mahol
580d68f90e
avfilter/vf_v360: add half equirectangular input format
2020-03-03 12:21:16 +01:00
Paul B Mahol
ca04231983
avfilter/vf_v360: add half equirectangular output format
2020-03-03 12:03:42 +01:00
Guo, Yejun
f9cb7cf424
avfilter/vf_sr.c: refine code to use AVPixFmtDescriptor.log2_chroma_h/w
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Reviewed-by: Pedro Arthur <bygrandao@gmail.com>
2020-03-03 15:28:59 +08:00
Paul B Mahol
6e1913a02e
avfilter/vf_v360: add truncated square pyramid input format
2020-03-02 19:05:13 +01:00
Paul B Mahol
3dd81be866
avfilter/vf_v360: add truncated square pyramid output format
2020-03-02 17:43:25 +01:00
Paul B Mahol
1281399135
avfilter/vf_v360: fix cylindrical input format
2020-03-01 11:24:31 +01:00
Paul B Mahol
db8146f4dd
avfilter/vf_v360: cleanup some code
2020-03-01 10:33:36 +01:00
Paul B Mahol
8f3df1dd4d
avfilter/vf_v360: improve interpolation for equirect input at poles
2020-02-29 22:35:02 +01:00
Andreas Rheinhardt
be82dc175b
avfilter/vf_cas: Remove superfluous ;
...
The second ; in a double ;; is actually a null statement. It triggers
the typical declaration-after-statement compiler-warnings if it occurs
in the middle of several declarations (like here).
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>
2020-02-29 22:31:01 +01:00
Paul B Mahol
f707c84b8b
avfilter/vf_v360: add partial size setup for flat
...
Other part of size is calculated from both available horizontal
and vertical FOV and given one size component.
2020-02-29 20:22:37 +01:00
Paul B Mahol
3733a6bc20
avfilter/vf_v360: speed up fisheye input calculation
2020-02-29 16:39:35 +01:00
Paul B Mahol
2dfd9445ff
avfilter/vf_v360: improve tetrahedron input format at frame borders
2020-02-29 14:24:35 +01:00
Paul B Mahol
50a13b987b
avfilter/vf_v360: simplify tetrahedron input calculation
2020-02-29 14:24:35 +01:00
Paul B Mahol
fc7d4d08fb
avfilter/vf_v360: improve precision of some output formats
2020-02-29 14:24:35 +01:00
Paul B Mahol
31ecfa95fb
avfilter/vf_v360: simplify code which handles interpolation points
2020-02-28 16:53:19 +01:00
Paul B Mahol
9b22254331
avfilter/vf_v360: add initial barrel split format input support
2020-02-27 23:37:23 +01:00
Paul B Mahol
b0a9960a77
avfilter/vf_v360: add barrel split format output support
2020-02-26 14:52:25 +01:00
Jacob Ruiz
ba2581adb2
avfilter/vf_zscale: fix crash on unaligned input
2020-02-25 19:52:26 +01:00
Paul B Mahol
7e08a92370
avfilter/vf_convolve: reset fft/ifft pointers after free
2020-02-25 17:35:09 +01:00
Paul B Mahol
b484eb2556
avfilter/vf_v360: add basic commands support
2020-02-25 11:33:06 +01:00
Paul B Mahol
08a21c1fd8
avfilter/vf_v360: handle gracefully invalid values for rorder option
2020-02-25 11:12:02 +01:00
Paul B Mahol
72b6c8c99f
avfilter: add Contrast Adaptive Sharpen video filter
2020-02-24 11:57:25 +01:00
Paul B Mahol
90913abc2e
avfilter/vf_v360: improve dfisheye_to_xyz() output
2020-02-23 22:00:32 +01:00
Paul B Mahol
e6ea0e7429
avfilter/vf_v360: improve fisheye_to_xyz() output
2020-02-23 21:55:35 +01:00
Paul B Mahol
ebc8806b9f
avfilter/vf_v360: improve equirect_to_xyz() quality
2020-02-23 18:15:06 +01:00
Linjie Fu
edf2c7be5c
lavfi/vf_scale_qsv: fix the class_name in help for scale_qsv
...
Class name is used in show_help_children(avfilter_get_class(),...)
to prompt the available filters.
$ ffmpeg -h full
Before:
qsvscale AVOptions:
After:
scale_qsv AVOptions:
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhongli_dev@126.com>
2020-02-18 10:27:02 +08:00
Michael Niedermayer
0c0ca0f244
avfilter/vf_aspect: Fix integer overflow in compute_dar()
...
Fixes: signed integer overflow: 1562273630 * 17 cannot be represented in type 'int'
Fixes: Ticket8323
Found-by: Suhwan
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-02-16 15:13:10 +01:00
Paul B Mahol
314a783bb8
avfilter/vf_phase: add >8 bit support
2020-02-15 12:18:51 +01:00
Paul B Mahol
55755b4ab2
avfilter/opencl: use av_fopen_utf8()
2020-02-14 21:49:47 +01:00
Paul B Mahol
5452d0372c
avfilter/vf_fieldhint: use av_fopen_utf8()
2020-02-14 21:47:55 +01:00
Paul B Mahol
a2c0746344
avfilter/vf_lut3d: use av_fopen_utf8()
2020-02-14 21:44:38 +01:00
Paul B Mahol
5fe6c6b8f4
avfilter/vf_remap: add fill color option
2020-02-14 13:19:05 +01:00
Paul B Mahol
1c6a91990d
avfilter: add pad opencl filter
2020-02-14 09:59:27 +01:00
Paul B Mahol
47773f7979
avfilter/vf_xmedian: implement percentile option
2020-02-12 14:59:32 +01:00
Paul B Mahol
28743f1803
avfilter/vf_median: implement percentile option
2020-02-12 11:27:28 +01:00
Paul B Mahol
cf92f42672
avfilter/vf_colorlevels: add support for commands
2020-02-11 14:19:56 +01:00
Paul B Mahol
52cd7a6337
avfilter/vf_colorkey: add support for commands
2020-02-11 14:00:21 +01:00
Andreas Rheinhardt
212077eda4
avfilter/vf_dedot: Fix leak of AVFrame if making it writable fails
...
Even in this scenario, the frame still contains references to data that
won't be freed if the frame isn't unreferenced. And the AVFrame itself
will leak, too.
Fixes Coverity issue #1441422 .
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>
2020-02-11 00:03:44 +01:00
Paul B Mahol
e63a66416f
avfilter/vf_thumbnail: fix possible crash on error
2020-02-10 15:46:42 +01:00
Paul B Mahol
32bc0e0444
avfilter/vf_thumbnail: add timeline support
2020-02-10 15:46:42 +01:00
Paul B Mahol
1e6cef6861
avfilter/vf_fade: fix color fading for planar rgb
2020-02-09 22:50:07 +01:00
Paul B Mahol
06db1bef4c
avfilter/vf_fade: add >8 bit support for black and alpha fade
2020-02-09 22:28:59 +01:00
Mark Thompson
593106ff47
lavfi/vf_*_vaapi: Fix error case
...
Fixes CID 1452400, 1452416, 1452550, 1452590, 1452760
.
2020-02-09 20:36:45 +00:00
Mark Thompson
f130b22119
lavfi/vf_deshake_opencl: Avoid propagating uninitialised data
...
Fixes CID 1452753.
2020-02-09 20:36:45 +00:00
Paul B Mahol
53a485cd37
avfilter/af_afftfilt: fix memory leaks on error
2020-02-09 15:49:09 +01:00
Paul B Mahol
2174a315b4
avfilter/af_afffilt: fix crash on error
2020-02-09 15:42:48 +01:00
Paul B Mahol
283e755734
avfilter/vf_xfade: add diagonal smooth transitions
2020-02-09 12:59:56 +01:00
Paul B Mahol
3f24e744ad
avfilter/af_asoftclip: add support for commands
2020-02-09 10:59:20 +01:00
Paul B Mahol
d842998183
avfilter/af_asoftclip: add slice threading support
2020-02-09 10:47:43 +01:00
Paul B Mahol
3750e36aa8
avfilter/vf_alphamerge: add AVClass to private context
2020-02-08 21:54:45 +01:00
Andreas Rheinhardt
adea33f465
avfilter/vf_paletteuse: Fix potential double-free of AVFrame
...
apply_palette() would free an AVFrame given to it only via an AVFrame *
(and not via AVFrame **) in three of its four exists (namely in the
normal path and in two error paths). So upon error the caller has no way
to know whether the frame has already been freed or not;
load_apply_palette(), the only caller, opted to free the frame in this
scenario.
This commit changes this by making apply_palette not freeing the frame
at all, which is left to load_apply_palette().
Fixes Coverity issue #1452434 .
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>
2020-02-08 18:20:43 +01:00
Paul B Mahol
cbd5a4536c
avfilter/vf_alphamerge: add timeline support
2020-02-08 14:28:01 +01:00
Paul B Mahol
a8d82cc2b8
avfilter/vf_fade: improve type option description
2020-02-08 12:40:23 +01:00
Paul B Mahol
8cab0ce5dc
avfilter/vf_fade: add missing .flags for type option
2020-02-08 12:36:59 +01:00
Paul B Mahol
68416e4ba7
avfilter/vf_maskedclamp: make C version consistent with ASM one
...
In case of undefined behaviour.
2020-02-08 10:46:37 +01:00
Paul B Mahol
3720153ffc
aviflter/vf_xfade: add pixelize transition
2020-02-07 22:35:16 +01:00
Paul B Mahol
e3e5598290
avfilter/vf_xfade: add dissolve transition
2020-02-07 22:00:14 +01:00
Paul B Mahol
bfdd6304fb
avfilter/af_crystalizer: add slice threading support
2020-02-07 19:26:39 +01:00
Paul B Mahol
ae5a435300
avfilter: add afirsrc filter
2020-02-07 17:07:30 +01:00
Paul B Mahol
7e8721e98e
avfilter/af_acrossover: free all output frames on error
2020-02-07 12:13:06 +01:00
Paul B Mahol
cd671ea083
avfilter/af_acrossover: add slice threading support
2020-02-07 12:13:06 +01:00
Paul B Mahol
270068b5af
avfilter/af_acrossover: improve filter output
...
Makes sum always flat. Also faster.
2020-02-06 15:45:19 +01:00
James Almer
616e9b5cff
avfilter/Makefile: add vulkan.h to the list of skipped headers
...
Should fix make checkheaders
Signed-off-by: James Almer <jamrial@gmail.com>
2020-02-06 10:26:31 -03:00
Paul B Mahol
2d58fa6d9e
avfilter/vf_xfade: add horzopen/close transition
2020-02-05 16:53:06 +01:00
Paul B Mahol
10f4441acb
avfilter/vf_xfade: add vertopen/close transition
2020-02-05 16:44:50 +01:00
Martin Storsjö
0815a22dcc
vf_ssim: Fix loading doubles to float registers on i386
...
This fixes the tests filter-refcmp-ssim-yuv and filter-refcmp-ssim-rgb
on i386 after breaking in fcc0424c93
.
Signed-off-by: Martin Storsjö <martin@martin.st>
2020-02-05 14:38:26 +02:00
Lynne
a71a5d9214
lavfi: bump minor version for the Vulkan filters
2020-02-04 23:52:29 +00:00
Lynne
907ae87d6e
lavfi: add an chromaber_vulkan filter
...
This commit adds a chromatic aberration filter for Vulkan that attempts to
emulate a lens chromatic aberration effect.
For a YUV frame it will instead shift the chroma channels, providing a
simple approximation.
2020-02-04 23:19:48 +00:00
Lynne
a2db7343e0
lavfi: add an avgblur_vulkan filter
...
This commit adds a fast avgblur Vulkan filter.
This will reset Intel GPUs on Linux due to a known, two-year-old driver bug
(!834 on mesa's gitlab).
2020-02-04 23:19:48 +00:00