[FFmpeg-devel] [PATCH] hwcontext: add av_hwdevice_ctx_create_derived2

Lynne dev at lynne.ee
Mon May 11 13:25:15 EEST 2020


This allows for users who derive devices to set options for the 
new device context they derive.
The main use case of this is to allow users to enable extensions
(such as surface drawing extensions) in Vulkan while deriving from
the device their frames are on. That way, users don't need to write
any initialization code themselves, since currently Vulkan prevents
mixing instances and devices.
Also, with this, users can also set custom OpenCL extensions such
as cl_khr_gl_sharing and cl_khr_gl_depth_images.
Apart from OpenCL and Vulkan, other hwcontexts ignore the opts
argument since they don't support options at all (or in VAAPI's case,
options are only used for device selection, which device_derive overrides).

Patch attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hwcontext-add-av_hwdevice_ctx_create_derived2.patch
Type: text/x-patch
Size: 11432 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200511/a7cb4601/attachment.bin>


More information about the ffmpeg-devel mailing list