ffmpeg/libavfilter/dnn
Raja-89 27cdf70086 avfilter/dnn: implement asynchronous execution for LibTorch backend
This patch implements the DNNAsyncExecModule for the LibTorch backend,
enabling non-blocking inference using the common infrastructure instead
of custom threading (th_async_module_submit) to align with the
TensorFlow and OpenVINO backends.

The implementation uses ff_dnn_start_inference_async which provides
unified async logic across all DNN backends, eliminating the need for
backend-specific threading code.

Verified with:
  ffmpeg -f lavfi -i testsrc=duration=5:size=320x240:rate=30 -vf dnn_processing=dnn_backend=torch:model=model.pt -y output.mp4

Signed-off-by: Raja Rathour <imraja729@gmail.com>
2026-03-02 21:35:17 +08:00
..
dnn_backend_common.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
dnn_backend_common.h avfilter/dnn: Refactor DNN parameter configuration system 2024-05-18 19:44:50 +08:00
dnn_backend_openvino.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
dnn_backend_tf.c libavfilter/dnn/dnn_backend_tf: Remove redundant av_freep() to avoid double free 2025-08-13 19:50:26 +08:00
dnn_backend_torch.cpp avfilter/dnn: implement asynchronous execution for LibTorch backend 2026-03-02 21:35:17 +08:00
dnn_interface.c all: fix whitespace/new-line issues 2025-08-03 13:48:47 +02:00
dnn_io_proc.c libavfilter/dnn_io_proc: Take step into consideration when crop frame 2024-04-04 14:26:57 +08:00
dnn_io_proc.h lavfi/dnn_io_proc: Return Specific Error Codes 2022-03-12 15:10:28 +08:00
Makefile libavfi/dnn: add LibTorch as one of DNN backend 2024-03-19 14:48:58 +08:00
queue.c Remove unnecessary avassert.h inclusions 2021-07-22 15:02:30 +02:00
queue.h lavfi/dnn: Common Function to Get Async Result in DNN Backends 2021-08-10 22:27:27 +08:00
safe_queue.c dnn/queue: remove prefix FF for Queue and SafeQueue 2021-01-22 08:28:13 +08:00
safe_queue.h lavfi/dnn/safe_queue.h: Add Documentation to SafeQueue 2021-04-27 10:01:20 +08:00