[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 16:29:51 EEST 2023


Thanks for the swift reply Timo, you're right about versioning.
However, I didn't find any existing CUDA API versioning macro unlike that
for Video Codec SDK API.
So I basically did the same thing as that in previous commit to
nvcodec-headers which barely adds new function pointer...

Anyway, I took the liberty and added same versioning to CUDA API as that
for Video Codec SDK API.
I picked CUDA API v. 11.4 for no particular reason, simply because
nvcodec-headers doesn't use latest features and minimal required driver
(530+) supports that CUDA version.

Please LMK if there's another approach to CUDA API versioning I must follow.



чт, 14 сент. 2023 г. в 13:00, Timo Rothenpieler <timo at rothenpieler.org>:

> This will either need updates to the ffnvcodec version checks in
> configure, to ensure the new symbol always exists, or some kind of more
> selective check to only build those parts of the code if the new
> function is present.
>
> As it is now, this would fail all current builds.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


-- 
--
С уважением, Роман Арзуманян.
Главный разработчик по направлению видео аналитики.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavutil-hwcontext_cuda-option-added-to-use-context.patch
Type: application/octet-stream
Size: 4570 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230914/18a2080c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-cuCtxGetCurrent-function.patch
Type: application/octet-stream
Size: 3179 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230914/18a2080c/attachment-0001.obj>


More information about the ffmpeg-devel mailing list