Guo, Yejun
c720286ee3
vf_dnn_processing.c: add async support
...
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Guo, Yejun
5024286465
dnn_interface: change from 'void *userdata' to 'AVFilterContext *filter_ctx'
...
'void *' is too flexible, since we can derive info from
AVFilterContext*, so we just unify the interface with this data
structure.
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Guo, Yejun
e67b5d0a24
dnn: add async execution support for openvino backend
...
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Guo, Yejun
39f5cb4bd1
dnn_interface: add interface to support async execution
...
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Guo, Yejun
38089925fa
dnn_backend_openvino.c: refine code for error handle
...
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Guo, Yejun
2b177033bb
dnn_backend_openvino.c: separate function execute_model_ov
...
function fill_model_input_ov and infer_completion_callback are
extracted, it will help the async execution for reuse.
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Xie, Lin
6506ab8b03
dnn/queue: add queue and safe_queue support
...
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Guo, Yejun
1b64954e42
vf_dnn_processing.c: replace filter_frame with activate func
...
with this change, dnn_processing can use DNN async interface later.
Signed-off-by: Xie, Lin <lin.xie@intel.com>
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-29 09:31:06 +08:00
Paul B Mahol
f1357274e9
avfilter/vf_decimate: always properly handle EOF
2020-12-27 22:24:43 +01:00
Paul B Mahol
4b4282bc57
avfilter/vf_decimate: stop dropping last frames with ppsrc
2020-12-27 22:01:23 +01:00
Paul B Mahol
89dcef90af
avfilter/vf_decimate: fix broken logic with ppsrc handling
...
Make output bit exact with VIVTC VDecimate filter.
2020-12-27 21:21:08 +01:00
Marton Balint
6d3b70c27e
avfilter/vf_framerate: fix infinite loop with 1-frame input
...
Fixes infinite loop in:
ffmpeg -f lavfi -i testsrc=d=0.04 -vf framerate=50 -f null none
Signed-off-by: Marton Balint <cus@passwd.hu>
2020-12-27 11:01:41 +01:00
Paul B Mahol
5b48d2af43
avfilter/vf_xmedian: add support for commands
2020-12-25 16:43:14 +01:00
Paul B Mahol
4848eb48ac
avfilter/af_vibrato: make sure table size is at least 1
...
Fixes overreads.
2020-12-25 14:12:52 +01:00
Paul B Mahol
38e71d8b6c
avfilter/af_tremolo: make sure table size is at least 1
2020-12-25 14:12:52 +01:00
Paul B Mahol
686c07fb1e
avfilter/vf_decimate: fix overreads when using ppsrc
...
Derive input parameters from correct inlink when using ppsrc.
Previously both input frames would use dimensions of first inlink,
causing crash if first inlink w/h was smaller than second one.
2020-12-22 13:31:55 +01:00
Ting Fu
5dbabb020e
dnn: add NV12 pixel format support
...
Signed-off-by: Ting Fu <ting.fu@intel.com>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-12-22 10:53:35 +08:00
Paul B Mahol
cd82c6e4ef
avfilter/vf_decimate: switch to activate
2020-12-21 23:34:10 +01:00
Paul B Mahol
204a906437
avfilter/af_crystalizer: implement inverse filtering
2020-12-21 13:15:27 +01:00
Paul B Mahol
28aedc7f54
avfilter/af_crystalizer: use proper type for variable
2020-12-21 12:00:21 +01:00
Paul B Mahol
c1c2e6f968
avfilter/af_crystalizer: improve filter description
2020-12-21 11:51:00 +01:00
Paul B Mahol
6e96e3d970
avfilter: add shufflepixels video filter
2020-12-20 21:44:13 +01:00
Paul B Mahol
3336ca4644
avfilter/vf_maskedthreshold: add support for commands
2020-12-19 23:08:09 +01:00
Paul B Mahol
64e572db46
avfilter/vf_maskedminmax: add support for commands
2020-12-19 20:46:00 +01:00
Paul B Mahol
4fcfecdd66
avfilter/vf_maskedclamp: add support for commands
2020-12-19 20:46:00 +01:00
Paul B Mahol
d6a356f115
avfilter/vf_bilateral: add support for commands
2020-12-19 20:46:00 +01:00
Paul B Mahol
50a9210739
avfilter/vf_fillborders: add fade mode
2020-12-18 23:11:51 +01:00
Paul B Mahol
90720da511
avfilter/vf_fillborders: add more fill modes
2020-12-18 19:40:31 +01:00
Paul B Mahol
7e3f20c43c
avfilter/af_asoftclip: add two more useful options for finer filtering
2020-12-18 13:11:53 +01:00
Paul B Mahol
1eb751955e
avfilter/af_biquads: fix error in ro calculation
2020-12-17 15:13:42 +01:00
Paul B Mahol
69be00aa61
avfilter/af_biquads: add one-pole shelf filters by adding pole option
2020-12-16 18:38:51 +01:00
Paul B Mahol
32586a42da
avfilter/vf_limiter: add support for commands
2020-12-15 20:35:01 +01:00
Paul B Mahol
bf4b9e933f
avfilter/af_afreqshift: add fltp sample format support
2020-12-13 11:16:31 +01:00
Jun Zhao
0320dab265
lavfi/dnn: check the return value from sws_getContext
...
sws_getContext may be return NULL, and it's will be dereferenced,
so add the check.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2020-12-12 13:34:30 +08:00
Jun Zhao
ae2075265b
lavfi/dnn: used the format name in debug message
...
Used the format name in debug message.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2020-12-12 13:34:24 +08:00
Paul B Mahol
adf72718a4
avfilter/vf_fade: add timeline support
2020-12-11 23:02:03 +01:00
Paul B Mahol
fc50a8de55
avfilter/af_afade: add support for commands to afade filter
2020-12-11 23:02:03 +01:00
Paul B Mahol
d76469378d
avfilter/vf_convolution: add support for commands
2020-12-11 18:33:48 +01:00
Paul B Mahol
7adb747fd7
avfilter/vf_chromanr: add options for finer controls of filtering
2020-12-11 13:39:50 +01:00
Paul B Mahol
b607f19374
avfilter: add asuperpass and asuperstop filter
2020-12-11 12:07:06 +01:00
Paul B Mahol
072835898d
avfilter/af_earwax: fix check that was left in previous commit
...
Makes output exact with smaller number of samples per frame than taps.
2020-12-10 23:43:49 +01:00
Gyan Doshi
7777e5119a
avfilter/cropdetect: add option for initial skip
...
The cropdetect filter, at present, skips the first two frames. This
behaviour is hardcoded.
New option 'skip' allows users to change this. Convenient for when
input is a single image or a trimmed video stream.
Default is kept at 2 to preserve current behaviour.
2020-12-09 12:52:09 +05:30
Paul B Mahol
3021c611f5
avfilter/aeval: add timeline support for aeval
2020-12-08 15:34:14 +01:00
Paul B Mahol
18befac5da
avfilter/f_perms: add timeline support
2020-12-07 21:09:08 +01:00
Paul B Mahol
f41de0436c
avfilter/af_earwax: fix filter behavior
...
Previous filter output was incorrect. New one actually follows
graph in comments described on side of filter taps.
2020-12-07 21:09:08 +01:00
James Almer
13f35782b9
avfilter/vf_showinfo: include the correct Dynamic HDR10+ header
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-12-06 12:08:58 -03:00
Paul B Mahol
88b6ebdace
avfilter/af_biquads: add shortcut to set internal precision
2020-12-06 14:51:21 +01:00
Mohammad Izadi
6f2d6e3efd
avfilter/vf_showinfo: add support for HDR10+ metadata
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-12-05 19:20:11 -03:00
Paul B Mahol
530d1dbcef
avfilter/af_afreqshift: add level option
2020-12-05 14:46:16 +01:00
Paul B Mahol
34773ee69f
avfilter: add asubcut filter
2020-12-05 12:02:59 +01:00
Paul B Mahol
7025c91d07
avfilter/af_arnndn: add mix option
...
Mostly useful to listen to actual noise.
2020-12-04 23:57:01 +01:00
Michael Koch
ce8f45aaba
avfilter/vf_v360: fix several problems with 'perspective' output
...
The image center wasn't preserved, the output image was mirror reversed,
and rotations were made around wrong axes.
I did also remove the vector normalization, because it's sure that the vector
is already normalized if it's calculated from sin() and cos() terms.
2020-12-04 19:50:10 +01:00
Paul B Mahol
51f8848e36
avfilter/af_stereotools: add support for commands
2020-12-04 15:40:42 +01:00
Paul B Mahol
eebf19ccd8
avfilter/af_stereotools: add timeline support
2020-12-04 15:40:42 +01:00
Paul B Mahol
456146356a
avfilter/af_stereotools: add two more modes
2020-12-04 11:58:31 +01:00
Paul B Mahol
0c8a0d3a56
avfilter/af_acrossover: add per output band gain
2020-12-02 13:54:53 +01:00
Paul B Mahol
b0298ad4e5
avfilter/af_acrossover: remove pointless allocation of static size
2020-12-02 13:54:53 +01:00
Paul B Mahol
0a5ff19643
avfilter/af_acrossover: document roll-off of each filter order
2020-12-02 12:30:10 +01:00
Paul B Mahol
ba6e2a2d05
avfilter/af_acrossover: move coefficients and state to simple arrays
2020-12-01 18:42:57 +01:00
Paul B Mahol
aa3566a8ee
avfilter/af_anequalizer: add timeline and slice support
2020-12-01 18:42:28 +01:00
Paul B Mahol
da83673c8b
avfilter/af_agate: add support for commands and timeline
2020-11-30 21:42:09 +01:00
Paul B Mahol
62a0368fb4
avfilter/af_acrossover: remove unneeded emms_c() calls
2020-11-30 14:53:14 +01:00
Paul B Mahol
ca0900bc6e
avfilter/af_acrossover: unroll biquad_process loop
...
Makes code significantly faster for higher orders.
2020-11-30 14:53:14 +01:00
Paul B Mahol
6100a01a7a
avfilter/af_acrossover: use fdsp for inverter
2020-11-30 13:45:59 +01:00
Paul B Mahol
263b98bbbd
avfilter/af_acrossover: always align nb_samples for fdsp call
2020-11-29 22:10:26 +01:00
Paul B Mahol
400b9ee731
avfilter/af_asupercut: add float sample format support
2020-11-29 21:44:37 +01:00
Paul B Mahol
bebea78755
avfilter/af_asupercut: add order option
2020-11-29 14:16:48 +01:00
Paul B Mahol
f194cedfe6
avfilter/af_acrossover: split in correct spot
...
Previously split was made in wrong (half of original) position.
2020-11-29 10:52:18 +01:00
Paul B Mahol
c5cdec9731
avfilter/af_acrossover: reduce memory usage
...
Split biquad coefficients from biquad state.
2020-11-29 10:52:18 +01:00
Paul B Mahol
94ea760c6f
avfilter/af_asubboost: make wet option apply to final output
...
Also changes some default values for options after this change.
This makes distinction between feedback and wet option.
Before they would produce same output if values were swapped.
2020-11-28 22:07:18 +01:00
Paul B Mahol
a01b037c90
avfilter/avf_showfreqs: add group delay data mode
2020-11-28 20:57:41 +01:00
Paul B Mahol
66d89a8070
avfilter/af_acrossover: add option to adjust input gain
2020-11-28 16:02:12 +01:00
Paul B Mahol
68adb68e96
avfilter/af_acrossover: really fix single-pole allpass coefficients
...
Now LR2, LR6, LR10, LR14 and LR18 have really flat sum.
2020-11-28 14:53:17 +01:00
Paul B Mahol
50e2ad41de
avfilter/af_acrossover: remove unecessary allpass calls
2020-11-28 13:12:06 +01:00
Paul B Mahol
7a95cf86ff
avfilter/af_aemphasis: add timeline/slice and commands support
2020-11-27 22:38:17 +01:00
Paul B Mahol
1a25c6f196
avfilter/af_aemphasis: switch to planar sample format
2020-11-27 22:38:17 +01:00
Paul B Mahol
cf98822b66
avfilter/af_acrossover: add support for float sample format
2020-11-27 18:46:23 +01:00
Paul B Mahol
551ca67afe
avfilter/af_acrossover: fix single pole allpass coefficients
2020-11-27 15:35:41 +01:00
Paul B Mahol
1555cfedf6
avfilter/af_acrossover: improve quality for odd order butterworth
2020-11-27 12:52:21 +01:00
Paul B Mahol
3864896017
avfilter/avf_showfreqs: implement phase display
2020-11-27 12:52:21 +01:00
Paul B Mahol
3c922681c3
avfilter: add asupercut filter
2020-11-26 17:38:49 +01:00
Paul B Mahol
68e452c367
avfilter/af_acrossover: add missing allpass processing
2020-11-26 15:44:14 +01:00
Paul B Mahol
f7d7ce4717
avfilter/af_acrossover: add missing inverter as last step
2020-11-26 13:17:20 +01:00
Paul B Mahol
4e3c4dfbf3
avfilter/af_acrossover: simplify coefficients
2020-11-26 13:17:20 +01:00
Paul B Mahol
cc74700a83
avfilter/af_acrossover: add even more orders
2020-11-26 13:17:20 +01:00
Paul B Mahol
bc529ea9bc
avfilter/af_acrossover: use transposed direct II form
2020-11-26 13:17:20 +01:00
Paul B Mahol
810e213fab
avfilter/af_acrossover: rewrite code so it performs faster
2020-11-26 13:17:20 +01:00
Paul B Mahol
aba17bf6a5
avfilter/af_acrossover: add higher orders
2020-11-26 13:17:20 +01:00
Lynne
ae8fc9922e
lavfi/vulkan: allow calling glslang_uninit without a prior init
...
Allows us to uninit cleanly.
This assert was also somewhat pointless as we assert every other
function, so another assert would be triggered long before this
one is.
2020-11-25 23:06:34 +01:00
Paul B Mahol
5b1ccd748a
avfilter/af_arnndn: add timeline support
2020-11-25 13:41:52 +01:00
Paul B Mahol
278984b343
avfilter/vf_readeia608: add support for slice threads
2020-11-24 22:34:18 +01:00
Paul B Mahol
97bc6900e6
avfilter/vf_readeia608: add support for commands
2020-11-24 22:34:18 +01:00
Musee Ullah
7bb8b81955
avfilter/vf_xfade: ensure metadata is copied to transition frames
...
I was having an issue where, using a filter chain of xfade -> ass, the
colors on the subtitles were incorrect only on the frames where xfade
was being used. This resolves that issue for me.
Signed-off-by: Musee Ullah <lae@lae.is>
2020-11-24 14:35:41 +01:00
Paul B Mahol
c6a7ca271b
avfilter/af_biquads: make sure that biquad filter still works
2020-11-24 14:26:47 +01:00
Paul B Mahol
040e989223
avfilter/af_biquads: do not abort filtering on bogus options
...
Instead, continue returning unfiltered input.
2020-11-24 12:03:23 +01:00
Paul B Mahol
68429b9465
avfilter/af_adenorm: add timeline and slice threading support
2020-11-24 11:32:19 +01:00
Paul B Mahol
ee8ecc2730
avfilter/af_asubboost: add timeline and slice threading support
2020-11-24 10:19:04 +01:00
Paul B Mahol
9208b72a38
avfilter/af_aiir: add support for arbitrary order lattice-ladder filter format
2020-11-22 22:57:43 +01:00
Paul B Mahol
42ccef2846
avfilter/af_biquads: remove not needed code
2020-11-22 14:22:19 +01:00
Paul B Mahol
0066bf4d1a
avfilter/af_afreqshift: add timeline and slice threading support
2020-11-22 10:46:18 +01:00
Anton Khirnov
8918a3dfa2
lavfi/src_movie: switch to new decoding API
2020-11-20 15:25:26 +01:00
Anton Khirnov
e1c4a3ea7d
lavfi/lavfutils: switch to the new decoding API
2020-11-20 15:20:24 +01:00
Mark Reid
e366797ad3
avfilter/vf_lut3d: fix sanitizef INF handling
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2020-11-20 15:20:24 +01:00
Limin Wang
ab072de419
avfilter/vf_fade: config_props -> config_input
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-11-19 22:39:30 +08:00
Limin Wang
2399a7795b
avfilter/vf_fade: simplify code to use pts timebase for time check
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-11-19 22:39:30 +08:00
Paul B Mahol
c417f1a76c
avfilter/vf_xfade: add squeeze transitions
2020-11-19 14:57:41 +01:00
Paul B Mahol
381ab69042
avfilter/vf_frei0r: add support for commands
2020-11-19 11:55:47 +01:00
Paul B Mahol
17a0dfebf5
avfilter/vf_despill: add support for commands
2020-11-18 18:03:15 +01:00
Paul B Mahol
e3081d6f4f
avfilter/af_afade: add sinc curve types
2020-11-18 11:36:53 +01:00
Paul B Mahol
bb7bb440c2
avfilter/af_anlmdn: support all options as commands
2020-11-17 13:49:38 +01:00
Paul B Mahol
96f1b45b8c
avfilter/af_anlmdn: allow to change smooth/m at runtime
2020-11-17 12:48:46 +01:00
Andrew Rodland
04340e5e01
lavfi/frei0r: Remove duplicated pix_fmt entry
...
Fixes e.g. 'ffmpeg -i input.mp4 -vf frei0r=pixeliz0r output.mp4':
[Parsed_frei0r_0 @ 0x5585b8093280] Duplicated pixel format
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2020-11-16 19:32:32 +00:00
Paul B Mahol
9f20e5d281
avfilter: add speechnorm filter
2020-11-15 12:59:40 +01:00
Paul B Mahol
ee4a046540
avfilter/af_asoftclip: add oversampling support
2020-11-10 15:25:18 +01:00
Limin Wang
a51767c9b3
avfilter/vf_unsharp: add more pixel format support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-11-07 10:09:59 +08:00
Limin Wang
ee792ebe08
avfilter/vf_unsharp: add 10bit support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-11-07 10:09:59 +08:00
Paul B Mahol
a125e08130
avfilter: add adenorm filter
2020-11-05 18:26:27 +01:00
Timo Rothenpieler
a1553b0cfb
avfilter/scale_cuda: fix pitch calculation for >8 bit formats
2020-11-05 00:47:14 +01:00
Timo Rothenpieler
09e49ba31e
avfilter/scale_cuda: simplify linesize calculation
2020-11-04 20:00:35 +01:00
Timo Rothenpieler
94cb78ed94
avfilter/scale_cuda: add support for RGB formats
2020-11-04 19:53:41 +01:00
Timo Rothenpieler
9a0b702078
avfilter/scale_cuda: expose optional algorithm parameter
2020-11-04 18:10:19 +01:00
Timo Rothenpieler
cfdddec0c8
avfilter/scale_cuda: add lanczos algorithm
2020-11-04 01:43:21 +01:00
Timo Rothenpieler
4ad7af085c
avfilter/scale_cuda: add nearest neighbour algorithm
2020-11-03 19:58:13 +01:00
Timo Rothenpieler
15c0e038ce
avfilter/scale_cuda: code cleanup
2020-11-03 19:58:13 +01:00
Timo Rothenpieler
f1d0f83712
avfilter/scale_cuda: add bicubic interpolation
2020-11-03 19:58:13 +01:00
Paul B Mahol
112fe0ff19
avfilter/af_asoftclip: add asserts in default switch cases
2020-11-03 12:30:19 +01:00
Paul B Mahol
de63b6fb54
avfitler/af_asoftclip: add hard type
2020-11-03 12:30:19 +01:00
Paul B Mahol
ee686236cd
avfilter/af_asoftclip: add erf soft clip type
2020-11-03 12:30:19 +01:00
Paul B Mahol
2ddd6afd30
avfilter/af_biquads: make commands work reliably within biquad filter
...
Previously changing single coefficient would give unexpected results.
2020-11-02 13:30:14 +01:00
Paul B Mahol
40ce4ad999
avfilter/af_biquads: add lattice-ladder form
2020-11-02 13:30:14 +01:00
Paul B Mahol
c7ece8e26f
avfilter/vf_normalize: fix regression with white/black point calculation
2020-10-27 19:45:51 +01:00
Carl Eugen Hoyos
7b0d179195
lavfi/Makefile: Remove opencl object files when calling make clean.
2020-10-25 21:18:34 +01:00
Paul B Mahol
d6e903b09b
avfilter/vf_v360: make commands always do relative rotation
2020-10-25 12:49:25 +01:00
Paul B Mahol
637c154a50
avfilter: add audio frequency and phase shift filters
2020-10-20 20:38:30 +02:00
Romane Lafon
d60927b676
avfilter/avf_aphasemeter: add out of phase and mono detection
...
Extend aphasemeter to detect out of phase or mono sequences in
stereo streams.
Signed-off-by: Romane Lafon <romane@nomalab.com>
2020-10-20 20:30:45 +02:00
Paul B Mahol
8750c8f45c
avfilter/af_asubboost: use transposed II form
2020-10-20 13:51:45 +02:00
Paul B Mahol
6d59d69bb0
avfilter/af_crossfeed: use transposed II form
2020-10-20 13:51:38 +02:00
Paul B Mahol
5da94413d1
avfilter/af_aiir: remove unused argument
2020-10-19 18:42:42 +02:00
Paul B Mahol
f7379eafd2
avfilter/af_aiir: fix sp2zp mapping
2020-10-19 18:42:42 +02:00
Guo, Yejun
c4a3dbe726
dnn_backend_tf.c: add option sess_config for tf backend
...
TensorFlow C library accepts config for session options to
set different parameters for the inference. This patch exports
this interface.
The config is a serialized tensorflow.ConfigProto proto, so we need
two steps to use it:
1. generate the serialized proto with python (see script example below)
the output looks like: 0xab...cd
where 0xcd is the least significant byte and 0xab is the most significant byte.
2. pass the python script output into ffmpeg with
dnn_processing=options=sess_config=0xab...cd
The following script is an example to specify one GPU. If the system contains
3 GPU cards, the visible_device_list could be '0', '1', '2', '0,1' etc.
'0' does not mean physical GPU card 0, we need to try and see.
And we can also add more opitions here to generate more serialized proto.
script example to generate serialized proto which specifies one GPU:
import tensorflow as tf
gpu_options = tf.GPUOptions(visible_device_list='0')
config = tf.ConfigProto(gpu_options=gpu_options)
s = config.SerializeToString()
b = ''.join("%02x" % int(ord(b)) for b in s[::-1])
print('0x%s' % b)
2020-10-19 20:54:29 +08:00
Paul B Mahol
9860777516
avfilter/af_aiir: remove unused variable
2020-10-18 22:56:23 +02:00
Paul B Mahol
847dc03787
avfilter/af_aiir: add analog transfer function format
2020-10-18 18:48:41 +02:00
Andreas Rheinhardt
6ef55f54fe
avfilter/af_mcompand: Remove redundant calls to AVFilter.uninit
...
uninit is already called automatically (even when configuring the filter
failed).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-10-18 15:30:03 +02:00
Paul B Mahol
f372ce35f2
avfilter/af_aiir: use av_sscanf()
2020-10-17 18:43:47 +02:00
Paul B Mahol
7c1eef48e1
avfilter/af_aiir: reverse order of biquads in serial processing
...
This avoids most of clippings for fixed-point precision inputs.
Also add warning about filtering fixed-point precision with parallel processing.
2020-10-17 18:43:47 +02:00
Paul B Mahol
e704750a9f
avfilter/af_aiir: use transposed II form for biquad sections
2020-10-16 23:07:27 +02:00
Paul B Mahol
0df0e12d02
avfilter/af_aiir: implement parallel processing
2020-10-16 23:07:27 +02:00
Chris Miceli
6bdfea8d4b
libavfilter/dnn/dnn_backend{openvino, tf}: check memory alloc non-NULL
...
These previously would not check that the return value was non-null
meaning it was susceptible to a sigsegv. This checks those values.
2020-10-14 11:08:09 +08:00
Chris Miceli
ad95e5e45d
libavfilter/dnn_backend_native: check mem allocation
...
check that frame allocations return non-null.
2020-10-14 10:19:05 +08:00
leozhang
b9727870ae
avfilter/vf_scale_cuda: unload cuModule on uninit
...
Signed-off-by: leozhang <nowerzt@gmail.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2020-10-12 21:09:21 +02:00