[FFmpeg-devel] [PATCH] avutil/hwcontext: add flags field to AVHWFramesContext

Daniel Oberhoff danieloberhoff at googlemail.com
Tue May 8 09:45:09 EEST 2018


>> 
>> I want to add a mapped-frame/dummy mode to the CUDA frame allocator, where it does everything a normal hwframes ctx does, except allocating memory, because the backing memory comes mapped from the cuvid frame.
>> 
>> Which is a simple flag to set, but there is no way to tell it right now.
>> 
>> The structures in the struct you mentioned are private to libavutil, so I can't set them from a decoder.
> 

Oh, so if i use/set this flag then the pointer i get in the AVFrame(s) are actually mapped from cuvid? I.e. zero-copy? How exactly could I use that?

Best

-------------- 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/20180508/ac85e640/attachment.sig>


More information about the ffmpeg-devel mailing list