summaryrefslogtreecommitdiff
path: root/libavfilter/dnn
Commit message (Collapse)AuthorAge
* lavfi/dnn/queue.h: Add Documentation to QueueShubhanshu Saxena2021-04-27
| | | | | | Documentation for Queue Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn/safe_queue.h: Add Documentation to SafeQueueShubhanshu Saxena2021-04-27
| | | | | | Documentation for SafeQueue Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn_backend_openvino.c: Spelling Correction in OpenVino Backendshubhanshu022021-04-25
| | | | | | | Correct Spelling of the word `descibe` to `describe` in init_model_ov Signed-off-by: shubhanshu02 <shubhanshu.e01@gmail.com>
* lavfi/dnn: add post process for detectionGuo, Yejun2021-04-08
|
* lavfi/dnn: refine code for frame pre/proc processingGuo, Yejun2021-04-08
|
* lavfi/dnn_backend_openvino.c: only allow DFT_PROCESS_FRAME to get output dimGuo, Yejun2021-04-08
|
* lavfi/dnn_backend_tensorflow.c: fix mem leak in execute_model_tfTing Fu2021-03-25
| | | | Signed-off-by: Ting Fu <ting.fu@intel.com>
* lavfi/dnn_backend_tensorflow.c: fix mem leak in load_native_modelTing Fu2021-03-25
| | | | Signed-off-by: Ting Fu <ting.fu@intel.com>
* lavfi/dnn_backend_tensorflow.c: fix mem leak in load_tf_modelTing Fu2021-03-25
| | | | Signed-off-by: Ting Fu <ting.fu@intel.com>
* lavfi/dnn/dnn_backend_native_layer_mathunary: add exp supportWenlong Ding2021-03-24
| | | | Signed-off-by: Wenlong Ding <wenlong.ding@intel.com>
* lavfi/dnn_backend_openvino.c: fix mem leak for TaskItem upon errorGuo, Yejun2021-03-18
|
* lavfi/dnn_backend_openvino.c: fix mem leak for RequestItem upon errorGuo, Yejun2021-03-18
|
* lavfi/dnn_backend_openvino.c: fix typo upon errorGuo, Yejun2021-03-18
|
* lavfi/dnn_backend_openvino.c: fix mem leak for input_blob and output_blob ↵Guo, Yejun2021-03-18
| | | | upon error
* lavfi/dnn_backend_openvino.c: fix mem leak for AVFrame upon errorGuo, Yejun2021-03-18
|
* dnn/dnn_backend_native_layer_mathbinary: Fix leak upon errorAndreas Rheinhardt2021-03-11
| | | | | | | Fixes Coverity issue #1473568. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Don't pretend convolution can failAndreas Rheinhardt2021-03-11
| | | | | | | | | It can't; these are just remnants of commit 3c7cad69f233252e5178f7732baa0da950d74bbd which let the worker threads do the reallocation. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Check thread creation for errorsAndreas Rheinhardt2021-03-11
| | | | | | | Fixes Coverity issue #1473533. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Check allocationAndreas Rheinhardt2021-03-11
| | | | | Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Avoid separate, unchecked allocationsAndreas Rheinhardt2021-03-11
| | | | | Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Fix memleak on errorAndreas Rheinhardt2021-03-11
| | | | | | | | | | If an error happens when preparing the output data buffer, an already allocated array would leak. Fix this by postponing its allocation. Fixes Coverity issue #1473531. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Avoid allocation when single-threadedAndreas Rheinhardt2021-03-11
| | | | | | | | | Also fixes a memleak in single-threaded mode when an error happens in preparing the output data buffer; and also removes an unchecked allocation. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Join two arrays, avoid allocationAndreas Rheinhardt2021-03-11
| | | | | | | Fixes Coverity issue #1473507. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native_layer_conv2d: Fix memleak on realloc failureAndreas Rheinhardt2021-03-11
| | | | | Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native: Fix typo in log messageAndreas Rheinhardt2021-03-11
| | | | | Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native: Don't use asserts for checksAndreas Rheinhardt2021-03-11
| | | | | | | | | | asserts should not be used instead of ordinary input checks. Yet the native DNN backend did it: get_input_native() asserted that the first dimension was one, despite this value coming directly from the input file without having been sanitized. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native: Fix leak in case parsing options failsAndreas Rheinhardt2021-03-11
| | | | | Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/dnn_backend_native: Avoid allocation for checking file magicAndreas Rheinhardt2021-03-11
| | | | | Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn_backend_openvino.c: allow out_frame as NULL for analytic caseTing Fu2021-02-18
|
* dnn: add color conversion for analytic caseGuo, Yejun2021-02-18
| | | | Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn: add function type for modelGuo, Yejun2021-02-18
| | | | | | | | So the backend knows the usage of model is for frame processing, detect, classify, etc. Each function type has different behavior in backend when handling the input/output data of the model. Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn_backend_openvino.c: fix multi-thread issue for async executionGuo, Yejun2021-02-18
| | | | | | | | | once we mark done for the task in function infer_completion_callback, the task is possible to be release in function ff_dnn_get_async_result_ov in another thread just after it, so we need to record request queue first, instead of using task->ov_model->request_queue later. Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn_backend_openvino.c: fix mismatch between ffmpeg(NHWC) and openvino(NCHW)Guo, Yejun2021-02-18
| | | | Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn_backend_openvino.c: remove extra semicolonGuo, Yejun2021-01-28
|
* dnn: remove type cast which is not necessaryGuo, Yejun2021-01-28
|
* dnn: Add ff_ prefix to unnamespaced globalsMark Thompson2021-01-22
| | | | Reviewed-By: Guo, Yejun <yejun.guo@intel.com>
* dnn_backend_native.c: Add missing static to local variableMark Thompson2021-01-22
|
* dnn_backend_native_layer_mathbinary.c: Delete unused global variableMark Thompson2021-01-22
|
* dnn_backend_native_layer_conv2d.c: refine code with av_malloc_array and av_freepGuo, Yejun2021-01-22
| | | | Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn_backend_native_layer_conv2d.c: correct struct name with CamelCaseGuo, Yejun2021-01-22
| | | | Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn/queue: remove prefix FF for Queue and SafeQueueGuo, Yejun2021-01-22
| | | | | | we don't need FF prefix for internal data struct Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* libavfilter/dnn: add prefix ff_ for internal functionsGuo, Yejun2021-01-22
| | | | | | | from proc_from_frame_to_dnn to ff_proc_from_frame_to_dnn, and from proc_from_dnn_to_frame to ff_proc_from_dnn_to_frame. Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* libavfilter/dnn: use avpriv_report_missing_feature for unsupported featuresGuo, Yejun2021-01-22
| | | | Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn_backend_openvino.c: add version mismatch reminderGuo, Yejun2021-01-22
| | | | | | | | The OpenVINO model file format changes when OpenVINO goes to a new release, it does not work if the versions between model file and runtime are mismatched. Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
* dnn/openvino: support model input resizeTing Fu2021-01-18
| | | | | | | | | | | | | | | | OpenVINO APIs require specify input size to run the model, while some OpenVINO model does accept different input size. To enable this feature adding input_resizable option here for easier use. Setting bool variable input_resizable to specify if the input can be resizable or not. input_resizable = 1 means support input resize, aka accept different input size. input_resizable = 0 (default) means do not support input resize. Please make sure the inference model does accept different input size before use this option, otherwise the inference engine may report error(s). eg: ./ffmpeg -i video_name.mp4 -vf dnn_processing=dnn_backend=openvino:\ model=model_name.xml:input=input_name:output=output_name:\ options=device=CPU\&input_resizable=1 -y output_video_name.mp4 Signed-off-by: Ting Fu <ting.fu@intel.com>
* dnn/openvino: refine code for better model initializationTing Fu2021-01-18
| | | | | | | | Move openvino model/inference request creation and initialization steps from ff_dnn_load_model_ov to new function init_model_ov, for later input resize support. Signed-off-by: Ting Fu <ting.fu@intel.com>
* dnn/openvino: remove unnecessary codeTing Fu2021-01-18
| | | | Signed-off-by: Ting Fu <ting.fu@intel.com>
* libavfilter/dnn: add batch mode for async executionGuo, Yejun2021-01-15
| | | | | | | | the default number of batch_size is 1 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>
* Mark some pointers as constAndreas Rheinhardt2021-01-01
| | | | | Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dnn/queue: add error check and cleanupGuo, Yejun2020-12-31
| | | | Signed-off-by: Guo, Yejun <yejun.guo@intel.com>