[FFmpeg-devel] [PATCH 2/2] libavutil/hwcontect_cuda: add option to use current CUDA context

Roman Arzumanyan r.arzumanyan at visionlabs.ai
Thu Sep 14 10:26:52 EEST 2023


Hello,

This is the second patch of the group which adds the option to use CUDA
context current to calling thread. It simplifies the usage of ffmpeg
libraries in applications which rely on CUDA runtime API.

Example:

AVDictionary *opts = NULL;

AVBufferRef *hwDeviceCtx;


av_dict_set(&opts, "current_ctx", "1", 0);

av_hwdevice_ctx_create(&hwDeviceCtx, type, NULL, opts, 0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavutil-hwcontext_cuda-option-added-to-use-context.patch
Type: application/octet-stream
Size: 4107 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230914/9852f31c/attachment.obj>


More information about the ffmpeg-devel mailing list