[FFmpeg-devel] Access to cuda functions

Daniel Oberhoff danieloberhoff at googlemail.com
Thu Apr 26 17:12:40 EEST 2018


> On 26. Apr 2018, at 14:08, Hendrik Leppkes <h.leppkes at gmail.com> wrote:
> 
> On Thu, Apr 26, 2018 at 2:06 PM, Daniel Oberhoff
> <danieloberhoff at googlemail.com> wrote:
>> Hello,
>> 
>> I just started programming to directly use the cuda decoded frames on the gpu (working off master). Would it be possible to publicly expose the loaded cuda functions? This way I can inherit the possibility to build with cuda support but run in absence of cuda on the target. Currently these are hidden from the public interface.
>> 
> 
> This doesn't belong into the API, so thats not going to happen, but
> the CUDA loader we use is public and you can just use it to do the
> same thing:
> http://git.videolan.org/?p=ffmpeg/nv-codec-headers.git;a=summary

Hmm, what is the rationale? You do expose the cuda context, so you do expose the fact that you use the cuda library. Also this will only work if i load the same library (there may be multiple on one system). I guess using nv-codec-headers that would be given, but then I am exploiting an implementation detail. It seems so much cleaner to just expose the functions in the AVCUDADeviceContext...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180426/226900d3/attachment.sig>


More information about the ffmpeg-devel mailing list