From: Raja Rathour via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: guoyejun@gmail.com, Raja Rathour <imraja729@gmail.com>
Subject: [FFmpeg-devel] [PATCH v2 0/3] avfilter/dnn: add async support for LibTorch backend
Date: Thu, 1 Jan 2026 13:37:19 +0530
Message-ID: <20260101080722.133215-1-imraja729@gmail.com> (raw)
In-Reply-To: <PH7PR11MB5957BBC4382ECC9BED3C0A11F1BDA@PH7PR11MB5957.namprd11.prod.outlook.com>
This series implements asynchronous model execution for the LibTorch backend.
It introduces a dedicated worker thread and a task queue to prevent the main
filter thread from blocking during inference, aligning the Torch backend
functionality with the OpenVINO backend.
v2 changes:
- Split the implementation into 3 patches for better reviewability.
- Added proper thread joining and NULL pointer safety in dnn_free_model_th.
- Cleaned up comments to follow FFmpeg Doxygen standards.
Raja Rathour (3):
avfilter/dnn_backend_torch: add async infrastructure
avfilter/dnn_backend_torch: implement async execution logic
avfilter/dnn_backend_torch: handle lifecycle of worker thread
libavfilter/dnn/dnn_backend_torch.cpp | 128 +++++++++++++++++++++-----
1 file changed, 105 insertions(+), 23 deletions(-)
--
2.48.1
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
next prev parent reply other threads:[~2026-01-01 8:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-25 10:33 [FFmpeg-devel] [PATCH 1/3] avfilter/dnn_backend_torch: implement async execution Raja Rathour via ffmpeg-devel
2025-12-31 6:41 ` [FFmpeg-devel] " Guo, Yejun via ffmpeg-devel
2026-01-01 8:07 ` Raja Rathour via ffmpeg-devel [this message]
2026-01-01 8:07 ` [FFmpeg-devel] [PATCH v2 1/3] avfilter/dnn_backend_torch: add async infrastructure Raja Rathour via ffmpeg-devel
2026-01-01 8:07 ` [FFmpeg-devel] [PATCH v2 2/3] avfilter/dnn_backend_torch: implement async execution logic Raja Rathour via ffmpeg-devel
2026-01-01 8:07 ` [FFmpeg-devel] [PATCH v2 3/3] avfilter/dnn_backend_torch: handle lifecycle of worker thread Raja Rathour via ffmpeg-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260101080722.133215-1-imraja729@gmail.com \
--to=ffmpeg-devel@ffmpeg.org \
--cc=guoyejun@gmail.com \
--cc=imraja729@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git