| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Add xpu device support to libtorch backend.
To enable xpu support you need to add
"-Wl,--no-as-needed -lintel-ext-pt-gpu -Wl,--as-needed" to
"--extra-libs" when configure ffmpeg.
Signed-off-by: Wenbin Chen <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Actually, the jaccard distance is defined as D = 1 - intersect / union.
Additionally, the distance value is compared against a constant that
must be between 0 and 1, which is not the case here. Both facts together
has led to the fact, that the function always returned a matching course
signature. To leave the constant intact and to avoid floating point
computation, this commit multiplies with 1 << 16 making the constant
effectively 9000 / (1<<16) =~ 0.14.
Reported-by: Sachin Tilloo <[email protected]>
Reviewed-by: Sachin Tilloo <[email protected]>
Tested-by: Sachin Tilloo <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
|
|
|
|
| |
Similar to select filter for video - it can only pass through or drop frames
|
| |
|
|
|
|
|
|
|
| |
Done in 0df18f29ae218f30b3ecff7c930176b8ebee56aa,
accidentally undone in 163e737c1793eeea9c2df15298253ffc04906afe.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
|
| |
W has not been checked at all; allocate it jointly with M
to fix this.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
| |
Fixes Coverity issue #1468252.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
The result might not fit into 32bit if an image has gigantic
dimensions and one of the planes has a dominant value
(particularly so if said value is big).
Fixes Coverity issues #1598399, #1598401, #1598402, #1598403, #1598404.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
|
|
|
| |
For code such as 'model->model = ov_model' is confusing. We can
just drop the member variable and use cast to get the subclass.
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
| |
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
| |
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
|
|
| |
It will be freed again by ff_dnn_uninit.
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
| |
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
| |
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
|
|
| |
It will be freed again by ff_dnn_uninit.
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
| |
|
|
|
|
|
|
| |
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
| |
Forgotten after b8f74ee57a6e9e75a507adcddf30f84dd4a39d39.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The earlier code distinguished between a partial reset
(yae_clear()) and a complete reset (yae_release_buffers()
which also releases the buffers); this separation existed
to avoid allocations, as buffers were reallocated on reconfigs.
Yet it is pointless since a5704659e3e41b7698812b89f67d9a7467a74d20,
so simply use yae_release_buffers() everywhere.
Reviewed-by: Pavel Koshevoy <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
| |
Fixes Coverity issue #1516804.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Zhao Zhili <[email protected]>
|
|
|
|
|
|
| |
Also use loop scope for iterators while just at it.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
| |
Signed-off-by: LuMingYin <[email protected]>
Signed-off-by: Zhao Zhili <[email protected]>
|
|
|
|
|
|
|
| |
Should fix many Coverity false positives, namely #1457947-#1457994
as well as #1461195-#146210.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
| |
Reviewed-by: [email protected]
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Haihao Xiang <[email protected]>
|
|
|
|
| |
Signed-off-by: Haihao Xiang <[email protected]>
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch trying to resolve mulitiple issues related to parameter
configuration:
Firstly, each DNN filters duplicate DNN_COMMON_OPTIONS, which should
be the common options of backend.
Secondly, backend options are hidden behind the scene. It's a
AV_OPT_TYPE_STRING backend_configs for user, and parsed by each
backend. We don't know each backend support what kind of options
from the help message.
Third, DNN backends duplicate DNN_BACKEND_COMMON_OPTIONS.
Last but not the least, pass backend options via AV_OPT_TYPE_STRING
makes it hard to pass AV_OPT_TYPE_BINARY to backend, if not impossible.
This patch puts backend common options and each backend options inside
DnnContext to reduce code duplication, make options user friendly, and
easy to extend for future usecase.
For example,
./ffmpeg -h filter=dnn_processing
dnn_processing AVOptions:
dnn_backend <int> ..FV....... DNN backend (from INT_MIN to INT_MAX) (default tensorflow)
tensorflow 1 ..FV....... tensorflow backend flag
openvino 2 ..FV....... openvino backend flag
torch 3 ..FV....... torch backend flag
dnn_base AVOptions:
model <string> ..F........ path to model file
input <string> ..F........ input name of the model
output <string> ..F........ output name of the model
backend_configs <string> ..F.......P backend configs (deprecated)
options <string> ..F.......P backend configs (deprecated)
nireq <int> ..F........ number of request (from 0 to INT_MAX) (default 0)
async <boolean> ..F........ use DNN async inference (default true)
device <string> ..F........ device to run model
dnn_tensorflow AVOptions:
sess_config <string> ..F........ config for SessionOptions
dnn_openvino AVOptions:
batch_size <int> ..F........ batch size per request (from 1 to 1000) (default 1)
input_resizable <boolean> ..F........ can input be resizable or not (default false)
layout <int> ..F........ input layout of model (from 0 to 2) (default none)
none 0 ..F........ none
nchw 1 ..F........ nchw
nhwc 2 ..F........ nhwc
scale <float> ..F........ Add scale preprocess operation. Divide each element of input by specified value. (from INT_MIN to INT_MAX) (default 0)
mean <float> ..F........ Add mean preprocess operation. Subtract specified value from each element of input. (from INT_MIN to INT_MAX) (default 0)
dnn_th AVOptions:
optimize <int> ..F........ turn on graph executor optimization (from 0 to 1) (default 0)
Signed-off-by: Zhao Zhili <[email protected]>
Reviewed-by: Wenbin Chen <[email protected]>
Reviewed-by: Guo Yejun <[email protected]>
|
|
|
|
|
|
| |
Fixes ticket #9740.
Signed-off-by: Marton Balint <[email protected]>
|
|
|
|
|
|
|
|
| |
Otherwise expression state is accessed and changed from multiple threads.
Fixes ticket #10987.
Signed-off-by: Marton Balint <[email protected]>
|
|
|
|
|
|
| |
This should make future extensibility easier.
Signed-off-by: Marton Balint <[email protected]>
|
|
|
|
|
|
|
|
| |
ff_draw_rectangle handles subsampling since 2013.
Fixes ticket #10989.
Signed-off-by: Marton Balint <[email protected]>
|
|
|
|
| |
Signed-off-by: J. Dekker <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
| |
Fixes ticket #10509.
Signed-off-by: Marton Balint <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
| |
Move set_color() out of the CONFIG_TESTSRC2_FILTER block.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
|
| |
Forgotten in e82a3997cdd6c0894869b33ba42430ac3c57fb3b.
Reviewed-by: Frank Plowman <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
|
|
|
|
| |
They are currently defined inside the #if CONFIG_XMEDIAN_FILTER
block. Fixes standalone compilation of the tmedian filter.
Broken in f58939affe39f39038cbdfc6b731b1c9caed3caf.
Signed-off-by: Andreas Rheinhardt <[email protected]>
|
|
|
|
| |
Signed-off-by: Andreas Rheinhardt <[email protected]>
|