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

Timo Rothenpieler timo at rothenpieler.org
Thu Sep 14 19:54:01 EEST 2023


On 14.09.2023 18:52, Roman Arzumanyan wrote:
> Got it, thanks.
> Please find the patches in attachment.
> 
> Just for my own understanding - could you please explain how this magic 
> works in the configure script? I mean this section:
> 
> if ! disabled ffnvcodec; then
> 
> ffnv_hdr_list="ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h 
> ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h"
> 
> check_pkg_config ffnvcodec "ffnvcodec >= 12.1.14.0" "$ffnv_hdr_list" "" || \
> 
> check_pkg_config ffnvcodec "ffnvcodec >= 12.0.16.0ffnvcodec < 12.1" 
> "$ffnv_hdr_list" "" || \
> 
> check_pkg_config ffnvcodec "ffnvcodec >= 11.1.5.2 ffnvcodec < 12.0" 
> "$ffnv_hdr_list" "" || \
> 
> check_pkg_config ffnvcodec "ffnvcodec >= 11.0.10.2 ffnvcodec < 11.1" 
> "$ffnv_hdr_list" "" || \
> 
> check_pkg_config ffnvcodec "ffnvcodec >= 8.1.24.14 ffnvcodec < 8.2" 
> "$ffnv_hdr_list" ""
> 
> fi

No, only versions bigger than the given minimum in the respective branch 
will pass.
11.0.0.0 would not pass, it's outside of any valid range. And so on for 
other versions.


More information about the ffmpeg-devel mailing list